I'm new to design, contrast and color concepts but I'm trying to get my programming code snippets to look crisp, clear and very legible, without hurting the eyes. I'm looking for a font that is ideal for programming code snippets in a blog. I'm looking for a free web safe font.   The background color of my page is almost white (#eee) and the code snippets will be wrapped in a  container with the following CSS details  <div class="code-snippets">  </div>   .code-snippets {    background-color:#070707;    color: eee;    padding: 20px;    /*   font-family: ??? */ }   Any assistance will be greatly appreciated. Thanks in advance


How can I find historical flight arrival data for AF149 for September 29, 2017? I need to file a claim.


Proving that the intersection of two subrings of R is also a subring of R

If $R_1$ and $R_2$ are both subrings of $R$ , how to prove that $R_1 \cap  R_2$ is also a subring of $R$.  here is my attempt  (1)Since $R_1$ is a subring of $R$ then it must contain zero (identity with respect to addition) same thing for $R_2$ and so $R_1 \cap R_2$ must have at least zero so it is nonempty.  (2)Now how to prove that if $x,y \in R_1 \cap R_2$ then $x-y \in R_1 \cap R_2$ and $xy \in R_1 \cap R_2$ how can we guarantee that?


Road bike getting punctured often on poor roads

I brought my road bike to Mumbai where the roads are pretty bad (lots of potholes, gravel...), I've been getting a puncture roughly every 2 weeks. The tires are about 6 months old. They are a bit worn out, but people I ask here say it's fine.  What are my options to deal with this? Should I line the tire with old tubes?


Need help checking if a binary tree is a valid binary search tree in Java

Here is my code:      public boolean isBST() {         return isBST(this.root);     }      private boolean isBST(BinaryNode<T> rootNode) {         if (rootNode == null) {             return false;         }         if (rootNode.isLeaf()) {             return true;         }         T left = null;         T right = null;          if (rootNode.hasLeftChild()) {             left = rootNode.getLeftChild().getData();             if (left.compareTo(rootNode.getData()) < 0) {                 return this.isBST(rootNode.getLeftChild());             }             else {                 return false;             }         }         if (rootNode.hasRightChild()) {             right = rootNode.getRightChild().getData();             if (right.compareTo(rootNode.getData()) > 0) {                 return this.isBST(rootNode.getRightChild());             }             else {                 return false;             }         }         return true;     }   This code works for simple binary trees, but it doesn't work for other ones. Such as if I have a tree like so:           5        /   \       3     6      /\     1  2   It won't mark it false even thought it should since 2 is smaller than 3 and is in the wrong place. My code just checks the left child's left children, and the checks the right child's right children and not the inner children. What can I do to make this code work in the way that I wrote it? How can I modify it?


I'm sure this is for most of you a basic question, but it really puzzles me:  How it is that, even though all materials expand as they get warmer, and contract (maybe these are not the correct terms) when get colder, water exapands when freezes.  Thanks a lot.


I am currently writing my cover letter for an application.  In the opening sentence I want to put emphasis on the most important fact about my profile: That I am a statistician and that this is my passion. I am applying in the area of financial statistics. I thought about using the classical "I am writing to apply", but instead somehow a punchline, something like:  Statistics and solving quantitatitve problems is my passion. I studied .....   I am not sure about this sentence, first is this a good idea? Second is the "is" correct? Or is an "are" necessary?


What is a Null ? My textbook only explains it as the Minkowski metric which equals to zero, but I'd appreciate a more detailed explanation.


How does one refresh thumbnails in nautilus? In my videos folder I have some MKVs and only half of them have the movie border and a excerpt from the movie and the others (also MKVs encoded in the same way) just have the ordinary film icon.  (F5 doesnt do it.)


Prove that in an disordered set of 50 numbers, you can always remove 42 numbers in a way that leaves an ordered set of 8 numbers.

I am struggling with a combinatorics problem stated in a title. It has to be said, that the 8-element set we are left after removal of the rest of elements has to be ordered without rearranging the leftover elements. Also, the numbers in the original 50-element set are all unique and the ordered set of 8 can be  sorted both ways, biggest to smallest or smallest to biggest, it doesn't matter. Even a hint where to start with this question would be welcome, I am completely crushed by this question.


shakil@shakil-Aspire-5733Z:~$ sudo apt-get -f install [sudo] password for shakil:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following extra packages will be installed:   linux-tools-common The following NEW packages will be installed:   linux-tools-common 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded. 3 not fully installed or removed. Need to get 0 B/88.0 kB of archives. After this operation, 312 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 303158 files and directories currently installed.) Preparing to unpack .../linux-tools-common_3.13.0-53.89_all.deb ... Unpacking linux-tools-common (3.13.0-53.89) ... dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_3.13.0-53.89_all.deb (--unpack):  trying to overwrite '/usr/bin/perf', which is also in package linux-lts-vivid-tools-common 3.19.0-18.18~14.04.1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/linux-tools-common_3.13.0-53.89_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  shakil@shakil-Aspire-5733Z:~$    I have already tried:   sudo apt-get autoclean  sudo apt-get clean  sudo apt-get autoremove -f  sudo apt-get autoremove  sudo apt-get install -f    Please, can anyone help me?


I can't do "sudo apt-get update" (malformed entry 54 in sources.list)

I see there are some similar questions but there's no solution there for my case. At least none that I could understand.  When I type sudo apt-get update, I get a response:  E: Malformed entry 54 in list file /etc/apt/sources.list (Component) E: Nie udało się odczytać list źródeł.   Second line means that it was impossible to read the list of sources.


Find $\sqrt a + \sqrt b + \sqrt c$ only in terms of $p$ .

If :- $$a^2x^3 + b^2y^3 + c^2z^3 = p^5$$ $$ax^2 = by^2 = cz^2$$ $$\frac{1}{x} + \frac{1}{y} + \frac{1}{z} = \frac{1}{p}$$ Find $\sqrt a  + \sqrt b + \sqrt c$ in terms of $p$ .  What I Tried :- How do you use the information here? I assumed that :- $$ax^2 = by^2 = cz^2 = k$$ And then I can write the $1$st equation as :- $$k(ax + by + cz) = p^5$$ But I guess that just bring another extra variable into the scene so it does not help . How can I use the $3$rd equation? I can write it as $\frac{xyz}{xy + yz + zx} = p$ . How do you use it?


How to change style and color of Table of Content?

I want to change style and color of my Table of Contents to match this:    Note that I use the minitoc package for creating my Table of Contents on a per-chapter basis.


how to set and unset javascript files for specifc path aliases in Drupal 7?

I am trying to set particular javascript files for a specific node page by getting the path alias. like this:  $path=drupal_get_path_alias();   if($path == 'about-us')   drupal_add_js(drupal_get_path('theme', 'mytheme') . "/page-download.js");   which it doesnt work.  But when i add the particular javascript file to my .info file it works.  Also in other pages i will have to unset some of the javascript files if the above does not work but still unsetting javascripts does not work.   unset($vars['js']['all']['page-download.js']);


I am using a dual boot system, while using Ubuntu I want to access windows folders, data, etc. is it possible? how?


Best practice for blank top level menu item?

I create a LOT of WP sites and therefore tons of menus.  A lot of times there is no sensible page for a top level menu item.  For instance I was creating a site with internal learning.  The top level menu item just goes to homepage.  Is this a good practice if there is no good page for them to go to or would it be better to go no where?


I have the following code:  \documentclass{article}  \usepackage[table,xcdraw]{xcolor} \usepackage{multirow}  \begin{document}  \begin{table}[] \centering \caption{My caption} \label{my-label} \begin{tabular}{l|c|c|c|c|c|} \cline{2-6}  & \multicolumn{1}{l|}{\cellcolor[HTML]{9B9B9B}\textbf{Group}} & \multicolumn{1}{l|}{\cellcolor[HTML]{9B9B9B}\textbf{Mean}} & \multicolumn{1}{l|}{\cellcolor[HTML]{9B9B9B}\textbf{Median}} & \multicolumn{1}{l|}{\cellcolor[HTML]{9B9B9B}\textbf{Std Desv}} & \multicolumn{1}{l|}{\cellcolor[HTML]{9B9B9B}\textbf{Variance}} \\ \hline \multicolumn{1}{|c|}{\cellcolor[HTML]{9B9B9B}} & A & 12,012 & 23 & 7,61 & 86,771 \\ \cline{2-6}  \multicolumn{1}{|c|}{\multirow{-2}{*}{\cellcolor[HTML]{9B9B9B}\textbf{Efficiency}}} & B & 21,37 & 34 & 76,62 & 26,016 \\ \hline \multicolumn{1}{|l|}{\cellcolor[HTML]{9B9B9B}} & A & 0,122 & 0,011 & 0,021 & 0,065 \\ \cline{2-6}  \multicolumn{1}{|l|}{\multirow{-2}{*}{\cellcolor[HTML]{9B9B9B}\textbf{Effort}}} & B & 0,216 & 0,332 & 0,177 & 0,024 \\ \hline \end{tabular} \end{table}  \end{document}   Why is not table top border appearing?


Ubuntu Docker image - unable to fetch archives with apt-get

I've been trying to build a docker image using Ubuntu:16.04 as the base image. I want to install python so I use   RUN \ apt-get -y update && \ apt-get -y install python python-dev python-pip   on a single RUN command to avoid layer caching. I also have tried using the --no-cache flag in my build command, but it does not prevent the error  Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/manpages/manpages-dev_4.04-2_all.deb  Writing more data than expected (2078445 > 2047608) Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I looked at other , and as this is a docker image I can't access /etc/apt/sources.list.


Change post permalink to external URL from custom field

I want to let my users submit links to my website something like reddit and digg. I added a meta_key 'syndication_permalink' which contains link to this post. How  could I change the post permalink to link this custom link not to my page?


What is the validation data for the neural network?

I am a beginner in this of neural networks and automatic learning and I understand that the network learns training data, but I do not understand what the validation data are.  Validation data is a set of training data?  Can you give me an example of training data vs validation data


There's one aspect which is confusing me, especially because of how it's done in my native language which is ukrainian. So question is how singular and plural forms are used with numbers ending with 1. - 1 view. No questions asked. - 11, 211 views. No questions asked either.  - 0, 2, 5, 13, etc views. No questions here either.  - 21, 101, 91 view or views? In ukrainian, it will be 21 view, 101 view and 91 view. What is right in english?


How to show hidden folders in File Manager (Nautilus) on Ubuntu?

How do you show a hidden folder (whose name starts with .) in File Manager a.k.a. Nautilus on Ubuntu?  I am somewhat new to Ubuntu and can't seem to find the "view" menu.


I cannot figure out how to import a file in a chapter title:  \chapter{\input{"Introduction.txt"}} \chapter{\texorpdfstring{\input{"Introduction.txt"}}{Introduction}}   Both of these fail with      Use of \@chapter doesn't match its definition.   Any help will be greatly appreciated.


Best approach to avoid concurrentModificationException when moving through Set

I'm trying to fix a bug that occurs seldomly (a concurrentModificationException) while looping through a Set of generics Set (on the clean() method).  for (final K key : this.bean.keySet()) {     getProxy(key).clean(); }   All the answers I found suggest to use an iterator and then calling the method remove() on it but here I am not looping through a list where I need to remove an item.  There is maybe also the possibility to convert my Set to an array and lock it (using java.util.concurrent.Locks) / make it synchronous.  I am confused about the best approach to fix my problem, the solutions above don't really satisfy me as they make me lose all benefits of multithreading.


I have two Ubuntu Software Centers, one can be opened, another one can't

Recently my Ubuntu Software Center could not be opened(it opens showing nothing and exit automatically). I therefore ran the command sudo apt-get remove software-center to remove the Ubuntu Software Center. then I use sudo apt-get install software-center to reinstall it.   Now I have two Ubuntu software Centers; one is called "Ubuntu Software"(default broken one), another is called "Ubuntu Software Center"(the current working one).   The problem I have is that whenever I want to download something not in the Software Center, if I open the .deb file, the broken one opens it, and closes very quickly. Basically I can't download anything outside the Ubuntu Software Center for that reason.   My current Ubuntu version is Ubuntu 16.04LTS.


How to Testfor Players with more than 100 of a Specific Item

So I'm using the testfor command to find near players with a item with a custom name and a specific amount. The issues I'm having is how to search for more than 1 stack of items like 100 items total.  Here is what I've got for the command so far  testfor @p {Inventory:[{id:"minecraft:paper",tag:{display:{Name:"$1"}}}]}   I just don't know how to put "count:100" in there


Where does your Samsung phone store its default ringtones?

So my grandma gave me a Samsung Galaxy J2 Prime from 2017, and it doesn't have any SD card inserted. So where does my phone store its defalt ringtones and notification sounds? I tried going to Android>data>system>media>audio>ringtones but it seems it doesn't have the system folder. Can someboy help me with this?


I want to include some svg image within an equation.  Until now the code looks like  \begin{equation} \def\svcscale{1.5}     A = \includesvg{AMC/3J} \end{equation}   But with that, the symbol is not in the middle, it looks like that:     So I want the symbol to be in the middle of the equals sign. Do you know how to shift that?


How to prove this Binomial identity: $\binom{n}{k+1}=\sum_{i=0}^{n-k-1} \binom{k+i}{k}$

I'm having problems solving this equation. I always get the wrong answer. Can somebody please help me solve it. Appreciate any help. I would appreciate the steps as well since I dont know where i messed up.  Thanks


Where to put view-specific javascript files in an ASP.NET MVC application?

What is the best place (which folder, etc) to put view-specific javascript files in an ASP.NET MVC application?    To keep my project organized, I'd really love to be able to put them side-by-side with the view's .aspx files, but I haven't found a good way to reference them when doing that without exposing the ~/Views/Action/ folder structure.  Is it really a bad thing to let details of that folder structure leak?  The alternative is to put them in the ~/Scripts or ~/Content folders, but is a minor irritation because now I have to worry about filename clashes.  It's an irritation I can get over, though, if it is "the right thing."


How do google bots work for sites that are database driven?

I didn't see this question already asked but I also don't know if this may be called something in particular so my apologies.  While learning SQL and PHP I was curious to know how do bots search a website if there is no physical .html files being populated onto the server?  How do bots index the site?


Can I use the middle click mouse button so I can scroll down faster, like in Windows?  When I am in Windows and I press the middle click somewhere I can scroll in, a 4-way pointer shows on the screen, and when I move the mouse in any direction, the window will scroll in that direction even without continuing to press the middle button.  Is there anything like this in Ubuntu? How can I do this, especially in Chrome!


Finding all classes implementing a specific interface

I am in the process of developing an application (Quartz scheduler) where we have a job class which is responsible for actually executing the work and we need to tell/pass the name of the job class while creating a trigger in the Quartz scheduler.  I want to provide an extension point to all who want to use the API (beside the some generic jobs which I will provide as part of the API). The idea is to create an (marker) interface and if any one wants to declare their class as scheduler job class, all they have to do is, to (declare to) implement the interface.  I am not sure how I can find which classes are following the contract (by implementing the interface) so that I can show them to the user who want to schedule a trigger in the scheduler.  My requirement is not to load the classes at run time but to show user list of classes which implement the required interface so that user can select the class and class name can be passed to the scheduler. It's the Quartz scheduler which at the end will be responsible to create an instance of class.  Can any one suggest how I can achieve the above goal or is there any other better way to achieve what I am trying to do?  Edit  I went through the doc of  and it seems that for implementing a service one has to create a file in the META-INF folder with the name of the implementation class, which leads me to think that if the user of my API wants 20 different implementations, he has to put 20 entries in the file which for me seems a lot of extra work for the end user since each job class will be created for executing a specific job and there can be 100s of job classes.  Please correct me if my assumption is wrong.


I have problem in downloading ubuntu 20.04

I download ubuntu iso file version 20.04 but it is downloaded as a ZIP file not as a iso file. I downloaded from proper site from where my friend has downloaded but I didn’t get proper iso file whereas he gets. Am also get the file through USB  pen drive but when i transfer it to my pc it again become a ZIP file. Please help me to come out of this problem.


A morphism of sheaves of sets is an isomorphism if it induces an isomorphism of all stalks.

This is Exercise 2.4.E. from .     Show that a morphism of shaves of sets is an isomorphism if and only if it induces an isomorphism of all stalks.    My failed attempts:  I found some similar questions  and . But I still couldn't figure out the details.   I have shown the "only if" part. I have also shown that if the morphism induces an isomorphism of stalks, it is injective.   The surjective part confused me a lot. Here is a commutative diagram:   To show surjectivity, suppose $g\in \mathscr{G}(U)$. Its image in the stalks at $p$ is $(g,U)_p$. Since $\phi_p$ is an isomorphism for all $p$, we have $(f_p,U_p)\in \mathscr{F}_p$, such that $\phi_p(f_p,U_p)=(g,U)_p$ for all $p\in U$. Now I don't know how to glue the $f_p$ together. Since even we have the pairs $(f_q,U_q)\in \mathscr{F}_q$, we cannot show that their restrictions on $U_p\cap U_q$ are equal. We have to find a small enough open set to glue them.   I also tried the open cover argument from the right hand side:  Since $\prod(g,U)_p$ consists of compatible germs, there exists an open cover $U_i$, and section $g_i$ in $\mathscr{G}(U_i)$, such that $(g,U)_p=(g_i,U_i)$ for all $p\in U_i$. But this doesn't help much. Since $\phi_p$ are different maps, we still cannot conclude anything about the $(f_p,U_p)$.    Any help will be greatly appreciated!


Basic question: closure of irreducible sets

Let $(X,\tau)$ be a topological space, $U \subseteq X$ a non-empty open subset of $X$ and let $W$ be an irreducible non-empty closed subset of $X$. Assuming $W \cap U \neq \emptyset$ why is this intersection irreducible in $U$ and its closure (taken in $X$) equal $W$?  Clearly $W \cap U$ is dense in $W$ because it is an open subset of $W$ and $W$ is irreducible so its closure, taken in $W$ is $W$ itself. I don't see why its closure taken in $X$ is equal $W$. Why is this? Also, why is it irreducible in $U$?  EDIT: OK $W=cl_{X}(W)=cl_{X}(W \cap U)$ I think. Why is it irreducible in $U$ though?


Why is the change in entropy greater for processes occurring at lower temperatures?

We have the thermodynamic definition of entropy $\Delta S = q_{rev}/T$. If heat transfer is the same for both processes at different temperatures, this implies that the same process occurring at lower temperature would generate more entropy than if the process occurred at higher temperature. Why is this the case? Why isn't the change in entropy equal for both processes?


Work about Earth or humanity being destroyed for being peaceful

I'm sure it was a book, but it could have been a film, or even a video-game plot element. Apologize if I've mixed up any facts – I don't think I've come across this again in the last 20 years!  I read this "book" a long time ago, and a small part of the story refers to the Earth being visited by aliens, who (IIRC) told us that they were disappointed in how we had progressed as a species, and gave humanity the chance to repair their culture…  I believe, they left the Earth and came back after a time to be told that humanity had worked hard and had now declared a full and lasting world-peace and equality. However, the aliens wanted the opposite, they wanted us to be even more vicious to be used as soldiers or something along those lines.  I believe that they then promptly destroyed either the planet or the species!


How can I find out which processes on my computer are accessing the microphone?

After reading  and reading the comments on the page, one person was wondering if it would be possible to use the Physical Device Object Names of other hardware such as the microphone to find out the names of processes using that device.  I tried the same approach, but so far it only seems to work for the webcam. Is there any other way I could get this to work in ?      UPDATE:  The Lifehacker post was about finding out which Windows process is currently using your webcam.  is how they went about doing it:        Start Device Manager (WIN+R → "devmgmt.msc" → OK)   Find your webcam among the list of devices (check under Imaging Devices)   Open the properties window of the device and switch to the Details tab  (Right click → Properties → Details)   In the dropdown menu, select Physical Device Object Name and copy the string(Right click → Copy)   Download    Make sure you have opened Process Explorer in Administrator Mode(File → Show Details for All Processes)   Hit CTRL+F and enter the string you copied earlier(it should be something like \Device\000000XX)   Hit the Search button and you should see a list of processes using the webcam(if there are any)


Does sensor size affect lens distortion?

There was recently a video posted about how different focal lengths affect portrait photography, specifically how distortion at smaller focal lengths have more distortion and are less flattering.   So the question is that, because we always talk about how Canon's cropped sensors have a 1.6x crop factor so the lenses are essentially longer, does the distortion caused by the lens change when used on a cropped sensor?  My initial thought is "no" given that my idea of how a cropped sensor works is like printing off a 8x10 picture and then cutting out the 4x6 that I like: the picture doesn't change, only my view of it.   However, if distortion is least prominent at the center of the photo and most prominent at the edges, then the perception of the net effect of the distortion would be changed by using a cropped sensor and I get confused again.   Any thoughts?


Schengen visa appointments not available for 3 months. What are my options?

I am planning on traveling to Europe in two months. However, I could not find any appointments for Schengen C visa for the next two and a half months.  Is there any way around this? What's the probability of me getting this visa? It would be a shame if I have to call off my vacation because of visa appointments not being available, or if I have to change my itinerary to include a country where there is a visa slot.


Random Number generator in a range and then print length of the sequence

I want the application to create a sequence that generates a series of random numbers from 0 to 9 util a 0 is generated and then display the length of the sequence of the numbers. Right now my program only prints 0 or 9 as I don't know the random number generator method.My question is how do I generate a random integer between 0 and 9(inclusive) unit a 0 is generated.     import java.util.Random; import java.util.ArrayList;  public class Sequence {    public static void main(String[] args) {        ArrayList<Integer>  lista = new ArrayList<Integer>();        lista.add(0, 9);           Random r = new Random();        System.out.println(lista.get(r.nextInt(lista.size())));       }    }


How would you recommend backing up an entire hard drive?  Back story:  I often help others perform a clean OS installation (usually Windows) or migrate to a new hard drive. I like to begin with a full disk backup, so I can later revert the entire process, retrieve individual files, preserve factory-installed diagnostics, etc. In the past, I've used some combination of dd/ddrescue (single step for drive, but space inefficient) or ntfsclone for individual partitions.  Requirements:   Store NTFS partitions efficiently Navigate partition(s) to retrieve individual files Preserve partition structure, MBR, etc Preserve factory-installed diagnostics or recovery partitions Restore entire image to a new hard drive (Optional) One-step archive


Watch Me Do or other method for exact pixel coordinate of mouse click (Automator)

Is it possible to specify how a mouse click point is recorded or processed in Watch Me Do?   had thought it was exact pixel position recorded but it seems that in a safari browser it is relative to the page scroll...   Is there another way to simulate actions clicking in exact locations (irrespectivec of browser scrollbar)?   Specifically, I would prefer a non-third party tool solution - using Automator if possible.


debugging "connection refused" in AWS EC2 ubuntu server

I had a working EC2 ubuntu instance (t1.micro) connected through an elastic IP, using an Amazon key pair for a passwordless ssh connection. After running fsck like the terminal suggested (wrong move, I know now), the system rebooted and I keep getting "Network Error: Connection Refused" when trying to connect via ssh. I managed to attach the instance's volume to an alternative instance, but I could not see what was wrong. I also tried "ssh -vvv" from an Ubuntu laptop, but got no useful output. Is there a log I can look at to see why ssh is refusing my connection?  Is there an alternative way I could debug this?


I recently received a "DNA Match" on my account to some one who shows 1,177 cM shared.  I am trying to understand what this is really telling me.  This is important to me as I do not know who my Father is but suspect I have a whole set of half siblings from his side.  I know who my mother was and have met my 1/2 siblings from her marriage to their Father, hence knowing my niece as stated below.  I have another post that shows 810 cM shared and that individual is my niece by my half sister.


I am currently following some slides I found to try and learn how to find the average case complexity for some algorithms. I got stuck when having to handle this summation though:   $$\sum_{i=1}^k i*2^i $$  According to the slides: it can be shown that the the summation is equal to:    $$(k - 1)·({2^k+1}) + 2  $$  Can somebody explain how to get to this answer?


Derivative of an analytic one-to-one map has no zeros

Let $G$ be a region in a complex plane. Suppose $f:G\to\mathbb C$ is analytic and one-one. Show that $f'(z)$ is not zero for any $z$ in $G$.    I was trying to do the contradiction method. But I can't conclude anything. Please help


If a bard has expertise in Persuasion, doubling his Proficiency Bonus, does drawing the Throne card from the Deck of Many Things double it again?

The Throne card in the Deck of Many Things (5e) says, "You gain proficiency in the Persuasion skill, and you double your proficiency bonus on checks made with that skill." If a 4th level Bard who chose Expertise in the Persuasion skill back at 3rd level draws this card, what happens to his proficiency bonus, which was already doubled because of the Expertise? Does it double again?   Also, if the events of that day's gaming session give him the XP for 5th level (at which base proficiency bonus goes up from 2 to 3), how will this affect the calculation moving forward?  Due to this Bard's extreme good fortune in card-drawing, he also drew a card that brought his already very high CHA score to 22, so we're pretty sure that no matter what happens, this is going to be one very persuasive bard, but we're not sure about stacking the doubling.


Suppose I have $A_1 \to B$ and $A_2 \to B$ in some category where fiber products exist. I am stuck on trying to prove that it is unique up to unique isomorphism. Suppose I have $C$ with $\pi_i: C \to A_i$ and $D$ with $p_i: D \to A_i$ both satisfying the universal property as a fiber product of $A_1 \to B$ and $A_2 \to B$. I want to show $C$ and $D$ are isomorphic. Let  $\phi: D \to C$ and $\psi: C \to D$ obtained by the universal property. What I can get by drawing commutative diagrams is $$ p_i \circ \psi \circ \phi = p_i \circ Id_D.   $$ How can I prove $\psi \circ \phi = Id_D$ from here? Thank you.


I have a late 2013 Mac Pro running Yosemite.   How can I become root in Yosemite? There is no root user listed in Users & Groups under System Preferences...  I need help to be able to be root so I can administer my system in a professional way.


Exponential Form of Complex Numbers - Why e?

You know how $\sin(\theta) \cdot i + \cos \theta$ is in exponential form $e^{i\theta}$, why exactly is $\sin(\theta) \cdot i + \cos \theta = e^{i\theta}$?


Why do we let hostile users dictate the perception of Stack Overflow?

This question is a great example of why Stack Overflow is getting a reputation for being a hostile environment these days         This is clearly a developer used to C# who is trying to apply existing concepts to C++ and failing. You can see from his comments that he has been googling for an answer all day, has no coworker who can help him and came to Stack Overflow as a last resort. How do we reward him?  Here is a sample of the feedback we've provided so far    Pick up a good C++ book and learn the actual language.  The problem here is that you have no idea about C++ And why in the world are you converting Managed code to Unmanaged?    All of these have been flagged. But given the load on the moderators this question was closed and the user resorted to apologizing in several comments for his inability to google well enough all while the hostile comments / answers remain.    Does anyone seriously think the OP is going to post here again?    Why do we accept this as OK? Why can five users, who would comment only  if we allowed them, dictate the reputation of the site? Why does it take so long for hostile comments to be removed? Why do we let people who post hostile comments keep posting at all?    If you want to scream RTFM then may I suggest LKML. There should be no place for you on Stack Overflow.


Find the maximum and minimum value of variance.

Let $X$ be an arbitrary random variable  takes values in $\{0,1,2,...,10\}$. Then the minimum and  maximum values of variance of random variable $X$ are    $0$ and $30$ $1$ and $30$ $0$ and $25$ $1$ and $25$   But I don't know which one is true and how to approach? Help me out please.


What can I remove from system directory to increase space?

I'm a Windows man, I don't know which subdirectories I can clean from system directory


Is there a term to describe words missing in a document?

The words are supposed to be there but have been left due to any reason. Is there a succinct term to describe such words?


Travel to Schengen country for academic conference

My husband has a six-months multiple-entry Schengen tourist visa. Can he go to attend an academic conference in the Netherlands for three days on the same visa? He has been to France on the same visa.


Idiom for doing trivial things during a crisis

I'm looking for an idiom for when someone will do small, irrelevant tasks during a crisis instead of working to solve the crisis.  The focus of the phrase wouldn't be on procrastinating, it would be about ignoring the crisis entirely.  Some examples:   Choosing to organize the supply cupboard when a short deadline suddenly appears A stock trader doing low priority market research during a market crash Sweeping up the ashes while your house is still on fire Changing the oil of your car when you have 4 flat tires   Is there an idiom for this?  I feel like it has been on the tip of my tongue for days now.


Verb question: 'check' vs. 'check out' in an invitation

I have to make an invitation to some people. Is it correct to say "come check out our products" or "come check our products"?


material distributed based on mesh and not on vertex

My Question is about materials. I want to create a T-Shirt, who has this pattern on like show in the Picture. My Problem is, that want to have the "Image Texture" based on the mesh, and not based on the density of the vertex. So that the Pattern is evenly distributed.  Here the pattern is evenly distributed  Here it isn't (In the two pictures I showed you two times the Note Editor. I did this because you only need the first three Nodes, but I thought, perhaps do you need all. edit 1:  Here you see the unequal spreading of the pattern over the T-Shirt (After UV-Mapping(@Bruno) edit 2:  I finally approche to the result that i want to have. I have to us smart uv protection. But as you can see in the image, it has a few places, with not perfect patterns, as under the armpit. How can i fix them?


Functional equation - Cyclic Substitutions

Please help solve the below functional equation for a function $f: \mathbb R \rightarrow \mathbb R$: \begin{align} &f(-x) = -f(x) , \text{ and } f(x+1) = f(x) + 1, \text{ and } f\left(\frac 1x\right) = \frac{f(x)}{x^2} \\ &\text{ for all } x \in \mathbb R \text{ and } x \ne 0 . \end{align}  I know this will be solved by cyclic substitutions, but I'm unable to figure out the exact working. Can someone explain step wise?


Getting p-values from a mixed-effect ANOVA

I'm struggling to extract F-values and/or p-values from an ANOVA with all random effects or an ANOVA with both mixed and random effects.  I would expect to be able to get F- and p-values regarding the variance of the random effects based on the expected mean squares. Maybe the  aov() function just doesn't return what I'm looking for? Or I'm specifying my model incorrectly?  Here's a simple example where I want to have cyl as a fixed effect and carb as a random effect:  data(mtcars) summary(aov(formula = mpg ~ cyl + Error(carb), data = mtcars))   But no p-values for the random effect are reported.  Error: carb     Df Sum Sq Mean Sq cyl  1  341.8   341.8  Error: Within           Df Sum Sq Mean Sq F value  Pr(>F)     cyl        1  492.1   492.1   48.85 1.1e-07 *** Residuals 29  292.2    10.1                     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1


Did I see "a opossum" or "an opossum"?  It's pronounced "possum" (at least insofar as my experience) but looks really awkward written "a opossum".  That is all.


How to push items to beginning of a slide in Beamer?

I have a slide that has some items and then underneath I have a figure, which is define as tikzpicture, while I want to point some arrows from items to the figure. The problem is that now both the figure and the items start from the center of the slide, and basically the figure is on top of the items. Any ideas how to solve this?  \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning,tikzmark}  \begin{document}  \begin{frame}{Test} \begin{itemize} \item Item 1 \tikzmark{a} \item Item 2 \tikzmark{b} \item Item 3 \tikzmark{c} \item Item 4 \end{itemize} \centering \begin{tikzpicture}[remember picture,overlay]     \node {\includegraphics[width=0.8\textwidth]{my-picture}};     \foreach \i/\j in {(0.5,0.66)/a} \draw [cyan,->] ({pic cs:\j}) -- \i; \end{tikzpicture} \end{frame}  \end{document}   The resulting layout should look like this sketch:


Prove that every hyperplane is a null space of a linear functional

How can we prove that every hyperplane (a subspace of dimension $n-1$) is a null space of a linear functional? I don't know how to prove this.  I tried a lot, but something is missing.


Is this proposition "$\sqrt2$ + $\sqrt3$ is an irrational number." true or false?

I know $\sqrt2$ and $\sqrt3$ are irrational numbers. However, how can I prove that $\sqrt2$ + $\sqrt3$ is an irrational number? Thank you.


Could there be an "I don't know what forum to post this in" meta-site (kind of)?

Existing SE sites have a feature that suggests what tags may be appropriate based, perhaps, on comparing keywords with existing tags.  I just had the thought, having had a few times where I wanted to ask SE a question but wasn't sure where to put it, whether it would be possible to make a meta-site where you start typing in your question and, instead of SE suggesting tags, have it suggest links to individual SE sites.  Possibly this could have a default option, if the OP does not select any of the suggested sites, being posted for the interim to an interim.stackexhange.com site, where every post is flagged for moderator attention for migration to an appropriate site with the moderator adding a comment of "I moved your question to _________ because it fits the site for this reason: __________"  Would that kind of thing be possible and/or desirable?


I applied for the Schengen visa and it got rejected citing the reason:      One or more Member States consider that you pose a threat to the public order, internal security, public health Article 2 (21) of Regulation (EC) No 2016/399 (the Schengen Borders Code) or the international relations of one or more Member States.   1) I got the last Schengen visa from France and instead of entering France I made the first entry to Holland and came back from Holland itself. As my name is Abdullah, and I have seen in other articles that this name has some issues.  2) I had a visa issued by the German embassy in my old passport, which wasn't attached to my application as I only supplied the new passport.  Kindly guide me what should I do? I have one month to apply again. Shall I apply again and attach the old passport? Shall I provide clarification saying: I confess my mistake of having French visa and travelling to Holland?


Why do my background images not align across the views?

I'm trying to do a BMW car model, but I have a problem with the blueprints in the views.  This is the problem:      I expected that the two images were equal, but when I fix one of the views, with the cube cover all the top blueprint, the right view blueprint has problems, because the right view is not filled by the cube.


In Bohr's model, Bohr stated that the angular momentum of the electron is quantized and stated that $$L=\frac{nh}{2\pi}$$ So what is the proof for that equation or, in other words, how did he derive that equation?


How to convert the iso file into rar or zip or tar?

Is there anyway to extract iso or convert it to zip, rar, or tar file? I have a big .iso file on my remote server and I just want a file from it, not all of that; unfortunately I do not have root access, so it's my problem.


I've been playing a custom map and I wanted to tame and breed a few rabbits in the custom map pet store. But then I realized I wasn't able to tame or breed rabbits. I'm not sure whether I really can tame and breed rabbits but I'm not doing it right, or if I was just being dumb and not realizing taming and breeding rabbits is not possible.


Subcaption defaulting to capital letter labels?

I seem to be having a unique problem. There are many questions asking about how to change subcaption to a label with capital letters but for me my program is defaulting to capital letters when I would prefer lowercase.  My preamble  \documentclass[12pt,reqno]{amsart} \setlength\parindent{0pt} %no auto indentation for new paragraphs \usepackage{geometry}  \geometry{a4paper}  \usepackage{natbib}  \usepackage[latin1]{inputenc} \usepackage{amsmath, amsthm, amssymb, calc, dsfont}    \usepackage{enumerate} \usepackage{subcaption, caption, graphicx} %figure packages \usepackage{authblk} %author affiliations \usepackage{setspace, lineno} %double spaced etc. options, line numbering  \usepackage{tikz} \usetikzlibrary{shapes,arrows,chains,automata,positioning}   My figure  \begin{figure}[h!]   \centering   \begin{subfigure}[]{0.48\textwidth}           \includegraphics{Figure1.pdf}           \caption{}           \label{FigPractice}    \end{subfigure}    \begin{subfigure}[]{0.48\textwidth}           \includegraphics{Figure2.pdf}           \caption{}           \label{PracticeAge}   \end{subfigure}   \caption{a caption} \end{figure}   I've also tried \renewcommand{\thesubfigure}{\alph{subfigure}}


It is a very confusing concept, when to use "will" or "be going to". Both of them refer to the future but there is a slight difference. One of the differences that I have found and I was confused about is that:  We use be going to: when there are definite signs that something is going to happen (we are sure, we feel it must happen).  Example: "I think it is going to rain. I just felt a drop."  We use will: when we think or believe something about the future.  Example: "I think it will rain later so take an umbrella with you." But when we use "be going to" in a sentence like this:  "Look at the clouds! It is going to rain."  why can't we use "will" since I don't think that in the last sentence we're sure, we are just making a prediction?


Can a present participle follow a subject?

Which is correct, and why?     some days we went on adventures — him maneuvering our scooter, me resting my chin …   or     some days we went on adventures — he maneuvering our scooter, I resting my chin …


Fluctuating ping to a certain ISP backbone

There's a central server that located 300 miles away from my country. but when i test the ping to that server or their ISP backbone, i get inconsistent or a fluctuated pings from there. i live in Saudi Arabia, and the server is located in Qatar (300miles away).  So here's a screenshot showing a traceroute from my computer to that server:    However, This problem doesn't happen to any other servers from various locations.   So is this considered to be normal? if no. how can it be fixed?  UPDATE: Wait, i found out something! when i try pinging my friend who lives there and hires the same ISP, i get a stable ping times of 25-27 ms with no problems! and when i try to traceroute to his dynamic IP, i get almost the same hops from there, but it still shows inconsistent ping to these static ip servers until it reaches his home which surprisingly shows a constant and stable ping times to him. Could it be that his ISP configured their dynamic IPs to choose a special route to my ISP which was waaay better than what they chose for their static ip servers?


how to parse temperature data from Esxi server

I need to parse temperature data from esxi servers, to db for visualization the server room stats. I have 3 servers running esxi 6.5      IBM System x3250 M3     IBM IBM System x3550 M4 Server     Dell PowerEdge R630 I tried snmp walk but i cant find temperature data. I would be great to have data at least from one server


bind_param possibly ignoring variable without error

I’m experiencing a bizarre issue between PHP and MySQL. I have the following code to get values for an HTML table ($sortfield is set to table1.colb DESC or table1.colb ASC, depending on the test).  if (!($stmt = $db_handle->prepare("SELECT table1.cola, table1.colb ORDER BY ? LIMIT ?,20"))) {     exit('Prepare failed: (' . $db_handle->errno . ') ' . $db_handle->error); } if (!$stmt->bind_param('si', $sortfield, $start)) {     exit('Binding parameters failed: (' . $stmt->errno . ') ' . $stmt->error); } if (!$stmt->execute()) {     exit('Execute failed: (' . $stmt->errno . ') ' . $stmt->error); } $stmt->store_result();   This code executes with no errors, but the ORDER BY clause is totally ignored when its value is given as a variable. The results are sorted by table1.cola, as if ORDER BY were not present. If I replace ORDER BY ? with ORDER BY table1.colb (and modify bind_param accordingly), then the query behaves as expected and sorts by that column.  If I echo the complete statement with variables (i.e., echo "SELECT table1.cola, table1.colb ORDER BY $sortfield LIMIT $start,20") and manually run the result directly against MySQL, then the query works as expected.  $sortfield is taken from a GET method and processed by htmlentities() prior to statement preparation. It’s expected to be a string value, and that’s what it appears to be, so I’m quite confused about the outcome.


What's the rationale behind "Serializable" interface?

If we want to serialize an object, we can simply do the following implementation:  class MyClass implements Serializable {   private static final long serialVersionUID = 12345L; }   And no extra effort is needed to imperatively implement how the object will be written into and read from files. Java simply takes care of everything.   On the other hand, Externalizable does define explicit serialization and deserialization methods so we can program imperatively.   This leaves me the question: if no extra effort is needed for Serializable, what's the rationale to make it an interface that we have to implement to serialize/deserialize objects, instead of making it by default that every object can be serialized/deserialized?


MySQL - How to ORDER BY name, then selectively on table by alphanumeric?

I want to order query results by name, then on a specific table alphanumerically.  This works for all results by alphanumeric:  `ORDER BY 'name'+0 ASC"`;   But I need only table 'week' sorted alphanumerically, all other results alpha.  I have tried the following but not working:  ORDER BY name, week('name'+0) ASC";   Table week results should be like:  Week 1 Week 2 Week 3 Week 4 ... Week10   Not:  Week 1 Week 10...   See


How bad for TeX is omitting braces {}, even if the result is the same?

Sometimes writing braces and omitting them produces the same result:  \tilde{\psi}  \mathrm{e}^{\mathrm{i} \pi}   vs  \tilde \psi   \mathrm e^{\mathrm i \pi}   Or (taken from Werner's comment below)   \frac{1}{2} vs \frac12   If that's the case, how bad for the quality of my code is omitting them? Of course, if one compiles a pair of formulas, there is no difference. But, since I ignore how TeX works, my point is: if one writes long codes with these habits,   doesn't TeX go somehow crazy because I'm not writing as it expects?   For instance, does it have any effect on how fast are long documents compiled? Any reason to keep them?


Zooming to WMS layer after CQL filter in OpenLayers?

I created a layer that contains points and I added it to a map as WMS layer in OpenLayers. I did a CQL filter and it works but I'd like to zoom to the selected point when I worked with getextent or getdataextent it doesn't zoom to the right place. It missed with a few Km. Here is my the code of filter:   function filterNom(){             var filterType ="cql";             var filter = document.getElementById('batima').value;             // by default, reset all filters             var filterParams = {cql_filter: null};             if (OpenLayers.String.trim(filter) != "") {                 if (filterType == "cql")                      filterParams["cql_filter"] = "batiment='"+filter+"'";              }             // merge the new filter definitions             wfs_layer.mergeNewParams(filterParams);             var bounds =  new OpenLayers.Bounds             bounds = wfs_layer.getExtent()             map.setCenter(wfs_layer.getExtent(),18);             var center = map.getCenter();             center.transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913"));             alert(center.toString()); }   and here is the code to add the WMS layer:    wfs_layer = new OpenLayers.Layer.WMS("Patrimoines",         "http:// localhost/geoserver/cite/wms",          {layers: 'cite:patrimoine' , transparent: true },         {isBaseLayer: false, opacity: 1, singleTile: true, visibility: true,          projection: 'EPSG:900913'});


Does 'incomplete' mean the same thing in formal arithmetic compared to Godel's work?

I am struggling to understand what is different from 'Godel incompleteness' (GI) and call it 'ordinary completeness' (OC). Godel showed FOL to be complete. Yet, Godel's theorems establish that the language Q (an axiomatic extension of FOL) is incomplete. What distinguishes GI from OC in terms of FOL?


Prove $\frac{\sin(a)}{\sin(b)}<\frac{a}{b}<\frac{\tan(a)}{\tan(b)}$ for $0<b<a<\pi/2$

not sure how to approach the following $\frac{\sin(a)}{\sin(b)}<\frac{a}{b}<\frac{\tan(a)}{\tan(b)}$ for $0<b<a<\pi/2$. Hints would be appreciated!


How to show $x_1,x_2, \dots ,x_n \geq 0 $ and $ x_1 + x_2 + \dots + x_n \leq \frac{1}{2} \implies (1-x_1)(1-x_2) \cdots (1-x_n) \geq \frac{1}{2}$


Why don't poor wizards like the Weasley's use magic to improve their possessions?

OK, so we know you can't conjure up food out of thin air. But Wizards do conjure up other things at various times. Even more commonly they seem able to quite easily repair damage or otherwise change objects to suit their liking. They're certainly able to create temporary illusions of things as desired.  So: why does Ron have to put up with his horrible dress robes for the Yule Ball? Why can't he conjure up some new ones, transform or repair the ones he has into something new, or cover them in a less embarrassing illusion?  This leads on to a wider question: again, we know you can't conjure certain things. But you'd have thought it possible for wizards to adjust the majority of their positions to their taste. At the end of Fantastic Beasts, for instance, a few Aurors rebuild the entire center of New York! So why is anyone in the Wizarding world "poor" in the muggle sense?  (I'm aware that the real answer is "because it reads better that way". I'm just curious if there's an in universe or canonical answer. And I have looked at the following related questions:   - I don't accept this answer. Especially now I've seen the end of Fantastic Beasts. That makes it look very easy to do repairing magic on a vast scale.   This convers fixing clothing with Reparo. Not transforming it or covering it with an illusion.   This does not seem relevant to me. It covers why there are rich and poor wizarding families, but not what they do with their money. Nor does it explain why some wizard families choose to "live poor" in muggle terms when they don't have to. )


Proving if f has a continuous extension to [a,b] then f is uniformly continuous on (a,b).

I want to show that if a function $f:(a,b) \rightarrow \mathbb{R}$ has a continuous extension to [a,b], then f is uniformly continuous. Also, assume that $(X, d_x)$ and $(Y, d_y)$ are nonempty metric spaces and all subsets of $\mathbb{R}^k$ are given the Euclidean metric.   I know the proof is trivial, but I'm worried about my notation as I don't think I quite understand continuous extension correctly. I understand that for $E \subset F \subset X$, the function $g: F \rightarrow Y$ is an extension to f if $g(x)=f(x) \forall x \in E$.   So, we have $(a,b) \subset [a,b] \subset \mathbb{R}$ and $f: (a,b) \rightarrow \mathbb{R}$. So if f has a continuous extension to a,b, then (f(x)) = f(y)) $\forall x \in (a,b), y \in [a,b]$. And so this then implies that d(f(x), f(y)) = 0, and so $\forall \epsilon > 0, \exists \delta > 0$ s.t. $d(x, y) < \delta$ implies $d(f(x), f(y)) < \epsilon$.   Help and hints would be much appreciated!


I want to get a list of bib-keys from my .bib file which I don't actually use in my document.  I have found "" but since I'm using biblatex I don't have the information in the .aux files, so I can't use .  Is there a biblatex way to get such a list?


The divisibility of a particular case of $\binom{x}{y}$ (when $(x,y) = 1$)

Suppose $x + 2y = k$ where $k$ is prime and $x > y > 0$.  Prove that $x|\binom{x}{y}$. That is, prove that $\binom{x}{y}$ is divisible by $x$.  The only leads I have are that, since $x$ and $y$ must be relatively prime -- or else $k$ would not be prime -- in the expansion of the binomial coefficient:  $$\frac{(x)(x-1)\dots(x-y+1)}{(y)(y-1)\dots 1}$$, there is necessarily some value in $\{x-1 \dots x-y+1\}$ that is divisible by $y$. This is true, because given any consecutive $y$ numbers, at least one must be divisible $y$, and we know that $x$ is not that number.  Edit: Apparently this is answered here   I'm not seeing how the result is obvious, however, for the particular case that $(n,k) = 1$.


Let $f\in L^1(\mathbb{R})$, and let $m$ denote lebesgue integration. Show $\int_{\mathbb{R}} |f(x)|dx = \int_0^\infty m(\{x:|f(x)| > t\})dt$. I'm honestly not sure how to get a good hold on this problem. Having $m(\{x:|f(x)| > t\})$ makes me think Chebyshevs's inequality. Bringing the $t$ out after applying Chebyshev then makes me think something involving fubini-tonelli, but I'm really not sure how that helps. Any advice is appreciated. Thanks in advance.


Can someone who got GPA 3.7 apply for high ranked university with assistanship?

I'm undergraduate civil engineering, and I'm planning for master degree. My GPA is 3.7, and I didn't do GRE yet. However, I have strong research interest and I have some publications. Do you believe that I can be enrolled in high ranked universities such as MIT, Berkeley, Stanford?


I'd like to put am image in a certain position on the title page in beamer. I also don't want it to interrupt the text flow, i.. I want the image to appear "behind" the text.  Any ideas?


Why a false positive is called type I error and a flase negative a type II error?

I am trying to understand what are the historical reasons behind the choice of the term Type I and Type II error. I think is much more intuitive to use false positive and false negative. These two terms are unintuitive.


What is meant by tag follower versus the "x number" that appears after a tag name?

This screenshot should demonstrate the two different items. There is a tag, a "x number" and a set of followers. What do the different numbers mean?  This question comes courtesy of a  from the SO Tavern on chat.stackexchange.com


Hurdles in creating (close to) infinite images

Let's put an object (hypothetical superman) inside a "well sealed" box containing only mirrors. Is it possible to create number of images that will be close to infinity, assuming that resolution of our superman's eye is very small (infinitesimal) and he can observe and count all the images that he observes of himself.  If we assume that mirrors will leak some energy, then is it possible to put objects such as a photo multiplier tube (in combination with a mirror) and adjust it in such a way that only the amount of energy lost by reflection of the mirror is recovered and sent back to the other mirror.  What are the other hurdles ?


How do I use the json_encode() function with MySQL query results? Do I need to iterate through the rows or can I just apply it to the entire results object?


There is a way to deactivate the automatic spaces in Python?

I'm writing a function in Python that greets the person selected but a automatic space is added. I coded this: greetingsetted=input("Enter greet (optional): ") namesetted=input("Enter name: ") msgsetted=input("Enter message (optional): ") def greet (greeting,name,msg):     if namesetted=="":         print("Name cannot be blank. Please run the program again and put a new name.")     else:         if (msgsetted==""):             if greetingsetted=="":                 print ("Hello,", namesetted, ". Good morning!")             else:                 print (greetingsetted, namesetted, ". Good morning!")         else:             print (greetingsetted, namesetted, ".", msgsetted) greet(greetingsetted, namesetted, msgsetted)  The output of my code is Enter greet (optional): Hello Enter name: name Enter message (optional): Good morning! Hello name . Good morning!  And this is the output I want Enter greet (optional): Hello Enter name: name Enter message (optional): Good morning! Hello name. Good morning!


null value not detected. Bypass if condition java

As seen in the image, expiryTime is printed out as null as shown in the console. However, it bypass my if condition and i even printed out (expiryTime == null) and (expiryTime == "null"). However, it is giving me as false. Why is this possible?


Ubuntu 17.04 connected to wifi but can't browse internet

I have connected to my wifi correctly but I cannot seem to search for anything as it just says "Server Not Found". Other computers on the same network can still search the internet though.  This has been flagged as a duplicate of  However the solution used I have already attempted and it has failed to reconcile my issue


How can I see comments that I've upvoted?

Yesterday I upvoted a comment that had interesting links. I didn't do any other activity in that question apart from giving my upvote to that comment because it had some links I wanted to check later.  Now a day has passed and I want to view that comment to bookmark those links, but I can't see any way on Stack Overflow to see comments that I've upvoted. Can I see these votes? If not, why is this feature missing?


How to do a `tail -f` of log rotated files?

On a long running system I usually have a terminal with  $ tail -f /var/log/kern.log   or something like this open.  But from time to time I have to restart such command because no new messages are displayed anymore.  I assume this is because of the log rotating job that has replaced the log file tail -f was 'watching'.  How can I avoid this restarting issues?  Can I invoke tail such that it notices the rotating process and does the right thing?  (I notice this issue on a Ubuntu 11.04 system that uses rsyslogd by default.)


General formula for $\sum_{k=1}^{N} k^n$?

Is there a general formula for  $$ \sum_{k=1}^{N} k^n $$  for integers $n \geq 1$? Wolfram alpha linked me the harmonic number but it doesn't seem to expand beyond negative values since $\Gamma(-n)=\widetilde{\infty}$


Python list assignment with colon in brackets [:]

I am working with python 3.5 lists on a very performance dependent application.  After searching for  I wondered about the colon [:] in that solution. I am aware that it creates a copy (theoretically), but in this example see no purpose for it.  Does it maybe save memory? Or does it have to do with shallow/deep copies? Will python behave differently for the cases of an existing mylist = ... versus mylist[:] = ...?  I've found some similar questions but none with how python behaves given such a assignment.


'Make' vs. 'makes' in "this makes" and "this does make"?

In English grammar, to my understanding, it is incorrect to say "this does makes," but I'm not sure why (and nor does my mother, who is an editor).  It is acceptable to say "this makes [sense]," and "this does make [sense]," but why is it not allowable to interchange the two?   What English grammar rule does "this does makes sense" violate? It clearly sounds wrong, but I'm having trouble justifying why.


Starting a picture at the left position and enlarging it to fill the whole page

I'm having an image which I need to display so that it takes up most of a page (the total width of the page to be exact). The picture itself has a larger width than height and is so big in width that it is bigger than the width of the page.  My problems so far have been that I didn't manage to let the image start (left side of the page) exactly at the start of the page and go until the right border of the page (height is no matter there as the height is smaller ofr the picture and it will be vertically centered).  Even with width=\papwerwidth the pic didnt start at one border and go to the other one (also used \noindent). So question is what can I do to fullfill my target there?  \documentclass[11pt,a4paper,BCOR10mm,DIV11,toc=listof,parskip=full]{scrbook}  \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{amsmath} \usepackage{graphicx} \usepackage{booktabs}             \usepackage{multicol}    \begin{document} \newpage \includegraphics{xyz.jpg} \end{document}   Edit: [width=\paperwidth] added tot the includegraphics scales thee image but part of it is truncated I guess thanks to the image starting not at the left border.


How are difficult/disturbing scenes involving children dealt with during film making?

I always wondered about scenes in movies or tv shows that show a child dealing with some sort of a disturbing, gruesome or difficult situation. I'm talking about how the child actors are dealt with and how the hard scenes they have to act in are explained to them.  For example, in some movies (mostly horror/thriller genre) we see a child as a antagonist: a villain with a twisted mind, a killer or abuser. Some of this type of movies are really disturbing and hardcore, with explicit content (blood, vulgar language etc.). Or movies where said child's parents are killed, the child is abused/beaten/assaulted in any other way.  How is it explained to child actors that this is just "pretend"? Of course this applies to really young actors, I guess that teenagers or 9/10 year olds are fully aware that the movie is just a movie and it's not real. Same goes for little, little kids like infants - they probably don't even know what's really happening.  Is there some sort of a psychologist or counselor involved in the movie that talks to the child actors and helps them go through the often really though content they have to act through?  Or maybe those scenes are shot or edited in a specific way that the child actor is not really involved in a difficult scene but it is then edited and added to the final piece in post-production.


Rendering PageBlockSections based on picklist

I have a VF page to make a record for a custom object. It has 2 <pageBlockSection>. The first should always be rendered, and it contains a picklist. Depending on the value of the picklist, the second might be rendered.  What is the best way to go about this? Can the standard controller handle this, or does it need a custom controller? Why isn't my second section rendering correctly?  The picklist:  <apex:inputField value="{!CustomObject__c.Type__c}">       <apex:actionSupport event="onchange" reRender="section2"/> </apex:inputField>   And the second section:  <apex:pageBlockSection id="section2" columns="1" rendered="{!IF(CustomObject__c.Type__c == 'Functionality Request',true,false)}">       <apex:inputField value="{!CustomObject__c.Priority__c }"/>  </apex:pageBlockSection>


When I'm writing code, and i purposely write a syntax error like:  Console.WriteLine(;   Visual Studio doesn't show me the red squiggle Intellisense errors.  But when i start the program it shows the error. That's not how it should work.   Any ideas on what to do?


Can someone explain the following modular arithmetic?

$7^{-1} \bmod   120 = 103$  I would like to know how $7^{-1}  \bmod  120$ results in $103$.


Unable to get right values from hashmap while overriding Hashcode method

I am executing below code after overriding hashcode method of an object (BookMe). Aim is to override hashcode of the object which i will be using as a key in my map (hashmap). But, after executing I see null values. The is no problem with the actual size of map. below is the code. If I don't override hashcode method I get correct output (i mean all three values).  `  class BookMe{ private String isbn ; static int i = 0; public BookMe(String isbn) {    this.isbn = isbn;      } public String getIsbnValue() {     return this.isbn; } @Override public boolean equals(Object o) {     if(o instanceof BookMe && ((BookMe)o).getIsbnValue() == this.getIsbnValue())     {         return true;     }     else{         return false;     } } @Override public int hashCode() {     return this.isbn.toString().length() + (++i); }   }  public class HashMapTest {  public static void main(String[] args) {      Map<BookMe, Integer> map = new HashMap<BookMe, Integer>();      BookMe b1 = new BookMe("Graham");     BookMe b2 = new BookMe("Graham");     BookMe b3 = new BookMe("Graham");     map.put(b1, 19);     map.put(b2, 33);     map.put(b3, 22);      System.out.println("----444444--------");     System.out.println(map.size());      Set <BookMe> set = map.keySet();     System.out.println("------*****------");       for(BookMe bk : set)     {         System.out.println("bk : "+ bk);         System.out.println(map.get(bk));     }        }   } `


Find id of appended(through function) html list element with jquery

I'm trying get the ID of appended list element. After trying out for hours and reading multiple sources from  and , I still couldn't figure it out the bug inside my code.   The only difference between the above sources and what I'm trying to achieve is they already have list element present inside html where as I'm appending list through jquery function.  Here is my code.  Html  <button id="display">Display</button>

   Jquery 2.1.0  var i = 1; $('#display').click(function() {     $(".main ul").append(        $('
').attr("id",i).append(            $('
').append("Stackoverflow")            ));     i++; });   $('.main ul li').click(function () {      $('#show').text("List ID =" + this.id);        });     Thank you for your time.


Circuit for Battery powered LED turned on by .15 volts from small wind generator.

Question, How can I turn On an LED powered by 2 AA Batteries Switched on from a low voltage .15v from a small Genorator? When the wind blows The small Generator has a propeller and I would like to send a signal to turn on the The LED that is powered by 2AA batteries. The generator Is not powerful enough to light the LED on it's own for this application. It is a model of a wind turbine for demonstration purpous so it will not produce enough power on its own to light up anything.  Thank you for your help


Somehow, and I'm not sure how, we have configured an nginx reverse proxy that is acting as an open proxy.  The log files tells us the matching requests are going against the following conf file:  map $http_upgrade $connection_upgrade {         default upgrade;         ''      close; }  access_log      /var/log/nginx/access.p.log; error_log       /var/log/nginx/error.p.log;  proxy_next_upstream     error timeout invalid_header http_500 http_502 http_503 http_504; proxy_buffers           8 32k; proxy_buffer_size       64k; proxy_http_version      1.1; proxy_set_header        Host            $host; proxy_set_header        X-Real-IP       $remote_addr; proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect          off; proxy_set_header        Upgrade         $http_upgrade; proxy_set_header        Connection      $connection_upgrade;  server {         listen          80;         server_name     ~first.*\.second\.com;          location / {                 resolver                172.16.1.1 172.16.1.2;                 proxy_pass              http://$host;                 proxy_read_timeout      7200s;         } }  server {         listen          443;         server_name     ~first.*\.second\.com;         ssl             on;          location / {                 resolver                172.16.1.1 172.16.1.2;                 proxy_pass              https://$host;                 proxy_read_timeout      7200s;         } }   The top-level conf file looks like this:  user nginx; worker_processes 8; pid /var/run/nginx.pid;  events {         worker_connections 4096;         # multi_accept on; }  http {      ##     # Basic Settings     ##      sendfile on;     tcp_nopush on;     tcp_nodelay on;     keepalive_timeout 65;     types_hash_max_size 2048;     # server_tokens off;      # server_names_hash_bucket_size 64;     # server_name_in_redirect off;      include /etc/nginx/mime.types;     default_type application/octet-stream;      ##     # Logging Settings     ##      access_log /var/log/nginx/access.log;     error_log /var/log/nginx/error.log;      ##     # Gzip Settings     ##      gzip on;     gzip_disable "msie6";      # gzip_vary on;     # gzip_proxied any;     # gzip_comp_level 6;     # gzip_buffers 16 8k;     # gzip_http_version 1.1;     # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;      ##     # nginx-naxsi config     ##     # Uncomment it if you installed nginx-naxsi     ##      #include /etc/nginx/naxsi_core.rules;      ##     # nginx-passenger config     ##     # Uncomment it if you installed nginx-passenger     ##      #passenger_root /usr;     #passenger_ruby /usr/bin/ruby;      ##      include /etc/nginx/conf.d/*.conf;     #include /etc/nginx/sites-enabled/*;   }  what here is causing this?


Bubble Sort for Dual Linked Lists in Java

I'm attempting to implement bubble sort for dual linked lists, but I get a NullPointerException.  Here is the code:  public void bubbleSort() {                DLLNode<E> tmp = this.first; // (1)     DLLNode<E> tmp2 = null; // (1)     boolean flag = true;     while(flag)     {         // (2)         flag = false;         while(tmp.succ!=null)         {              if(tmp.element2.compareTo(tmp.succ.element2)<0)             {                 tmp2.element2 = tmp.element2;                 tmp.element2 = tmp.succ.element2;                 tmp.succ.element2 = tmp2.element2;                 tmp2.element1 = tmp.element1;                 tmp.element1 = tmp.succ.element1;                 tmp.succ.element1 = tmp2.element1;                 flag = true;             }             tmp = tmp.succ;         }     } }   Another thing: this method that I used I think will iterate the list only once, and won't turn back at the beginning. I thought moving tmp and tmp2 from (1) to (2) would solve the problem. But I still receive a NullPointerException.


Why does a white background look grey once added to the VSE as a scene strip?

In Grease Pencil this is how the image looks with a nice white background.  When the same is imported to video sequencer I get a solid grey background. I tried putting a white solid behind to see if there was any transparency issue but the grey remains. I need a proper white background, how to achieve the same.


Prove that the interval $[0,1)$ and $[0,2) \cup [3,4)$ have the same cardinality

By definition, I know I have to show there exists a $1$-$1$ onto map $f:A\to B$ I am pretty stuck on how to go to the process of proving this.   I understand the basic definitions of 1-1 and onto. I recall basic definitions of $1$-$1$ and onto from high school, I know a function is $1$-$1$ if it passes the horizontal and vertical line test and a function is onto if for all $Y$ there exists an $x$ in $X$ such that $f(x) = y$, but I am really not sure how to go about proving this at all. Could someone maybe point me in the direction of an example to help me understand each step in the process?


Proof that an infinite set can be written as the countably infinite union of pairwise disjoint infinite subsets without using the axiom of choice.

I have the following theorem Any infinite set can be written as the countably infinite union of pairwise disjoint infinite subsets I have found a couple of proofs for this but I was wondering if there is some proof that doesn't use the axiom of choice (and it's equivalent statements). Does there exist such a proof?


How do I make a villager sell something that can break a specific block in 1.13?

I'm making a map in minecraft java edition version 1.13.1 and I want to spawn a silent, invulnerable, no AI villager that trades an iron sword for a diamond pickaxe that can only break iron bars. I've tried to use the command  /summon villager ~ ~1 ~ {Invulnerable:1,Silent:1,NoAI:1,CustomName:"\"insert name\"",Offers:{Recipes:[{buy:{id:iron_sword,Count:1},sell:{id:diamond_pickaxe,},rewardExp:0b,maxUses:1}]}}   but it doesn't make the pickaxe able to break iron bars. How do I make it so that it can?


What are the shaving options for the carry-on traveler?

This question rustled some jimmies! Now that we have more information I'm rephrasing it to fit in better with the overall picture, which is shaving options for travelers without checked luggage.    When traveling with carry-on luggage only, it's not always obvious what shaving equipment we can bring on a plane. For those of us that shave with open-ended blades such as double-edged safety razors or straight razors, as opposed to disposable and cartridge razors, the problem is exacerbated by trips with multiple stops where we have to tediously acquire blades at every destination.  Naturally, the most flagrant razor blades are not permitted on a plane, but some shaving equipment is. As a not-too-frequent traveler myself I've never quite really gotten a hang on this, and I end up chasing down razor blades at a kiosk in some far away place at 2AM.  There must be a better way! I figure frequent/business travelers must have developed several best practices of dealing with shaving by now.  From the perspective of someone who most certainly cannot bring their regular razor onto the plane, what options are there for a traveler limited to carry-on luggage only?


Make two vector points move together (Sketch or Illustrator)

I'm trying to speed up my workflow by making vector points move in the opposite direction simultaneously when I have two highlighted. For instance, below I highlight the top and bottom of the arrow so they will move at the same time, except I want the bottom point to come up when I'm moving the top point down. Right now, they just move up together or down together. So if point 1 is at Y:20 and point 2 is at Y:10, I want them both to go to Y:15 if I move point 1 down 5 pixels.    What it currently does    What I want it to do


Can bootstrap re-sampling be a re-sample of a smaller size

I am attempting to run a smaller instance of my regression panel data , because it is a pretty huge regression (fixed effect, Heckman selection) and it takes 4 hours to run every time.  I am interested to estimate the robust standard error of my model. However, I don't want to recreate my dataset to the same size.   If I run a bootstrap on panel data, do I re-sample the rows or the individuals? Can I construct a smaller sample in bootstrap? Traditionally in textbooks, a bootstrap of size N always requires a re-sample of size N.


When/why did Stack Overflow disallow anonymous questions?

I remember a time when anonymous users could post questions without an account on Stack Overflow. , this is no longer possible.  I don't mind the removal. I DO, however, find it interesting that it was built and then removed. What was the rationale? Are there any blog posts talking about it? Are there any stories from the trenches that lead to the decision?  Why did Stack Overflow drop anonymous content?  I ask because I'm faced with a similar situation and tested wisdom is interesting.  (Again, I don't want this to be a feature debate, but rather a historical recounting).


How is group theory related to particle physics?

I've always heard of such statements as $SU$ group describing our world even before I seriously learned physics.   When learning about spin, someone spoke of $SU(2)$ but did not seriously explain. When learning isospin and hypercharge for particles made of $u, d, s,$ someone spoke of $SU(3)$ but did not give detailed explanation. When talking about the discovery of J/ψ, teacher (a experimentalist) say, well now with the charm quark, we need $SU(4)$.   I am crazy, $SU$ is just special unitary matrix group, what are they talking about when relating these matrix with spin or particles? I hope someone could give me a detailed explanation about how these group is related to real world substances or recommend a book.


ACPI PCC Probe Failed is the error that pops up instead of the default GRUB loader after I updated my kernel to 3.19.  I searched around and couldn't find much information except that it is a known error and it is registered in kernel.org's launchpad . My question is, is anyone else facing it?, what are the impacts of this? And if only an update in the future can fix it, any suggestions or safety tips till then?


"Order something done" for "Order something to be done"

As far as your variety of English goes, can the verbal turn "order something done" be used interchangeably with "order something to be done"?     "We  to our local store."      "I  to my son in Utah."      "I  to my girlfriend's workplace."      "Yemen  dead or alive."


Upgraded to 4GB RAM, but only 2.93GB is usable. How do I fix this?

I upgraded my Lenovo G550 2983 32bit to Windows 10 and upgraded my RAM from 3GB to 4GB. I see the entire 4GB of RAM, but only 2.93GB is usable. This is the old 3GB RAM setting. Why didn't it update when I installed the new RAM? How can I fix it? It should show at least 3.5GB usable RAM.


Electric dipole moment(EDM) underlying physics

I read in a physics today paper,  The electron can have nonvanishing EDM only if nature violates symmetry under time reversal (T) and under the combined operations of charge conjugation (C), which replaces particle by antiparticle (as we all know), and parity inversion (P).  I checked . So it will be nice if you can show me qualitatively and quantitatively about the above mentioned point.  Note: Simplicity in explanation is always nice. (I don't have much idea of these big words)


Uniqueness of homomorphism between $\mathbb{R}_{>0}$ and $[0,1]$

Problem: Suppose $\Phi : \mathbb{R}_{>0} \to [0,1]$ satisfies $\Phi(s+t)=\Phi(t)\Phi(s)$ for all $s,t \in \mathbb{R}_{>0}$. How can be proven that $\Phi(t)=e^t$? Actually I do not know where to start.


(Beginner) Why does the temporary variable change in example 1, but not in example 2?

These are the two examples, could someone help me by explaining? Example 1 v1=list(range(5)) v1temp=v1 v2=1  def ext(x,y):     return x.append(y)  ext(v1,v2) print(v1temp)  Example 2 a=1 b=2 atemp=a a=b print(atemp)


Story about a multiverse theory of immortality

Please help me identify a short story I read about a guy who believed that the multiverse was true, but the one that we experienced was the one in which we lived the longest. He was also contemplating suicide, and every time he sat staring at the pills he was going to use to overdose, parallel universes (where he chose suicide) collapsed and the one he was in got weirder. Eventually an asteroid hit the Earth, and then he was resurrected somehow in the deep future.  I'm not sure where I read it, but it likely appeared in Dozois's The Year's Best Science Fiction or in a back issue of Analog (my dad had like a decade's worth in the den).


What documents do I need to carry if I am applying for a business visit visa for the UK to attend a 2 days long client conference?

I have an invitation letter from the client based in the UK. I have a NOC from my employer stating my passport number, annual remuneration, job description, duration of visit and assurance of taking care of my expenses.  I own a house that I bought 4 months back, I have a wife and 4-month-old baby (they are not traveling with me) as dependents.  I have company's bank statements, taxation details, pan card details, my salary slips, my bank statements etc.  Am I missing anything? Do I need to carry a translated copy of my birth certificate? Do I need to carry my son's birth certificate as well?  Any other documents that I might be missing? I am seeking a 2-year multiple entries visa because I might need to make more trips in the future. Also, the conference is in just 3 weeks so I have chosen the express option that delivers in 5 working days.


How to print an int array returned in a method in the main function , Java

First of all,I am newbie in Java and I came across this issue several times. I am trying to return the number of occurrences of a char in a string and I implemented a method called countcharacters which looks like this:  public static int[] countcharacters(String s) {     String alphabet="abcdefghijklmnopqrstuvwxyz";   int[] sircounter=new int[alphabet.length()];  for(int i=0;i<sircounter.length;i++)  {      sircounter[i]=0;  }   for(int j=0;j<alphabet.length();j++)  {      for(int i=0;i<s.length();i++)      {          if(alphabet.charAt(j)==(s.charAt(i)))          {               sircounter[j]++;            }       }   }   return sircounter; }   In other words, each time a character from alphabet is found in my string ,the argument of the method, the value zero from each position from sircounter is incremented with the number of occurrence.  I wanted to print the array position by position but it didn't work and if I do something like this in the main method:  String text="hannah"; System.out.println(Class.countcharacters(text));   I get a hex code: [I@659e0bfd  which I don't understand. Could you help me? Many thanks and have a nice day!


How can FileInputStream.read change my byte array?

In the program I am writing for homework I have a FileInputStream which I am reading bytes from into an array using the read() method of the stream. I am not using the return value at all in my program, as I'm not interested in it.   However, I'm wondering how is it actually modifying my array? I read through many stackoverflow posts lasts night that indicated that Java is pass by value, not by reference, and I even proved it myself with a simple program.   How does this method modify my byte array?  try {     input = new FileInputStream(FileName);     bytes = new byte[input.available()];     input.read(bytes); // reads file in as bytes and stores into bytes     System.out.println(bytes[0]);   }catch(IOException e) {     e.printStackTrace(); }


Can I cast spells that require concentration through "Invoke Duplicity"

Can I use the clone from "Invoke Duplicity" to cast a concentration spell, since the clone requires concentration itself?  For example, could I use the clone to cast invisibility on one of my allies who is too far away from me to cast it normally?  I know that I would lose concentration on the clone when I cast a concentration spell, but would the clone exist long enough to still cast the spell on my ally?


Why can't $\psi(x) = \delta(x)$ in the case of Harmonic oscillator?

In the analysis of Harmonic Oscillator, it is claimed that $\langle\hat H\rangle$ cannot be zero,  why is it so?  I mean $\hat H = \frac{ \hat p^2 }{2m } + \frac12 k \hat x^2$, and  $$\left<x^2\right> = \int dx (x\psi(x))^\dagger (x\psi(x)) = 0$$ would imply that $x\psi(x) = 0 \quad \forall x.$ In particular, this is true when $x = 0$, so we have two options; either $\psi(x) = 0$ or $\psi(x) = \delta(x)$.  So, why can't $\psi(x) = \delta(x)$ in the case of Harmonic oscillator ?  Note: $\hat H = \frac{ \hat p^2 }{2m } + \frac12 k \hat x^2 $


What is the purpose of sugar in baking plain bread?

My recipe says 1 tablespoon of sugar per loaf.   This seems like too small an amount for flavor.   The recipe is as follows:   3 cups flour 1 teaspoon salt 2 teaspoons active-dry yeast 1 tablespoon sugar 2 tablespoons oil 1 cup water knead, wait 1 hr, knead again, wait 1.25 hr, bake for 30min @ 350   Is this for flavor, or is there another purpose?


What is Thor's armor made of, and where does it originate from?

I'm only familiar with the movies, don't know any comics canon, but either will be appreciated in an answer. In Thor, after he was banished by Odin to earth and stripped of his powers, he eventually is deemed worthy again.  He consequently is able to wield Mjolnir, and it is shown that his scale armor is 'placed back' (over his arms).     Is this 'armor' anything more than cosmetic (as it is never shown to actually benefit him) ? Does it come with his demi-god like powers, or is it tied to Mjolnir ? What is it made of ?


401k Matching: Why match 50 cents on a dollar up to 8% instead of dollar for dollar up to 4%?

What is the reason an employer would match 50 cents on every dollar up to 8% instead of matching 1 dollar on every dollar up to 4%? Is it the same or approximately the same thing?


hi Im a newbie and I have been assigned a task for improving traffic to my company blog posts. how can I gain traffic through refferal traffic and improve my position in SERP. and also how to frame keywords for these blogs. give suggestions


How to quote a string value explicitly (Python DB API/Psycopg2)

For some reasons, I would like to do an explicit quoting of a string value (becoming a part of constructed SQL query) instead of waiting for implicit quotation performed by cursor.execute method on contents of its second parameter.  By "implicit quotation" I mean:  value = "Unsafe string" query = "SELECT * FROM some_table WHERE some_char_field = %s;" cursor.execute( query, (value,) ) # value will be correctly quoted   I would prefer something like that:  value = "Unsafe string" query = "SELECT * FROM some_table WHERE some_char_field = %s;" % \     READY_TO_USE_QUOTING_FUNCTION(value) cursor.execute( query ) # value will be correctly quoted, too   Is such low level READY_TO_USE_QUOTING_FUNCTION expected by Python DB API specification (I couldn't find such functionality in  document). If not, maybe Psycopg2 provides such function? If not, maybe Django provides such function? I would prefer not to write such function myself...


Is there a search engine that allows you to search for a specific string including special characters that has similar coverage to Google

Let's say I want to search for "100-Coins Star" (with the speech marks to tell Google to search for that specific term).  Google comes up with results for 100 Coins Star. Ignoring the spaces and dash.  Is there a way to get Google to behave they way I want it to. Or is there a site that does allow this and has similar coverage to Google?


Recognizing that a function has no elementary antiderivative

Is there a method to check whether a function is integrable?  Of-course trying to solve it is one but some questions in integration may be so tricky that I don't get the correct method to start off with those problems. So, is there a method to find correctly whether a function is integrable?   Clarification: I am asking about indefinite integrals which have no elementary anti derivative.


How to plot binary (presence/absence - 1/0) data against continuous variables

I am trying to plot presence/absence (1/0) of a sample species against various environmental variables.  I have put presence/absence on the y-axis and the environmental variable (in this case barometric pressure) on the x axis, however the resulting plot looks terrible.     Is there a better way to do this? I thought of plotting presence/absence against the frequency of the environmental variable, would this be possible?


One usually reads that the functional role of the myelin sheath is being a good insulator, accelerating the speed of action potential propagation along the myelinated axon.  I tried to understand this and came up with these possibilities:    The immediate reason why action potential propagation along myelinated axons is "faster than normal" is a relative lack of leak channels in the membrane. I.e. it is the membrane of the neuron (not the myelin sheath itself) that is a "better insulator than normal". Why there are no leak channels underneath the myelin sheath would be another question. But the myelin sheath would probably be one of the reasons. Thus, it would be an insulator only "indirectly". Or there are leak channels, but there's no place to go for the ions out of the neuron (no extracellular fluid to diffuse to)?In this case, it would be the myelin sheath that is the "immediate" insulator. But the leak channels would be useless. (So why to maintain them?)   So my question is:     Are there significantly less leak channels underneath the myelin sheath than normal,   or not?


I dont know how to sort a list of SObject Case.  I have a List<Case> newCases which i iterate over in for cycle, where i save Cases to my new List<Case> casesList.  for (Case newCase : newCases) {             if(newCase.Case_Content__c == '111' && newCase.Status == '24'){                 String cuid = newCase.CUID__c;                 cuidSet.add(cuid);                 casesList.add(newCase);                 casesList.sort(); //TODO sorting by CUID__c             }         }   What i need to do is, to sort this new list by field CUID__c. So the Cases with same CUID are together.  Thank you for any help :)


Estimate normal distribution mean given standard deviation and samples

I have samples from normal distributions with the same mean but different standard deviations. I know the corresponding standard deviation for each sample. Is there a way to more accurately estimate mean other than taking an average over all the samples?


the following code is supposed to store post meta of the recently published post to the variable $temp. But it doesn't, $temp is always empty. This seems to happen because "transition_post_status" fires before meta information is stored to the database.  Is there a hook that makes me able to get the post meta of the post I just published?  function myfunction($new_status, $old_status, $post) {      if ($post->post_status !== "publish" ) {        return; }       $temp = get_post_meta($post->ID);      // do something with post meta information } add_action('transition_post_status', 'myfunction', 10, 3);


Site redirects to humbertech.com if accessed from search engine

I asked this on stackoverflow but they pointed me here. So this is a copy/paste from that question...   I can normally visit my website via url. It all works fine.  But when I find it on google the link takes me to this url:   This humbertech.com must be some kind of provider of some services that google uses i guess...  I also added my website to my Google Webmaster account, where it says there are no errors found on it which I was expecting.  I may have to contact google but they only have robots, not real people you can talk to.. :(  The site is written in php (apache).


Why doesn't the use of a forget gate in LSTMs cause vanishing/dying gradients?

I put together some math to show what I'm talking about:   TL;DR: the earlier the timestep, the more number of forget gate terms present in our derivative that multiply together. If one of these is equal or close to 0, then the whole gradient dies. How is this not an issue, if we train the forget gate [weights] simultaneously? Even if we set a really large forget bias, as the training progresses it'll correct this and make the forget gate at a timestep closer to what is optimal. Eg. if learn that f_10 should be 0, then the whole thing dies, even though we're still making contributions albeit small.  Am I missing something here?


Why do certain mesons not self-destruct?

As I understand it, particles and antoparticles annihilate one another. But some mesons (and pions?) consist of a quark and its antiquark. How can they exist without the two particles annihilating each other?


I want to rename files and directories. Let's suppose that I want to convert every ä to a, and I have Järjestelmä/Säätimet. So I say something like find -exec rename 's/ä/a/g'. Now find will convert Järjestelmä to Jarjestelma and then complain that it did not found Järjestelmä anymore.  If I could convert the order of exec-commands to run it would solve this. Is it possible? If not, what is the right way to do this?  This is not a big problem, as I can run the command again until it makes no changes. Anyways this irritates me.


Erroneous argument that every distribution function is left continuous.

I am trying to understand the distribution function, and read that it normally is only right continuous. But somehow I get left continuity as well, so could somebody please tell me what I am doing wrong: What is wrong with this 'proof'?  Let X be a r.v.  Take an arbitrary x and let $x_n\to x$ be monotonically increasing. Then $$\lim_{n\to\infty}F_X(x_n)=\lim_{n\to\infty}P^{X}((-\infty,x_n])=\lim_{n\to\infty}\int\mathbb{1}_{(-\infty,x_n]}dP^{X}$$  now monotone convergence gives  $$=\int\mathbb{1}_{(-\infty, x]}dP^{X}=F_X(x)$$  hence $F_X$ is left continuous.


Restricting the term reference field from creating a new vocabulary term

I have a term reference field in a form and it is an auto-complete term widget, it has a vocabulary that supplies the values to it. My intention is to allow users to input only the terms which are defined with in the vocabulary and it shouldn't accept entries other than the vocabulary terms. But, the field is allowing other entries from the user.  For example, consider the term reference field is associated with a vocabulary. Now,if an user enters the values(other than the vocabulary terms) within that field and submits the form. It accepts the values and inturn creating a new vocabulary term with the given values. Here I want to restrict the automatic creation of terms. If the value is not defined in the vocabulary terms, it shouldn't accept the form.   I want to restrict user to enter the values which are defined. If a user enters the value which is not defined in the vocabulary, it should give an error message.   Here, my problem is the vocabulary has already been assigned with some data and I couldn't delete the vocabulary anymore.   Any alternatives to restrict the term references??


Is the order of members in a) in a struct b) in a bitfield guaruanteed? In other words, given a certain member of a struct or a bitfield, am I guaranteed that its offset from the beginning of the struct/bitfield will be no less than the sum of the sizes of the members that preceded it?  To give an example:  struct S{    char a[N];    unsigned b : M;    char c : O;   };   Will the offset of c be at least sizeof(a)+sizeof(b)?


Unix/Linux undelete/recover deleted files

Is there a command to recover/undelete deleted files by rm?  $ rm -rf /path/to/myfile   How can I recover myfile? If there is such a tool how can I use it?


How to split a row based on a delimiter into multiple rows and retain the ID and ordering by using a single SQL statement for MySQL

Scenario:   A MySQL table A Delimiter (e.g. comma) is used to separate entities inside a string store in a column of the MySQL table MySQL table contain 2 columns - ID and Countries_Involved    ======================================= | ID |   Countries_Involved           | ======================================= | 1  | Japan, India, France           | | 2  | Benin, Chad, Chile, Iraq, Iran | =======================================    How do I use a single SQL statement (very good to have, if possible) to generate a table below:   ==================================== | SN | ID | Country    |  Ordering | ==================================== | 1  | 1  | Japan      | 1         | | 2  | 1  | India      | 2         | | 3  | 1  | France     | 3         | | 4  | 2  | Benin      | 1         | | 5  | 2  | Chad       | 2         | | 6  | 2  | Chile      | 3         | | 7  | 2  | Iraq       | 4         | | 8  | 2  | Iran       | 5         | ====================================


There are many ads when playing videos on the Youtube app, I have tried many things but nothing works. Is there a way to avoid all the ads?


Windows Update has 31 optional language packs in the Windows 7 Professional updates. They are unchecked and will not be installed. It is a bit annoying that there is a large list of updates totalling about one gigabyte that I obviously don't need.  How can I tell Windows Update: "No, thank you, skip these updates"? If someday I need to test a software with a different localization I would like to be able to reactivate formerly skipped updates. This skipped updates list feature had been available in Windows XP.


I understand and accept the premise that defensive1 shell scripting is both prudent and, in the longer term, more sustainable.  Many of the answers to text processing questions here follow this principle by building into the answers contingencies for unorthodox filenames; that might contain spaces, dashes and new lines.  How prevalent are new lines in filenames? Specifically:   Do any applications create filenames that include newlines by default? Are there any situations where it would be desirable to create such filenames? Or are they predominantly an instance of user error?   [1] Meaning planning for and managing the broadest possible range of scenarios and contingencies...  Question inspired by the (rather plaintive) comment on .


Convergence of a series implies another convergence

Assume that $\sum a_n$ converges and $a_n\geq 0$. Show that $\sum \dfrac{\sqrt{a_n}}{n}$ also converges. I tried using the comparison test but it does not necessarily work since $a_n$ may be less than 1. I think of using the partial summation formula but I cannot see how to make it work. Any help will do. Thanks!


What happened to those indirectly killed by the Snap?

Based on the images that are shown right after the Snap, there seems to be a lot of deaths that are side effects of the snap. Everyone who was on a plane when the pilot went away, people in cars, and similar situations. Those were, strictly speaking, natural deaths, so the question is: were those deaths reversed and brought back by Banner's snap or would they stay dead? I’m not taking here about people that died before the Snap (i.e. Vision, etc) but about people that died after the Snap, because of the Snap, but without being “willed out of existence”.