Delete from employee_salary where emp_id in(           select emp_id from           employee_salary            group by emp_id,project,salary            having count(*)>1 ); ERROR 1093 (HY000): You can't specify target table 'employee_salary' for update in FROM clause   How to solve this problem and why this query is nor running?


How to restore Windows as a boot option in Grub

My Grub initially had boot options for both Ubuntu and Windows 10 (displayed as "Windows 7 loader", since I upgraded from Windows 7 to 10 after Ubuntu/Grub was installed).  Anyway, I was trying to fix a problem with Ubuntu that I thought had to do with Grub (it turned out to be totally unrelated).  In the process, I tried using Boot-Repair from a live CD and chose the "Recommended Repair" - .  However that actually removed the Windows option from Grub.  I was thinking of using Boot-Repair to "restore MBR" to get Windows back, but then I would have to reinstall Grub (I'd imagine using Recommended Repair).  But considering the first time it removed Windows from Grub, I'm not sure that would work.  How do you recommend I get Windows back as a boot option in Grub?


How to get vertex coordinates after modifier in Python in Blender 2.80?

I have a mesh with armature modifier. Is there any efficient way to read its vertices coordinates with modifiers accounted in Blender 2.80?  So far the only way I found is to duplicate the object, apply modifier, read vertices and remove duplicated object:  def extract_vertices(my_object):     # Duplicate object     for obj in bpy.data.objects: obj.select_set(False)     my_object.select_set(True)     bpy.ops.object.duplicate_move()      # Apply modificators     duplicated_object = bpy.context.scene.objects[-1]     bpy.context.view_layer.objects.active = duplicated_object     duplicated_object.select_set(True)     bpy.ops.object.modifier_apply(apply_as='DATA', modifier="RIG")      # Read vertices     vertices = [v.co for v in duplicated_object.data.vertices]      # Remove duplicated object     my_object.select_set(False)     bpy.ops.object.delete()      return vertices   It works, but very slow. I need to run this thing thousands of times in the loop, adjusting modifier every iteration.  It seems that Object.to_mesh()  could be exactly what I need, but it's  and there's no apply_modifiers parameter anymore.


I'm new to Ubuntu. I have 14.04 release, and I wanted to add a shortcut of /var/www to my desktop, since I want to do some PHP development. I went to /var/www to make a link, but my right-click menu is greyed out:   Why is that and how do I solve it?


I am looking for an example of a quadratic extension K/F that is not given by $K=F(\sqrt{\beta})$ with $\beta \in F$ and $\beta$ not a square in $F$.  I Know that every quadratic extension (with char(F) $\neq 2$) are of the form $F(\sqrt{\alpha})$, with $\alpha$ not a square in F.  Therefore I assumed $F= \mathbb{Z}/2\mathbb{Z}$. I am not sure what K could be.


This is regarding normal sentence case. Here are some examples:  Bob got arrested by the FBI. Maybe The Crystal Method is the best band ever. Attitudes in the West are fairly consistent against polygamy. Yesterday, after seeing two skinny girls make fun of her, she went to The Bad Place. (i.e. she did something self-harming)  Are there any other types of "the" usage possible? And which of these have a set capitalize, and which require a style guide to settle?


Walking dead: why there are so many walkers around?

What we know:   If you get bitten by a walker but remain intact otherwise, you become a walker If you die of natural causes, you become a walker (from Season 2, we know everybody is infected) Walkers are all around since the beginning of the tv show; "population turning time" is fast and not a gradual process.  If you are completely eaten. you do not survive and hence do not become a walker.   Therefore, to justify the spread of the infection to the majority of the population, we have to assume that any walker is a consequence of either a) a bite or b) natural death.   On one hand, chances favor 4 against 1 - that is, I imagine people die when they fight with walkers most of the time, especially in densely populated environments like cities, where most of people/walkers are. Therefore we can rule out 1 as the reason of a population-level spread of infection.  On the other hand, people die of natural causes because of age and diseases (too slow), or for injuries and violence (does not justify why SO MANY walkers are already around and not just a few) or starvation (again, it would be a slow and gradual process).  So, what happened?


PostgreSQL replace primary key and converting non-serial to serial type

I'm basically building my own version of phpPgAdmin (if I get good enough to make it good enough I'll post it on a repository hosting service) and currently I'm revising my primary key tool to replace an existing primary key.  Unfortunately I've run in to two issues as I'm used MySQL though have been learning PostgreSQL for about two months and can get around fairly well.   Setting a primary key initially is not a problem, changing a column to replace an existing key doesn't seem to work as pgAdmin III reports the original primary key column is still the primary key column.   Unlike MySQL that sets the type to autoincrement when setting the type PostgreSQL uses serial and bigserial however apparently it's not possible to convert an existing (all empty rows) column from numeric to bigserial. Using the following query...   ALTER TABLE custaddress ALTER COLUMN id1 TYPE bigserial;   ...I receive the error...     ERROR:  type "bigserial" does not exist   How do I properly change the primary key of a table if a column is already set to be the primary key?  Do I have to convert the original primary key type to numeric before changing the primary key?  Do I have to do something different when setting the primary key if I have to delete the original primary key first or change it's type?


Here you can see my today chat history:    Yeah, the blue colored are mine.   Why these are right aligned?  Is it because of most people are right handed or earlier chat app implemented this way?  I'm also expecting links for research papers that provide complete answer.


I am looking to make a capacitor/UPS system for a few different electrical components in my car. I want to power the rear view camera, headrest monitors, and possibly the head unit for about 30 seconds after their individual power has been isolated. That way they will all stay on when the power supply is changed, for example when the car is turned over. Not sure where to start or anything really about capacitors. I can get the current draw for all the components, but dont know what Diode/Capacitors to buy and wire in.


Restoring original Settings Menu in QGIS customization?

Making some tests in Windows XP for customizing a user interface in QGIS 1.8 (see ), I have unchecked, among other options, the Settings Menu. This means that, after restarting QGIS, there's no way of recovering the older settings because there is not already a Setting Menu. So, I cannot reload any ini file.  For your information, as a precaution, previously I have saved in a folder both the original ini file, with all the options, and the customized ini file with only some options (of course, not included here the necessary Settings Menu).  Before reinstalling QGIS (version 1,8), I would like to try other smarter options if there's any. Where and what does QGIS look at where this applications starts?


Hints on calculating the integral $\int_0^1\frac{x^{19}-1}{\ln x}\,dx$

I would be happy to get some hints on the following integral: $$ \int_0^1\frac{x^{19}-1}{\ln x}\,dx $$


I know that a charged particle is defined as a particle that experiences a force in an electric field, as explained in this post:   However, I still don't understand: Where does this force come from? Quantum mechanically, what does it mean for particles to repel or attract one another? Or more broadly, What does charge in general actually mean?


If $p+q+r=0$, prove these determinants are equal

If $p+q+r=0$, prove that   $$\begin{vmatrix} pa&qb&rc\\ qc&ra&pb\\ rb&pc&qa \end{vmatrix}=pqr\begin{vmatrix} a&b&c\\ c&a&b\\ b&c&a \end{vmatrix}$$  My attempt is as follows:-  Taking $p$ common from first row, $q$ from second row and $r$ from third row  $$pqr\begin{vmatrix} a&\dfrac{qb}{p}&\dfrac{rc}{p}\\ c&\dfrac{ra}{q}&\dfrac{pb}{q}\\ b&\dfrac{pc}{r}&\dfrac{qa}{r} \end{vmatrix}$$  $$pqr\begin{vmatrix} a&\dfrac{-bp-br}{p}&\dfrac{-cp-cq}{p}\\ c&\dfrac{-pa-qa}{q}&\dfrac{-qb-rb}{q}\\ b&\dfrac{-qc-rc}{r}&\dfrac{-pa-ra}{r} \end{vmatrix}$$  $$pqr\begin{vmatrix} a&-b-\dfrac{br}{p}&-c-\dfrac{cq}{p}\\ c&-a-\dfrac{pa}{q}&-b-\dfrac{rb}{q}\\ b&-c-\dfrac{qc}{r}&-a-\dfrac{pa}{r} \end{vmatrix}$$  $$pqr\begin{vmatrix} a&b+\dfrac{br}{p}&c+\dfrac{cq}{p}\\ c&a+\dfrac{pa}{q}&b+\dfrac{rb}{q}\\ b&c+\dfrac{qc}{r}&a+\dfrac{pa}{r} \end{vmatrix}$$  $$pqr\left(\begin{vmatrix} a&b&c\\ c&a&b\\ b&c&a\end{vmatrix}+ \begin{vmatrix} a&\dfrac{br}{p}&c\\ c&\dfrac{pa}{q}&b\\ b&\dfrac{qc}{r}&a\end{vmatrix}+\begin{vmatrix} a&b&\dfrac{cq}{p}\\ c&a&\dfrac{rb}{q}\\ b&c&\dfrac{pa}{r} \end{vmatrix} \right) $$  $$\left(pqr\begin{vmatrix} a&b&c\\ c&a&b\\ b&c&a\end{vmatrix}+ \begin{vmatrix} pa&br&pc\\ qc&pa&qb\\ rb&qc&ra\end{vmatrix}+\begin{vmatrix} pa&pb&cq\\ qc&qa&rb\\ rb&rc&pa \end{vmatrix} \right) $$  Now I am left with two other determinants and their sum should come out zero.  I am getting no way to simplify those determinants, if you open those determinants, expression would be quite large.  Is there any better way to solve this problem?


How to make two feature layers congruent using ArcGIS for Desktop?

I have two feature layers (polyline/polygon) which should be congruent but there's an offset of about 220 meters.   The Georeferencing tool only works with raster layers.   How do I do the equivalent with a feature layer?


I have two spheres that are bounded by spheres for collision detection. I do not want them to intersect. My intersection works. But it gets stuck. Once the function returns true, I cannot get it out. I tried  collideBool = ObjectOne.Intersect(ObjectTwo);  if(collide == true) {     leftright = leftright;     updown = updown; } else { if(GetAsyncKeyState(VK_RIGHT)) leftright -= dt; if(GetAsyncKeyState(VK_LEFT)) leftright += dt; if(GetAsyncKeyState(VK_DOWN)) updown += dt; if(GetAsyncKeyState(VK_UP)) updown -= dt; }  collide = false;   My sphere gets stuck. What is a way around this?


Shell with coloring and showing the git branch?

My friend has installed some kind of a shell for terminal and on that machine i can see in which branch I am at the moment. It looks like this:    And now i want to install that on another machine but i don't know the name of it. I hope someone will recognize it from the screenshot.


how to increase internalstorage on an Android devise

I am using WHAM! WG40 mobile. It's internal storage is only 120mb. How can I increase it's internal storage.


What is the ES205 / JS6 way, to make a custom element equivalent to  one made by DartLang


"There is/are more than one". What's the difference?

While adding to an Answer to  question, I needed to use the above phrase, and I suddenly realised I was unsure whether to write "is" or "are".   There is more than one way to skin a cat. If there are more than one species of cat, we will flay each species differently.   I don't think that second example above sounds quite right to me (disregarding the meaning - sorry!), but in my original Answer I felt "is" would have been even worse.  Is "are" always wrong here? If so, what exactly is the rationale? If not, is there a case where it's unquestionably preferred – and why is that?    Note that in both the problematic Answer and my example attempting to mimic the same context more briefly, the writer doesn't know how many there are. There may be one, more, or even none.  Getting even more specific, the writer might have an opinion on how many there might be, and wish to convey his leanings by choice of verb form if language allows this to be done succinctly.


Connect Android phone with Ubuntu PC through USB

I am using infocus m2. I want to transfer some videos from my mobile to my PC.   I am using Ubuntu on my PC. When I connect my mobile to my PC via the USB port the the mobile storage is not shown by Ubuntu.


Ubuntu 13.04 on UEFI system with Windows Boot Manager as the main loader

On my old laptop (legacy BIOS, MBR disk), this was perfectly possible to get working:  I turn on the computer and see the Windows Boot Manager  I use EasyBCD (or BootPart, or something else) to add an option to the BCD menu which allows me to boot into GRUB, and then into Ubuntu   I can't figure how to do this on my new laptop (UEFI, GPT disk), whether in UEFI or legacy mode. Currently I've installed (and even booted!) Ubuntu on my laptop, but only with the help of an external GRUB (on a USB flash drive). How can I add GRUB as an option in the Windows Boot Manager on a UEFI laptop? (No, I don't want to change my primary boot loader. So no, I don't want to overwrite the Windows boot loader with GRUB.)


Is there a way to render things in eevee using the CPU or is it just a GPU render engine?


Show that $\log({n\choose n/2})=O(n)$, I've tried to use stirling's formula but didn't get any close


Upper Bound on the Chromatic Number of a Graph with No Two Disjoint Odd Cycles

Prove that if a graph does not have two disjoint odd cycles then χ(G) ≤ 5, where χ(G) denotes the minimum number of colors needed to color the vertices of G. χ(G) is the chromatic number of G.  Intuitions:  It is clear that any odd-cycle must have a chromatic number of 3. Each clique of the graph that has an odd-cycle must thus have a chromatic number of three, but I don't see how this helps the proof.  On a related note: would it be easier to prove the contrapositive or use a proof by contradiction?  For self-study.


Is there a quick way to switch between a browser in the remote desktop, and a browser on my local machine?

I'm working alot in a remote desktop environment. However, I ifnd myself needing to switch back-&-forth too much between the remote desktop, and my PDF viewer on my local machine. And I can't use Alt-Tab or any keyboard shortcut(that I know of)  does anyone know of a way to get around that? Or how to easily switch beween the  remote desktop environment, and a locally running program?  many thanks


Deep learning : How do I know which variables are important?

In terms of neural network lingo (y = Weight * x + bias) how would I know which variables are more important than others?  I have a neural network with 10 inputs, 1 hidden layer with 20 nodes, and 1 output layer which has 1 node. I'm not sure how to know which input variables are more influential than other variables. What I'm thinking is that if an input is important then it will have a highly weighted connection to the first layer, but the weight might be positive or negative. So what I might do is take the absolute value of the input's weights and sum them. The more important inputs would have higher sums.  So for example, if hair length is one of the inputs, then it should have 1 connection to each of the nodes in the next layer, so 20 connections (and therefore 20 weights). Can I just take the absolute value of each weight and sum them together?


Prove that every $m \times n$ matrix of rank $1$ has the form $A=XY^t$, where $X,Y$ are $m$- and $n$-dimensional column vectors. How uniquely determined are these vectors$?$  My attempt: I thought about using the dimension formula somehow. I know that nullity $+$ rank $=$ dim $A$. We know dim $A=mn$ but this got me nowhere. Then I tried doing an example. I took $$ A=\begin{pmatrix} 1 & 3 \\ 0 & 0 \end{pmatrix} $$  which has rank $1$. Then I can choose $$ X=\begin{pmatrix}1 \\ 0 \end{pmatrix}, Y=\begin{pmatrix} 1 \\ 3\end{pmatrix} $$ or I could choose $$ X=\begin{pmatrix} 1/2 \\ 0 \end{pmatrix}, Y=\begin{pmatrix}2 \\ 6 \end{pmatrix} $$ so that they are not uniquely determined. However, I can interchange the entries of $X$ and $Y$ to get ''different'' $X,Y$. But one the entries of $X$ (or $Y$ are chosen) then entries of $Y$ (or $X$) are then forcefully chosen. So I believe the final answer for that will be that they are not unique but choosing one vector determines both.  However, this method works for matrices $A$ with only one nonzero row and certainly many $A$'s have rank $1$ with many nonzero row. I know that $A$ has rank $1$ means I can use a series of elementary matrices to place it in the form I used above, but am unsure of how to use this since I'm not sure how to reconcile this with my ''choices'' for $X,Y$. Is there a way to do this or am I on the wrong track.  Note: I do not need nor want solutions but rather hints or thoughts on how I should proceed.


What's the fastest way to make money online?

Everything in the online world is expensive, well the best things are. We all want the luxurious apartment with 10 cars garage and the best weapons but to achieve that, we need money. Which missions or activities give the most cash ?


How can you import packages in a python for loop?

The following doesn't work, probably because packages is a list of strings. Is there any way to have such a loop in python?      packages=['numpy','scipy']     for p in packages:         import p


When is it academically correct to use "&" ? In university standard writing can you every use & instead of the word "and"?


My texture isn't being applied. My object remains grey. What am I doing wrong?

I import an .obj model fine (a church) and a .png texture created in Mesh lab. However when I apply the image as a texture, nothing happens. I switch to 'material' mode, but still nothing. I am wondering if I have to use a UV map, but I thought that the texture .png would be applied automatically given that it was exported with the Mesh from Mesh lab.


Why is my table missing a line between columns?

Why is there a line missing between Healthy and total column?  \begin{table}[ht]  \begin{center}  \begin{tabular}{|c|cc|c|}  \hline     &\multicolumn{2}{c}{BMI} \\   \multirow{-2.5}{*}{\makecell{Activity level}}& {Unhealthy} & {Healthy} & \multirow{-2.5}{*}{\makecell{Total}} \\  \hline  Inactive  & 25 & 21 & 46\\   Active & 9 &  45 & 54\\   \hline  Total &34 & 56 & \textbf{100}\\  \hline  \end{tabular}   \caption{\label{tab:table-name}Data on activity level, resting heart rate  and BMI}  \label{conting2}  \end{center}  \end{table}


How do you determine if a pre-modifying past participle is a verb or an adjective?

How do you determine if a past participle--when used as a pre-modifier of a noun--is a verb or an adjective? For example:  a. I saw a broken vase. b. I saw a murdered man.  I think broken in a. is an adjective whereas murdered in b. is a verb. (Correct me if I'm wrong.) Is there any clear way of determining the part of speech of a past participle pre-modifying a noun?


Are these two interchangeable with each other?

"Children are subject to colds" vs. "Children are subjected to colds" Q. I've read the answer and comments posted before, concerning a question similar to mine. But I'm not clear yet. I'd like to know whether "be subject to" and "be subjected to" can be interchangeable with each other or not. Are they? Or not?


Amazon EC2 - No SSH After Reboot, Connection Refused

I've replicated this two or three times, so I'm guessing there's something wrong with what I'm doing.   Here are my steps:   Launch new instance via EC2 Management console using: Ubuntu Server 13.10 - ami-ace67f9c (64-bit) Launch with defaults (using my existing key pair) The instance starts. I can SSH to it using Putty or the Mac terminal. Success! I reboot the instance 10 minutes later, when the instance should be back up and running, my terminal connection shows:  stead:~ stead$ ssh -v -i Dropbox/SteadCloud3.pem ubuntu@54.201.200.208 OpenSSH_5.6p1, Op`enSSL 0.9.8y 5 Feb 2013 debug1: Reading configuration data /etc/ssh_config debug1: Applying options for * debug1: Connecting to 54.201.200.208 [54.201.200.208] port 22. debug1: connect to address 54.201.200.208 port 22: Connection refused ssh: connect to host 54.201.200.208 port 22: Connection refused stead:~ stead$    Fine, I understand that the public IP address can change, so checking the EC2 management console, I verify that it is the same. Weird. Just for fun, I try connecting with public DNS hostname: ec2-54-201-200-208.us-west-2.compute.amazonaws.com. No dice, same result.  Even using the Connect via Java SSH client built into the EC2 console, I get Connection Refused.  I checked the security groups. This instance is in group launch-wizard-4. Looking at the inbound configuration for this group, Port 22 is allowed in from 0.0.0.0/0, so that should be anywhere. I know that I'm hitting my instance and this is the right security group, because I can't ping the instance. If I enable ICMP for this security group, all of a sudden my pings go through.  I've found a few other posts around the internet with similar error messages, but most seem to be easily resolved by tweaking the firewall settings. I've tried a few of these, with no luck.  I'm guessing there's a simple EC2 step I'm missing. Thanks for any help you can give, and I'm happy to provide more information or test further!  Update - Here are my system logs from the Amazon EC2 console:


How do the Cybernetic organism's cells receive nourishment?

Countless times we've been shown the Terminator's biological parts healing after damage. For example, in Terminator 2 after John and the T-800/101 rescue Sarah from Pescadero Mental Hospital and they're fixing their wounds:     Sarah: Will these heal up?   T-101: Yes   Sarah: Good. If you can't pass for human you're not much good to us.   So the tissues are definitely 'alive' in that sense. They even heal quicker than human injuries (Sarah Connor Chronicles):     John: You're healing.   Cameron: Faster than you.   But how exactly do these cells receive nourishment? There's obviously blood to carry nutrients and oxygen, as well as white blood cells to stave off infections. I'm assuming there's a pump somewhere pushing it around the body, but  where do the oxygen and nutrients required to keep the cells alive come from?


Generate Random Numbers within several different parameters

I am getting a logic error every time I run this program, I feel like the code below should do exactly what the question wants, but the output is definitely wrong. I dont see what I am doing wrong.  Write a Java program (name it RandomNumbers) that generates random numbers as follows. Make sure to properly label your output for each part below and print the outputs on separate lines. As in the previous program, use the tab escape character to line-up the outputs after the labels.  a) A random integer number between 30 and 50 (inclusive).  b) A random integer number between 20 and -20 (inclusive).  c) A random integer number between -20 and -60 (inclusive).  d) A random floating-point number between 0.0 and 15.9999 (inclusive).  This is what I have so far:  public class RandomNumbers{  public static void main(String[] args) {      // Part A) Generate a random integer number between 30 and 50 (inclusive)     System.out.println("a) Random integer between 30 and 50 (inclusive): " +             30 + (int)(Math.random() * ((50 - 30) + 1)));     // Part B) Generate a random integer number between 20 and -20 (inclusive)     System.out.println("a) Random integer between 30 and 50 (inclusive): " +             (-20) + (int)(Math.random() * ((20 - (-20)) + 1)));     // Part C) Generate a random integer number between -20 and -60 (inclusive)     System.out.println("a) Random integer between 30 and 50 (inclusive): " +             (-60) + (int)(Math.random() * (((-20) - (-60)) + 1)));     // Part d) Generate a random floating-point number between 0.0 and 15.9999 (inclusive)     System.out.println("a) Random integer between 30 and 50 (inclusive): " +            0.0 + (double)(Math.random() * ((15.9999 - 0.0) + 1))); }}   My output is: a) Random integer between 30 and 50 (inclusive): 3018 a) Random integer between 30 and 50 (inclusive): -207 a) Random integer between 30 and 50 (inclusive): -6014 a) Random integer between 30 and 50 (inclusive): 0.03.7171159220482286 which isnt right as you can see.


Proof that $n=250$ is the largest value for $n$ for which $1005!$ is divisible by $10^n$ where $n\in\Bbb{N}$.  My attempt was to find a way for counting the number of last zeroes for any permutation $k!$ where $k\in\Bbb{N}$, however I haven't arrived at any useful result. I don't know how to proceed with this one.


Where should a theoretic question about Eclipse (IDE) workspaces go?

Which SE site would be best to ask a theoretic question about workspace management in Eclipse?  Question I intend to ask:     What is the rule to create a workspace? Does everyone create a workspace for each release and include the same project in different workspaces? Or do you stick to one workspace just updating the code?


Why should physical theories always have a Lagrangian formalism?

I've often heard that every physical theory has some kind of Lagrangian formalism, or a formalism in terms of a principle of stationary action. The Standard Model has one, General Relativity has one, Electromagnetism has one, and so on.  On the surface, these all seem like very different theories. What is it that unifies them so that they all end up having a Lagrangian (or other action-based) formalism? Why should physical laws be expressed in this way?  EDIT: My question has been identified as a possible duplicate of  question. That question specifically asks about quantizing Lagrangian, when is it possible, and how general it is. I'm asking what the salient properties of physical theories are that makes it possible to associate to them a Lagrangian formalism.


My UK visit visa has been refused twice. Can I re-apply as the refusal was unsatisfactory?

The first refusal (green) was my mistake, as I thought I could show my credit card as well and the employment leave of absence was missing.  The second refusal (black), they think that I have unknown credit in my account, whereas the truth is that it was my annual leave payout and I have shown and given the payslip as well. Also, my friend deposited approximately 5,000 AUD, as she wants to sponsor me. I have already repaid her, as it was an issue in the second refusal. Can I re-apply or am I out of options? I wanted to visit my friend. I live  in Australia as a temporary graduate, and I have my sister, brother in law and our home and property.


Do all droids have a four alphanumeric character name and does this have any significance?

I was noticing that the two famous droids from Star Wars, C-3PO and R2-D2 have a four character alphanumeric name.  Now, these are just two of so many droids out there, but I was wondering, in the Star Wars universe - do all droids have a four character alphanumeric name? If not, does the length or having an alphanumeric name as opposed to purely digits or characters have any significance?


How to filter in Author column in SharePoint Onpremise using REST API?

I have tried below URL for filter using Author column in list in REST API.  siteURL/_api/web/lists/GetByTitle('ABC')/Items?select=*&$filter=AuthorId%20eq%201  but it doesnt work in OnPremise. It works as expected in SharePoint Online.Please provide solution if anyone have.


How can I evaluate $Re \sum_{n=0}^{N-1}e^{j\frac{xn}{N}}$?

The book I'm studying gives the answer as $\frac{1-e^{j\frac{x}{N}N}}{1- e^{j\frac{x}{N}}} = 0$ but doesn't explain how.


Adding SPF record for second domain, but I don't yet have an SPF record for Gmail

I am familiar with the  but I am having trouble determining exactly what I need for my setup.   I have my email done through Google Apps to send and receive email for my domain, example.com. Now I am adding Mailchimp Mandrill as a valid outgoing SMTP server for the same domain. I currently dont have an SPF record set up for Gmail.   When creating the SPF record for spf.mandrillapp.com, do I need to include gmail.com also? Or example.com? Or all three? Or only Mandrill?


Windows 7 Computer crashing in seemingly random ways. How to determine root cause?

Windows 7 machine keeps crashing. It happens with various software packages and seems pretty random except that I have usually "dome something" like click or hover the mouse over the task bar. The "something" varies with every crash.  My question is what would be a good way to track this down to root cause? I have in the past tried memory checking, drive checking and hardware checking of various kinds. Is there an app that can keep an eye on things and report (in a meaningful way) what happened?  The computer specs:


Problem using find with filenames containing spaces

I'm trying to run join a bunch of files using the find command.  I have determined that filenames containing spaces are giving me a problem.  The following comand works for files that do not contain any spaces but fails when the filename contains a space.    find /media/primary/acronis_ntfs/flickr_01/. -type f -name '*.*' | xargs cat > /media/primary/acronis_ntfs/flickr_01.txt   I have tried different commands as well - all with the same results.    find /media/primary/acronis_ntfs/flickr_01/. -type f | xargs cat > /media/primary/acronis_ntfs/flickr_01.txt   If I go directly into the folder and run    cat * > flickr_01.txt   It works - spaces and all.  I'm running ubuntu 16.10.  Any suggestions?  I'm losing my hair over something I thought is simple.


About the sentence structure "Do you see where the sign is?

This is from a textbook for ESL students.     At the information desk, a lady asks, "Where is the restroom?"  A man says, "It's just behind you.  Do you see where the sign is?"   Is this sentence structure "Do you see where the sign is?" the same as, for example,      "Do you know where the restroom is?"   If I take this sentence as a relative clause, does it work?


How to use complex analysis to evaluate the trigonometric integral $\int_{0}^{2 \pi}{\frac {\cos \left( x \right) }{2+\cos \left( x \right) }}$

So I have the integral below which I am meant to evaluate using complex analysis. I was thinking to transform this integral and evaluate using the Residue theorem, but the process is incredibly messy and I am doubting if that is correct way to proceed. I know the answer should be $2\,\pi-4/3\,\sqrt {3}\pi$. $$\int_{0}^{2\,\pi}\!{\frac {\cos \left( x \right) }{2+\cos \left( x  \right) }}\,{\rm d}x$$


find and echo file names only with pattern found

I used this a lot, the improvement I try to achieve is to avoid echo file names that did not match in grep. Better way to do this?      for file in `find . -name "*.py"`; do echo $file; grep something $file; done


The guidelines to decide when to make a property readonly

The question I am about to ask is somehow general and may apply to all OOP languages but I'm coding in C#.  How we decide to make a property read-only? In my current program I have made all the properties read-only for all the classes and pass the values via constructor when I initialize them. So all of my classes look like this:   public class Point {    private double _x;    private double _y;     public double X    {       get { return _x; }    }     public double Y    {       get { return _y; }    }      public Point(double x, double y)    {       _x = x;       _y = y;    } }   But now I doubt if this is a good idea!? Because now some of the constructors in my classes are getting big and ugly with too many arguments! I'm a bit lost now! What are some guidelines to decide what properties are allowed to be set later and do not need to be passed via constructor!?


Number Theory-Find all natural numbers n such that

Find all positive integers n, such that \begin{equation} 22^n+8^n-11^n-3^n \equiv 0\ (\textrm{mod}\ 209) \end{equation} My attempt so far: \begin{equation} 11^n(2^n-1)\equiv 0\ (\textrm{mod}\ 209)  \Leftrightarrow\ (2^n-1)\equiv 0\ (\textrm{mod}\ 19) \end{equation} But from Euler theorem \begin{equation} \Rightarrow\ 2^{18}\equiv 1\ (\textrm{mod}\ 19) \Rightarrow\ 2^{180}\equiv 1\ (\textrm{mod}\ 19). \end{equation} In the same fashion we get that \begin{equation} 8^{180}-3^{180}\equiv 0\ (\textrm{mod}\ 209). \end{equation} Finally, \begin{equation} \Rightarrow\ 11^{180}(2^{180}-1)+8^{180}-3^{180}\equiv 0\ (\textrm{mod}\ 209). \end{equation} But maybe there are even more solutions, so how can I find them?


Many shows nowadays have birth scenes with newborn babies right after. It seems pretty crazy, risky and unreliable to me to use a real newborn. So what do shows use for scenes with that deal with newborns? IE this scene in Episode 10 of Grace and Frankie:


I'm new to Linux. I have been practicing a few commands. My question is about when I'm creating different files using a different umask. For example:  umask 222, as I understand it, is the same as 777 - 222 = 555, so when I create a new file (call it "newfile"), then newfile's permissions should be r-xr-x-r-x (or am I wrong?)  Whatever: "newfile" was created with r--r--r-- permissions.  My umask value in /etc/profile is:    if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then     umask 002 else     umask 022 fi   My uid is 1002.  Note: Just for the record, I've already read all the umask questions and documentation from man and I can't understand it yet.


How to unplug a network cable that's stuck?

I have plugged a network cable into my PC to temporarily adjust some settings on my router. Now I can't unplug it. The cable is physically stuck in the RJ45 port. I've tried squeezing every part of it but it won't come out.  Any suggestions for how I might remove it?


How to extrude X and Y axis on a traced object (flatten)

Newbie to blender here. I'm trying to take a curve or traced object and essentially make it wider all the way around. I'd also like to do the same, later but make the same object thinner all around. I'm trying to make a cookie cutter for my daughter and I want to make the object below porportionally wider, then drop a copy of it (only thinner) on top and join the objects together, this will be the "stamp" or cutting edge. Am I thinking about this correctly?      I'd like to make the copy of this object much thinner and drop it on the top.  Thanks in advance!!!  which vertex are you referring to?


What is the current state of the Ubuntu Professional certification?

I've heard the Ubuntu Professional certification is no longer offered, although the course can be purchased here:   Is this true? After studying the course, is there no exam or certification given any more?


Measure voltage using transistor with strange behaviour

I'm facing a problem that is completely strange for me. This is simple, I build a small electronics device and in that one I just set up a voltage bridge divider to obtain battery voltage to be able to indicate what is the level of the battery.  Problem description  Behavior: It works quite fine, means that when battery voltage is decreasing, it decreases on the input ADC on the MCU. The main problem, is that it discharges the battery same when the circuit is turned off.  What we tried: OK, we have to find a system that permits to turn off the bridge divider when I turn off the circuit. That's why I simply added a transistor which is driven by the 3.3v regulator of the circuit:   When circuit is ON, 3.3v from the regulator drives a transistor BC547A (just for test) on the Base with a 10k resistor. The transistor becomes "passing", and provide battery voltage to the bridge divider. We read VBAT2 on the MCU, when system is powered   Strange behavior: But... this is not working, we observe that the transistor is acting like a regulator because it seems to be not "passing" enough to provide the voltage variation from the battery. This is the circuit that we are trying.  Schematic:     And when we measure variation at the input of the MCU, the transistor seems acting like a regulator O_o. It means that when battery voltage decreases slowly, voltage on the MCU input stay completely constant and stable.  Here are the measure that I've done:     The blue line is VBAT2 (the one that goes to the MCU), and the red one is the probe that is on the battery +.  The battery is a standard single cell lithium ion polymer, with battery voltage that move from 4.15 V (full charge) and 3.1 V (discharged).  Does someone can help me to solve this problem or explain to me why I observe this behavior?


Windows API error 5: "Access is denied" when trying to compile TikZ picture

I installed PGF but are unable to compile the following document:  \documentclass[10pt]{article} \usepackage{pgf,tikz} \begin{document} \begin{tikzpicture} \draw (0,0) --(1,2); \end{tikzpicture} \end{document}   This is the console output:  initexmf.exe: Windows API error 5: Access is denied.  initexmf.exe: Data: C:\ texify.exe: The operation failed for some reason. texify.exe: Data: C:\Program Files\MiKTeX 2.9\miktex\bin\initexmf.exe   What to do?


Stackoverflow Careers Search adding same keyword for each search

While searching Stackoverflow Careers, it's adding same keyword each time when we do Search. like below. While Searching First Time  While Searching Second Time   This is raised in this  also, is there any updated on this?


Why Arrays.sort() method in java does not use counting sorting technique?

I found Java's Arrays.sort() method is much slower than my simple sorting method (based on counting sort).  I wrote a program to compare running time my simple sorting technique with Java's Arrays.sort() method. I noticed my implementation runs much faster (it needs 1/3 time compared with system method).   Below is my implementation.  I keep track of all the elements in a secondary array and I copied back all the elements to the main array before return.   static void mySort(int[] num2, int n) {     double startTime, endTime;      startTime = System.currentTimeMillis();      int[] sortedData = new int[n];      for (int i = 0; i < n; i++)        sortedData[num2[i]]++;      int index = 0;     for (int i = 0; i < n; i++)        if (sortedData[i] > 0)        {           for (int j = 0; j < sortedData[i]; j++)           {              num2[index++] = i;           }        }       endTime = System.currentTimeMillis();        System.out.println("Time taken for my sort: "             + (endTime - startTime) +  " ms");  }    static void systemSort(int[] num)  {      double startTime, endTime;       startTime = System.currentTimeMillis();       Arrays.sort(num);      endTime = System.currentTimeMillis();        System.out.println("Time taken for System sort: " +                       (endTime - startTime) + " ms");  }    public static void main(String[] args)  {    int size = 50000000;   int[] origArray = new int[size];   int[] origArray2 = new int[size];    Random rn = new Random();    System.out.println("Taking " + size + " inputs randomly...");   for (int i = 0; i < size; i++)   {      origArray[i] = rn.nextInt(size);      origArray2[i] = origArray[i];   }   System.out.println("Done!");    System.out.println("\n\nFrom System sort:  ");   systemSort(origArray);    System.out.println("\n\nFrom my sort:  ");    mySort(origArray2, size); }   Here is the output:  Taking 5000000 inputs randomly...  Time taken for System sort: 652.0 ms  Time taken for my sort: 160.0 ms  Taking 50000000 inputs randomly...  Time taken for System sort: 5737.0 ms  Time taken for my sort: 2176.0 ms  If we can buy a good amount of execution time with the cost of memory (considering memory is less expensive now a days) then why not we taking advantages of it?  Any thoughts? Thank you.


How to unfloat a table or figure environment

Someone knows how to "unfloat" a table or figure environments. I mean, I want to put a float environment after a specified paragraph. I need some help.


Amazon Prime Video incompatability with 17.04

I tried to watch a movie on Amazon Prime. I got the following error message.     Your web browser is missing a digital rights component. In your web   browser's address bar, type about:addons, press Enter, and then on the   left, click Plugins. For the Widevine Content Decryption Module,   select Always Activate, and then refresh the video's page and try   watching the video.   I looked for the plugin but it was not there.  I'm using firefox (53.0 (64-bit)) and running Ubuntu-17.04-desktop-amd64. I also tried Chrome browser and the error message was as follows:      This web browser isn't compatible with Amazon Video. Please use one of   the following web browsers: Chrome (latest version)   Amazon seems to think it works with Linux but so far I am not having any luck. Is this a browser problem or is it Ubuntu?


I'm trying to do this command:  /give @p Minecraft:diamond_pickaxe 1 0 {[id:34,lvl:30000]},{[id:32,lvl:30000]},{[id:70,lvl:30000]},{[id:35,lvl:30000]},{[id:16,lvl:500]}   But it says data tag parsing failed: encountered multiple top tags. What am I doing wrong?


Seeking QGIS algorithm for Swapping land parcels/plots by property?

I've searched for a QGIS Algorithm for swapping plots in an area by land owners and I didn't find anything.   Do you know something that did that?  For example, in an area or in a town we have 2 big land owners. The plots are mixed between them. For a land consolidation we need to swap the plots between them. The result would be that land owner 1 is in the west side of the town and the land owner 2 is in the south side of town. It's about the agricultural land for bigger agricultural exploitation.   Example:  Plots before a swap     Plots after a swap    The green plot/parcels are for owner 1 The Red plot/parcels are for owner 2  It can be used for land consolidation.


Org chart web part for SharePoint Online?

I am a beginner at O365 Sharepoint Online and I have to add an organization chart representing the organizational hierarchy of the members of the society but I cannot find a solution for this. Help me please!


Can I use older MySQL workbench with newest MySQL server?

MySQL newbie here.  I'm using Ubuntu 16.04 (64-bit). I've successfully installed MySQL Community Server 5.7 and MySQL Community Workbench 6.3.  Unable to find these answers in the MySQL forums. I've asked this on Stack Exchange and it was suggested that I ask here instead. I've searched on Ubuntu Forum and here also but did not find an answer. One would think they are common questions but maybe not. Additionally, I cannot find a way to ask a new question on the MySQL Forum. I've spent a ton of time reading/researching/installing/uninstalling and reinstalling MySQL and community workbench on Linux Ubuntu 16.04 (64-bit) and do not want to lose the momentum I've gained. I'm actually making forward progress after a week or so of trial and error working on this up to a few hours per day. It appears that I cannot load MySQL Community Workbench 8.0 without Linux server installed. That seems to be one of the requirements if I understood correctly.  Can anyone tell me if MySQL Community Workbench 6.3 will work with MySQL Community Server 8.0 on Ubuntu 16.04 (64-bit)? I would still like to upgrade and use MySQL community server 8.0 if I can.  Can I use MySQL Community Server 8.0 on Linux Ubuntu 16.04 32-bit?   I've spent many hours googling it and looking on MySQL Forums but couldn't find the answer. Thanks much. ...Rick


Let $M$ be a non-zero module and suppose that every non-zero module homomorphism $f:M\rightarrow N$ is injective. Show that $M$ is simple.   My idea is to let $N$ be a submodule; then pick a map to show it must be zero or $M$.   Thanks


Use inclusion/exclusion to find the number of derangements of each of the following strings.

a) aabcd (already answered)  b) aabbcc   There is a  exactly like the one I asked, however I am still stuck and still need help. Here is my attempt     Let A denotes where aa occurs, B denotes where bb occurs, C denotes where cc occurs, and |U|=$\frac{6!}{2^3}$. Then $|A\cup B\cup C|=|A|+|B|+|C|-(|AB|+|AC|+|BC|)+|ABC|$.           For |A|+|B|+|C| glue aa together for |A|, bb for |B| and cc for |C|                  |A|: $\frac{5!}{2^2}$ |B|: $\frac{5!}{2^2}$  |C|: $\frac{5!}{2^2}$ $\implies$ |A|+|B|+|C|=$3\left(\frac{5!}{2^2}\right)$               For |AB|+|AC|+|BC|=$3\left(\frac{4!}{2}\right)$           For |ABC|= 3!         So |U|-$|A\cup B\cup C| = \frac{6!}{2^3}-\left[\frac{5!}{2^2}-3\left(\frac{4!}{2}\right)+3!\right] = 30$   Now thanks to the people who already answered this we know that the actual answer is 10.   As you all can see I am doing something wrong, but I not sure what. By using the Inclusion-Exclusion Principle please help me figure out how I need to get the correct answer.


What's going on?! Subtraction works fine until I get to 0.1 - 0.1. I'm in visual c# 2008 using the nonoba.com API.  Console.WriteLine("hit! " + Users[targetNum].character.health + " : " + player.character.profile.attackPower);  Users[targetNum].character.health -= player.character.profile.attackPower;  Console.WriteLine("health! " + Users[targetNum].character.health);   output:  hit! 0.1 : 0.1 health! 1.490116E-08   Thanks all - I might use the decimal type, as I'm normally adding/subtracting nice "round" numbers. For now I'll just go with:  if (Users[targetNum].character.health <= 0.00001)   By the way I knew this wasn't really going to be a "bug" in c# - I thought it would either by a bug in my code or some lack of understanding, which it was.  Having read all the recommended reading, I'm going to conclude that my folly was due to normally using the ActionScript Number type, which maybe has a decimal rather than binary floating point - anyway, it would never give this output.


Looking for a childrens book from the 70s about kids that build a spaceship

There were a group of kids (3 or 4) and they were joined by a Chinese girl from a well off family. I remember they visited a plant and something about flies buzzing in their brains at the end where she betrayed her shipmates or something. There was something about having 'encoded cards' that they got on the black market.


I tried many times to earn the badge you get by completing the About Me section in my profile. Well, I have done so but still have not earned the badge.   Can you please let me know what I am missing? Does the About Me section require an image or certain styling to be considered complete?


I am currently trying to light up a staircase at my house. I bought two 5M reels of WS2812b 5V LED strips on AliExpress and some solderless connectors... I am planning on putting about 40cm on each step, which would in total be exactly 6 meters of LEDs.  One thing I am struggling with is choosing a correct power supply for my needs. The seller says that the strip needs 18 watts per meter.. Which would make 18*6=108W in total. Do I need a power supply that has exactly 108w or can it be more (or less)??  Also I am connecting each step in parallel with the next one. Does this change anything?  And If I choose a power supply and then use the LEDs on half power (or less), does that matter? Thanks in advance!  PS. My wiring will be the same as on this image:


Reactjs: Simple jQuery click events not firing anymore

Tools: React v 0.14   Jquery 1.11.2  I've hit a wall and I'm not sure if it's because I'm not sure if it's because of a big Reactjs jQuery no-no that I could be unaware of.  Now I know that React can handle click events for me,   but I just wanted to test out some css-transitions on my page and I've already built event handlers in jQuery that work on a standard html version of basically the same application(non-Reactjs).  Now that I'm trying it on my reactjs version though onClick events from my jQuery file are not firing.  To give you a quick idea of the probelm here's a snippet:  $(document).ready(function(){     var $window = $(window);     console.log("This is will output! yah!!");     $('.burger').on('click', function() {       console.log("Oh crap,not outputting when I click! boo!!"); ...   Is there any major reactjs reason(virtual-dom, jQuery compatibility issues) no-no I'm not aware of that could be causing this failure? Or is it kosher to do what I'm(at least for fast testing reasons) and it should work so long as I coded up the jQuery right?


What author name should I use for publication?

I'm soon to be co-author for a paper and I'm not too sure which name I should use for publication (like many previous users here!). I have a legal Chinese name which no-one knows me by but is on official documents (passport, my soon-to-be degree certificaet), and my English name which is what everyone calls me and is in the email I use for my CV. Unfortunately both combinations of my legal and surnames are quite popular when I search them on Google (advice I saw given by others) so I'm at a bit of a lost here of what I should do! I'd really appreciate any advice/thoughts here thank you !


Prison problem: locking or unlocking every $n$th door for $ n=1,2,3,...$

I have a problem called "The Prison Problem" that I need to explain to my 9-year-old cousin. I would think that he has just started learning about divisors and perfect squares, and as such, I have a proposed solution. Any input from you guys would be welcome, as to what is the best way to go about this.  Problem:  There was a jail with 100 cells in it, all in a long row. The warden was feeling very jolly one night and told his assistant that he wanted to give all the prisoners a wonderful surprise. While they were sleeping, he wanted the assistant to unlock all the cells. This should be done, he told the assistant, by putting the key in each lock, turning it once. The assistant did this, then came back to report that the job was done. Meanwhile, however, the warden has second thoughts. "Maybe I shouldn't let all the prisoners free," he said. "Go back and leave the first cell open, but lock the second one (by putting the key in and turning it once). Then leave the third open, but lock the fourth, and continue in this way for the entire row." The assistant wasn't very surprised at this request as the warden often changed his mind. After finishing this task, the assistant returned, and again the warden had other thoughts. "Here's what I really want you to do," he said. "Go back down the row. Leave the first two cells as they are, and put your key in the third cell and turn it once. Then leave the fourth and fifth cells and turn the key in the sixth. Continue down the row this way." The assistant again did as instructed. Fortunately, the prisoners were still asleep. As a matter of fact, the assistant was getting pretty sleepy, but there was no chance for rest yet. The warden changed his mind again, and the assistant had to go back again and turn the lock in the fourth cell and in every fourth cell down the row. This continued all through the night, next turning the lock in every fifth cell, and then in every sixth, and on and on, until on the last trip, the assistant just had to turn the key in the hundredth cell. When the prisoners finally woke up, which ones could walk out of their cells?  Proposed solution:  Ten cells are left open after this process. Every cell that is a perfect square will remain open (1, 4, 9, 16, 25, 36, 49, 64, 81, and 100). If a number is not a perfect square, then it has an even number of divisors, therefore it will be "toggled" an even number of times and end up where it started (closed). Perfect squares have an odd number of divisors, so they will end up the opposite of where they started (open).


Best practices for copying files with Maven

I have config files and various documents that I want to copy from the dev environment to the dev-server directory using Maven2. Strangely, Maven does not seem strong at this task.   Some of the options:    Simple use a copy task in Maven    <copy file="src/main/resources/config.properties" tofile="${project.server.config}/config.properties"/>     Use the Ant plugin to execute copy from Ant.   Construct an artifact of type zip, alongside the "main" artifact of the POM which is usually of type jar, then unpack that artifact from the repository into the target directory. maven-resources plugin, as mentioned below. Maven Assembly plugin -- but this seems to require a lot of manual definitions, when I want to do things simply and "conventionally."  even shows how to build a plugin to do copying! maven-upload plugin, as mentioned below. maven-dependency-plugin with copy, as mentioned below.     All these seem needlessly ad hoc: Maven is supposed to excel at doing these standard  tasks without fuss and bother.   Any advice?


i click play in VLC, with my cowboy bebop disc inserted, it recognizes it,makes a noise, then does nothing and gives me the option to hit play again. any ideas? Lubuntu 18.10


How to evaluate the Euler-Lagrange equation for the electromagnetic Lagrangian?

I'm fascinated with field theories, but have little knowledge about them, so excuse Me if this is a dumb question. We all know, that if we have a Lagrangian in terms of a field $\Phi $, we can just pop that into the Euler-Lagrange equation $$ {\partial{\mathcal L} \over \partial \Phi} - \partial_{\mu}\left( {\partial{\mathcal L} \over \partial (\partial_{\mu} \Phi)}\right) = 0$$ to get the equations of motion for that field. I also know, that the electromagnetic Lagrangian takes the form $ \mathcal{L}_{EM}=-\frac{1}{4\mu_0}F_{\mu \nu}F^{\mu\nu}$ where $ F_{\mu \nu}$ is an antisymmetric tensor with zeros on the diagonal and various components of the electric and magnetic fields everywhere else. My question is, how would we find the equations of motion? Should we just apply the E-L equation, but with E or B instead of $ \Phi$ ? I suppose we should arrive at the result $ c^2\cdot E_{xx}=E_{tt}$ , the equation for the electric field of an EM wave.


Closed form for $S= \sum\limits_{k=0}^n x^k \binom{n}{k}^2$

I am looking for a closed form for $\displaystyle S= \sum_{k=0}^n x^k \binom{n}{k}^2$. Does there exist such closed form?


How can I store root ginger for maximum shelf life?

I have root ginger which sometimes dries out and goes a bit wrinkly.  Currently I just store it on the side in a bowl.  Is there a better way to store it to maximise its shelf life?


How to determine which wire is which on a transformer?

Let's say I have a transformer with 3 coils. When primary coil is connected to 230V, two secondaries output 12V. Wires are color coded, but I don't know what colors stand for and there is no information about that on manufacturer's website.  Is there any relatively easy way to determine which wire is primary, which is secondary and which is start to the secondary and which is end of the secondary coil?


How many ways to select $r$ items from $n$ items, without selecting any two consecutive items?

Suppose that there are $n$ terms which are numbered from $1$ to $n$. We have to select any $r$ terms out of $n$. But there shouldn't be any two consecutive terms. In how many ways this can be done?  E.g: There are $30$ balls which are numbered from $1$ to $30$. We are commanded to select $5$ balls, but any two of them should not have consecutive numbers on them. In how many different ways can we do this?


How do you add a timed delay to a C++ program?

I am trying to add a timed delay in a C++ program, and was wondering if anyone has any suggestions on what I can try or information I can look at?  I wish I had more details on how I am implementing this timed delay, but until I have more information on how to add a timed delay I am not sure on how I should even attempt to implement this.


Trying to find a novel where genetic engineering leads to the deaths of a whole 'batch' of children with a particular trait

I'm trying to find out the title of a book or short story which I can very dimly remember, no idea on date of publication or even the main plotline! If anyone can identify it from what I can remember, it will be a miracle.  One of the characters was an un-altered female(?) child(?) who was shunned because she was ugly, which basically meant that she hadn't been designed to be perfect like all the others. At some point, a whole batch of children who had been altered to have a particular trait suddenly started dying as the trait had a deadly side effect.  I don't even think that this was the main plot, it may have been a side plot or part of the initial scene setting at the start.


Optimistic way of checking null references in java

Can any Java proficient / expert suggest me what is the optimistic way of checking null reference or objects before using it to avoids NullPointerException?  In my code I've more than 100 fields and most of them are required in order to pass value in request, but I need to perform null checks every time before passing it in request to avoid NullPointerException  I have shown below a little piece of code where I'm checking for null values every time for each field (lets say of more 70 times in my one file) which looks not good, code become very ugly and unreadable. Is there any way by which we can write method and perform null object checks through it?  Basically I'm looking better, Optimistic and faster way for doing this, Any quick help is much needed.  if(amount != null && amount != "" && !amount.isEmpty())         AIMRequest.put("x_Amount", amount);  if(currency != null && currency != "" && !currency.isEmpty())         AIMRequest.put("x_Currency_Code", currency);  if(expDate != null && expDate != "" && !expDate.isEmpty())         AIMRequest.put("x_Exp_Date", expDate);  ...........so on


QGIS Plugin: NameError: global name 'QgsVectorLayer' is not defined

I am creating a plugin for QGIS where I, amongst other things, have to create a shapefile layer.  My problem is using the QgsVectorLayer. I tried following the answer in    Which works great if I call it in the Python console in QGIS, but if I try to do it from my plugin, I get the error: "NameError: global name 'QgsVectorLayer' is not defined".  I am using QGIS 2.16.3    I already have 'from PyQt4.QtCore import *' shouldn't that be enough?    For some reason I thought qgis.core and PyQt4.QtCore were the same thing. It was the missing imports.


Is there a website with up-to-date info on border checks in the EU due to Covid-19?

I will soon travel from France to Austria via Switzerland, and am unsure about the status of border controls. As a UK citizen, I am in principle permitted to travel to Austria (at the current date) as long as I can prove that my journey is "essential" and that I recently tested negative for coronavirus, unless I have a residency permit and am travelling via a 'safe' country. But I am curious about whether anyone will anyone actually check my passport/details if I am traveling from one 'safe' Schengen country (Switzerland) to another (Austria) via night train, or whether all passengers must present proof of residency or other documentation. I did not have to give my nationality or passport number to the train company when making the bookings. So my question: is there a site that I can refer to for up-to-date information about which borders within the EU (specifically the Schengen area) are subject to checks due to Covid-19? E.g. UK-France is possible subject to some paperwork, France-Switzerland appears to be fine, and Switzerland-Austria depends on residency status.


"I am the man, who commands you" vs. "I am the man, who command you"

In a  I encountered:  To an inattentive reader, the expressions,  “I am the man, who commands you”  and  “I am the man, who command you”   [reformatted, EA]  may appear to be precisely equivalent. This, however, is by no means the case —(See “The Etymology and Syntax of the English Language explained,” p. 261, fourth Edition.).  I could not find the 4th edition of the referred book, and unfortunately not sure I understand the difference here.


I'm a beginner TeX user and I'm wondering how to generate a citation of the form     Could you help me?  \documentclass[oneside,12pt,a4paper]{memoir} \renewcommand{\baselinestretch}{1.15}  \let\memoldbibsection\bibsection \let\bibsection\relax \usepackage[nobysame]{amsrefs} \let\bibsection\memoldbibsection    \usepackage{polski} \usepackage[utf8]{inputenc} \usepackage[right=2.7cm,left=3.5cm, top=2.7cm, bottom=2.5cm,includehead]{geometry} \usepackage{amssymb,amsmath, amsthm, amsfonts} \usepackage{enumitem} \usepackage{microtype} \usepackage{idxlayout}  \usepackage{lmodern}    \begin{document}  \indent Starożytni greccy matematycy w poszukiwaniu rozwiązania zadania konstrukcyjnego stworzyli schemat rozwiązania i analizy.  Zapoczątkowana przez słynną szkołę platońską, a dalej kontynuowana przez   Euklidesa, metoda opierała się na wykonaniu czterech kroków: analizy   zadania, opisu konstrukcji, dowodu poprawności oraz badaniu liczby  rozwiązań i warunków istnienia. Każdy z tych etapów, w sposób istotny,  jest nieodłącznym elementem rozwiązania zadania konstrukcyjnego i tylko  łącznie mogą dać pełen obraz zagadnienia. \cite[str.~68]{Doman}  \begin{bibdiv} \begin{biblist} \markboth{Bibliografia}{Bibliografia} \addcontentsline{toc}{chapter}{Bibliografia}          \bib{Doman}{book}{       title={Wykład z geometrii elementarnej},       author={R. Doman},       date={1998},       place={Poznań},       publisher={Wydawnictwo Naukowe UAM},     }     \end{biblist} \end{bibdiv}    \end{document}


Subject/Complement Agreement. How to describe problem with "The thing is the objects."

In my , I provided the following, problematic,  wording (especially bold italic), and I need help to better understand this issue so I can fix my answer:1          The thing is the books. (Reduced form of Sentence 2.a)         Fundamentally, Sentence 2.a (the so-called "correct" answer), is grammatically defective. Recall there is another grammatical rule: the subject and subject's complement should match in number.    A clarification is needed here. I am not suggesting here, in this EL&U question, that there is any such singular grammatical rule as indicated in the quote above.  The quote continues as follows:     The reduced sentence makes the disagreement between the subject's and complement's plurality obvious. What is one to do? Language is linear and we know "The thing is X" is better than "The thing are X", so we go with the former, which is the subject-verb agreement rule. But what is "the books" then? It must be thought of as a collective noun, even if it doesn't look or feel like one. Forcing something to be a collective noun is related to the idea of notional agreement.   Others noted that grammatically defective is too strongly worded.  There is no such "grammatical rule" for subject/complement agreement.  Please help me understand/improve upon my line of thought here.  I'm stating that Sentence 2.1 presents a fundamental "conflict" or "error" (however one might define error) at some level (morphological, syntax, grammatical, semantic):     The thing is the books.  (Or, "The thing is the objects.")   Based on the "obvious" morphosyntactic plurality conflict, the above sentence feels so wrong that I think many native speakers would think it "simply" grammatically incorrect. However, @F.E. gives counter examples:     And here are some more grammatical examples, where the number of subject and predicative complement don't agree: "They were a problem to us all", "That so-called work of art is simply four pieces of driftwood glued together" (CGEL, page 254-5). As CGEL says: "What is required is semantic compatibility, not syntactic agreement . . .". There are more examples on page 512: "The only thing we need now is some new curtains", "The major asset of the team is its world-class opening bowlers", "Our neighbors are a nuisance", "This gadget is five different tools in one".   I think all the examples given above can be explained as notional agreement.    Question 1: If we explain this phenomena in terms of notional vs syntactic agreement, where does "grammatically correct/incorrect" fit in?  Question 2: Can a simple sentence such as "The thing is the objects." be grammatically incorrect while more complex sentences such as "The thing is four pieces of driftwood glued together." be grammatically correct?  (The answer, in my mind, must be no; this is my conundrum.)  Question 3: Would it be better to say that Sentence 2.a has a low level of (linguistic) ?   Question 4: How about a low level of  and that it's semantically difficult to be (linguistically) ?    Question 5: Do we simply draw a hard line and say "The thing is the objects." is 100% grammatically correct?  I didn't particularly like this option based on intuitive notions of "grammatically correct".    1. Please help me and be kind; I'm trying to improve my understanding. I'm looking for cool, objective advice on how to look at this.  I numbered my questions so they can be easily referenced, if desired.  My preference is the final answer would sufficiently answer all the questions, but of course that can be done explicitly or implicitly.


Linux - Capture exit code of a ruby script

I have a simple ruby script which uses the abort function to exit with a non-zero exit code  #!/usr/bin/env ruby  puts "I ran" abort "Exiting"   How can I capture the exit code when I execute this command in bash?  I have tried exit_code=./test or exit_code=ruby test to no avail.  Thanks


I was hoping to transfer my Knights of Pen and Paper save information between multiple Android devices.  Does anyone know where I might find the relevant files?  My devices are rooted.


I have a problem related to installing vivaldi

I am trying to install vivaldi.  I downloaded a .deb file of vivaldi, and i tried to install it with Ubuntu Software Center.  But, I could not install it because the Software Center just shows me the program I installed most recently.  How can I fix the problem?


Is there a single word for someone who seems saintly but is not?

I am hoping for an English word. And if no such word exist in English, is there such any such word that means the same thing or near about the same thing in other languages?


How does cutting a spring increase spring constant?

I know that on cutting a spring into n equal pieces, spring constant becomes n times.  But I have no idea why this happens.   Please clarify the reasons


$X$ is a variety and there are $m$ points $x_1,x_2,\cdots,x_m$ on $X$. Can we find an open affine set which contains all $x_i$s?


I've just bought a notebook Lenovo B590 with Windows 8 preinstalled. I tried the Live version of Ubuntu 14.04. The WiFi wasn't working, but I went on Additional Driver and I selected "Using Broadcom 802.11 Linux STA wireless driver source from bcwl-kernel-source (proprietary)" and it worked correctly. Then I installed Ubuntu 14.04, without partitions, I hadn't even activated Windows 8, and the WiFi wasn't working. I went on Additional Driver (this time in the Italian version) and I selected the same driver as before. Ubuntu asked me the password and at the end of the "applying changes" it deselected the Broadcom driver and automatically re-selected "Do not use the device". The Live version still works. Maybe are there any packages downloaded during the installation that do not work correctly with the Broadcom driver? Can you help me, please?


Regex not matching tab chars before end of string

I need to filter some lines containing several tabs at the end of the string using a regex. To do so, I wrote the following code:  import re  s = 'text:\t\t\t\t\t' preg = re.compile(r':\s*$') print(preg.match(s))   Which prints None indicating that no match was found. For further investigation I jumped over to  in order to test the regex more comfortably, which in contrast to Python returns a match as desired.  Where's the problem here? What am I doing wrong?


How to show that $\sqrt{p\over p+1}$ is irrational?

I want to prove that $\sqrt{p\over p+1}$ is irrational where $p$ is any prime number.   I have been thinking about this problem for several hours without any progress.  To show that $\sqrt{p\over p+1}$ is irrational, I assume that it is rational. So there are integers $m$ and $n$ (which have no common divisors) such that $\sqrt{p\over p+1}=\frac{m}{n}$. By squaring and rearranging, I get $pn^2=(p+1)m^2$ but I am not sure how to proceed from here. I can say that $(p+1)m^2$ is divisible by $p$ and then I do not know what to do!


Deploy Web Part from Visual Studio to remote SharePoint

I've made a Visual Web Part in Visual Studio (non-sandboxed) that I could easily deploy & "debug" on my local SharePoint installation.  I want to copy this web part to another SharePoint installation, so I went ahead and right-clicked the project in Visual Studio, clicked on the Publish, and saved it to the drive. I got a .wsp file.  I've taken this .wsp file and copied to the other server, installed with Add-SPSolution & Install-SPSolution  I don't see the web part in the Web Part gallery.  How can I get it there? What steps am I missing?


I am trying to overload the << operator for my C++ class called Box. It is not trivial and inside the definition I have to access the stdout object of type FILE* which is corresponding to the std::cout. I need exactly this object since the interface of another code I will use in my operator (GNU MPFR library) requires this particular one. How can I extract it? Simplified version below: std::ostream& operator<<(std::ostream &os, const Box &box) {     x = ??? // get the stdout from os     mpfr_out_str(x, 10, 0, box.number, MPFR_RNDN);     return os; }


Curly bracket below nodes in tikz (bayesnet)

I would like to have a curly bracket below a few nodes as given in image. I tried to follow , but I could not understand it.  Thanks  \documentclass[11pt]{report} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{bayesnet} \begin{document}  \begin{figure}     \centering     \tikz{ %         \node[latent]                       (phi)   {$\phi$};         \node[latent,   above = of phi]     (y)     {$y$};         \node[obs,      left = of y]        (Obs_y) {$ \tilde {\bf{y}}$};         \node[latent,   below = of Obs_y]   (sigma) {$\sigma_y$};         \edge {phi} {y};         \edge {y, sigma} {Obs_y}; } \end{figure} \end{document}


Making Map Book of pages with same area shown but different layers turned on/off

In ArcMap a Map Book is best suited for a series of features that each get their own page. It allows you to pick a feature and generate a Map Book Page for each feature including any additional information you wish to add to each page via dynamic text, charts, etc. Is there an alternative for say a series of pages showing the EXACT same area but with different layers turned on and off? We have a Capital Improvements document that I have to create showing the City Boundaries on every page. One page has all police and fire stations listed, another shows proposed water systems, another shows expressways and highways and work being done near or on them... etc., ad nauseum. Is there some way to set this up so that I DON'T have to created a separate MXD for each Map Page of this document?


Why can't a closed interval on R be written as the disjoint union of countably infinite many closed intervals?

As stated in the title: Why can't a closed interval $[a,b]$ on R be written as the disjoint union of countably infinite many closed intervals $[a_i,b_i]$?


How to prove the transformation formula for Jacobi classic theta function

How to prove the following transformation formula: $$ \theta(x)=\frac{1}{\sqrt{x}} \theta\left(\frac{1}{x}\right), $$ where $\theta$ is the Jacobi theta function $\theta(x)=\sum_{n\in \mathbb{Z}} e^{-\pi n^2 x}$?


10k "Most Delete Votes" List - Don't Show Questions I Can't Vote For

This is somewhat related to a  about whether the number of questions in the "Most Delete Votes" list in the 10k moderator tools should be increased. I looked for that question every way I could think of, to add this as an answer (if it wasn't closed), but couldn't find it.  It just struck me that when I'm looking for questions to vote to delete, it does me no good to see questions I've already voted to delete, or questions that have been migrated or locked. The list would often be long enough if such questions were omitted.


Let $d$ be any positive integer not equal to $2, 5,$ or $ 13$ , then $\exists a, b \in \{2, 5, 13, d\}$ such that $ab − 1$ is not a perfect square?

Let $d$ be any positive integer not equal to $2, 5,$ or $ 13$. Then can we always find distinct $a, b \in \{2, 5, 13, d\}$ such that $ab − 1$ is not a perfect square ?


I have tried the following:  sudo apt-get install build-essential  Reading package lists... Done Building dependency tree        Reading state information... Done build-essential is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   But when I compile the terminal shows the following:  g++ hello.cpp -o hello The program 'g++' can be found in the following packages:  * g++  * pentium-builder Try: sudo apt-get install <selected package>   What should I do?


Intermittent black box when writing a post on Android app

When entering a Q&A at the same time (i.e. "Answer your own question" is checked), if you click the preview box for the answer, a black box is displayed  instead of your answer.  I have tested on HTC One V, Android 4.0.3, SE app v0.1.31.  Screenshot


Test model coefficient (regression slope) against some value

In R, when I have a (generalized) linear model (lm, glm, gls, glmm, ...), how can I test the coefficient (regression slope) against any other value than 0? In the summary of the model, t-test results of the coefficient are automatically reported, but only for comparison with 0. I want to compare it with another value.  I know I can use a trick with reparametrizing y ~ x as y - T*x ~ x, where T is the tested value, and run this reparametrized model, but I seek simpler solution, that would possibly work on the original model.


How to get the bcm4312 wireless chip working?

I have installed Ubuntu 12.04 on Dell Inspiron 1525. After the installation I found out that wireless connection does not work. I was able to connect to the internet via cable. Then I found out that many people have similar problems and read through many posts yet I wasn't able to solve it so here is what I tried.  System->AdditionalDrivers->Broadcom STA wireless driver produced message "Sorry, installation of this driver failed."  Then I installed Synaptic package manager and tried to reinstall and also remove and install bcmwl-kernel-source it always said something like that installation failed (yet synaptic was showing green light next to it)  I regularly rebooted to see if there is any change but haven't seen one.  Then I tried removing bcmwl-kernel-source and adding b43-fwcutter and firmware-b43-lpphy-installer after reboot there was a change. I was able to see options in the menu for connection (up right) like "Enable Wireless" but at the place where I'd expect the list of networks is only (grayed) "Wireless Networks Disconnected" - And they should be there since I was able to connect with other computers, even with Live Ubuntu.  some other info from terminal (in the last state of system described)  katka@katka-Inspiron-1525:~$ lspci | grep 'Network' 0b:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01) katka@katka-Inspiron-1525:~$ sudo iwconfig wlan2     IEEE 802.11bg  ESSID:off/any             Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm              Retry  long limit:7   RTS thr:off   Fragment thr:off           Encryption key:off           Power Management:off  lo        no wireless extensions.  eth2      no wireless extensions.  katka@katka-Inspiron-1525:~$ rfkill list 0: hci0: Bluetooth     Soft blocked: no     Hard blocked: no 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no    This is as much as I was able to get from other posts and now I don't now what to do next.


How to show that $\prod_{d/n} d = n^{\frac{\tau(n)}{2}}$

set $ n, n \in \mathbb{N}$ and prove that   $\prod_{d/n} d = n^{\frac{\tau(n)}{2}}$  ¨I have tried this¨  If $n > 1$ then  $n = p_{1}^{\alpha_{1}}\cdot p_{2}^{\alpha_{2}}\cdots p_{k}^{\alpha_{k}}$  so   $n^{\frac{\tau(n)}{2}}=(p_{1}^{\alpha_{1}}\cdot p_{2}^{\alpha_{2}}\cdots p_{k}^{\alpha_{k}})^{\frac{(\alpha_{1}+1)\cdot(\alpha_{2}+1)\cdots(\alpha_{k}+1)}{2}}$  but i dont know how stablish a relation with $\prod_{d/n} d$


How to configure steam on a multiuser system?

I have installed Steam on my laptop. I frequently lend this laptop to my friend. He even has his own account on the machine (which is running Windows 7 btw).  Now my problem is: If one of us tells Steam to Autologin and save the password this seems to get saved on the computer instead of the useraccount. So after I've lend my laptop to my friend, where he logs in with his account and signs in with steam, while saving his password, if I log into my account and start steam I get automatically logged into his account and vice versa. Is there any way to restrict this behavior to only save the password for the useraccount Steam got started in the first place?


Make one program use a special resolv.conf

I want to cheat a program to use a special /etc/resolv.conf file, that in turn will force it to use a nonstandard nameserver.  The obvious solution is to recreate the whole filesystem except one file and use a chroot. But may be there is a simpler hack for doing this.   gives solutions that work in many cases, but not for /etc/resolv.conf: LD_PRELOAD doesn't catch when the resolver inside libc opens /etc/resolv.conf, and a bind mount doesn't work to override a symbolic link (if the link target is missing or when the link is changed afterwards).


How to disconnect selected mesh geometry?

I don't know how to disconnect a face from the rest of the mesh in edit mode.  This isn't like pressing P to separate the selection into a completely different object. I just want to select a face and disconnect/rip it away from the rest of the mesh but keep it as a part of the original object.  One way to do it would be to duplicate the face with ShiftD and then delete the original face. But I suspect there is a "native" command for disconnecting selected faces and I would like to learn it.


\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{xcolor} \usepackage{minted} \usepackage{parskip}  \definecolor{codegray}{gray}{0.9} \newcommand{\code}[1]{\colorbox{codegray}{\texttt{#1}}}  \begin{document}  \code{test code}\\ anotherline  \end{document}   This is working good on sharelatex.com and looks like I expect and want it:   but on my local project using this command gives me this:   any idea what could be causing this colorbox height going to the next line?


I'm trying to prove this result $$\lim_{x\to 0} \frac{1 - \cos(x)}{x} = 0$$ In this process I have come across an identity $1-\cos^2x=\sin^2x$. Why should this hold ? Here are a few steps of my working: \begin{array}\\  \lim_{x\to 0} \dfrac{1 - \cos(x)}{x}\\ = \lim_{x\to 0} \left[\dfrac{1 - \cos(x)}{x} \times    \dfrac{1 + \cos(x)}{1 + \cos(x)}\right] \\ =\lim_{x\to 0} \left[\dfrac{1 - \cos^2(x)}{x(1+\cos(x))}\right]  \\ =\lim_{x\to 0} \left[\dfrac{\sin^2(x)}{x(1+\cos(x))}\right] \end{array}


How to open a ticket in salesforce to get personalized support?  this web  has an option called "Open a Case". But, despite I'm authenticated, it gets me to    So I'm not able to open a case  Thanks


Let $G$ be a $p$-group, and $H$ is a normal subgroup of $G$ with $|H| = p$. Prove that $H \leq Z(G)$. More general, if $K$ is a normal subgroup of $G$, then $K\cap Z(G) \neq \{e\}$, with $e$ is the unity of $G$, where $Z(G)$ is the center of $G$, $Z(G) = \{x\in G: xa = ax,\forall\; a\in G\}$.


It is hard for me to show that the set $\{\sqrt{m}-\sqrt{n}; m,n\in \Bbb N\}$ is dense in $\Bbb R$. Please help me.


What's the difference between IP address 0.0.0.0 and 127.0.0.1?

I know that 127.0.0.1 ~ 127.255.255.254 are the loopback IP addresses for most modern operating systems, and these IP addresses can be used to refer to our own computer.  But what's 0.0.0.0? It seems it also refers to the local computer, so what's the difference?  And, could you explain the following IP connections for me:


How do I make this thing in dock into one?

As you can see on this screenshot in the Dock there are two icons of TeamSpeak. If I want to launch it i just press the square one and then it "creates" the round one. So here is my question: Can I somehow make it into one (With this little orange line that says that it is turned on)?


Java: Calling String returning method from other class returns null

When I call up a method from the other class, it returns null. I'll just show you my code below  class One{     Two two;     oneMethod(){       String str = "";        two.twoMethod(str);       S.o.p("Str in One class is " + str);       }   }   class Two{    String twoMethod(String str){       str = "From Two class";        S.o.p("Str in Two class is " + str);        return str;     }  }   The output looks like: Str in One class is ___ // meaning null  Str in Two class is From Two class  My understanding about this is, after calling twoMethod(), the str with which is initially null will now be overriden with the new str value "From Two class". Now when we print str in One class, it should be the same with what is printed in the Two class. That's how I understand the flow.   Did I miss any concept / rule about passing Strings? Any feedback is appreciated. Thanks!


I have this written down in my notes, but cannot seem to find verification of it. How can I see this fact?   I believe there is a theorem, something along the lines of if a group G is isomorphic to H then, H is a group. Can anybody verify this or point me to the direction I am looking for? Thanks.


Why in series combination of circuit has same amount of current flow in every conductor? Whereas in parallel combination the amount of voltage is same?


Jeddah - Costa Rica then return via Costa Rica - Madrid - Jeddah, will I need a visa for Spain?

I am a Filipino citizen in Jeddah, Saudi Arabia, and booked for a holiday trip to Costa Rica.    My flight is     Jeddah -> Madrid via Saudi Airlines 24 hour layover Madrid -> SJO (Costa Rica) via Iberia     My return trip is  - SJO (Costa Rica) -> Madrid via Iberia  - layover  - Madric -> Jeddah via Saudi Airlines  I will be entering and leaving Madrid twice during the round trip flights.    I  would like to know what type of Schengen visa is appropriate to apply for me to pass Madrid twice with out any hassles in Madrid airport immigration?


Proof that the hypergeometric distribution with large $N$ approaches the binomial distribution.

I have this problem on a textbook that doesn't have a solution. It is:  Let $$f(x)=\frac{\binom{r}{x} \binom{N-r}{n-x}}{\binom{N}{n}}\;,$$ and keep $p=\dfrac{r}{N}$ fixed. Prove that $$\lim_{N \rightarrow \infty} f(x)=\binom{n}{x} p^x (1-p)^{n-x}\;.$$  Although I can find lots of examples using the binomial to approximate the hypergeometric for very large values of $N$, I couldn't find a full proof of this online.


How do I prove the following:   $\operatorname{Pr}(A \cup B \cup C) = \operatorname{Pr}(A) + \operatorname{Pr}(B) + \operatorname{Pr}(C) $  $\qquad − \operatorname{Pr}(A \cap B) − \operatorname{Pr}(A \cap C) − \operatorname{Pr}(B \cap C) + \operatorname{Pr}(A \cap B \cap C)$? $\max( \operatorname{Pr}(A), \operatorname{Pr}(B)) \leq \operatorname{Pr} (A \cup B)$


Function for javascript doesn't rerun when different button is clicked

I'm trying to get the
 tag to update if a different button is pressed, but it doesn't change. I want the two functions to rerun every time I click a button.   function submit(clicked_id) {   var answer = document.getElementById(clicked_id).innerHTML;   answercheck() }  function answercheck() {   if (answer != "George Washington") {     document.getElementById("answer").innerHTML = "You are incorrect.";   } else {     document.getElementById("answer").innerHTML = "You are correct!";   } }
Quiz

Who is the first president of the United States?
 <button onclick="submit(this.id);" id="ans1">Benjamin Franklin</button> <button onclick="submit(this.id);" id="ans2">George Washington</button> <button onclick="submit(this.id);" id="ans3">Thomas Edison</button>


Bluetooth not detected with rfkill list on dell xps from fresh install

when i pull up bluetooth the toggle button is disabled.  description: Wireless interface    product: BCM43602 802.11ac Wireless LAN SoC    vendor: Broadcom Inc. and subsidiaries    physical id: 0    bus info: pci@0000:02:00.0    logical name: wlp2s0    version: 01    serial: 44:1c:a8:e2:e6:75    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless    configuration: broadcast=yes driver=brcmfmac driverversion=7.35.177.61 firmware=01-ea662a8c ip=10.0.0.79 latency=0 multicast=yes wireless=IEEE 802.11    resources: irq:137 memory:dd800000-dd807fff memory:dd400000-dd7fffff  [sudo] password for me:    ● bluetooth.service - Bluetooth service    Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset    Active: inactive (dead)      Docs: man:bluetoothd(8)


Let $k,l,n\in\mathbb{N}$ with $k+1\leq n$. Find a general formula for $\displaystyle\sum_{i=0}^l \dfrac{l\choose i}{n\choose {k+i}}$.  I think the formula should involve a fraction and a combination. I tried plugging in values of $i$ but I couldn't get anywhere. Next I tried expanding the combinations, but I got a really nasty expression, so that didn't get me anywhere either. Any hints, preferably major, would be nice.


Will iMessages sent to my iPhone number also be shown on other iPhones sharing the same Apple ID?

Me and my mother share one Apple ID. If someone sends an iMessages to my phone number, will my mother's iPhone also receive it?


How can I have a SSH banner appear BEFORE the "login as:" prompt?

CentOS 5.x  When I enable the Banner /path/to/banner parameter in my sshd config file, the banner displays AFTER the login as: prompt.   For example:   login as: foo *********************************************************** Test Example SSH Banner Text This is a test Example 12345 *********************************************************** foo@1.2.3.4's password:   Admittedly this isn't an issue for ssh connections that connect with a username already specified prior to connecting.  But for ssh connections that don't have a user name preselected, users see this upon connecting:   login as:   Is there any way to get the banner to display BEFORE the login as: prompt?


Are users allowed to chose their names with no restriction?

I know that users are allowed what they want in their profile. However, are they allowed to have any name they want?  Are there any restrictions, or does that come under the same "their own choice" section?


How do I move the workspace selector to left?

I've recently updated Ubuntu 16 to Ubuntu 18.  I like the new GUI, but I would like to know how to move the workspace selector to the left of the screen, just below the Activities button.  I installed and use the gnome-tweaks GUI, but I wasn't able to find the solution to this problem.


What's an easy way to create a floating amortization loan?

When dealing with a mortgage company, paying off a loan is quite simple.  Now everything is online and most of the times you can pay more than the minimum payment each time.  Each month the interest then changes to adapt to the new balance that is less than the assumed balance had you paid the minimum each recurring month.  If you are dealing with a private loan, and want to make extra payments when cash is available, what is the best way to calculate interest and balance left after each payment?    Is the best option to just calculate the interest rate each day after a payment to know the next occurring interest charge + current balance due?    I was looking online and have only found amortization charts that would become invalid the first time I make a payment over the minimum amount.


Cross-validation techniques for time series data

What is an appropriate cross-validation technique for time series data?   I have a daily 4 years time series data and fitting a SVM model by MATLAB R2015b:  SVMModel = fitcsvm(Input, binary_output,'KernelFunction','RBF','BoxConstraint',1); CVSVMModel = crossval(SVMModel); z = kfoldLoss(CVSVMModel)   This a binary classification problem. As default I used 10-fold cross validation, but because of the random nature of this method I think this is not suitable for time series data.   Questions:   Is it better to use other techniques like sliding window validation as discussed ?  How we can implement these techniques in MATLAB?  Are there any predefined functions for other proposed techniques?


In Grover's Algorithm, does the exact solution need to be given to the oracle?

From my understanding, the oracle function in Grover's algorithm is used as a way to check for the desired outcome.   I have looked at  example which implements the Exactly-1 3-SAT problem and the oracle function follows some rules which only returns True for the correct solution. I have also looked at  which looks for two marked states.   In the second example it looks like the exact solution is given to the oracle which I don't understand as I thought we are supposed to be searching for the solution.  I was wondering if I am misinterpreting this and also how an oracle function can be created if we don't know the rules (like a maze)?


setInterval() Inconsistencies  I am trying to create an object that works like a stopwatch, but there is a 100 millisecond difference between Chrome and Firefox browsers.  The code and test below fails in both Safari and Chrome but passes in Firefox.  Question: Why does this happen?  Questions: How to achieve Consistency with this object across browsers?  You can run this  in several browsers and watch the test pass or fail.  The sample is on JSBIN so you can also make code changes to it.  Timer Object (SUT)  I've built a Timer object that essentially works like a stopwatch:  function Timer() {   this.interval = null;   this.time = 0; }  Timer.prototype.start = function () {   var self = this;   this.interval = setInterval(function () {     self.time += 100;   }, 100); };  Timer.prototype.stop = function () {   clearInterval(this.interval); };   Timer Test (jasmine)  This test starts and stops the timer.  It fails in Chrome but passes in FireFox.  describe("Timer", function () {    it("should stop and record time accurately", function (done) {     var timer = new Timer();     timer.start();     setTimeout(function () {       expect(timer.time).toEqual(600);       done();     }, 600);   });  });


Neural Network - Estimating Non-linear function

I am fairly new to neural networks. I am trying to empirically show that a neural network can work better than logistic regression when the underlying function is non-linear. In my simulation study, the true probability of assignment to the treatment group is a function of $X_1$, $X_2^2$, $X_3$, and $X_4$ - however, I am acting as if I don't know that $X_2$ is squared, and just using the non-squared term. Logistic regression performs poorly.   I think that I can get a neural network to estimate the function better since it's a (rather simple) non-linear function. However, my first attempt was not fruitful and I'm not sure if I need to increase "hidden," the number of hidden neurons, or change the activation function (or something else). Here's what I tried in R:  nn = neuralnet(t ~ X1+X2+X3+X4, data=df, hidden=3, act.fct = "logistic",              linear.output = FALSE)   Any thoughts?  Thanks!


Does the default per user .ssh/config file override all options in system wide ssh_config?

If there is no -F switch and there is an /home/me/.ssh/config file that I can expect the settings in /etc/ssh/ssh_config to be ignored or do the settings in my home directory just supplement the global configuration the way they would if I specified them with a -o stanza?  For reference, The ssh man page says that the -F switch does the following.     Specifies an alternative per-user configuration file.  If a configuration file is given on the command line, the system-wide configuration file (/etc/ssh/ssh_config) will be ignored.  The default for the per-user configuration file is ~/.ssh/config.


I am working on a model in r and below is the output of confusionMatrix I got-                Accuracy : 0.7952                           95% CI : (0.7775, 0.8122)    No Information Rate : 0.8388              P-Value [Acc > NIR] : 1                                  Kappa : 0.1149           Mcnemar's Test P-Value : 5.345e-09                    Sensitivity : 0.18605                     Specificity : 0.91229                  Pos Pred Value : 0.28959                  Neg Pred Value : 0.85363                      Prevalence : 0.16120                  Detection Rate : 0.02999            Detection Prevalence : 0.10356               Balanced Accuracy : 0.54917            Can someone explain me what is the difference between P-Value [ACC > INR] : 1 and Mcnemar's Test P-Value in the result above.


Principal Component Analysis - Why Use Eigenvectors of the covariance matrix?

In PCA we start with a dataset and we reduce its dimensions by giving it new features that are each a linear combination of the original features of the dataset, and only keeping the ones with maximum variance.  These new features of our reduced dataset are eigenvectors of the covariance matrix of our original dataset. For some reason, making the new features the eigenvectors of the original covariance matrix does two things:   These new features will have a much larger variance than any of the features in the original dataset had. I don’t see why… These new features will all have zero covariance with one another…I also don’t see why.    Update - I understand why they have zero covariance with one a other: it's because the covariance matrices is symmetric, meaning that its eigenvectors are perpendicular.   Covariance can be thought of as a dot product between two vectors, and if the vectors are perpendicular, the dot product is zero.  But...I'm still confused as to why we use THOSE directions.


What are the alternatives to Notepad++ on Ubuntu?

I use  on Windows 7 and I want to know if there is a good substitution for it on Ubuntu.   I want something that is good for editing html files.


WHat are the resources to learn Salesforce Sales CLoud/Service CLoud/Marketing CLoud?

Please help me with appropriate resources to learn about Salesforce Service cloud Sales cloud...Are there any work books ?PLease share the link


$X\sim N(0,1)$, find the generating function of $Y=X^2$

If $X\sim N(0,1)$, I need find the generating function of $Y=X^2$. The exercise says me that I should not solve the integral (which is I presume $\int e^{tx^2}f(x)dx$). It also says:  $$E(e^{tY}) = E(e^{tX^2})$$  and that any probability distribution function $f(x)$ has $\int_{-\infty}^{\infty}f(x)\ dx = 1$  How should I solve it? I know I must find $M_{X^2}(t) = E(e^{tX^2})$. I can't, however, solve the integral. Which methods are left? I don't know any.


Prove that for any $a \in \mathbb{R}$   $$\sum_{k=0}^n (-1)^{k}\binom{n}{k}(a-k)^{n}=n!$$     I rewrote the sum as $$\sum_{k=0}^n \left((-1)^{k}\binom{n}{k} \sum_{i=0}^n (-1)^{i}a^{n-i} k^{i} \right)$$ and then interchanged the summations, but that led me nowhere.    Any help will be appreciated. Thanks!


I downloaded the July 30th update for Pokemon Go and when I open the app I'm prompted to login, But once I login, it redirects me to this page on Cookies::     If I click "Done" in the top left, it prompts me to login again! I've tried reinstalling the game, restarting my phone, etc. I can't much enable Cookies on the inline Safari browser. It doesn't make sense, and cookies are on in Safari (because I don't use Safari and they're enabled by default).  How can I fix this?


If $p$ and $q$ are primes, which binomial coefficients $\binom{pq}{n}$ are divisible by $pq$?

If $p$ and $q$ are primes,  which binomial coefficients $\binom{pq}{n}$, $1 \le n < pq$,  are divisible by $pq$?  In particular, if $p$ and $q$ are distinct odd primes, and $n$ is even, does $pq \mid \binom{pq}{n}$?  This question is inspired by my answer here:   According to Kummer's theorem (), "the largest power of $p$ dividing $\binom{m+n}{m}$ equals $p^c$,  where $c$ is the number of carries when $m$ and $n$ are added in base $p$."  If $m+n = pq$, $m = pq-n$. So, if there is at least one carry when $n$ and $pq-n$ are added in base $p$, then $p \mid \binom{pq}{n}$. So, we want to know for which $n$ there is at least one carry in base $p$ and base $q$.  An obvious generalization is to ask, if $p, q, \ldots, r$ are primes,  which of the binomial coefficients $\binom{pq\cdots r}{n}$ are divisible by $pq\cdots r$. But I don't even know how to do this for two primes.  Note: The answers to this question may be useful:


What're the differences between PCA and autoencoder?

Both PCA and autoencoder can do demension reduction, so what are the difference between them? In what situation I should use one over another?


what is the difference between [[False] * 3] * 3 and [[False for i in range(3)] for j in range(3)]?

I am trying to initialize the 2D array with false values. Both instructions mentioned below are producing same results. Please help to know the difference between the two ?  Input  [[False] * 3] * 3  [[False for i in range(3)] for j in range(3)]   Output  [[False, False, False], [False, False, False], [False, False, False]] [[False, False, False], [False, False, False], [False, False, False]]


Windows Registry placeholders %1, %L, %*,

I've noticed that in the registry some placeholders are used to replace text strings when calling OS sub-systems...  %1 is easy to understand...  My question is what %L means ? Are there more placeholders ? and what their meaning ? Why %* doesn't work in registry ?


Correlation with Spearman's but nothing on MLR

How is it possible that individually, Z correlates with X and Y (Spearman's) but when multivariate linear regression analysis is done X and Y cannot predict Z at all. Am I doing something wrong? This doesn't make sense to me.


LaTeX gets confused about what page it is

The title should explain the problem.  \documentclass[justified, symmetric]{tufte-book} \geometry{paperwidth = 8in, paperheight = 10.5in, right = 2.2in, marginparwidth = 1.5in} \usepackage{ifthen, lipsum, showframe} \begin{document} %  ------------------------------ \textbf{\thepage} \marginnote{A margin note} \par \lipsum[1-5] \vspace{0.5cm}  \textbf{\thepage} \marginnote{\raggedleft A margin note} \par \lipsum[6-9] \vspace{0.6cm}  \textbf{\thepage} \marginnote{\ifthenelse{\isodd{\thepage}}{A margin note}{\raggedleft A margin note}} \par % <---- this note should be on the left side of the margin \lipsum[6-9] %  ------------------------------ \end{document}   The wrong page numbering also results in a wrong display of the margin note:    To be fair, a simple \clearpage before the third margin note solves the problem, but having to solve things manually is both impractical and annoying.