How many more casualties in the war on pronouns?

I've been reading posts and comments all over the network for many years and never felt like I need to register. I've also been watching what's going on here since the pronoun-crisis broke out and I notice how it's getting worse every day and I can no longer just sit there and do nothing. I identify myself as transgender and I am disgusted about the war on pronouns that is like an earthquake splitting communities into opposing groups. There are many users who recognize the problems with the new CoC -- see  nice compilation -- and there are their enemies. They seem to be organized in  and use moderators as a tool for their own sake by rising rude flag. They call for help in the . What worries me most is that these actions are even supported by the Staff:      I'm reading nearly any comment and I rarely think that any one deserves this kind of punishment.  What is wrong with you people? She/he/her/him users supported by Mods & Staff vs the rest of the community.  I explicitly distance myself from this turmoil. It's nice when people use the pronoun you suggest them to use but if they don't and they chose to use the neutral one they then it's still OK! Nobody should be banned by using a neutral word.  I can only hope that both sides will come to their senses soon. One of them by making the CoC less strict and community members by stopping to offend each other and provoking hateful speech.  How many more are going to be suspended before coming to an agreement?


So I am trying to validate a string with contains first some text, then an email surrounded by angled brackets '<>', for example     'Test <postmaster@email.academy>'  I have been trying to solve this for quite some time, I want to know if there is a regex that will help me to validate that the email is always surrounded by angled brackets  var data = {     from: 'Test <postmaster@email.com>', };  var dataValidation = function (data){     var fromEmailAddress = data.from.split(' '); //['Test','<postmaster@email.com>']     /////code below doesn't work as I have angled brackets around the email     var validEmail = /^[A-Za-z0-9._%+-]+@([A-Za-z0-9-]+.)+([A-Za-z0-9]{2,4}|museum)$/;     if(validEmail.test(fromEmailAddress[1])){         console.log(fromEmailAddress[1])     }  };


Burn movies to CD's that will play on a standard DVD?

Is this possible?  My memory is a little foggy, but I believe I've done this in the past.  I'm not sure if it can be done with all dvd players.  How can it be done?


Prepopulated Date Using calender in android

I want to show the date as "current date-180" days. How can I show this? I am adding my code below. Now I can choose date from datepicker dialog only, can't prepopulate date in textview.  Calendar calendarFrom = Calendar.getInstance();     datePickerFrom = new DatePickerDialog(activity, new DatePickerDialog.OnDateSetListener() {         @Override         public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {             StringBuilder selectedDate = new StringBuilder().append(dayOfMonth).append("-").append(monthOfYear + 1).append("-").append(year);             textDateFrom.setText(selectedDate);          }     }, calendarTwo.get(Calendar.YEAR), calendarTwo.get(Calendar.MONTH), calendarFrom .get(Calendar.DAY_OF_MONTH));      textDateFrom.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View view) {             datePickerFrom .getDatePicker().setMaxDate(new Date().getTime());             datePickerFrom .show();         }     });


Redirect everything from old domain to new domain

I need to (permanent) redirect all of the following:   www.example.com www.example.com/folder sub.example.com sub.example.com/folder   Basically, all URLs that are reachable without being intended to: www.new-example.com, I want to do this within Apache and using the mod_rewrite module via the .htaccess file.


How to find all the tables in MySQL with specific column names in them?

I have 2-3 different column names that I want to look up in the entire DB and list out all tables which have those columns. Any easy script?


Proving a vector space is infinite-dimensional

Let $S$ be a vector space. Suppose that for any positive integer $n$, there exists a linearly independent subset $S_n ⊆ V$ of size $n$.   How do you show that $S$ is not finite dimensional but infinite-dimensional.  I understand that to be finite dimensional then it must have a finite then  there exists a finite set that such at $\operatorname{Span}(T)=S$. So would it be right to prove by contradiction that there is not a finite spanning set that satisfies $\operatorname{Span}(T)=S$, and hence I could argue that the vector space $S$ is infinite dimensional.  How would I show that $S$ does not have a spanning set $T$, such that $\operatorname{Span}(T)=S$?


Minecraft command block door using a key

So I'm making a dungeon based off Legend of Zelda, and I want to make a door that opens when you have a key in your inventory. Say the key is called "Small Key". How can I get it to open when you're 5 blocks away from the door?


Windows 7 Administrator Command Prompt "Start in" Path

So, I know you can create a shortcut to an administrator-level command prompt (as described in ), but what I'm seeing is that whenever I use such a shortcut, it always drops me into c:\windows\system32\ path.   I've tried specifying that shortcut's properties to set the "start in" path I need, but to no avail. It seems any time I run cmd.exe "As Administrator," it completely disregards the shortcut's paths and sticks to c:\windows\system32\  Any suggestions on how to get Windows 7 to respect the shortcut's "start in" path?


Associative ring with identity, inverses, divisors of zero and Artinianity

How to prove the following?  $R$ is an associative ring with identity. $R$ contains element $r$. The element is not invertible on the right and is not a left divisor of zero. Then the ring $R$ cannot be Artinian on the right.


we have the following file   cat  /tmp/hive.conf        "hive-exec-log4j2" : {         "tag" : "TOPOLOGY_RESOLVED",         "version" : 2       },       "hive-interactive-env" : {         "tag" : "TOPOLOGY_RESOLVED",         "version" : 2       },       "hive-interactive-site" : {         "tag" : "TOPOLOGY_RESOLVED",         "version" : 2       },       "hive-log4j" : {         "tag" : "TOPOLOGY_RESOLVED",         "version" : 2       },       "hive-log4j2" : {         "tag" : "TOPOLOGY_RESOLVED",         "version" : 2       },   we want to capture the line after match the "hive-log4j" from file  so we get that:  cat  /tmp/hive.conf |  awk  '/"hive-log4j"/{getline; print}'         "tag" : "TOPOLOGY_RESOLVED",   now we want to do the same with awk and export the variable as the following   val="hive-log4j"  cat  /tmp/hive.conf |  awk -v var=$val '/"var"/{getline; print}'    but no output   what is wrong with my syntax?


What are the parts of a logarithm called?

$$\log_x y = z$$  $x$ is the base.  $z$ is the exponent or power.  What's $y$ called?


How to dynamically decorate a class method, while not losing the methods bound status?

Say I have a decorator like this:  def repeat(repeat_count):     def decorator(func):         def wrapped(self):             for X in range(repeat_count):                  func() # Do Function         return wrapped     return decorator   and a class like this  class SomeClass(object):     def __init__(self, do_count):         self.some_method = repeat(do_count)(self.some_method)      def some_method(self):          print("I'm Doing Something")   Because a decorator just returns a method, it's clear that this works. However it unbinds the some_method function from the class instance, so I can no longer do something like:  >>> sc = SomeClass(10) >>> sc.some_method() # TypeError: wrapped() missing 1 required positional argument: 'self'   I get an exception because self is no longer automatically passed. To make this work I can simply do this:  sc.some_method(sc)   but I'd much rather not. Is there any way to rebind the method to the instance, preferably without any extra imports (as TypeMethod) would be able to accomplish.


What are the fourth and fifth levels in this context?

One can use the terms primary, secondary, and tertiary to describe the first, second, and third levels of something.  What would the fourth level be called? Would it be something like "quartiary" or "quartenary"? How about the fifth level?


In both ESB and TLJ, the Empire and First Order deploy walkers to attack the rebels. However, how they are deployed to the surface from the Star destroyers in orbit. How is this done?


I was pouring water into a cup.  As the cup filled up, the height between the water in the cup and the spout decreased to about 3cm.  I was able to pour slowly such that the diameter of the falling water column was smaller than the diameter of a drop of water. Furthermore, when the water column contacted the cup's water, there was no splashing.  There were distinct bands that appeared in the water column, like the water column was varying in size.  How would you explain this phenomenon? Is it due to the slow pouring, so that the surface tension just manages to hold neighboring water droplets together?  Or is it that upon contact of the falling water with the water in the mug, waves are produced, which travel back up the water column, and upon equilibrium, appear as standing waves?


Which one is the correct one?  1) What is your Windows version?  2) Which is your Windows version?  3) Both are correct


I'm trying to make a "Villager Custom Shop Trade Thing-y". This Villager is going to sell a Heavy weighted pressure plate. When I have the item in my hotbar, I want the Item to disappear from my hotbar and immediately come back a Data tag.   Command Blocks:  Repeat - /scoreboard players set @a Pressure_Plate 0 Chain - /scoreboard players set @a Pressure_Plate 1 {SelectedItem:{id:"minecraft:heavy_weighted_pressure_plate"} Chain - /execute @a[score_Pressure_Plate_min=1] ~ ~ ~ /give @p minecraft:heavy_weighted_pressure_plate 1 0 {CanPlaceOn:["minecraft:gold_block"]}   I added a scoreboard command after I put these commands on top:  /scoreboard objectives add Pressure_Plate dummy   So what I'm trying to detect the item in my hand, but I can't make it work. It says, "Unbalanced Brackets". I'm tried to fix it by I can't. Can you help me guys?


What do you call a person who is satisfied with what he has? E.g. A person who is hopeful is called an optimist.


SEDE should pick up on changes to community metadata

It appears that site meta data isn't updated in SEDE. As an example, Moderators.SE was  to  in December 2014. It is still listed in SEDE as Moderators.SE, as of July 2015.  To search for Community Building data, we need to search the "Moderators" community:    It is not listed as Community Building:


When viewing the history tab then both tabs are toggable        When viewing the traffic sources tab then only the history tab exists


With regards to SMS, is the past tense "text" or "texted"?

I've always said "texted" when referring to the past tense of receiving an SMS (text message). However I've noticed a pattern recently that a lot of my friends are saying "text".     I texted you earlier.        I text you earlier.   Despite having a red squiggly line under it in Chrome (), . Which word is correct?


How many arrangements exist (a + b + c = 4)

For example,     $a + b + c = 4$   Solving this using stars and bars You have $4$ stars and $2$ bars:  $$ x | x | xx$$ For example.     Then what does $\binom{6}{2}$ mean? The number of arrangements of the two bars out of $6$ objects? If so, is this a general case?


C# Use a Type found via reflection as a generic

I am attempting to use a Type as a generic. Essentially, I'm able to find a Type based off it's signature using reflection. I now need to do something like this:  Type theType = this.getMyType(mySignature); string convertedData = mappingObj.mapIt<DataBase, theType>(myData);   However, I cannot use theType as a generic. Is there a way to do this?  EDIT: Following suggestion by Sohaib Jundi, I run into the following (the non simplified code is working with Automapper's Map method):  typeof(IMapper).GetMethod("Map")   That line yields this error:  'typeof(IMapper).GetMethod("Map")' threw an exception of type 'System.Reflection.AmbiguousMatchException'   The method I'm attempting to get with GetMethod is Map<TDestination, TSource>(TSource source), but I cannot determine the method signature to call to get that method. For reference, here is the link to automappers IMapper class, where the Map method lives.


Not able to connect to rackspace server via FTP

I've Wordpress sites hosted in Rackspace server. I'm able able to connect to the server via ssh through port 22. But when i try to connect to the server via FTP through port 21, i'm getting error      Response: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()      Error:Critical error      Error:Could not connect to server   I've opened port 21 inside the server. The site is hosted in RACKSPACE Server with Ubuntu 14.04  Installed vsftp in the server. And i'm using root user credentials for the FTP connection.   I even tried creating a new user for the same. But i'm getting the same error.  I used Filezila to connect to the server.Do i need to configure anything else in the server.


I'm using TeXnicCenter 2.0 with SumatraPDF and MiKTEX2.9 and try to use the inverse search. I set up the profile according to the instructions / different fora but I can’t manage to get it work then using  \input{./folder/file.tex}   In the *.synctex file the link   Input:75:C:\mainfolder\folder\file.tex    shows up correctly, however, somewhere in between the file. Now, I copied the link to the end of list of inputs at the top of the synctex-file, saved it and its working fine.   Does anybody has an idea, who I could this running (automatically;-)? Is that a known bug?  Thanks in advance for your time!


How can you show that $$ \binom{2n}{n}^2 = \sum_{m=0}^{n} \binom{2n}{2m} \binom{2m}m \binom{2n-2m}{n-m} $$?  I was fooling around with random walks, and apparently both expressions are supposed to be the number of unweighted random walks on a 2D square lattice of $2n$ steps that ends at the origin.  Whole thing reminds me of Vandermonde's identity but I can't it. Any hints?


I came across a great milling combo, however before I invest in the deck, I wanted to make sure it's legal. A rep at my LGS thinks not, but I wanted a 2nd (and more) opinion.   Turn #1: Land + 1 generic 1 drop flyer. Turn #2: Land +  Turn #3: Land +  Turn #4: Land + Protection/Removal. Activate the DG's 1st ability via attack, Tome Scour, Thought Scour, etc. This will create an infinite milling loop and win by turn 4 if everything goes right. If opp has artifact removal, I can thrown in a Padeem or Orbs of Warding. Then even if opp has creature removal or board wipe, I'll have 4x each.   To simplify this inquiry, I have precisely, squarely, meticulously narrowed the specific questions that are the basis on my query...   1 - Will this combo work?  2 - Have you personally tried it and to what extent of success did you achieve?  3 - What modifications would you suggest?   Thank you.


I made a campfire in Blender and I would like to render it with a specific photo in the background, but when I start rendering, the photo is missing.    Edit:  Thanks for your links they explain my problem. But I have a node setup like this:    I don't know where to link the image and alpha node! Is there a possibility to create a new node channel where I can set my complete campfire nodes as one node?


Rows linearly independent implies columns linearly independent

If you have an $m \times n$ matrix and the rows are linearly independent, are the columns linearly independent too?  I know that it's the case for $n \times n$ matrices. I've yet tried to think about it, and I think the answer is yes, for example the matrix: $\begin{bmatrix} 1 & 2 & 3 \\ a & 2a & 3c \end{bmatrix}$ has linearly dependent rows and columns, but I'm not sure that it works for every $m \times n$ matrix.


Weird artifacts when rendering on Nvidia GPU

For some reason, when rendering on my RTX 2060 in Blender, I'm getting these weird flickering artifacts.  As can be seen from the above screenshot, my node setup is a cube compressed into a plane by some simply vector maths with a musgrave texture applied to it. These artifacts are only appearing when rendering with the GPU (this includes the final render), and on CPU the scene renders just fine. How can I fix this? Is something from with my card, or is this some Blender bug?


Has a free neutron ever been shown to absorb/emit/interact with a photon?

Protons only 'interact with' very high-energy photons, whether inside a nucleus or free, right?  I'm assuming the same about neutrons....  Neutrons have a small magnetic moment and a slight electric 'moment' (dipole?), correct?  They are sometimes considered to consist of a negative charge surrounding a positive charge?  I would assume that neutrons, in a nucleus or free, interact with photons even less often than protons, and that the gamma photon has to have an even higher energy than one interacting with a proton....  Lastly, I have read about 'photodisintegration', in which a nucleon is kicked out of a nucleus by a gamma ray.  It seems to happen to neutrons sometimes...  But, I am mostly curious about experimental evidence of free neutrons interacting with photons, how often it happens compared to free protons, and whether the interacting photon's energy has to be extremely high, higher even than a photon interacting with a proton...


Do I Need Linux Drivers For Virtual Box?

I have recently fallen in love with Linux. I first decided to try out Ubuntu 13.10 a few weeks ago, but I bricked it by incorrectly installing an AMD FGLRX driver. Then I reformatted and wiped that partition to try out Linux Mint 16. I did the same thing with Mint, as well as with Fedora 20, 19, and 18 (in that order). Now I am on a stable Ubuntu 12.04 because I know how to use it vastly more than the other distros I've tried and because it seems like it has the biggest online support group.  Because I am now tired of reformatting and reinstalling broken distros, I thought it would be a good idea to get at least one distro stable (Precise) and to test the driver installations and other risky modifications for that distro and others with them running in Oracle Virtual Box since I don't trust my Linux skill (lack?) at the moment. This way, I optimize the distros in the Box, take a "snapshot" like saving a video game, and try out the risky operations. If they fail and I break the distro, I can just open the snapshot up and go back to where I was right before the risky operation.   While this still seems like the best idea so far, I have noticed that the distros I have installed on Virtual Box report that I am NOT using my computer's actual hardware, and am actually using Virtual Box's "hardware", for instance, the "Innotek Systemberatung GmbH VirtualBox Graphics adapter.  Because of that adapter, my test graphics installations do not work properly. Even the operations I know would brick the distro with a black screen are not working. "My adapter is incompatible," FGLRX installation says, in the GUI version of installation (one of many methods).  My questions are: Can I not install these drivers inside of Virtual Box? Do I need some additional software? Is there any other virtual environment I could use for testing these distros that would result in a 100% identical virtual installation?    I am using the notoriously Linux-unfriendly Acer Aspire 5553G, which has "switchable graphics".  Those cards are the Mobility Radeon HD 4250 and 5470. The driver's I have tested so far work in Windows 7, yet do not in Linux.   Thank you all in advance!


Limit order precedence when there are two sellers

I am trying to understand the precencehow limit orders are fulfilled.   Example: Let's say on a given day only Alice and Bob send a sell order for Apple stocks.   Alice, sell APPL at least: 450 Bob, sell APPL at least: 500   Joe sends a buy bid of at max: 550, now what happens? Does Joe get Alice or Bob's share, and at what price?  P.S. the latest selling price of APPL is irrevelant I guess, since there are only two sellers.


Is the notion of 'weight of Earth' meaningless?

I am not talking about the distinction between mass and weight, just the concept of 'weight'. In University physics (book by Young & Freedman, 14th Ed.) it is given that     the weight of an object is the total gravitational force exerted on it   by all other objects in the universe.   Following this definition, can I say that the weight of Earth is approximately the product of its mass and the centripetal acceleration (towards the sun), or is the whole idea of 'weight of Earth' meaningless (as I have seen written in some books)?


Tar crontab not working, while command works on it's own

I have this crontab  * * * * * tar -czf /backup/$(date +%F--%T)-localusers.tgz /vagrant  It does not work. But if I do  tar -czf /backup/$(date +%F--%T)-localusers.tgz /vagrant/  It works.  Anybody have a clue what's going on? I do keep getting a mail though:  N 10 (Cron Daemon)         Thu Aug 23 10:43  28/1130  "Cron <root@localhost> tar -czf"


Conformally Map Region between tangent circles to Disk

Suppose we are given two circles, one inside the other, that are tangent at a point $z_0$. I'm trying to map the region between these circles to the unit disc, and my thought process is the following:  I feel like we can map $z_0$ to $\infty$, but I'm not really sure about this. If it works, then I get a strip in the complex plane, and I know how to handle strips via rotation, translation, logarithm, power, and then I'm in the upper half-plane (if I've thought this through somewhat properly). My problem really lies in what point $z_0$ can go to, because I thought the point symmetric to $z_0$ (which is $z_0$ in this case) had to be mapped to $0$. Is this the right idea, and if what other details should I make sure I have? Thanks!


Can someone verify whether i am correct in saying that the square root of negative one SHOULD NOT exist, make sense, or equal "i" or +/-i?

I am sure you are aware of the dillema of 1=-1 when we assume √-1=i. To refresh your memory it goes like this:  1= √1= √((-1)(-1))= √-1√-1= i*i= -1.  We must realize that saying √-1=i is only half true, therefore not true. √-1= +/-i. This is because i×i=-1 and so does -i×-i. Therefore we need to change our above statement to:  1= √1= √((-1)(-1))= √-1√-1= +/-i*+/-i= (+/-)-1=(+/-)1.  But then, wait, now 1 is equal to +/-1. It is equal to both itself and its opposite all of the sudden. Doesnt this make absolutely no sense? I think √-x should equal the set of no numbers. What do all of the educated mathematicians say?


In the Avengers (2012), Loki is observed to not have much powers except his sceptre (known as the blue stick of destiny by Tony). We even see that in the final battle, the avengers are fighting the most with the army of Loki and least with Loki himself although Loki is the main villain. Is my understanding of Loki's powers wrong? Or what is it?


How does reputation between the main site and its meta work on SE 2.0?

I noticed that the reputation from the main site carried over to meta on Gaming (at least the first upvote), I guess that doesn't work the other way around, right?  Is it then impossible to have a meta reputation higher than the site reputation?


How do you insert a picture in LaTeX? I have tried to follow instructions online but TeXmaker won't compile my coding

I'm having trouble inserting a picture into my LaTex document (using Texmaker). Does anyone know why this may be? This is the code I am using:  \documentclass[11pt]{article} \usepackage{graphicx}  \begin{document}  \begin{figure} \includegraphics[scale=1]{fig.1} \end{figure}  \end{document}   It is giving me the error:  ! LaTeX Error: Unknown graphics extension: .1.See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help.... \includegraphics[scale=1]{fig.1} ! Output loop---100 consecutive dead cycles.\clearpage ...rite \m@ne {}\vbox {}\penalty -\@Mi \end{document} File `fig.1' not found


Why are fearful stimuli more powerful at night?

For example, horror movies appear to be scarier when viewed at night than during broad day light.  Does light have any role in this phenomenon?   Are there changes in hormones at night versus during the day that makes fear stronger?


expected '{' when braces are matching correctly

Hi I am (very) new to java and I come from a c++ background and I am getting this error: Array-Lists-In-java.java:3: error: '{' expected public class Array-Lists-In-java{                   ^  and here is my code:     import java.util.ArrayList;          public class Array-Lists-In-java {              public static void main(String[] args)         {             ArrayList<String> grocery = {"Onions","Carrots","Olives", "olive oil"};                          printArray(grocery);                          grocery.add("Tomatoes");                          printArray(grocery);                      }                  public static void printArray(ArrayList<String> list)         {             for(int i = 0; i < list.size(); i++)             {                 System.out.println(list.get(i));             }         }              }  what am I doing wrong??pls correct me where i am going wrong it would be really helpful thanks


Beamer, booktabs, empheq, pgfplots incompatability

The following minimal example  \documentclass{beamer} \usepackage{booktabs} \usepackage{empheq} \usepackage{pgfplots}  \begin{document} \begin{frame} Test \end{frame} \end{document}   gives the error  /usr/local/texlive/2014/texmf-dist/tex/generic/pgf/modules/pgfmoduledecorations .code.tex:31: No room for a new \dimen . \ch@ck ...\else \errmessage {No room for a new #3}                                                   \fi  l.31 ...\pgfdecoratedinputsegmentremainingdistance  This error is not produced if beamer or one of the three packages is not used.  The relevant file list is:   beamer.cls    2013/12/02 3.33 A class for typesetting presentations (rcs-revision 332bfd3ce558) booktabs.sty    2005/04/14 v1.61803 publication quality tables empheq.sty    2014/07/16 v2.14 Emphasizing equations pgfplots.sty    2014/08/04 v1.11 Data Visualization (1.11-3-g4c99d7a)   Does anyone know of a workaround?


I stumbled over this question on Facebook. I was wondering how Rock Lee got out of the academy and why did they let him leave?


Visa Waiver Program and working within the US

I am employed by a US company but live and work in the UK. I also get paid into a UK bank account. Can I travel to the US with an ESTA and remain under the VWP for business meetings or short term work in the U?


If I have multiple objects selected can I use scaling to make the objects closer together (without rescaling the objects)?


If $g$ is a primitive root of $p^2$ where $p$ is an odd prime, why is $g$ a primitive root of $p^k$ for any $k \geq 1$?

I saw this theorem referenced in a paper on performing shuffles in an array. There is a proof on pages 20-21 of the , but the proof is very terse and omits a lot of intuition.  Is there an intuitive explanation for why this theorem is true, or at least a proof that omits fewer details?


Splitting an English sentence into more lines

I am wondering if there is a rule for splitting a sentence in English into more lines. For example, I would like to get Tolkien's quote engraved on a tag (necklace).     All we have to decide is what to do with the time that is given us.    But because the size of the tag, it won't be in one line, so that's why I am asking. In my native language for example you can't write preposition at the end of the line and the word on the next line if you read it "together", with one breath.


How to choose one out of three object with a single coin?

So given a fair unbaised coin and the objective of choosing one of the three given objects with equal probability. How would you go about the task.  I would toss the coin two times and repeat it if I get two tails. I think that way I would be having 33.3333% choices of selecting one of the three objects.


The most efficient way to implement an integer based power function pow(int, int)

What is the most efficient way given to raise an integer to the power of another integer in C?  // 2^3 pow(2,3) == 8  // 5^5 pow(5,5) == 3125


OSX Sierra doc moves itself to another monitor

When running two external monitors in OS X Sierra, my dock sometimes changes which display it is located on.   Is there a setting to stop this from happening?  This happens at random times, and I can't reproduce the issue.


Let $~f~$ be a function from $\mathbb{R}$ to $\mathbb{R}$ such that :  $~~\forall x \in \mathbb{R}~~ $  , $~~f(x) = f(2x) $   and $f$ is continuous at $~0$ .   prove that $f$ is a constant function .


In my basement I have 24V AC power outlet. I need it to be 230V.  I found some fairly big, old transformer core, on the one side of it I winded 3 turns of standard power cable, on the other side I winded 30 turns. When I connect either of those sides to power outlet (while the other coil remains unconnected), the light in the whole basement goes down (it doesn't break, it starts to glow really low). As I said, It doesn't matter which coil I plug in, the result is the same. Also, when I connect the 3-turns coil into my outlet, the transformer is making quiet buzzing, while, when I connect the 30-turns coil, it starts buzzing kinda loud.  Why does the light in the basement go down? Why is the transformer buzzing? How do I convert this 24V into 230V? I only have this big transformer core, some standard home power cables (the ones that you are using to power your pc, tv, etc.), and some unisolated wires (those were in the transformer previously, but now I think they are useless, since they got no insulation on them).


I have such a problem, I'm trying to output a list of movies without the names of directories in the file, but I have a bug, the argument is not found in the -exeс, below is the code  $ find . -name "*.avi" -o -name "*.mkv" -exec basename \{} \ > ~/Bash/test/rm/films.txt


Use a class that is declared after in the code, in other class

Maybe the title doesn't fit enought.  I have two classes "Player" and "Upgrade"   Player is declared before Upgrade.   But I need a method in the Player class that uses a pointer to the Upgrade class  If I try to compile it I get ‘Upgrade’ has not been declared. I give a sample code. Notice i can't just switch the location of both class because Upgrade has also some methods that has Pointers to Player   class Player{     string Name;     getUpgrade(Upgrade *); // It's a prototype }; class Upgrade{     double Upgradeusec;     somePlayerData(Player *); // It's a prototype };   PD: I have been searching for this for like 1 hour, without results.  Notice: This is just a sample code, because the real one goes large


The Room of Requirement is a very useful secret feature of Hogwarts, but how did it get there in the first place?  Was it included (created or requested) by the Four Founders when they had the place built? If so, why isn't it better known, like any other special room in Hogwarts such as the library or the infirmary? Was it a secret the Founders wished to keep to themselves and perhaps some of their chosen acolytes?  Or was it made later on, by some great Headmaster or perhaps even some particularly gifted and enterprising students? This seems more likely given the apparently very small number of people aware of its existence in the present day, but would it really be feasible to create a whole new room in a pre-existing castle?  Who created the Room of Requirement, how, and when?


Standard regarding punctuation in headlines?

What is the standard regarding punctuation in headlines?


Android - problems with recieving image from SQLite DB

So I get a null pointer exception when trying to recieve image from SQLite database.  Saving image:      public void insertImage(byte[] imageBytes) {         ContentValues cv = new ContentValues();         cv.put(IMAGE, imageBytes);         mDb.insert(IMAGES_TABLE, null, cv);     }   Here's my code for recieving the image in the helper class:      public byte[] retreiveImageFromDB() {         Cursor cur = mDb.query(true, IMAGES_TABLE, new String[]{IMAGE,},                 null, null, null, null,                 IMAGE_ID + " DESC", "1");         if (cur.moveToFirst()) {             byte[] blob = cur.getBlob(cur.getColumnIndex(IMAGE));             cur.close();             return blob;         }         cur.close();         return null;     }   And here's how I try to set the image to ImageView in my activity:      byte[] image = mImage.retreiveImageFromDB();     Bitmap bitmap = BitmapFactory.decodeByteArray(image, 0, image.length);     profileImage.setImageBitmap(bitmap);   What am I doing wrong?


getting data from database inside fragment view null object refference

I get my data inside my function. However when trying to set the data to my textView it fails. It gives a null pointer exception. But I initialise my textView on top of the page. Anyone has an idea why it gives this error?  Process: com.example.dylangomes.parkingxl, PID: 10078 java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference at com.example.dylangomes.parkingxl.DetailFragment$1.onCallBackRecieved(DetailFragment.java:79) at com.example.dylangomes.parkingxl.Services.ParkingService$3.onResponse(ParkingService.java:113) at com.example.dylangomes.parkingxl.Services.ParkingService$3.onResponse(ParkingService.java:108) at com.android.volley.toolbox.JsonRequest.deliverResponse(JsonRequest.java:65) at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99) at android.os.Handler.handleCallback(Handler.java:769) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6540) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)   This is my function  public class DetailFragment extends Fragment {  private String titleText, addressText; private int freePlacesText; private TextView title, freeplaces, address; private ParkingService parkserv;  @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {     // Inflate the layout for this fragment     View fragmentView = inflater.inflate(R.layout.fragment_detail, container, false);      title = fragmentView.findViewById(R.id.title_view);     freeplaces = fragmentView.findViewById(R.id.freePlaces);     address = fragmentView.findViewById(R.id.address);      return fragmentView;  }  public void setId(int id) {     Log.d("Set id function called", "FUnction called");     parkserv = new ParkingService(getActivity());      parkserv.getParkingLotsById(id);      parkserv.setApiCallBackObject(new APICallBackListenerObject() {          @Override         public void onCallBackRecieved(JSONObject jsonObject) {             Log.d("Getting into OnCallback", "OncallBack");              final Gson gson = new Gson();             final Type type = new TypeToken<ParkingLots>() {             }.getType();             final ParkingLots parkinglots = gson.fromJson(jsonObject.toString(), type);              Log.d("ParkingLots", parkinglots.getAddress());             Log.d("ParkingLots", parkinglots + "");              titleText = parkinglots.getTitle();             freePlacesText = parkinglots.getPlacesNow();             addressText = parkinglots.getAddress();              title.setText(titleText);             freeplaces.setText(freePlacesText);             address.setText(addressText);         }     }); }   }  the logs log the data which i expect but it gives an error before i get inside the view and crashes the program


I found the problem described in the attached picture on the internet. In the comment sections there were two opposing solutions. So it made me wonder which of those would be the actual solution.  So basically the question would be the following. Assume we would have two identical beakers, filled with the same amount of the same liquid, lets say water. In the left beaker a ping pong ball would be attached to the bottom of the beaker with a string and above the right beaker a steel ball of the same size (volume) as the ping pong ball would be hung by a string, submerging the steel ball in the water as shown in the picture. If both beakers would be put on to a scale, what side would tip?  According to the internet either of the following answers was believed to be the solution.   The left side would tip down, because the ping pong ball and the cord add mass to the left side, since they are actually connected to the system. The right side would tip down, because of buoyancy of the water on the steel ball pushing the steel ball up and the scale down.   Now what would the solution be according to physics?


What is this symbol used in this D flip flop circuit?

I'm studying some notes on latches and flip flops. After the introduction of the D flip flop, the notes go on to explain its function - how it works. However, the first circuit diagram contains this weird circuit symbol :     Does anyone recognize it?   In case it helps, here's the full circuit diagram :     Could it be just a symbol replacing the whole D flip flop? In that case the inverters seem to be there so that we can get the 2 complementary Q outputs. I don't get the whole feedback thing though.


1970s or 80s kids book: girl's life taken over by a robot doppelganger version of herself

I read this book between 1980-82 but it could have been written earlier.  It's about a girl who is dissatisfied with her life, as her parents have her on a diet and she wants to be able to eat what she wants. Someone offers her a solution: to come live in this large building where she can eat all the chocolate eclairs and other junkfood she wants, while a robot doppelganger android version of herself will take her place at home and at school.  The girl agrees, but finds that after week of eating mainly eclairs, she is sick and wants to eat a decent meal. But she is not allowed to eat anything else and has found herself to be a prisoner, so she sets out to get rid of the android and get her life back.   I don't recall the ending but it seemed the 'people' behind it all might have been aliens and the building might have been a kind of ship that then disappears.


Pre-1960s novel where Earth humans are kidnapped by psychics from another planet

Earth and an Earth-like planet with human inhabitant, the people of which have mental powers that enable them to control people. Their society is ranked by the number of people they can control. The top ranking leaders are known as 70's (80's?) because they can control up to 80 people. Ranking is done by challenging people (like judo). People on Earth start to disappear and it is thought that someone is kidnapping them and taking them to the other planet. Since Earth people have no mental powers, it is thought that a limitless number could be controlled as slaves. A joint investigation is agreed and an Earth detective is partnered with a "40" from the other planet. In the end a rogue "70" was found to be the person. It's not Caves of Steel since that's about robots.


Personalize monitor position before login

I'm using multiple monitors.  When logged in everything is fine: The left monitor is positioned to the left and the right monitor is positioned to the right, but before I log in, the login-screen positions them the other way around.  This is also the position presented by bios and then the grub menu.  I don't mind where the login is displayed, but when moving the mouse, the boundary is the wrong way around and that's annoying.


I don't understand an answer. Should I add a comment, or post a new question?

I recently (today) asked a question that received what seems to be a clear, concise answer, but one that's beyond my ability to understand (I'm at the cut-and-paste stage with JavaScript, and the answer seems to assume more knowledge than I actually have).  Is it considered better to ask follow-up questions as comments to the answer given, or should I post "fresh" questions to Stack to help me understand the answer that's been given?


How do I file a bug on a PPA upstream with the maintainers using Launchpad?

I thought about reporting a bug about a package from the wine PPA, but neither  has an option to post a new bug report no  has an option to post a new question. But there are old bug reports and questions listed there.  I wonder how I can do this.  The standard ubuntu-bugway doesn't work for a package from PPA:  $ LC_ALL=en_US.UTF8 LANGUAGE=en LANG=en_US.UTF8 DISPLAY= ubuntu-bug wine1.7  *** Collecting problem information  The collected information can be sent to the developers to improve the application. This might take a few minutes. ............  *** Problem in wine1.7  The problem cannot be reported:  This is not an official Ubuntu package. Please remove any third party package and try again.  Press any key to continue...   No pending crash reports. Try --help for more information. $


Suppose $f$ is integrable on $[a,b]$ and $F(x)=\int_a^x f(t)dt$. Prove that  $$ V_{[a,b]}(F) = \int_a^b |f(t)|dt, $$ where $V_{[a,b]}(F)$ denotes the variation of $F$ on $[a,b]$.  Attempt Let $\mathcal{P}=\{x_0,x_1,\dots,x_k\}$ be a partition of $[a,b]$. We have   \begin{align*} V_{[a,b]}(F,\mathcal{P}) &= \sum_{i=1}^k \left| F(x_i) - F(x_{i-1}) \right|\\ & = \sum_{i=1}^k \left| \int_a^{x_i} f(t)dt - \int_a^{x_{i-1}} f(t)dt \right| \\ &=\sum_{i=1}^k \left|\int_{x_{i-1}}^{x_i} f(t)dt \right|\\ \end{align*}  Not sure how to get the absolute value inside the integral then the rest follows obviously.


Which is a good and short book for foundations of quantum mechanics?

I am looking for a book that has stuff on quantum states, entanglement, etc. I am aware of the book, Geometry of Quantum States.  I have read Ballentine's book, Quantum Mechanics: A modern development


Can I, being under 21, hire a car in California?

I'll stay in the US next year for about three months. As I know I can't do much without a car I'd like to hire one. But most rentals are for people over 21 only and I'll only be 19 by then.    Is there another possibility to be mobile around San Francisco Bay Area (hopefully including Santa Cruz Beach)?


Why are these animes called so? (something;something)

There are manga/anime called "something;something", what for? does it server any purpose for identifying it as a series? example: steins;gate, robotic;notes.


What is the canonicity of the new "Lego Star Wars: Droid Tales" TV show?

We've  the canonicity of the Lego Star Wars shows (Yoda Chronicles and the four Episodes (Empire Strikes out, Padawan Menace, etc) but what is the canonicity of the new "" shows?   Since they were produced after April 2015, is their canon status any different to the other Lego: Star Wars properties?


How to add a footer to a table in Microsoft Word?

I have a table that is longer than one page. I have found the option to make the header of the table to be added to the second portion of the table after the page break. Is there a way to do the same thing with a footer on the table? I want to add a footer so that if my table was 1000 entries long (12 pages), that the first and last row of each page would be consistent; a header and footer for the table. If I edit the rest of the document (above the table) the table will shift up/down and I want to header and footer of the table to remain at the page breaks. Any ideas?     PAGE BREAK   HEADER OF TABLE TBL TBL TBL TBL TBL TBL TBL TBL TBL TBL TBL TBL FOOTER OF TABLE      PAGE BREAK   HEADER OF TABLE TBL TBL TBL TBL TBL TBL FOOTER OF TABLE  TEXT TEXT TEXT TEXT TEXT TEXT      PAGE BREAK


Well till now I don't think that there is any clear cut distinction between thermodynamic work and mechanical work. If there is any difference between these two terms please give some answer  So the thing is for thermodynamic work can I use this equation which says  W = -∆U where W= Work and ∆U=Change in Potenial Energy.  So can I use it or not to use it?  If the equation do not stands for thermodynamic work then please give a described reason(not compulsory just want to know is the equation good or not)  Thanx


How can I stop cocktails from being foamy?

Whenever I make (shaken) clear cocktails, I end up with foam on top of the drink, like this:    I follow the usual steps of building the cocktail in the mixing tin, adding ice and shaking strongly for a few seconds. The ice comes from a regular freezer tray and isn't clear.  How can I stop this from happening and get foam-less cocktails?


Which Stack Exchange is best for a question about project architecture

I need to ask a question about project layout, git repository structure, and IDE settings for the given scenario.  There really won't be a right answer, but rather, an answer which works best for my situation.  What is the best site to ask these types of questions so they don't get closed/locked?  Being more specific: I have a grails project that is comprised of several plugins that are basically modules for a grails app.  We're getting ready to make a move from svn to git and I want to make sure I have a good structure going forward. Right now, all the plugins and the app site in one repository.  I want to know if they should be broken up and then I have some additional questions about setting that scenario up in my IDE if that is the way to go, given different git repos for a single project.


Is it legal to trade 1 wood for 1 wood + 1 hay?

I ran into this situation. I had helped out a player by not placing the robber on them with my knight card. To sweeten the deal, she agreed to give me 1 wood + 1 hay in exchange for 1 wood. Is this legal?  The board mentions that trading 1 wood for 2 wood is illegal, but is 1 wood + 1 hay considered legal?


Opening a "known file type" into running instance of custom app - .NET

How would you open a file (that has a known file/app association in the registry) into a "running instance" of the application it's supposed to open in? An example would be, I have Excel open and I click on an XLS file.....the file opens up in the current Excel instance. I want to do this for a custom application...how does the eventing/messaging work that "tells" the current instance that it needs to open a file? Is there a "file watcher" that looks for a request to do so etc? Thanks..


Irreducibility of special cyclotomic polynomial.

I'm trying to show that $f(x)=1+x^p+x^{2p}+\dots +x^{p(p-1)}$ is irreducible over $\mathbb{Q}[X]$. I'm well aware that cyclotomic polynomials are irreducible, however the (many) proofs of this statement are quite involved. Since this exercise appears in a textbook that only covers basic algebra, there should be a more direct approach to this exercise.  I tried all criterions that I know to solve this (Eisenstein, linear substitutions, reducing to $\mathbb{Z}_p[X],\dots$). Only one remains. We know that $f(x)=\frac{1-x^{p^2}}{1-x^p}$, or equivalently $1-x^{p^2}=(1-x^p)f(x)$. We know that the roots of $1-x^{p^2}$ are given by $$e^{\frac{2\pi i k}{p^2}}, \mbox{ for $0\leq k\leq p^2-1$ }. $$ Similarly, the roots of $1-x^{p}$ are given by $$e^{\frac{2\pi i kp}{p^2}}, \mbox{ for $0\leq k \leq p-1$}.$$  Hence the roots of $f(x)$ are given by $e^{\frac{2\pi i k}{p^2}}$ where $p\not|  \;k$ and $0\leq k\leq p^2-1$. One way to show that $f(x)$ is irreducible over $\mathbb{Q}$ is to show that any product of linear factors of $f(x)$ is not a polynomial over $\mathbb{Q}$. I tried to show this, but it is too difficult.  Does anyone know a elementary way of solving this exercise?


Showing that $\mathbb{Q}$ has no subgroups of finite index, without using quotient groups.

So I've seen many solutions to this problem using the idea of a quotient group. In my class, however, we have no covered quotient subgroups, so I am looking for a different way to prove this. So far, my line of thinking has been to assume such a subgroup ($H$) exists, choose an arbitrary $q \in \mathbb{Q} \setminus H$, and show that we must have $q \in H$. If $H$ is of finite index, there must be finitely many cosets, so I started looking at some cosets:  $0+H \rightarrow$ This is just $H$, since $H$ is a group, so closed under operation.  $q+H \rightarrow$ This coset contains $q$, but cannot contain $2q$ or $0$, since that would imply that $q \in H$.  $2q+H \rightarrow$ This contains $2q$, but not $3q$ or $q$, since $q \notin H$.  $nq+H \rightarrow$ Contains $nq$, but not $(n-1)q$ or $(n+1)q$.  I've also noticed that if $H$ is to have finite index, then eventually the cosets of integer multiples of $q$ must repeat. That is  $$\exists\ k,m \in \mathbb{Z}\ \text{with}\ kq+H = mq+H$$  $$\iff$$  $$kq+h_1 = mq+h_2\ \text{for some}\ h_1,h_2 \in H$$ $$\iff$$ $$(k-m)q = h_2-h_1 \in H$$ $$\iff$$ $$\text{Some integer multiple of}\ q\ \text{is in}\ H$$  But I don't think this is a contradiction, so I'm not sure how to proceed.   I think that if I could show that every $q$ has an integer multiple, then we could show that every $q$ must be in $H$, since we would be able to express any rational number as an integer multiple of another one. However, this line of reasoning would only hold if the integer multiple was the same integer for any rational we choose (perhaps it would be the order of the subgroup?)  An answer or a hint would be hugely appreciated.


What Should I do when my registrar steal my domain name?

I have registered a .buzz domain and after a week my registrar, GoDaddy, blocked my account and changed the who-is info and name servers.   When I got in touch with them, they told me that because they cannot work with my country, I live in Iran for clarification, they have blocked me out and I should wait until the registration period ends like a full year, if I want to register it with other registrars, and they will not either let me to transfer my domain!!!  As I have found out they have parked my domain and are showing they own ads and there is also a button for getting more information about how to buy it!!!  What should I do now to get back my domain from those thieves?! Please help me. I should also say that they have refunded my money but the problem is that I need my domain name not my money.


How can I install .exe files of Windows 7 or more in Ubuntu?

I want to run/install .exe files that require Windows 7 or higher in Wine on Ubuntu.   When I try to install a specific .exe file on Wine, it says      Windows version is not supported! You can install it in Windows 7 or higher.   How can I configure which Windows version (XP, Vista, 7, 8, ...) Wine emulates?


How do you pronounce “asks” in “She asks too many questions”? Is it possible to omit the “s” while we are speaking?


Let vectors $u_1,\ u_2,\ \cdots u_n$ and $\mathcal{P}$ the parallelepiped determined by  these vectors : $$\mathcal{P}=\left\{\lambda_1 u_1+\cdots +\lambda_nu_n/\ \lambda_k\in [0,1]\right\}$$ How we can prove that : $$V=\int_{\mathcal{P}}dx_1\cdots dx_n=\det\left(u_1,  u_2, \cdots, u_n\right)$$ Thanks you very much.


Is it good idea to develop websites on Angular?

I developed a web project which is a web service that helps pupils and abiturients to find the most appropriate university based on their needs, grades, preferences. The tech stack is using AngularJS + PHP  It has unique content, about 7000 pages in search engines but only 5-10 people visit the website daily. I believe the main issue is AngularJS, it was designed to develop one-page web applications rather information web services. Even though I am happy with the performance and functionality of the project and I feed search engines with prerendered pages, AngularJS is still not SEO friendly and search engines lower positions because of users behaviour. For example,  WordPress, Joomla websites are picked by search engines up much better but it lacks of flexibility developing new functionality  Could you please advise what is the best way to make website more SEO friendly?  Update it to Angular 6? Replaced it with PHP + JavaScript?


Why does "question closed as duplicate" not qualify as an inbox notification?

I asked  today. I went out for a while then came back and found notifications of upvotes to an answer. I then looked at the question again and noticed it had been closed as a duplicate. But I had no notification of that.     After editing that question to make it less of a duplicate, I came here to ask: why is this so? Why do I get notifications of edits to questions, comments, answers, but not of questions being put on hold / closed as [whatever the reason might be]?     I would like to be notified if a question gets closed, especially if it is an old question I do not look at any longer, because without the notification I might not ever see the closure.


How can I get a user-defined function to re-evaluate itself based on changed data in the spreadsheet?  I tried F9 and Shift+F9.  The only thing that seems to work is editing the cell with the function call and then pressing Enter.


How relevant is the expiration date on uncooked Rice (different varieties)? Are there ways to store rice to prolong it life?


What is the most recent date that can be measured using carbon-14 dating?

With , what is the most recent date which can be accurately determined, and why?   Is there an accepted time range, within which, accurate results can be attained using carbon-14 dating? I understand that the method can provide dating up to ca. 50,000 years into the past, but I'm interested in the other end of the time range: is there a point in time when younger (recent) specimens can no longer be dated with accepted accuracy?   I have read sources that place this limit anywhere between 50 and 500 years. I have read that this difficulty in the young-sample range is due to the fact that not enough material has been depleted to calculate accurately. I also understand the concerns with carbon-14 dating regarding the impact of fossil fuels / atomic activity in recent dating attempts. I also am aware of new carbon contamination when sampling.  I am a paintings conservator and have been requested to examine a panel painting from approximately 1550 A.D., and I have  evidence which supports this date. Would a carbon-14 analysis be of equal accuracy in this case?


Edited photos have reverted to originals on iphone

I edited about 20 photos on my phone yesterday -- cropped, altered saturation and contrast etc. This morning, on my phone, those edits have all reverted to the original photos.   I use iCloud library. The photos had not completed uploading to iCloud library before I edited them. My phone uses ios 11.3  Can these edits be recovered now that iCloud sync up is complete and those edits are reverted to the original photos?  EDIT: given that there is no solution, and that others report the same problem (and that it happened again), I have filed a bug report at Apple:


is there a way in Java to find if services like Windows Defender, IIS, Telnet are enabled? I am aware of the system class and you could always test ports with the socket class but I am looking for an easier solution. (If there is one)   Thanks for the help!


Does this analogy with matter and energy hold?

Matter is to energy as dark matter is to dark energy.  Is that statement correct? If not, is there any relationship, that we know of, between dark matter and dark energy?   When I say there is an analogy. I kind of imply that some version of $E=mc^2$ holds for the "dark" equivalents.


Confusion regarding parameters and instance variables

In my class players below I have 2 methods. In the method playersFight in my main activity i did, so I am passing in the name fred and bill to my players fight method. I know that you are supposed to the the parameter values to the instance variables such as I did. However If I print player1 and player2 it achieves the same outcome so I am confused as to why we need to set them to the instance variables ??  public class GameTime { public static void main(String[]args){     Players hockeyPlayer=new Players();     hockeyPlayer.simpleMessage();     hockeyPlayer.playersFight("fred", "bill");     }  }    public class Players { String name;  int number; public void simpleMessage(){ System.out.println("This is another Class"); } public void playersFight(String player1,String player2){ name=player1; name=player2; System.out.println(player1+" fights "+player2);  } }


Better way of introduction on Stack Overflow when a new user is not marking answers

There are many new users I helped on Stack Overflow. They say thanks, but they don't accept (mark) answers as they are not aware of it.  So there should be proper introduction of Stack Overflow to new users. They should be taught about Stack Overflow step-by-step, like taking a tour on Facebook.  The introduction should be done as the new user logs in for the first time, and it should be mandatory to run the introduction session.  And a link should be there to re run the introduction session whenever the new user wants.


Did you know that Julia is having a baby? She ... (make) a great mother, I’ve no doubts.   Should it be will or is going to? And why exactly?


Does piling up downvotes help the site in any useful way?

I am new here, but I’ve noticed  that downvoting on this site tends to be quite virulent with respect to off-topic questions or questions which probably  are  poorly formulated.   Though I understand the therapeutic nature of up/downvoting in motivating users in doing better, I really wonder if an excessive use of this feature actually makes  it less effective in the end.   A few examples in the last couple of days:     -8  -10  -13  -10


What is the difference between 'to be' and ' to become'?

I want to know the difference between 'to be' and 'to become'.  There are two sentences below   I want to be a president. I want to become a president.   I think the two sentences are same. If not, what is the difference in meaning? What do you think of this?


Suppose two players in a game of poker (assume Texas Hold'em) have cards with the same values. For example, Player A and Player B have the cards 4 & 9. The board shows a 2,3,4,7, and 8 face up.  Who would be the winner, Player A or Player B?


Displacement currents, aren't really currents?

I'm confused with this definition of displacement currents within capacitors via Wikipedia:     However it is not an electric current of moving charges, but a   time-varying electric field.   It's a time-varying electric field, but there isn't any actual flow of current, while at the same time... it produces a magnetic field. It's counter-intuitive.  If air was in the center between the plates, it's possible to have some "current flow" due to atoms within the gas molecules, likewise, for a dielectric.  Yet, displacement currents aren't considered "real/free" current. Could someone clarify this confusion for me.  How significantly different are displacement currents from normal/free currents?


Any module is projective iff any module is injective

Show that the following are equivalent for a ring:  (1) any $R$-module is projective.  (2) any $R$-module is injective


How do I recursively grep through compressed archives?

I'm trying to find out what modules  in cpan. So I've used  to mirror it. My problem is that I need to iterate through the archives that are downloaded, and grep the files that are in the archives. Can anyone tell me how I might do this? preferably in a way that tells me which file in the archive and what line it's on.  (note: they aren't all tarballs some are zip files)


I've got PostGIS installed and would like to create a web application to do some simple edits:   Draw manually (over a Basemap) points, lines and polylines, using snapping  points (points, end of lines, intersections, center of circles)  Delete points, lines and polylines  Rotate a line or group of lines around a point  Move a line or group of lines with a base point  Move polylines and points (manually and to a point given by the coordinates) Edit position of vertices of polylines and lines (manually and to a point given by the coordinates)  Create buffers around points, lines and polylines    Which is the best way to do this via web? Is there any already-built JavaScript library?


If I open a Blender file and the UI looks weird, can I move/close the UI elements to make it look like the default?

I downloaded a Blender file and opened it, and the UI looks very weird as the screen capture below. If it were other applications, like Visual Studio or something, most applications support intuitive drag-moving or closing of UI elements (like panels), but Blender works in so confusing way.  I have discovered that it has "Load UI" option in the Open dialogue, but what if I opened the file by double-clicking it. Is there a way to move/close the UI elements once it is opened, or is unchecking "Load UI" the only way?  I mean, for example, in the screen below, how can I move the Outliner from the top-left to top-right? Or How can I move the Properties from bottom to bottom-right? You know like the default Blender 2.81 UI.


I have been wanting to learn about linear algebra (specifically about vector spaces) for a long time, but I am not sure what book to buy, any suggestions?


How did this character come to be in the Nethersphere?

How is it that       The Master   Came to be in the Nethersphere?  The last time we saw him      He died and refused to regenerate.  The Doctor even cremated his body.   So, given what previously happened to him, how was he now able to      Regenerate as Missy and take over the Nethersphere?


I have built my house in Minecraft PE, and I have a ton of fences and sticks, but I need to know how big of a perimeter I need to let me sleep at night?


Lost minibuffer message in emacs when disable/enable modes

I recently updated some packages for my emacs 24.3 under Windows, and I found strangely that the mode change messages used to be shown in minibuffer is gone, e.g., before update, when i enable or disable any minor mode, there is a message showing up in the minibuffer saying: xxx-mode is disabled. but now, this message is gone, although i can still check if the mode is disabled or enabled in the mode line. But it not as obvious by displaying a message in minibuffer.   anyone knows what can be the cause? thanks


Near the end of Captain America, Tony Stark discovers      the video where Bucky kills his parents.   Then he asks Cap' if he knew. He says yes.  How does he know?      I can't remember Bucky telling him. Is there any official answer?


Precision of double when reading from file

I'm trying to read double values from a file into a std::vector. However, I've noticed that the values do not match what is on the file, but has a slight but consistent shift of ~0.000000007. Is this normal? #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <vector>   std::vector< double > readFromFile(const std::string& file_name) {     std::vector< double > values;     std::ifstream file(file_name.data(), std::ios::in);     file.precision(9);   // makes no difference     double value = 0.0;     if (file.is_open()){         while (file >> value) {             values.push_back(value);         }             file.close();     }     return values; }  int main(int argc, char const *argv[]) {      auto vals = readFromFile("src/samples.txt");      std::cout.precision(9);     for (auto& val : vals) {         std::cout <<  std::fixed << val << std::endl;     }      return 0; }  My samples.txt: 1595519203.966806166 1595519204.000087015 1595519204.033377640 1595519204.066651098  And the code output: 1595519203.966806173 1595519204.000087023  1595519204.033377647 1595519204.066651106  This is something I have never dealt with, and am left wondering if the issue is in how the file is read, or in how I am printing it.


What happens if I unsubscribe from Apple Music, then resubscribe at a later date?

I want to cancel my apple music subscription for now, but may want to bring it back this summer. Will all the music I added be permanently removed when I unsubscribe, or will re-subscribing retrieve all my previous music?


i want to list all the functions in one module but i'm stuck on an point. i just get only the functions in __init__.py  but not all the functions in the package. this is the code what i al ready have made:  import package functions = [] for i in dir(package):     functions.append(i) print(functions)   so now i get a list of all functions in __init__.py but not over the whole package. how to get all the functions in 'package'? i want to get it like this:  import package functions = [] for i in dir(package):     #here like adding function and then make package function.other_package print(functions)   can someone help me plz?     it is not a duplicate becuse i not want a doc but just only all the functions of all the files in a package


My blog has a content div with an id of #content. When I select it, e.g. with Firebug it outlines the full height of the div, with all its padding and margins at the top and the bottom.   jQuery height() returns only the inner height of the element itself.  How can I query the full height of the element? If there are other elements with a lot padding and margin in them I want all of it added up and as one value.  Which method should i use?


Prove the converse to Hilbert basis theoren:     If the polynomial ring $R[x]$ is Noetherian, then $R$ is noetherian.


I have a problem with Ubuntu. I can't log in within LightDM, because when I enter password, Unity starts loading and then it returns right to login screen, and the desktop won't start.  Note: I use home folder for that user from previous installation  Edit: I chowned .Xauthority and still nothing When I try startx, there are some noveau messages (HUB0, GPC0 and hex numbers) Edit2: guest session works and newly created user also works


How to loop trough second level deserializeUntyped Json String

PLEASE NOTE: deserializeUntyped not deserialize! I currently loop trough a jsonPayload which is working fine for the nodes of the first level.How can I achieve this for the node(s) of the second level without knowing the Keyset names as the first level. Please note that deserialize would not work since the Json is not known beforehand. I would like for the second level to end up with the corresponding nodes something like string levelResource_1 = '{   "Opp": [     {       "Oname": "Opp1",       "CLdate": "02-02-2021",       "Aname": "0019Y00001GAZDxZLX"     },     {       "Oname": "Opp2",       "CLdate": "03-03-2021",       "Aname": "0019Y00001GAZDxZLX"     }   ] }'  Currently working jsonPayload example:     {   "Accts": [     {       "jname": "Alice",       "P": "+00 0600000000",       "Showstopper": true,       "Empl": "1-10"     },     {       "jname": "Ben",       "P": "+00 0611111111",       "Showstopper": true,       "Empl": "11-50"     }   ],   "Cont": [     {       "lname": "Anton",       "Ph": "+00 0600000000"     },     {       "lname": "Bjorn",       "Ph": "+00 0611111111"     }   ] }  jsonPayload I want to traverse trough     {   "Accts": [     {       "jname": "Alice",       "P": "+00 0600000000",       "Showstopper": true,       "Empl": "1-10",       "Opp": [         {           "Oname": "Opp1",           "CLdate": "02-02-2021",           "Aname": "0019Y00001GAZDxZLX"         },         {           "Oname": "Opp2",           "CLdate": "03-03-2021",           "Aname": "0019Y00001GAZDxZLX"         }       ]     },     {       "jname": "Ben",       "P": "+00 0611111111",       "Showstopper": true,       "Empl": "11-50"     }   ],   "Cont": [     {       "lname": "Anton",       "Ph": "+00 0600000000"     },     {       "lname": "Bjorn",       "Ph": "+00 0611111111"     }   ] }  My Current apex   Map<String, Object> levelResource_0 = (Map<String, Object>)JSON.deserializeUntyped(jsonPayLoad);        List<List<sObject>> sobjects = new  List<List<sObject>>();     for(String keyLevel_0: levelResource_0.keySet()) {           system.debug('[UploadDocuments]levelResource_0.keySet(): ' + levelResource_0.keySet());                  List<sObject> Newsobjects   = traverseJson(keyLevel_0, levelResource_0);         sobjects.add(Newsobjects);         for(String keyLevel_1: levelResource_0.keySet()) {          //How to get keylevels of second level _1 ?? levelResource_1.keySet()?!         }     }


Do I need to book in advance to see attractions in Italy in October?

I'm planning to go to Italy in around October. I've been told that since Italy is so touristy, it's a good idea to book entry to famous attractions beforehand. Otherwise I may have to wait hours or even miss out.  I generally try to plan my trips to be as flexible as possible so booking and committing to being at a place at a given date is something I would like to avoid if possible.  Some of the attractions I plan to go to include:   Leaning tower of Pisa Colosseum Vatican City  Vatican Museum St Peter's Basilica


Which singular names ending in “s” form possessives with only a bare apostrophe?

Many questions already ask about this topic ( , , etc.) and their answers vary, but they always give exceptions to the apostrophe-s rule, for example:      6.24 The general rule for the possessive of nouns covers most proper nouns, including most names ending in sibilants."   Examples they give include Kansas’s, Ross’s land, and Jones’s reputation. Exceptions include Jesus’  and Moses’.  Which names does this apply to?  Is the Aeneas’  form correct, or is it Aeneas’s instead?


Package reads "2 8in 12vdc LED strips".  Plugged into a car they get hot enough to melt. Plugged into a 12vdc 120mA transformer they work great.   What resistor do I need to bring car amperage down to 120mA?


I am wondering how to turn the following into a question     "Narendra Modi is the 18th Prime Minister of India"   How to ask this as question, so that answer will be  18th  I have tried searching these links but couldn't match my needs.        Some body could help me.. Sorry If I'm vague and dont lambast at me since this is my first post here.


How do I solve this improper integral: $\int_{-\infty}^\infty e^{-x^2-x}dx$?

I'm trying to solve this integral: $$\int_{-\infty}^\infty e^{-x^2-x}dx$$ WolframAlpha shows this to be approximately $2.27588$. I tried to solve this by integration by parts, but I just couldn't get there. I'd be glad if someone could show me how to do it.   I've included my attempt at the problem below:  Note $\int_{-\infty}^\infty e^{-x^2-x} = \int_{-\infty}^\infty e^{-x^2}e^{-x}dx$. Then we can integrate by parts. Let $u(x) = e^{-x^2}$. Then $u'(x) = -2xe^{-x}$. Let $v'(x) = e^{-x}$. Then $v(x) = -e^{-x}$.  Then $u(x)v'(x) = u(x)v(x) - \int v(x)u'(x)dx$, i.e. $$\int_{-\infty}^\infty e^{-x^2}e^{-x}dx = -e^{-x^2}e^{-x} - \int e^{-x}2xe^{-x}dx = -e^{-x^2-x} - 2\int e^{-2x}xdx$$  Then we integrate $\int e^{-2x}xdx$ by parts. We pick $u(x) = x$, $u'(x) = dx$, $v'(x) = e^{-2x}$, and $v(x) = \int e^{-2x} dx = \frac {-1}{2} e^{-2x}$ by u-substitution. Skipping some steps, it follows that  $$\int e^{-2x}xdx = -\frac{1}{4}(e^{-2x})(2x+1)$$ Then  $$ -e^{-x^2-x} - 2\int e^{-2x}xdx = -e^{-x^2-x} + \frac{1}{2}(e^{-2x})(2x+1)$$ Which, when evaluated numerically, doesn't yield the desired result. So there's a problem here. Maybe someone else knows how to do this.


Is it possible to install drivers used on Windows for Ubuntu?

There aren't any drivers for the video card on my computer or for SiS in Ubuntu repositories and I know that it is poorly supported or one of least supported. I also have Windows installed and on Windows the drivers are installed and available.  Can I use wine or PlayOnLinux to install those drivers from Windows so that I have the drivers installed on Ubuntu?  Is that possible?    I have Ubuntu 12.04 beta so far and Ubuntu 11.10 installed  My video card is:   01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 771/671 PCIE VGA Display Adapter (rev 10)   From a previous question that I asked


Ubuntu latest LTS is now released, why can't I upgrade from previous LTS? And how can I force the upgrade?

Ubuntu Server 16.04 is now released.  I have Ubuntu (server) 14.04.4 LTS, but when I try to do a do-release-upgrade it tells me that there are no upgrades available.     Why? How can I upgrade my server so I get the new awesomeness?     lizzard@lounge:~$ uname -a Linux lounge 4.2.0-34-generic #39~14.04.1-Ubuntu SMP Fri Mar 11 11:38:02 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux  lizzard@lounge:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 14.04.4 LTS Release:        14.04 Codename:       trusty  lizzard@lounge:~$ do-release-upgrade  Checking for a new Ubuntu release No new release found


Missing bond type in chemical rendering packages?

I've read all the questions regarding chemical structure rendering that I could find on this website. I've decided to use chemfig to render the structures.  One certain type of bond, illustrated below, is missing from every chemical structure rendering package. How would I make the following type of bond?


Can moving tables to another MySQL database help performance?

I want to know if I using different databases can help performance.  I have one big table support_chat with more than 5 million rows. I need to scan this all the time (3s with ajax) to check new messages on support.  If I move this table to another database in the same computer, can it help anything? (let users, sells, comments table faster)  For example:  db1  users table sells table comments table support_chat table // move this table to db2   db2  support_chat table   They want to keep old things due legal reasons, to have a user support history.


He called her, emailed her, texted her, tweeted her—all to no use.   Strictly speaking, I would need to write texted her and tweeted her, but I'm omitting and to convey a rhythm and sense of urgency. What do you call this kind of construction, and is it accepted grammar (at least for creative writing, if not in an academic context)?


How can I try to improve when my account is banned

My Stack Overflow account is banned from answering questions.  I know it is due to my previous answers, which seem spam to the moderator.  However I would like to improve my answers to earn my reputation back, problem is they are not accepting my answers anymore.  So please let me know what I can do?


Comparing two logit or probit curves using a single parameter

I've conducted a psychological experiment on the same subject, under two different condition. For each condition I've collected the number of correct and wrong answer for each stimulus (number of trials per stimulus = 10; number of stimulus = 15). From the data collected I fitted a psychometric curve (probit or logit curve), and now I want to compare the results.  Consider subject 1: His answers are collected in the following matrices  **COND_1**     correct cnt   Y  N   1   0 10   2   0 10   3   0 10   4   0 10   5   0 10   6   0 10   7   1  9   8   4  6   9   5  5   10  7  3   11  8  2   12  7  3   13 10  0   14 10  0   15 10  0  **COND_2**     correct cnt   Y  N   1   0 10   2   2  8   3   2  8   4   3  7   5   2  8   6   4  6   7   8  2   8  10  0   9   8  2   10 10  0   11  9  1   12 10  0   13 10  0   14 10  0   15 10  0  COND_1.1 <- matrix(c(0, 2, 2, 3, 2, 4, 8, 10, 8, 10, 9, 10, 10, 10, 10, 10, 8, 8, 7, 8, 6, 2, 0, 2, 0, 1, 0, 0, 0, 0), byrow=F, ncol=2)  COND_1.2 <- matrix(c(0, 0, 0, 0, 0, 0, 1, 4, 5, 7, 8, 7, 10, 10, 10, 10, 10, 10, 10, 10, 10, 9, 6, 5, 3, 2, 3, 0, 0, 0), byrow=F, ncol=2)  cnt <- seq(from=0, to=1.4, by=0.1)  ddprob.1.1 <- glm(COND_1.1 ~ cnt, family = binomial(link = "probit"))  ddprob.2.1 <- glm(COND_2.1 ~ cnt, family = binomial(link = "probit"))     Observing the plot, you can surely say that performance under condition 2 is better then the performance under condition 1. In fact if you compute some parameters like AUC, p25, p50, p75 (the value of the stimulus at which the number of correct answers are 25%, 50% and 75% each) [threshold parameters], you'll see that:  COND_1      COND_2 AUC    <    AUC p25    >    p25 p50    >    p50 p75    >    p75     Now consider subject 2:  COND_1     correct cnt   Y  N   1   0 10   2   0 10   3   0 10   4   0 10   5   3  7   6   3  7   7   4  6   8   5  5   9   9  1   10  9  1   11 10  0   12 10  0   13 10  0   14 10  0   15 10  0  COND_2     correct cnt   Y  N   1   0 10   2   1  9   3   0 10   4   4  6   5   2  8   6   6  4   7   4  6   8   7  3   9   4  6   10  7  3   11  7  3   12 10  0   13  9  1   14 10  0   15 10  0   COND_1.2 <- matrix(c(0, 0, 0, 0, 3, 3, 4, 5, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 7, 7, 6, 5, 1, 1, 0, 0, 0, 0, 0), byrow=F, ncol=2) COND_2.2 <- matrix(c(0, 1, 0, 4, 2, 6, 4, 7, 4, 7, 7, 10, 9, 10, 10, 10, 9, 10, 6, 8, 4, 6, 3, 6, 3, 3, 0, 1, 0, 0), byrow=F, ncol=2) cnt <- seq(from=0, to=1.4, by=0.1)  ddprob.1.1 <- glm(COND_1.2 ~ cnt, family = binomial(link = "probit")) ddprob.2.1 <- glm(COND_2.2 ~ cnt, family = binomial(link = "probit"))   The plotted curves are shown in the image below.    Can you say what performance is better? Under condition 1 or under condition 2? Extrapolating AUC, p25, p50, p75, you have:  COND_1      COND_2 AUC     >   AUC p25     >   p25 p50     =   p50 p75     <   p75   So my question is: Is there a method to say that a generic curve (logit, probit or whatelse) is HIGHER then another? Is there a method to compare (a single number of "performance") that describe the differences of the two curves? My example shows that AUC, p25, p50, p75 are not good parameters. I'd like to compute a single numeric parameter for each curves, to make a simple t-paired test, extrapolated from the distribution seen.


Is there a way to avoid anonymous user can see a node of a specific content type?

Is there a way to avoid anonymous users can see nodes of a content type, like a block or a view?  I can control the access with a view, but if I know the link for a node, I can  see it without first logging in.


How to mimic a full outer join using mysql views?

I have all kinds of views in mysql with employee data.  I have tried to use methods like this - but they simply don't work for views.    I end up getting more of a LEFT JOIN as a result.  Is there a way to merge two views without including duplicates in mysql - I am currently using a 4 view process to duplicate this.


Proof that an automorphic injective hol. mapping on a bounded domain given one point being the identity implies the whole mapping is too

Let $\Omega$ be a bounded domain and let $\phi$ be an injective holomorphic mapping of $\Omega$ to itself.   The proposition I would like to prove is:      If $ \exists a \in \Omega$ s.t. $\phi(a) = a$ and $\phi'(a) = 1$,   $\phi$ must be the identity.   A given hint was: Write the power series for $\phi$ centred at $a$ as:  $$\phi(z)=a+(z-a)+ \text{ higher order terms}$$  and consider $\phi, \phi \circ \phi, \phi \circ \phi \circ \phi, \dots$. Estimate the coefficient of the first nonzero term in the power series after the linear term, assuming that it exists, and show that it must in fact be zero. Unfortunately however, I'm not quite certain how to proceed with this hint.


Conditional expectation of the sum of three dice rolls given the sum of their maximum and product

Consider the random experiment in which three fair dice are rolled simultaneously (and independently).  Let $X$ be the random variable defined as the sum of the values of these three dice.  Let $Y_1$ be the maximum of the three values, let $Y_2$ be their product, and let $Y=Y_1+Y_2$.  Finally, define $Z=E[X∣Y]$ (the conditional expectation of $X$ given $Y$).   Find the expected value of the random variable $Z$. Enter your answer as a fraction, such as $\frac{3}{2}$.  I would like some help on where to start this problem, please. I know $X$ can be any value between $3$ and $18$ and $Y_2$ could be (most of the values) between $1$ and $216$; i.e., $Y_2$ will never be $7$, $11$, $13$, etc. since those numbers are prime and are greater than $6$.  Thanks!


Im relatively new to QGIS and would like to know whether or not I can save my form annotations to a layer so I can turn them on or off.


I am running Ubuntu 18.04.1 on Virtualbox on a Windows 10 host and I can't figure out how to get the screen to take up the full window. I've tried installing virtualbox-dkms and virtualbox-guest-dkms in the terminal and it didn't work.


Prove $(\sum_{i=1}^{n}X_{i},\sum_{i=1}^{n}X_{i}^{2})$ is not a complete statistic for $N(\mu,\mu^2)$ distribution

Let $X_{1},\ldots,X_{n}\stackrel{\text{ i.i.d }}{\sim}N(\mu,\mu^{2})$.  $T=\left(\sum_{i=1}^{n}X_{i},\sum_{i=1}^{n}X_{i}^{2}\right)$ is a sufficient statistic for $\mu$. Also $T$ is minimal sufficient.  However, the question is: Prove that $T$ is not complete, hint: use $f(x,y)=x-2y^{2}/(n+1)$.  To prove that $T$ is not complete, I must find an example of a Borel function, $f$, for which $E_{\theta}(f(T))=0$ does not imply $f(T)=0$. However, I do not know how to interpret the 'hint', since I only can conclude that $f(T)=0$, whenever using $x=\sum_{i=1}^{n}X_{i}$ and $y=\sum_{i=1}^{n}X_{i}^{2}$ and calculating $E_{\theta}(f(T))=0$.


Performance of google map tile creation processes

I know that question is rather vague but please bear w/me.  I'm trying to get an idea of what sort of product performance - specifically timing - people have seen for various methodologies they have used to create google/bing map tiles.  There are a slew of methods for how to do this (e.g. gdal2tiles, FME, maptiler, etc).  An initial attempt at simply taking a large PNG and creating tiles using imagemagick, on a pretty decent linux server, yielded some pretty long processing times and so I wanted to see what other people are using in production.  New tiles would need to be generated at least daily and so turnaround time on this is pretty critical.  The only real requirement is that it can run on a linux server.  Obviously, free is better but I don't want to restrict myself to that.  The input can be raw gridded/raster data or a large image.  The output needs to be image tiles capable of being used as-is in google or bing maps.  Just for the sake of comparison, I'll say that the timings should be for google map's zoom level 7.    I appreciate everyone's help and again I want to apologize for how vague this question probably seems.  UPDATE: As far as the inputs, I currently have multiple (raw) data sources in various formats: netCDF, GRIB, GRIB2.  In addition to the raw data itself, I also have the ability to generate really large images of that data which could then be sliced/tiled.  Ideally, I would just be chopping the image up but I am willing to try whatever will get me the fastest results.


If two individuals were considering marriage after college, what would the actual tax benefits be? Both are male. Both have full time jobs. In the United States.


What do I do when I reset a device and it says I have to sign in with a Google account that was previously synced on this device it's Alcatel Pixi 4

Help Please help me I bought this phone from a friend and I factory reset it and this is what shows up


I am studying $L^p$ spaces and I ve found this exercise I could not solve.  Let $f$ $L^p(\mathbb{R}^n), 1 \le p < \infty$ then $\|f(x + h) - f(x)\|_{L^p} \to 0 \Leftarrow |h| \to 0.$  It supposed to be easy since the continuos functions with compact support are dense in $L^p(\mathbb{R}^n)$ but I don't how to use this to conclude the result.  I tried to do:  Given $f \in L^p(\mathbb{R}^n)$ there existis a sequence $(f_n) \in \mathcal{C}_c(\mathbb{R}^n)$ such that $\|f_n - f\|_{L^p} \to 0 \Leftarrow n\to \infty.$  $\|f(x + h) - f(x)\|_{L^p} \le \|f(x+h)-f_n(x)\|_{L^P} + \|f(x) - f_n(x)\|_{L^p}.$  So, I can work with the second right term, but I have no idea what to do with the first.  Thanks


We always say that the earth orbits the sun, but how can we prove this? Could we not say that the sun orbits the earth or that the earth orbits Mars?


Would two perfectly smooth surfaces of metal atoms bond together?

If you could take a cube of metal (say one inch in size), which was a single crystal (not sure of that's important for this question) and somehow separated it down the middle to leave to two perfectly "flat" surfaces of metal atoms. Assuming they are in a perfect vacuum, if you brought the two back together again would they fuse into one cube again? Would you need to put in any energy for this fusing together to happen, i.e. would they repel each other initially?  I had first thought of asking this question by saying if you polished two metal cubes but then thought that the crystal faces might be different between the two cubes.


I guess I've been in mathematics for far too long, and I tend to use the phrase "Not all is lost" as the negative of "All is lost".  To me the phrase "All is not lost" suggests that nothing is lost. It doesn't send the message I'm trying to give which is that "at least one thing is not lost".  What's your interpretation of the two phrases?


Why is the partial trace of this subsystem equal to this?

I am doing my bachelors dissertation based on an article by David Deutsch. He defines the action of a quantum gate as: $$ U = \sum_{x, y \in \mathcal{Z}_{2}} |x \dot{+}y\rangle|y\rangle\langle x|\langle y|  $$ where $\dot{+}$ is the OR operator from boolean algebra. Then, according to me: He then takes the partial trace:  $$ \text{Tr}_{2}[U(|\psi\rangle\langle\psi|\otimes\hat{\rho})U^{\dagger}] $$  and it is equal to: $$ \frac{1}{2}\hat{I} + \text{Re}[(\langle 0|\psi\rangle\langle\psi|1\rangle)(|0\rangle\langle 1|+|1\rangle\langle 0|)] $$  EDIT: where does the $\frac{1}{2}\hat{I}$ comes from?


What is the difference between yuri and shoujo-ai, yaoi and shounen-ai and ecchi and hentai anime genre?

Yuri and Shoujo-ai are anime themes which are related to girl-to-girl relationship, while yaoi and shounen-ai are related to boy-to-boy relationships. But what are their distinct difference? When can you call a specific girl-to-girl anime a yuri or shoujo-ai? When can you call a specific boy-to-boy anime a yaoi or shounen-ai?  Plus, what is the distinct difference of ecchi and hentai anime? I just know that they are both for adults only-theme anime. When can you call a specific anime an ecchi or hentai?


In his 1984 paper , Paul Holland raised one of the most fundamental questions in statistics:     What can a statistical model say about   causation?   This led to his motto:     NO CAUSATION WITHOUT MANIPULATION   which emphasized the importance of restrictions around experiments that consider causation.  Andrew Gelman makes :     "To find out what happens when you change something, it is necessary to change it."...There are things you learn from perturbing a system that you'll never find out from any amount of passive observation.   His ideas are summarized in .  What considerations should be made when making a causal inference from a statistical model?


Conditionally enabling systemd files through Debian packaging

I've created a  package which installs a service.  On our embedded devices, I want this package to automatically enable the service.  On our developer workstations, I want the developers to systemctl start foo manually (it's a heavy service, and so it just consumes resources if run all of the time on a desktop environment).  How can I go about prompting the user for their decision during the apt-get step? Is that the best solution?  Note, I've created the package using dh_make and debhelper and enabled it with:  %:     dh $@ --with=systemd  override_dh_systemd_enable:     dh_systemd_enable --name=foo foo.service


So I have this small bit of code  import java.util.Comparator; public class PersonFullNameComparator implements Comparator<Person> {     @Override     public int compare(Person arg0, Person arg1) {         return arg0.getFullName().compareTo(arg1.getFullName());     } }   I was reading about singletons earlier and don't quite get it, I am not sure where to go or start.  So how would I make this a singleton? Just this class.  Edit: It's just for practice, not doing anything very practical with it. More curiosity due to examples unlike it.


I have a shapefile containing civic numbers. For each number there are string values of street name and civic number. During the editing it happens that I make typing mistakes and at the end of the work I find some duplicate points, i.e. two or more civic numbers on the same street.  How can I easily find these duplicates in order to export them to another shape using QGIS?


If a Slow spell ends due to a failed concentration (CON) saving throw, does the attacker get to make any remaining attacks?

The Slow spell (PHB 277) requires concentration and states the following:     Regardless of the creature's abilities or magic items, it can't make   more than one melee or ranged attack during its turn.   Suppose a PC or monster who could normally make more than one attack is affected by the Slow spell, takes the Attack action, and hits the spell's caster, who then fails their concentration check, causing the Slow spell to end.  Does the attacker then get to take their remaining attack(s) because the slow spell is no longer in effect, or do they still only get 1 because the Slow spell was in effect at the time they took the Attack action?


Searching for “fasting” on Medical Sciences does not reproduce reliable results

On , I wrote an answer in which I recommended:  Instead, why not post on Medical Sciences? I was going to say there are  containing the term “fasting” but many of the results are variants on the adjective “fast”, which is quite annoying.  And can I add, also bewildering? I knew better than to search for “fast“ because it is a verb and an adjective. I feared I would also get results containing “fasten” but searching for the noun form fasting–I thought–would narrow the field and produce reliable positive results. Not so, among the many many false positives were things such as:  Is this an indication that my body metabolizes caffeine faster (or slower?) …the chemicals decompose faster before they can cause massive change to their environment. Don't speak fast or act in any way that could frighten the victim. in what way is losing weight faster than this unhealthy? Will taking zinc for colds make my colds go away faster? I'm wondering if our bodies adjust to the constant showering by producing oils faster. One 1998 study shown that microwaving food can lead to faster breakdown of vitamin B12 Since the body cannot get blood to the highest point (brain) fast enough, it cannot function.  I found only one result on the first page, showing a total of fifteen posts, that contained the actual term fasting.  Three randomized controlled clinical trials of fasting in humans were identified, and the results were published in 5 articles, all of … which evaluated the effects of fasting on surrogate outcomes.  What should I have done? If I had also included the terms "diet" and "healthy“ in the search box that would not have improved the results by all that much, and in the post actually containing the term fasting only the term “healthy” is used. Shouldn't the term “fasting“ be easy to find on a Stack Exchange site dedicated to health?


Can I use Stack Overflow as a product support community?

Before I start this may be a   I was thinking about open-sourcing a framework I've built up over the years. Probably on github or google code but I really dislike the github communication flow also google code communication is all pretty mailing-list based which I'm never a fan of, I'd probably occasionally check the messages on GH or GC but I'd be much more responsive if I could support it here and encourage people this direction.  I know that this seems a bit like outsourcing a forum but personally I'd imagine that half of the potential users of the framework would already be here and would also find it better than to have to go signup somewhere else or open another mail folder to filter a deluge of mailnglist thoughput.   Is this in SO's interest or should this be a github thing?


Find the solution of the functional equation $f\colon ℝ\to ℝ\:$ $$f\left(x\right)+a=f\left(x+b\right), \quad\forall x\in\mathbb{R}$$ where $a$ and $b$ are fixed real numbers and $b$ is a positive real number. I suppose that the answer is $$f\left(x\right)=cx+d+g\left(x\right)$$ for every $x$ real number, where $g\left(x\right)$ is a periodic function. I found by induction that $$f\left(x\right)+ka=f\left(x+kb\right)$$ for every $x$ real number and $k$ integer. However I could not find a complete proof for this. Can somebody help me out?


Function in Child Theme not overriding Parent Theme function

I have read up on this and tried it myself, but I cannot seem to figure out how to override a parent theme function using my child theme.  I need to know what I am doing wrong (and I am sure there are several wrong things).  Here is the function in the parent theme:  function html5_insert_image($html, $id, $caption, $title, $align, $url, $size, $alt) {     $url = wp_get_attachment_url($id);     $src = wp_get_attachment_image_src( $id, $size, false );     $html5 = "
";     $html5 .= "";     if ($caption) {          $html5 .= "
$caption
";     }     $html5 .= "
";     return $html5; } add_filter( 'image_send_to_editor', 'html5_insert_image', 10, 9 );   Here is the function in the child theme:  function remove_html5_insert_image(){     remove_filter('init','html5_insert_image',1); } add_action('after_setup_theme','remove_html5_insert_image');


How to trigger ajax Form API action by js

In a custom form you can add an #ajax property, e.g.  $form['some_element'] = [     '#type'  => 'textfield',     '#title' => 'Foo',     '#ajax'  => [ 'callback' => 'foo_callback',                   'wrapper'  => 'some_dom_id' ], ];   On this element, drupal will attach a behaviour to some_element's blur event. The behaviour submits the whole form, captures the response and uses it to replace the contents of some_dom_id.  I'm making a custom form element type and at a certain point (determined by non-Drupal js) I want to perform a Drupal AJAX update to the form without submitting it, just replacing a certain element; i.e. I want the 'normal' drupal behaviour, except I can't use the #ajax key to fire it.  What js should I run to do a Drupal ajax-submit-form?  I've tried attaching #ajax directly onto my custom element  So I've tried adding the #ajax bit onto my form element in element_info, but this does not attach the behaviour to my custom form element. I didn't think it would - can't really see how Drupal would know how to. Perhaps there's a way I can implement this on my custom element?  Adding #pre_render => [ 'ajax_pre_render_element' ] to my hook_element_info seems to add the ajax behaviour, but I don't get the whole form submitted (just a long list of ajax_html_id[] entries and page state lists of css,js files and the theme token and the submitting element; the other inputs are not included?  I've tried using a second 'normal' form element and hiding it  Yes this works, but it's a mess. Be a bit less messy if I could figure out how to add form elements within a custom form element implementation but that would be another question.  EDIT  I can't remember the details of why I asked this question now! But reviewing it threw up  which seemed to have the key info needed to get around this problem.


After trying to fix sound "Unable to correct problems" error

I have been trying to get sound working on 14.04. It looks like now I've done something even worse, after following:    I tried to do the following command sudo apt-get install alsa-base I got the following error  michael@michael-All-Series:~$ sudo apt-get install alsa-base Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies.  alsa-base : Depends: linux-sound-base but it is not going to be installed E: Unable to correct problems, you have held broken packages.


How can I automate the email signup and verification process using selenium?

I have to automate the email signup and verification process using selenium. Any suggestion?Thanks in advance.


This question was part of my linear algebra assignment and I was unable to solv eit. SO, I am asking you for help.  Consider the vector space V of real polynomials of degree less than or equal to n. Fix distinct real numbers $a_0 , …, a_k$ . For $p \in V$ define $max${${|p(a_j)| : 0\leq j \leq k}$} . It defines a  norm on V if:  A only if k<n B only if $k\geq n$ C if $k+1 \leq n $ D if $k\geq n+1$ I tried thinking on which result / reasoning I should use but I am clueless on when the norm will not be defined . Can you please help me through it?