Show that $V_1 \cup V_2 = V$ implies $V_1 = V $ or $V_2 = V$

I'm troubled with the following question:  $V_1$ and $V_2$ are subspaces of $K$-vector space $V$. Show that $V_1 \cup V_2 = V$ implies $V_1 = V$ or $V_2 = V$.  I don't understand why $V_1$ or $V_2$ is supposed to equal $V$ when $V_1 \cup V_2 = V$ shows that they are subsets.


Piping output causes python program to fail

I have the following simple program:  # -*- coding: utf-8 -*-  GREEK = u'ΑΒΓΔ ΕΖΗΘ ΙΚΛΜ ΝΞΟΠ ΡΣΤΥ ΦΧΨΩ αβγδ εζηθ ικλμ νξοπ ρςτυ φχψω'  print GREEK   Running this on the terminal produces, as expecte:  $ python test.py ΑΒΓΔ ΕΖΗΘ ΙΚΛΜ ΝΞΟΠ ΡΣΤΥ ΦΧΨΩ αβγδ εζηθ ικλμ νξοπ ρςτυ φχψω   But piping the output to another program, causes an error:  $ python test.py | less  Traceback (most recent call last):   File "test.py", line 5, in <module>     print GREEK UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128) Traceback (most recent call last):   File "ddd.py", line 5, in <module>     print GREEK UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)    Why is this failing? Why is redirection affecting the way the program is run? I would have expected that a program run in the shell is always redirected: sometimes to a terminal program, sometimes to another program (less in this case). Why is the "destination" program affecting the execution of the source program? What can I do to make sure that the program runs independently of whether it is sent to the terminal or to another destination?


Do "Best by: XX-XX-XX" foods have an expiration date?

How long will foods that have "Best by: XX-XX-XX" on the product last past that date?  I have tried looking online, and all I can find is anecdotal evidence, which isn't very assuring for me since there seems to be no specific "x food will expire y weeks after its best by date".  Is there a rule of thumb or some guide out there that can tell me how long a "best by" food will last? Or is it safe to assume that they never expire, since it's not actually labelled on the product?


What is the term for both sided thinking?

I see both sides in everything. What would one call this type of thinking?


I'm brand new at electronics, and brand new at Arduino. I know very little about eighter, so please bear over with me... :-) To top it of, this is my very first post here on Electronics.  I'm working as a frontend developer, and my first Arduino project is about controlling a slot car via a website.  I can turn an LED on and off, remotely from a website, and I have connected the slot car to the Arduino, like I connected the LED, but of course there isn't enough power to get it running very fast. I does run, but sloooow... :-) I used a digital multi meter and saw that there were only 2V in the tracks, compared to 14.8V when plugged in the wall.  With my very limited knowledge of electronics, I was wondering if I could plug the slot car into the normal power socket, and somehow control how much power that goes into the tracks with Arduino.  How do I do that? With a resistor? Or?  Thank you in advance.


Moving all files to a new computer, my concern is links

I'm moving all files to a new computer, via an external hard drive. I am certain that broken links will be a concern. What can I do to fix this? Is there a 'Best Practices' kind of way to prevent this problem beforehand? I have many hundreds of .blend files, and of course, I fear losing them.


Is the set of partial order relations over $ \mathbb{N}$ countable? I think it's uncountable but don't know how to prove this. I would be very helpful if someone could also give some kind of a strategy for proving uncountability, in particular how to find injective or surjective functions that help proving this.


Print specific lines of a file in Terminal

This seems pretty silly, but I haven't found a tool that does this, so I figured I'd ask just to make sure one doesn't exist before trying to code it up myself:  Is there any easy way to cat or less specific lines of a file?  I'm hoping for behavior like this:  # -s == start && -f == finish # we want to print lines 5 - 10 of file.txt cat -s 5 -f 10 file.txt   Even something a little simpler would be appreciated, but I just don't know of any tool that does this:  # print from line 10 to the end of the file cat -s 10 file.txt   I'm thinking that both of these functionalities could be easily created with a mixture of head, tail, and wc -l, but maybe there are builtins that do this of which I'm unaware?


Short story about humans serving as hosts to the larval stage of insects

I read this story in a sci-fi paperback magazine probably in the 1970s or 1980s, but it might have been published much earlier.  It begins with a conversation between two young men (brothers?), the older of whom, it eventually transpires, has taken the place of the younger in serving as a host to insect-type creatures.  The insect-types are the main form of life on the planet, and use the human interlopers/colonizers as hosts for the larval stages of their    young. Must have pre-dated the "Alien" movies because when I read it the idea of humans serving as larval hosts was new to me. Don't remember how the story ends -- whether the emergence of the larva kills the human host.


FORTRAN is faster than C - for a matrix multiplication program running on a same processor, why?

I was running n*n matrix multiplication code using C and FORTRAN on a xeon processor system. I was surprised to see the real time difference between the two approaches. Why did the FORTRAN code gave me a faster execution time? I was using dgemm() and called the same function from my C code. I tried to run the general C code changing the loop order and trying with different flags for optimizing the simulation process. I couldn't reach the same response obtained by using dgemm().   FORTRAN code - dgemm():  #include "stdio.h" #include "time.h" #include "sys/time.h" #include "math.h" #include "stdlib.h"  long long readTSC(void) {  /* read the time stamp counter on Intel x86 chips */   union { long long complete; unsigned int part[2]; } ticks;   __asm__ ("rdtsc; mov %%eax,%0;mov %%edx,%1"         : "=mr" (ticks.part[0]),           "=mr" (ticks.part[1])         : /* no inputs */         : "eax", "edx");  return ticks.complete; } volatile double gtod(void) {  static struct timeval tv;  static struct timezone tz;  gettimeofday(&tv,&tz);  return tv.tv_sec + 1.e-6*tv.tv_usec; }  void dgemm (char *transa, char *transb, int *x, int *xa, int *xb, double    *alphaa, double *ma, int *xc, double *mb, int *xd, double *betaa, double *msum,   int *xe);  int main(int argc, char** argv)  {    int n = atoi(argv[1]);    long long tm;    //disabling transpose, disabling addition operation in C :=       alpha*op(A)*op(B) + beta*C  char trans='N';  double alpha=1.0;  double beta=0.0;    long long int p=2*n*n*n;  long double q;  double *a,*b,*sum;  double t_real,t,flop_clk,flops;  int i,j,k;   //memory allocation  a=(double*)malloc(n*n*sizeof(double));  b=(double*)malloc(n*n*sizeof(double));  sum=(double*)malloc(n*n*sizeof(double));   //Matrix Initialization  for (i=0;i<n;i++)   {     for (j=0;j<n;j++)     {        a[i+n*j]=(double)rand();       b[i+n*j]=(double)rand();       sum[i+n*j]=0.0;     }  }  //Clock cycles computation using timing2 function and t_real using timing1   function   t = gtod();   tm = readTSC(); //dgemm function call  dgemm(&trans, &trans, &n, &n, &n, &alpha, a, &n, b, &n, &beta, sum, &n);  tm = readTSC() - tm;  t_real = gtod() - t;  return 0;  }   C Code simply take sum=0 and then   for (i=0;i<n;i++) {   for (k=0;k<n;k++)   {     for (j=0;j<n;j++)     {       sum [i+n*j] +=a[i+n*k]*b[k+n*j];     }   } }    Compilation:   icc –o executable program.c for the C code icc -o executable program.c mkl=sequential for the Fortran one   Performance  With matrix order of 5000*5000, I got 4.2 GFLOPS in my code and 21.7 GFLOPS using dgemm().


Pronunciation of words ending with “-tion”

As far as I can recall there are just a few words in the English language which end with the spelling -tion after an 'S' which have a pronunciation ending as 'chan'. But in South Asia, 99% of the people pronounce such words as 'shan'.  I am referring to words like digestion, suggestion, combustion, congestion, indigestion, exhaustion, etc.  But people pronounce the word question correctly as 'chan'.


Jquery click is not working on dynamically added table tr via PHP

I am getting data from my database and displaying it on my HTML via php echo. Now I need to put a click function on specific tr with id breakrow, but this click function is not working. I am using .on function as suggested in documentation for dynamically added content. Also I dont see any error in console also. Here is the sample code. (When I add same code directly into html page, its working as expected)   PHP Part:  echo '

                   customer	                   product	                   thedate	                   value

customer 01

customer 01	product 01	30 10 2017	974.57

customer 01	product 02	04 12 2017	634.50

customer 01	product 03	30 10 2017	974.57

customer 01	product 04	04 12 2017	634.50

customer 02

customer 02	product 01	04 12 2017	634.50

customer 02	product 02	30 10 2017	974.57

customer 03

customer 03	product 01	30 10 2017	974.57

customer 03	product 02	04 12 2017	634.50

customer 03	product 03	30 10 2017	974.57

';   Jquery:  $( document ).ready(function() {      $('#tableMain').on('click', 'tr.breakrow',function(){         $(this).nextUntil('tr.breakrow').slideToggle(200);     }); });   can someone guide me how to resolve this ?


What is the capitalization rule for acronyms?  E.g., why "radar" and not "RADAR" but "NATO" and not "nato"?


Why the kernel doesn't stop processes starving the resources?

I'm running a linux box(ubuntu) and every few months it freezes and I'm left with no choice(SysRq-F and other keyboard shortcuts are not working) but to reboot it losing all the data.   I'm wondering why the kernel is not killing the processe(s) that eats the memory or CPU?   What's the point keeping the system in a frozen/unresponsive state?


Do I need a transit visa in Dubai international airport while changing flights?

I am an Indian citizen traveling from Ukraine to Dubai. After 2.5 hours, I will take another flight from Dubai to Kolkata with a different airline. Would I need a transit visa for this? If yes, then are there any other options? For example, can the meet and greet services help me with my luggage?


How do I draw a scatterplot with a function plot?

I am trying to plot a scatterplot with a fit line that I have already calculated, but I am having trouble getting them to line up and use the same scale. I tried doing it with  \begin{tikzpicture}[domain=0:8] \begin{axis}[xlabel={$\Delta x$ (m)}, ylabel={$Mg$ (N)}]     \draw[color=red, domain=0:1000] plot (\x,{0.0051026+10.372231*\x}) node[below right] {}; \addplot[scatter, only marks, scatter src=\thisrow{class},       error bars/.cd, y dir=both, x dir=both, y explicit, x explicit, error bar style={color=mapped color}]       table[x=x,y=y,x error=xerr,y error=yerr] { x      xerr      y        yerr     class 0.0047 0.0007071 0.054039 0.000098 0 0.0142 0.0007071 0.152651 0.000098 0 0.0237 0.0007071 0.252051 0.000098 0 0.0332 0.0007071 0.350466 0.000098 0 0.0525 0.0007071 0.548380 0.000098 0 0.0622 0.0007071 0.646893 0.000098 0 0.0720 0.0007071 0.746195 0.000098 0 0.0802 0.0007071 0.844709 0.000098 0 }; \end{axis} \end{tikzpicture}   but I am getting a plot that looks like    Can I make the fit line match up with the scatter plot with the type of plot I am using? If not, how can I make this work?


How long should I wait before accepting a PhD admission offer in the US?

I have been offered admission in a top-25 university, and a RA position in a lab that works on my area of interest. I am pretty happy with this offer and I would feel comfortable accepting it. However, I still have not heard back from some top-10 institutions.  I am concerned that the professor might feel upset if I take too long to answer the offer. What should I do?  I should mention that I am an international student applying to Engineering PhD's.


What is the difference between unavailable and not available?  In my opinion, unavailable is something that will never be available, while not available is something that is not available right now but might become available in the future.


Visualforce: Pass javascript variable to controller

I want to pass a javascript variable into the controller of my visualforce page. Using <apex:param value="JAVASCRIPTVARIABLE" /> is throwing me an error because it expects JAVASCRIPTVARIABLE to be an exposed property of the controller. Please tell me how to pass the value of JAVASCRIPTVARIABLE to a variable in the controller. Thanks in advance.


How to add features to a PostGIS layer using Quantum GIS?

I am using Quantum GIS and the PostGIS dbms. I am able to call the PostGIS layer into QGIS but i am unable to add feature to it. I am using the method of adding features to a Shapefile but still it is not getting reflected in the layer, and I don't know how to save it to the PostGIS database if I am able to add the feature to the PostGIS layer.  I may not have used some technical term for this problem because i don't know what to call it, I am expressing the problem in my own terms.


Clear explanation of Conflict of Interest with examples in journal articles

Some journals require you to state the conflicts of interests (if any). According to the Wikipedia definition,      A conflict of interest (COI) is a situation in which a person or organization is involved in multiple interests, financial interest, or otherwise, one of which could possibly corrupt the motivation of the individual or organization.   What exactly is a conflict of interest in the context of journals? How does it affect the publication process? All papers I've read so far has the declaration "The authors declare they have no conflict of interests" in that section. Could anyone give some sample published papers which has a notable conflict of interest in it?


German captions with BibTeX ("und" instead of "and")

If I quote a piece with two authors, I would like to have in the text: "(Spagna und Peattie, 2012)" instead of "(Spagna and Peattie, 2012)". If there are more than two authors, everything is fine again, since "et al." is written. I use the apalike bibliography style. \usepackage[german]{babel} \usepackage[german=guillemets]{csquotes} \usepackage[round]{natbib}   \clearpage\phantomsection \addcontentsline{toc}{section}{Referenzen} \thispagestyle{plain} \bibliographystyle{apalike} \bibliography{referenzen}  Here is an example of a piece with two authors; the citation call-out should use the conjunction "und": @article{spagna2012terrestrial,     title={Terrestrial locomotion in arachnids},     author={Spagna, Joseph C and Peattie, Anne M},     journal={Journal of Insect Physiology},     volume={\textbf{58}},     pages={599--605},     year={2012},     publisher={Elsevier} }


My question is to find the center of GL(2,F) and SL(2,F) where $F=\mathbb{Z},\mathbb{C}$  My attempt:  Generalising the identity element, if we take $\pmatrix{ a& 0\\\ 0& a}$. Then these elements commute with every 2x2 matrix irrespective of which $F$ we take.  So is it safe to say that these are in center of all these groups?


How to run java from console with included big list of jars?

I have some Java program that uses 30 jars.  Today I know that I can do that like:     java -cp 1.jar;2.jar.....;30.jar; MyApplication  -param1 AA -param2 BB   Does it seem messy?  How can I group all jars to one group (file), like Eclipse does with .classpath   Thank you,


By "References", I mean the recommendation letter writers,  For example, the VERY bottom of this CV,   with 4 people.  Can someone point to a CV template with this "references" section? Or maybe what functions should I use to make such effect? (with 2 people on parallel blocks) I find plenty of CV templates online, but none of them has this part.


What is the difference in a normal class who has all concrete methods and an abstract class who has all concrete methods

Suppose an abstract class who has all three methods in it and all are concrete methods, compared with a normal class who has all three methods which are also concrete.   What is the difference between them in an application, because they are now basically serving the same purpose. Why this is permissible?  Take an abstract class, let's say:  abstract class A {     public void open() {}      public void close() {}      public void pull() {} }   And a normal class:  class A {     public void open() {}      public void close() {}      public void pull() {} }   What's the difference between them, because if we remove the abstract keyword then both are same.  Can anyone explain it?


I'd like to generate a linked citation with a full author's name.  For instance, if I use  According to \citet{bob2000} apples are tasty.   And run with hyperref, I get the author's last name and a nice hyperlink to the bibliography. But I want the author's full name!  How can I achieve this? (BibLaTeX is also an option, but equally mysterious on this point.)


How Do I compare text in 2 files and export to file 3?

I have 2 files  1.txt  aab aac aad   2.txt  aaa aab aac   File 3 should contain  aab aac


Restrictions on the amount of cash I can carry when entering the US?

I am a green card holder of USA, and I am travelling to India. While leaving India for the US, I want to carry dollars. What is the limit that I can carry to US, being a green card holder?


Can not run Xcode 10.1 on High Sierra 10.13.6

MacBook Air 11' mid-2011.  When opening Xcode from Terminal, I get this:  Kukoda-MacBook-Air:~ kukodajanos$ sudo open /Applications/Xcode.app  Password: LSOpenURLsWithRole() failed with error -10810 for the file /Applications/Xcode.app.   Do I need 10.0?      Following this thread:     Using Xcode.app/Contents/MacOS/Xcode executable:  Last login: Fri Jan 10 10:20:11 on ttys001 Kukoda-MacBook-Air:~ kukodajanos$ /Applications/Xcode.app/Contents/MacOS/Xcode ; exit; dyld: Library not loaded: @rpath/XcodeKit.framework/Versions/A/XcodeKit   Referenced from: /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation   Reason: image not found Abort trap: 6 logout Saving session... ...saving history...truncating history files... ...completed. Deleting expired sessions...1 completed.  [Folyamat befejeződött]


I clipped a small scene out of a larger orthophoto and the output file is 3 times as big (7.5 GB) as the original tiff-file (2.5 GB). How to get it small while keeping the original resolutuion?


SQL Server Windows Authentication fails after tonight's security updates: The login is from an untrusted domain

We have the following setup:   One Domain Controller (DC, Server 2003 R2 Standard x64) One SQL Server (SQL, Server 2008 R2 Standard x64) some clients.   All machines are in the same domain. All user accounts in use are domain accounts. SQL runs one instance of each SQL Server 2005, 2008, 2008R2, 2012 and 2014.  Since tonight (DC rebooted to install automatic Windows security updates), accessing the SQL 2005, 2008 and 2008R2 instances through Windows authentication does not work properly anymore:  When accessing one of these instances   from one of the clients using Windows authentication   the following error occurs (it's the 2008R2 message, the 2005/2008 messages are similar):     Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. (Microsoft SQL Server, Error: 18452)   Obviously, the message text does not apply, since there is only one domain.  Now the surprising thing is: As soon as user is logged in on SQL (starting an RDP sesson or even simply running runas /user:MYDOMAIN\someuser cmd and keeping the window open), this user can access all SQL Server instances from all clients without any problems until the process running with that user's credentials is closed.  This means that I can just workaround this problem by executing the above runas command for all users on SQL once (and keeping the windows open), but, obviously, something is severely broken. I suspect tonight's security updates on DC have something to do with it (since that's the only thing that changed), but I'd rather avoid uninstalling and rebooting each one of them (12 updates were installed and DC is really old and slow).  Has anyone encountered this issue before and knows how to fix it permanently? Any other ideas (other than spending the next few days becoming a Kerberos expert)?


I want to put in a constructor an argument of type Date, so I thought that the best way to do that is to write a method that transforms a string into a date. Which is the easiest way to check if my string is a valid date?   This is my constructor:  Product product = new Product("Produs 1", 312.33, updateDate("23/12/2018"));   And this is the  method that transforms the String into a Date.  public static Date updateDate(String date) {     Date newDate = new Date();     try {         DateFormat dtF = new SimpleDateFormat("dd/MM/yyyy");         newDate = dtF.parse(date);         return newDate;     } catch (ParseException e) {         e.printStackTrace();     }     return newDate; }


Is there an idiom that means "revealing a secret unintentionally"?

I am thinking there could be an idiom that states that you or someone revealed a secret unintentionally? Can you think of an idiom like that? I am looking for an idiom I can use to write a blog post about the recent incident where Secretary Pompeo unintentionally revealed the dirty secrets behind the CIA.


Where does the term "Ring" come from in Algebra?

Group and Field make some sense to me, but I can't see why the structures that are closed under two binary operations would indicate "ring".


"StackOverflow is fast. Very, very fast." Why and how?

In the "About" section of SO, it says that it is "Fast. Very, very fast."  What is it that makes it so fast? DB? MVC? What?


Is it possible to transfer EVERYTHING from one Nexus 5 to another?

I just broke the screen on my phone, and the way my insurance works, they're going to replace it with a new one...   However, I've spent a lot of time setting up everything in my phone, and would like to not have to do it again...   Is it possible to transfer EVERY SINGLE BIT OF DATA on my phone to my pc, and then restore it in a new one?


Put simply, I ask far more questions than I answer.  Not for any lack of motivation or interest, I put a good deal of effort into questions and answers making sure they are well explained and that I've done my own research beforehand; it's just that typically by the time I've come up with a solution the question has already been answered.  On top of that, frankly the people answering have far more specialized knowledge in their respective sections, and so I feel like my answers would only be muddying the page up.   I do -look- for questions that have been left alone, or that could use help and provide a fair answer, but for the most part I use the site to get practiced opinions as to the best methodology to accomplish a given task.   Even with my questions it's not so much that I couldn't -find- the answer, but that I want a persons opinion on how to implement it, and not a reference page with an agnostic list of functions.   Just curious if it's considered bad form to have a much higher Q-2-A ratio.


Scaling textures across different objects

Is there a way to keep the checker texture the same size?  Currently it scales with the size of the object, even though the scale in the Cycles node itself is set to 5, a value of 5 looks different across the two models.   I'm pretty new to modeling so I might mess up on some terminology, but is there a node I could use -- that is universal between all objects -- that I can use to determine the size of the texture?   Or how would I make this texture consistent between the two models without manually scaling it down in the checker texture node?


Can't Compile Because I haven't loaded Babel - But I'm not using Babel?

I tried compiling a document with an included Hebrew word. I copy and pasted the \usepackage example loading English and French as an example. Since then, my document will not compile no matter what I do. I have completely removed babel from the preamble and it now complains that I am not loading English. I tried using \usepackage[english]{babel}, but then it tells me I'm not loading french. I add french, it complains about my encoding. But I don't have a single french word or accent in my text!   \documentclass{report} \setcounter{tocdepth}{3} \begin{document}   This will not compile, with the following logfile:  This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/TeX Live for     SUSE Linux) (format=pdflatex 2013.12.10)  20 MAR 2014 19:43 entering extended mode  \write18 enabled.  file:line:error style messages enabled.  %&-line parsing enabled. **/home/michael/Dropbox/ProjectMalynne/TEX/.Main.tex.swp (/home/michael/Dropbox/ProjectMalynne/TEX/.Main.tex.swp LaTeX2e <2011/06/27> Babel <3.9f> and hyphenation patterns for 78 languages loaded. (/usr/share/texmf/tex/latex/base/book.cls Document Class: book 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texmf/tex/latex/base/bk10.clo File: bk10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@chapter=\count80 \c@section=\count81 \c@subsection=\count82 \c@subsubsection=\count83 \c@paragraph=\count84 \c@subparagraph=\count85 \c@figure=\count86 \c@table=\count87 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (/usr/share/texmf/tex/latex/cjhebrew/cjhebrew.sty Package: cjhebrew 2004/08/27 v. 0.1a cjhebrew Hebrew Typesetting System ) (/tmp/.Main.tex.aux  /tmp/.Main.tex.aux:6: Package babel Error: You haven't loaded the language     english yet.  See the babel package documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.6 \select@language{english}  Here is how much of TeX's memory you used:  244 strings out of 493315  2957 string characters out of 6145892  52158 words of memory out of 5000000  3777 multiletter control sequences out of 15000+600000  3640 words of font info for 14 fonts, out of 8000000 for 9000  957 hyphenation exceptions out of 8191  23i,0n,17p,200b,49s stack positions out of 5000i,500n,10000p,200000b,80000s  /tmp/.Main.tex.aux:6:  ==> Fatal error occurred, no output PDF file produced!   Again, I'm not loading babel, and I keep getting exceptions. I tried trashing the aux files, but it's no use. Any ideas?


I was talking to a friend who owns a Mac. He has his set up so that when he swipes three fingers across his touchpad, it moves to the workspace in that direction. Is it possible to set this up in Ubuntu?


Find this limit,and if you can, do it without derivates or integrals or l'Hospital , just using the fundamental limits of functions. $$\lim_{x\to1} \left( \frac{x}{x-1} - \frac{1}{\ln(x)} \right)$$


Digitizing Free Satellite Imagery in QGIS without getting Alignment issues with Openlayers Plugin

I am trying to digitize OpenLayers data (such as Google satellite imagery) with no success. Whenever I try to move or zoom the canvas the vector layer I digitized loses the position relative to the imagery.  I have read about this problem elsewhere but was not able to find a solution.  Does anyone have a solution as to how I can digitize satellite imagery for free in QGIS?


Images broken on a Stack Overflow blog post

On the  blog post, nearly all the images are broken. I assume this is because they are all hosted on stackoverflow.blog/wp-content/uploads/ rather than zgab33vy595fw5zq-zippykid.netdna-ssl.com/wp-content/uploads/, and they got destroyed in the removal of Blog Overflow. I looked around at a few other blog posts, and this post seems to be the only one having an issue.


How to remove duplicate application in /usr/share/applications folder?

I just started using XFCE and I'm loving it so far but I've yet to figure this out.   I'm having trouble removing a duplicate Google Chrome file in this folder. The main thing is I want to remove it from my menu since I have one under the Internet sub-folder in the menu and also one under Other. I'm OCD so this is driving me insane.   In the applications folder, the only thing that differentiates the two is that the duplicate just has the command entry (as "google-chrome" filled under properties while the other has a description and comment which is the one I want to keep.   I don't know how to remove the duplicate since the rm command says it can't find that directory (and I'm not sure how to word it exactly since they are both named the same).   I tried the fix of the "NoDisplay=true" but I'm not sure how to differentiate between the two since they both have the same name.   I also tried changing the duplicate to renaming it to the desktop.old extension but it said that it doesn't exist.   I'm ok with uninstalling and installing again if I can be absolutely sure it removes both.    Edit: Sorry for the late response and thanks for those who responded. I should have clarified better, I'm currently using the crouton installation of ubuntu on an Acer C720. I have just removed Google Chrome but this second application in the /usr/share/applications folder is still there, although its grey and doesn't launch anything since it's uninstalled. I tried this way (How to remove single file from /usr directory?) by using the command BUT, the file name is Google Chrome (and I've tried google-chrome, google-chrome.desktop) and I can't remove it by command because it doesn't recognize the space, so it looks for Google and Chrome separately and it says No such file or directory for both (including google-chrome and google-chrome.desktop). Anyone have any ideas of getting rid of this thing?


What actions are taken by FIFA/UEFA against what's known as filming or diving

It seems to me that modern football is suffering from the kind of unsportsmanly behavior of diving which became all the more common, perhaps with the recent success of southern European teams/nations.   For those who might not be familiar with the concept, diving is the act of fooling the referee into a wrong call, either by pretending as if the tackle is much harder than it really was (in which case the opponent might be punished with a card) or to get a free kick/penalty kick where there is no apparent foul. Not only does it result in unfair calls, but also in many cases it slows the game down due to all the unnecessary free kick calls. In many cases it is normal to see players rolling on the grass seemingly screaming in agony for a second, and up on their feet arguing with an opponent in the next...  With more and more efforts going into campaigns against factors that spoil the game (such as racism) I would like to know if any steps are taken against this type of behavior aimed to interfere with the objective call of the referee? As far as I know, the referee can punish a player with a yellow card if the player is attempting to cheat the referee into giving a penalty but more often than not unnecessary cards and fouls are given as seen by instant replays from different angles. Are there any active measures to decrease this type of behavior or the pitch?


How to disable the deadzone for scrolling on MacOS?

I'm on Sierra, using a regular mouse with a scroll wheel that "ticks" when scrolling. I want to be able to scroll a single "tick" and have that actually do something, right now I have to scroll a few "ticks" at once before it picks up that I scrolled at all. This is really annoying because scrolling becomes something that's way out of control, I either don't scroll as much as I intended or too much. How do I set it to pick up that I scroll even when it's only a single "tick"?


Frequency ranges that causes a hazard to humans

I hope many people might feel little awkward to see this question. But I feel this is important. Because in my place where I am living I can get a radio (Audio Receiver) very cheaply. I don't know till what extent they allow the audio frequency ranges. I guess they use  ICs for Frequency Demodulators, Frequency Clippers, etc. If the Frequency demodulator doesn't work properly and allows all the frequencies that comes through air then its going to be a big problem to the humans. Can somebody answer which are all the frequency ranges that are available and which causes human hazards?


Since the magical number is seven for Horcruxes, and Voldemort made Harry unintentionally then  there must be an eighth right...???   Diary Ring Cup Locket Diadem Nagini Harry (Does not count because Voldemort did not know that Harry was a Horcrux) ??????


whats the solution of ubuntu software center

I tried installing VLC Player yesterday, and I got the Requires installation of untrusted packages error. I searched for hours for a solution to this problem whats the solution? pleas


Clarification regarding white space in rules of inference

What is the meaning of the white space in the following notation (or what is meant by the rules themselves)?  $$\frac{ }{x\ \ \ x}$$  or  $$\frac{y\ \ \ t_i}{y\ \ \ ft_1...t_n}$$  Where the white space occurs between the variables in rule 1 and the variable and terms in rule two.  I'm self studying from Mathematical Logic by Ebbinghaus, Flum, and Thomas. This particular notation appears on page 23, in Exercise 4.6.  Further background. In a preface comment to Exercise 4.6, the book says: "A means of defining the preceding notions by calculi is indicated in the following exercise". The calculi is what I gave above, and the preceding notions are given below, where the function var "associates with each S-term the set of variables occuring in it":  $$\operatorname{var}(x) :={x}$$ $$\operatorname{var}(c) := \emptyset$$ $$\operatorname{var}(ft_1 \ldots t_n):= \operatorname{var}(t_1)\cup \cdots \cup \operatorname{var}(t_n)$$


Induction proof for an inequality with a recursive formula $a_n = a_{\lfloor{n/2}\rfloor} + a_{\lceil{n/2}\rceil} + 3n + 1$

We have this recursive formula defined $a_1=3$ &   $a_n = a_{\lfloor{n/2}\rfloor} + a_{\lceil{n/2}\rceil} + 3n + 1$ for $n \geq 2$.  And we need to prove $n \leq 2^k \Longrightarrow a_n \leq 3 *  k2^k+4*2^k-1$ for all $n,k \in \mathbb{Z}^+$.  I think we wanna do the induction over k  For our basic case we choose $n = 2 , k = 1$   $a_2 = a_{\lfloor{2/2}\rfloor}+a_{\lceil{2/2}\rceil}+3*2+1 =$   $ 3 + 3 + (6+1) = 13$  $2\leq2^1 \Longrightarrow 13 \leq 3*1*2^1+4*2^1-1$  $2\leq2 \Longrightarrow 13 \leq 13$  Our basic case is proven, so we can move on to the induction step  So we will assume that the expression is true for $n \leq 2^k$ and we will now show it is true for $n \leq 2^{k+1}$  This is where I have kinda reached a dead end. My guess is that we want to move from $n \leq 2^k \Longrightarrow a_n \leq 3 *  k2^k+4*2^k-1$   to  $n \leq 2^{k+1} \Longrightarrow a_n \leq 3 *  (k+1)2^{k+1}+4*2^{k+1}-1$  And we could get closer to the P(k+1) expression by multiplying by 2 on both  sides of P(k) like this: $n*2 \leq 2^k*2 \Longrightarrow a_n*2 \leq (3 *  k2^k+4*2^k-1)*2$  But I don't know


Retrieving layouts from managed package in package.xml

I have tried the following way in package.xml  <types>         <members>*</members>         <members>abc__ObjectA__c-ObjectA Layout</members>         <members>abc__ObjectB__c-ObjectB Layout</members>         <members>xyz__ObjectX__c-ObjectX</members>                         <name>Layout</name> </types>   But I am not able to retrieve the layouts, can someone please help me where it is going wrong.


passing env variables to commands in bash

I have this sample bash command:  FILE='/tmp/1.txt' echo "file: $FILE"   and the output is:  file:   Why the output doesn't contain defined earlier variable FILE?


Please help about below error. I don't know how to resolve below error. I will try several ways follows from searches and drupal.org forums. But error still comes back.  Please check the below image everything I mentioned in that. wamp versions, windows versions.


Hypergeometric Expectation using Vandermonde's identity

Let $X\sim HyperGeo(N,M,n)$ thus we get that: $$f_X(x)=\frac{\binom{M}{x}\binom{N-M}{n-x}}{\binom{N}{n}}\;\ \text{with}\ x=max\{0,n-(N-M)\},...,min\{n,M\}$$  Then the expectation of $X$ is given by: $$\Bbb E(X)=\sum_{x=max\{0,n-(N-M)\}}^{min\{n,M\}}x\frac{\binom{M}{x}\binom{N-M}{n-x}}{\binom{N}{n}}=\frac{1}{\binom{N}{n}}\sum_{x=max\{0,n-(N-M)\}}^{min\{n,M\}}x\binom{M}{x}\binom{N-M}{n-x}\\ =\frac{M}{\binom{N}{n}}\sum_{x=max\{0,n-(N-M)\}}^{min\{n,M\}}\binom{M-1}{x-1}\binom{N-M}{n-x}$$  So, since $x=max\{0,n-(N-M)\},...,min\{n,M\}$ we can make $x=1,...,(n-1)$ and clearly $f_X(x)$ has $0$ value for the $x$ values not met in its domain. So:  $$\Bbb E(X)=\frac{M}{\binom{N}{n}}\sum_{x=1}^{n-1}\binom{M-1}{x-1}\binom{N-M}{n-x}$$  And Vandermonde's identity says that:  $$\binom{m+l}{r}=\sum_{k=0}^r\binom{m}{k}\binom{l}{r-k}$$  So let $r=n-1,\; k=x-1,\; m=M-1,\; l=N-M$, thus $r-k=n-x$. So, applying Vandermonde's identity we get that:  $$\Bbb E(X)=\frac{M}{\binom{N}{n}}\binom{N-1}{n-1}$$  and, since $\binom{N}{n}=\frac{N}{n}\binom{N-1}{n-1}$ we get that: $$\Bbb E(X)=\frac{nM}{N\binom{N-1}{n-1}}\binom{N-1}{n-1}=\frac{nM}{N}$$  Thus $$\Bbb E(X)=\frac{nM}{N}$$


Graph partition that span a third of edges

Given a graph G is easy to see that we have a partition $V=V_1 \cup V_2$ so that  $$e(G[V_1])+e(G[V_2])\leq e(G)/2$$. How can we improve this result showing that we can choose $V_i$ such that $e(G[V_i])\leq e(G)/3$ for $i=1,2.$


How can I get superscript done, only in CSS?  I have a stylesheet where I mark the external links with a superscript character, but I'm having a hard time getting the character aligned correctly.  What I have currently, looks like this:  a.external:after {   font-size: 50%;   vertical-align: top;   content: "+"; }   but it doesn't work.  Naturally, I'd use the <sup>-tag, only if content would allow for HTML...


Aside from writing an alias or script, is there a shorter command for getting the diff for a particular commit?  git diff 15dc8^..15dc8   If you only give the single commit id git diff 15dc8, it diffs that commit against HEAD.


Difference between string.concat and the + operator in string concatenation

(This question may be a duplicate but I really didn't understand the other answers)  You have the following code:  String str ="football"; str.concat(" game"); System.out.println(str); // it prints football   But with this code:  String str ="football"; str = str + " game"; System.out.println(str); // it prints football game   So what's the difference and what's happening exactly?


Ubuntu 16 apt get update very slow / not working

I have some issues regarding apt-get update. When I run the command on the terminal everytime it stops after fetiching the repos and won't continue even if I wait about an hour.   I have already tried the following proposed solutions:        However none of them seem to work for me. I would like to tell you more but there aren't any error messages displayed. The command executes as usual but then just stops without any warning. By saying "stops" I mean it prompts Fetched 9.139 kB in 1 min 13 s (124 kB/s) and no new line is shown. (so I am unable to invoke new commands until I hit ctrl + c.)  Edit: As marked correctly the problem was already solved here . I am sorry for not having seen this.


How is a floating desk top supported against the wall?

Example of a floating desk top ():      With increased height, it'd be one of simplest standing desk designs, and I am planning to do this at home. But, I am not sure how exactly the desk top (i.e., the wooden board) is supported against the wall.  As you can see, the design isn't using any heavy-duty shelf brackets, or any apparent support beneath. How can this be accomplished?  (FYI, mine is going to be larger, around double the size of the desk top you are seeing in the picture.)


I need help on test class, this is my class:  When creating a task of type (Phone Call or Last Face to Face) then update the account fields  I have a trigger:  trigger TaskTrigger on Task (after delete, after insert, after undelete, after update, before delete, before insert, before update) {      TaskTriggerHandler handler = new TaskTriggerHandler (Trigger.isExecuting, Trigger.size);     //After Update      if(Trigger.isUpdate && Trigger.isAfter){          handler.OnAfterUpdate(Trigger.new,Trigger.oldMap);     }  }   TriggerHandler class:  public with sharing class TaskTriggerHandler {      private boolean trigger_isExecuting = false;     private integer batchSize = 0;      public TaskTriggerHandler ( boolean isExecuting, integer size){         trigger_isExecuting = isExecuting;         batchSize = size;             }      public void OnAfterUpdate(List<Task> Tklist, Map<id,Task> OldMaplst){         //EXECUTE AFTER UPDATE LOGIC         //first condition is to check the record type then           Set<ID> tid = new Set<ID>();          list<Account> acclst = new list<Account>();          for(Task tk:Tklist){         if(tk.Whoid!=null && tk.WhoId.getSObjectType().getDescribe().getName()=='Contact'){          tid.add(tk.whoid);             }           }         List<Contact> con = new List<Contact>();         con=[select id,accountid from Contact where id =:tid];         Map<id,account>Lstacc=new Map<id,account>();         if(!con.isEmpty()){             account acc;             for(Task tk:[select id,LastModifiedBy.name,type,LastModifiedDate from task where id in :Tklist]){                 DateTime dt = tk.LastModifiedDate;                 Date myDate = date.newinstance(dt.year(), dt.month(), dt.day());                 acc=new account(id=con[0].accountid);                     if(tk.type=='Face 2 Face Meeting'){                         acc.Last_Face_to_Face_Activity__c= myDate;                         acc.Last_Visited_By__c =tk.LastModifiedBy.name;                      }                     else if(tk.type=='Phone Call'){                      acc.Last_Call_Activity__c =  myDate;                     }                      Lstacc.put(acc.id,acc);         }                 if(!Lstacc.isEmpty())                     Update Lstacc.values();      }   } }   My test class:  @isTest public class TaskTriggerHandler_Task {      static testmethod void TestTriggerHandler(){         // find insurance agent record type      // RecordType acctInsAgent = [SELECT Id FROM RecordType WHERE SobjectType ='Account' AND DeveloperName ='Insurance_Agent'];          Account a = new Account (Name='Insurance Agent Test');         insert a;          //Create a contact          Contact c = new Contact(FirstName = 'fname', LastName = 'lname',Email = 'test@gmail.com', Phone = '1234567890');         insert c;           test.startTest();          //Create a Task          task t = new Task(Subject='Donni',         Priority='Normal',         type='Phone Call',          status ='Completed',         WhoId = c.Id,         WhatId = a.Id                         );          insert t;          if(t.Type == 'Phone Call'){             //update account with last face to face, last call activity and last touched by fields                DateTime dt = t.LastModifiedDate;                 Date myDate = date.newinstance(dt.year(), dt.month(), dt.day());                a.Last_Face_to_Face_Activity__c = myDate;              update a;              system.assertEquals(myDate, a.Last_Face_to_Face_Activity__c);            test.stopTest();         }     } }


Using Blender 2.8 texture nodes with Unity

Does anybody know the best way to get a procedurally generated texture (made by using the node system in EEVEE) to work inside of Unity? I have an object that I made and textured in Blender but cannot get the textures to show in Unity. I have exported the file as both an .fbx and .glTF and Unity shows the texture for neither.


Let V be a vector space. If every subspace of V is T-invariant, prove that there exist a scalar multiple c such that T=c1v

I wrote a proof for the above question, but I am not sure whether it is right or not since I assumed linear independence.   Here's the proof:   Let $u$,$v$ be linearly independent vectors in $V$. $span(u)$, $span(v)$, $span(u+v)$ are all $T-invariant$.   $T(v)$ is an element in $span(v) \Longrightarrow T(v) = av$  $T(u)$ is an element in $span(u) \Longrightarrow T(u) = bu$  $T(u+v)$ is an element in $span(u+v) \Longrightarrow T(u+v) = T(u)+T(v)= bu+av = c(u+v)$  Hence, $bu+av-c(u+v) = 0 \Longrightarrow (b-c)u + (a-c)v = 0$ Since u and v are linearly independent, $(b-c)=(a-c)=0 \Longrightarrow b=a$   Hence, $T(w) = kw$, for all $w$ in $V$, and $k$ any scalar.   Is it right to assume linear independence? And is there any problem with my proof?


How can I check whether a variable is defined in JavaScript?

How to check whether a JavaScript variable defined in cross-browser way?  I ran into this problem when writing some JavaScript utilizing FireBug logging. I wrote some code like below:  function profileRun(f) {     // f: functions to be profiled     console.profile(f.constructor);     f();     console.profileEnd(f.constructor); }   It works fine in FireFox/FireBug, but it reports error in IE8 RC1. So, I'd like to do some checking whether console variable exists in the execution environment.  Below code works fine in FireFox, but not in IE8 RC1.   function profileRun(f) {     if (console != undefined) {         console.profile(f.constructor);     }      f();      if (console != undefined) {         console.profileEnd(f.constructor);     } }   However, if I do it this way. It works in IE8 RC1. Why?   function profileRun(f) {     if (window.console != undefined) {         console.profile(f.constructor);     }      f();      if (window.console != undefined) {         console.profileEnd(f.constructor);     } }   Is there any cross-browser way to check it?


I have a custom xmodmap file I use, including useful multi-language diacriticals, english quotes, dashes &c. I want to use this map with kmscon, so I need to create a xkb configuration from it. Is there an automated method to do it? Or even a straightforward manual process, since I won't need to do this frequently?


I have a repository in which there is a "Trash" folder with a lot of trash files (previous developer wanted to store them for whatever reason). I want to completely remove them from repo, as they take almost 1.5 GB of space. I already saw such problem:  but mine is a little bit different: initially "Trash" files were somewhere else, so I need to:   Get all files from "Trash" Find all references of them in history Remove every notion of them from history   How can it be done?


Ways of getting three of a kind in a 52 card deck

This question has probably been asked before, but just to be clear here, I am NOT asking for the answer, I know the answer.  What i want to know is why my solution is not equivalent to the actual solution.  Three of a kind in a deck means you draw 3 cards of the same rank, and 2 other cards each of different ranks.  So. The solution in my book is the following: (13 C 1)(4 C 3) * (12 C 2)(4 C 1)(4 C 1)  The logic is the following:  1) Choose 1 out of the 13 ranks, then for the 4 cards in the chosen rank, pick 3.  2) Choose a combination of 2 ranks from the remaining 12, then for the 4 cards in each rank, choose 1.  Total combinations: 54912  My solution is the following:  ((13 C 1)(4 C 3)) * ((12 C 1)(4 C 1)) * ((11 C 1)(4 C 1))  1) My logic for the 3 of a kind is the same as the solution.   2) Choose 1 of the remaining 12 ranks, and 1 card from the 4 cards in the rank.  3) Choose 1 of the remaining 11 ranks, and 1 card from the 4 cards in the rank.  Total combinations: 109824  My solution says that the combinations are exactly double of the book's solution.  I'm just very confused as to why this is. If anyone could explain this to me I would be very appreciative, thank you.


How do I read from /proc/$pid/mem under Linux?

The  tells me that /proc/$pid/mem “can be used to access the pages of a process's memory”. But a straightforward attempt to use it only gives me  $ cat /proc/$$/mem /proc/self/mem cat: /proc/3065/mem: No such process cat: /proc/self/mem: Input/output error   Why isn't cat able to print its own memory (/proc/self/mem)? And what is this strange “no such process” error when I try to print the shell's memory (/proc/$$/mem, obviously the process exists)? How can I read from /proc/$pid/mem, then?


I need to use <del> html tag inside a block of code, because I have written some code wrong, and someone has answered my question according to my wrong code and now I need to update my question and show that this part of code is wrong and it is updated below. If I use <del> inside the code block, it thinks that <del> is part of code and only shows <del> as part of code. For example:  #include <iostream> using namespace std; int <del>mian()</del> { cout << "hello world"; }   (However, this kind of wrong code may be simply edited and it does not need using <del> tag. This is just an example to show my case.)


Estimating VPS requirements for business shared hosting options

I'm looking at setting up some basic business-level shared hosting for some of my clients, and I am just trying to decide what server specs I would likely need.  I'm expecting to throw around 20 sites on a server, most of which would be low-traffic/wordpress sites.  I've worked in hosting before, so I'm on top of setting up the server once I have it, but I was never really in charge of procuring the servers, so I'm not really sure what type of specs I should be looking at.


Which is correct: "...she knew it was I even before..." or, "...it was me..."?

Is this sentence grammatically correct: "She knew it was I, even from a half block away"?


place elements with multiple styles overlap

I need help placing my items. I'm just starting out so I need explanations. What will seem obvious to you, will not necessarily be so for me :) I have a header that I want to improve. I would like the two images on the right to be superimposed, ie the "reserve" button is above the image. On the other hand, I would like to get to center the middle image. I know the styles are overlapping and the changes I tried through the chrome console are not working. I can't impose the style I want and I can't necessarily find the style that blocks me. If it's possible for you to give me some advice that would be great. Thank you. The link is :  HEADER

Hotel LOGIS LA BORIE en Périgord Noir

Tel. +33 (0 53 28 97 60

  If I addtransform: translateX(calc(100% + 10px)) to the "reservez" button it gives me :  I wanted to use the div containing both images and links as you can see on my code and put display : block but it doesn"t work to have it one above the other... The images are included in a link so if I change only the style of the img the  stays at his place.


Calculate, in the form $a+ib$, where $a,b\in \Bbb R$, the square roots of $16-30i$.    My attempt with $(a+ib)^2 =16-30i$ makes me get $a^2+b^2=16$ and $2ab=−30$. Is this correct?


Linux create mount point issue on ASUS RT-N56U router

On my RT-N56U router I'm trying to create a ext3 partition on an attached usb drive to store my media center data. The problem is I am unable to create to a mount point after creating the partition. When I run this command: mkdir /media/AiDisk_a1, it says it can't do it because file system is read only. This is probably because it's the in memory router OS. How can I mount my ext3 partition to /media/AiDisk_a1?  Also, is there a way in Linux to create a mount point without having write access to the main OS volume?


Laggy log in screen, no gui, fresh install

I'm having this issue where the user interface(x server) won't start, and the login screen is extremely laggy.  Specs: MSI Z97i, I5 4690, GTX1060 8gb, 8gb ram, dual boot with freshly installed Win10  Issue: It's a fresh install of Ubuntu 18.04, never actually got to start GUI. When I somehow type in the password, shows me the GUI for a second, but comes back to login screen.   Also, the purple background of the login screen seems to be "snowy" like when there's no signal on the analog television.  What I tried: Multiple installs from usb stick, both from lili and rufus. Live version works fine.    Tried using the lightweight login manager, worked fine, but still no desktop environment.  Also tried installing KDE Plasma through the terminal. Login works fine, but the gui never loads, only black screen.    I'm thinking maybe it has to do with graphic drivers?


How to cut walls along the pitches of the roof

I have a problem I have been tied up all the day with and I haven't solved yet. I am trying to cut the walls of this house along the inclined pitches of this house. Any ideas? I have tried almost all, add-ons, boolean operations etc.  I think that the best way in this case would be to cut the vertical walls along the intersection between the roof and the walls themselves (pic. 1). Another option would be to extend the walls up underneath the pitches, but as you can see there are different heights and there are no snapping points to use and this is so annoying ;) Please be quite clear because, in spite of my age, I am a newbee. Thanks.


Analyzing a non linear circuit with two sources

I want to analyze this circuit. V1 is a) +15V b) +10V c) -5V  I need V2, V3, I1, I2, I3  Uz=6,8V UF=0,7V  And I hate to say this, but I'm absolutely lacking any approach. I don't know how to manage V1.         – Schematic created using


Failed to mount Windows share: Invalid argument

A very similar question has been asked before by robazefa, but no one answered it. For the last month or so, my Ubuntu 14.04 LTS box has been been unable to open a couple of folders shared from external drives on a PC running Win 8.1 on a home network.  Through Files on the Unity desktop, I can browse the network, access the workgoup, access the Win 8.1 box, see and access its shares except the folders on its external drives.  They appear on the list and I could access them without a problem a couple of months ago, but now I get a dialogue box with Unable to access location - failed to mount Windows share: Invalid argument message, with only the option to click OK.  These folders are readily accessible now from other Win 7 and 8 PCs on the network, but the same Invalid argument error now appears on the only other Linux box on the network which runs Mint Cinnamon.  My question is which argument is in invalid and how can I validate it?


Exercise from Geometry of algebraic curves by Arbarello, Cornalba, Griffiths, Harris

Let π:C′→C an unramified double cover of a complex Riemann surface C of genus g. With the symbol Nmπ we mean the norm application that takes a meromorphic function on C′ named h and produce a meromorphic function on C named Nmπ(h) defined as Nmπ(h)(p)=∏q∈π−1(p)h(q)ν(q)  where ν(q) is the multiplicity of q in the fiber of p respect to π. Write (f)=(Nmπ(h)) the principal divisor associated to the function Nmπ(h).  I would like to prove that: 1) if τ:C′→C′ is the sheet interchange involution for the double cover π. Show that there exist a function s meromorphic on C′ such that s(q)=−s(τ(q)) 2)Let τ as in the point 1) and let f a meromorphic function on C′ such that f=−f∘τ. Show that (Nmπ(f)) is divisible by 2 i.e. we can write (Nmπ(f))=2D.


I have two questions.  First, I've been staring at this problem for over an hour and I'm stumped.  To be clear, I'm not looking for the answer, just some hints to get going would be helpful:  1) Using only three 2-to-4 decoders with enable and no other additional gates, implement a 3-to-8 decoder with enable. The inputs of the resulting 3-to-8 decoder should be labeled as X2 X1 X0 for the code input and E for the enable input. The outputs should be labeled Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0.  I definitely know how to use a 2-to-4 decoder, and how to use a 3-to-8 decoder, but how to create a 3-to-8 decoder using only three 2-to-4 decoders is stumping me.  I don't know where to begin making the connections.  Second, I have this circuit:     My next question has to do with a specific gate from this circuit:     I have never seen this gate and don't know exactly what to do with it.  Professor didn't go over it in class.  what is it?


How can I prove that a sequence of real numbers always includes a decreasing or an increasing subsequence?

I'm trying to prove that a sequence of real numbers always includes a decreasing or increasing subsequence. At first I came up with the new sequence $y_n:=inf\{x_m|m \ge n\}$. I figured out $y_n$ is increasing and every member of $y_n$ is an element of R due to the GLBP. However I now realize that the members of $y_n$ need not be an element of $\{x_n\}$, since it's an infinum... I'm stuck here and would appreciate any help. Thanks.


Adding Postgres bins to PATH: should I `export`?

I'm on a Mac, but this seems like a UNIX/Linux question. I just installed Postgres.app, and the  says to add the /bin directory that ships with Postgres.app to your PATH by adding the following line to .bashrc, it'll get set for every terminal session:  PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"   Should I be exporting that, or just keep it as is?


How to get "p value" for time series data to detect significant change

I have yearly maximum NDVI data (1982-2008) and extracted all value to Excel. Also calculated slope value for each point during the 27 years. All of you know the slope value represents changes per unit (per year). Now I would like to look for significant changes in NDVI over the 27 years. So I have to get "p value" for each point. How I calculate it?   I tried it in Excel. Firstly I have to estimate t-test, but i don't know which value should be in place of  'mu' for this case! After estimating it I can find p value using TDIST function in MS excel.


Explicit norm on $\mathcal{C}^0(\mathbb{R},\mathbb{R})$

Do you know an explicit norm on $\mathcal{C}^0(\mathbb{R},\mathbb{R})$? Using the axiom of choice, every vector space admits a norm but have you an explicit formula on  $\mathcal{C}^0(\mathbb{R},\mathbb{R})$?  A related question is: Can we proved that $\mathcal{C}^0(\mathbb{R},\mathbb{R})$ has a norm without the axiom of choice?


A group action is regular if and only if free and transitive. I have questions on the non-empty part.

Regular can of course be defined free and transitive. For this post, I choose the definition of regular to be second definition of regular given in . Let $X$ be a set, possibly empty. Let $G$ be a group, possibly a singleton. Suppose there exists a right group action $\mu: M \times G \to M$. Unless I misunderstand the meaning of "for every two" or "for each pair", I think the definitions are as follows:  $\mu$ is defined regular if for all $x,y \in M$, there exists a unique $g \in G$ such that $\mu(x,g)=y$ $\mu$ is defined free if for all $g \in G$, if there exists $x \in M$ such that $\mu(x,g)=x$, then we have that $g=1_G$ $\mu$ is defined transitive if $M$ is non-empty and for all $x,y \in M$, there exists a $g \in G$ such that $\mu(x,g)=y$   In proving regular implies free and transitive, how do we prove $M$ is non-empty?  In proving free and transitive implies regular, where do we use $M$ non-empty?   My guess for both: Every $g \in G$ satisfies the equation $\mu(x,g)=y$ if $x,y \in M = \emptyset$.  Related:


All of a sudden, Unity is broken on Ubuntu 14.04. After the logging screen, I can see the desktop but there are no unity panel and no top taskbar.  I tried to boot in recovery mode but I can't access the menu by holding "shift" or "esc" from boot.  How can I repair Unity ?  Note : on guest session, Unity is working.


A certain element which makes functionals positive

Suppose $X$ is a possibly non-separable Banach space and let $X^*$ be its dual. Also, let $(f_n)_{n=1}^\infty$ be a sequence of [EDIT: linearly independent] norm-one functionals in $X^*$. Does there exist an element $x\in X$ such that $f_n(x) \in (0,\infty)$ for all $n$?


Nvidia graphics card is not being detected in Ubuntu 16.04

I updated my Ububtu 14.04 LTS to 16.04 LTS. I have HP Pavilion 15ab 030tx. My nvidia graphics card is not being detected. Instead X.org was installed and is being used. What to do?


How to restore after accidentally apt-get remove python

Yeah, I did this, it was stupid.  I did not know it will pull its dependencies with it, I just wanted to install python 2 and 3 from scratch (because of this problem: ).  Now, I still can use my terminal, checked these answers:      However after running sudo apt-get install ubuntu-desktop I get these errors:  Setting up python-ldb (2:1.1.24-1ubuntu3) ... /var/lib/dpkg/info/python-ldb.postinst: 6: /var/lib/dpkg/info/python-ldb.postinst: pycompile: not found dpkg: error processing package python-ldb (--configure):  subprocess installed post-installation script returned error exit status 127 No apport report written because MaxReports is reached already                                                               Setting up python-tdb (1.3.8-2) ... /var/lib/dpkg/info/python-tdb.postinst: 6: /var/lib/dpkg/info/python-tdb.postinst: pycompile: not found dpkg: error processing package python-tdb (--configure):  subprocess installed post-installation script returned error exit status 127 No apport report written because MaxReports is reached already                                                               dpkg: dependency problems prevent configuration of python-samba:  python-samba depends on python-crypto; however:   Package python-crypto is not configured yet.  python-samba depends on python-ldb (>= 1.1.2~); however:   Package python-ldb is not configured yet.  python-samba depends on python-tdb; however:   Package python-tdb is not configured yet.  dpkg: error processing package python-samba (--configure):  dependency problems - leaving unconfigured No apport report written because MaxReports is reached already                                                               Processing triggers for libc-bin (2.23-0ubuntu7) ...  Errors were encountered while processing:  mercurial-common  python-crypto  python-dnspython  python-ldb  python-tdb  python-samba E: Sub-process /usr/bin/dpkg returned an error code (1)   What is the way to restore these dependencies (16.04 LTS)?


Does the differential equation either have a unique, infinitely many or no solutions?

Let $E$ be a Banach space and $\Omega$ be an open set of $\mathbb{R} \times E$ and a function $f:\Omega \to E$ Let say that for all $(t_0,x_0) \in \Omega$, the Cauchy problem $x'(t)=f(t,x(t))$ ; $x(t_0)=x_0$, has two solutions, is that mean that it has infinitely many solutions? is there a way to generate more solutions ? In other word, does the differential equation either have a unique, infinitely many or no solutions?


What is it called when using 'you' in place of anyone or yourself in example?

What is the adjective (or phrase) describing the use of 'you' in place of anyone, everyone, or yourself in passing?  Such as the following -  ...and you wouldn't dare to eat the last cookie, especially if it were macadamia nut, as this has been the boss's favorite cookie  In the above, the speaker could be on a rant insinuating she would have enjoyed that last macadamia nut cookie, however decided against eating it as it is common knowledge that the boss would be interested in the very same cookie.  If the example were a failed quip, the speaker could combat the post-rant silence by exclaiming I was being facetious!, however in the above example the speaker would like to clarify the use of you by stating I was being [blank]  Any adjectives or phrases to describe the use of you in this situation?


Would doing an independent study or directed reading help me get into grad school with a poor undergraduate record?

My goal is to get into a math graduate program within the next 5 years. The trouble is that I have very poor undergraduate grades no research experience, and no current connections, since I graduated 7 years ago.  Would doing an independent study / directed reading / directed study class help me overcome this? This seems like a good way to improve my letters of recommendation and explore topics not covered in conventional courses. Or would some other avenue be better?  If so, how could I find a professor to oversee such a course?


how to update to latest ntp patch 4.2.8p12 on ubuntu 18.04

I tried the method here   But it failed. Patch 12 has been out for a while now. Does ubuntu plan to have it included in the apt update etc?  If not, could I please be advised of how to update to the latest patch?  Thank you


what is the subtle difference between as and when

I often raked my brain when I encountered subtle usage of as and when, making it hard to write them accurately.   Let me write some example sentences that are quite confusing to me containing as and when, both used in a temporal reference.         He dropped a glass of wine when his eyes met hers at a party.   He surveyed the crowd at the club for any signs of suspicious moves as a rock 'n roll blared out from giant loudspeakers at the corner.       In my gut feelings, when in sentence 1 is replaceable with as, without change in meaning. But sentence 2 is a bit different. When as is supplanted with when, it feels like a bit different to me, it's hard to say why, though.  Is there anyone that can draw a clear-cut disction between as and when in these sentences?   Finally, one more question.   Whar's the differences in the following?         I was writing a draft novel when a doorbell rang out.    A doorbell rang out when I was writing a draft novel.    When I was writing a draft novel, a doorbell rang out.       Some say the difference between 1 and 2 is where to put emphasis on.  Is it right?  (By the way, Asians  usually took the 3 when they speak in their mother tongue while English natives tend to speak 1 or 2, which is quite linguistically intriguing.)   I would really appreciate it if differences between sentences 1 and 2, and ones between 2 and 3 are fully explained respectively.


Problem installing 'scalpel' on Ubuntu 14.04

I'm trying to install software on Ubuntu but whenever I write the command at terminal (e.g. sudo apt-get install scalpel) it shows following error:  user@OCAC:~$ sudo apt-get install scalpel [sudo] password for user:  Reading package lists... Done Building dependency tree Reading state information... Done N: Ignoring file 'trusty-stella-datong.volatile' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'trusty-stella-datong.volatile' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension  E: Unable to locate package scalpel   How can I solve this problem?


Evaluate $\lim\limits_{x\to \infty}x^2 \left( a^{1 \over x} - a^{1 \over x+1} \right)$

I am trying to evaluate $$\lim\limits_{x\to \infty}x^2 \left( a^{1 \over x} - a^{1 \over x+1} \right)$$ for $a>0$.  The idea: $$a^{1 \over x} = e^{\ln{a^{1 \over x}}}=e^{{1 \over x}\ln{a}} = 1 + {\ln{a} \over x} + {1 \over 2}{(\ln{a})^2 \over x^2}+{1 \over 6}{(\ln{a})^3 \over x^3}+\dots$$  $$a^{1 \over x}-a^{1 \over x+1} = e^{\ln{a^{1 \over x}}}-e^{\ln{a^{1 \over x+1}}}=e^{{1 \over x}\ln{a}}-e^{{1 \over x+1}\ln{a}} = \ln{a} \left({1\over x} - {1 \over x+1} \right)+ {1 \over 2}(\ln{a})^2\left({ {1\over x^2} - {1 \over (x+1)^2}}\right)+{1 \over 6}(\ln{a})^3\left({ {1\over x^3} - {1 \over (x+1)^3}}\right)+\dots$$  $$x^2 \left(a^{1 \over x}-a^{1 \over x+1}\right) =\ln{a} \left(x - {x^2 \over x+1} \right)+ {1 \over 2}(\ln{a})^2\left({ 1 - {x^2 \over (x+1)^2}}\right)+{1 \over 6}(\ln{a})^3\left({ {1\over x} - {x^2 \over (x+1)^3}}\right)+\dots$$  This is where I get stuck. I suppose the whole sum should converge to $\ln{a}$ but can't quite find the way to get there. I would appreciate any comments.


what does 95% effectivenes mean for vaccines (covid)

Often we see in news they say AstraZeneca is 95% effective, while Chinese vaccine is 50%. I have question how to interpret these numbers.  Does this mean that if you get vaccinated with AstraZeneca for example, then assuming above numbers, there is 5% chance you will get the virus?  Also my question is do these percentages say anything about whether you will develop severe symptoms or not? For example does it mean that when we say Chinese vaccine is 50% effective does it mean it will reduce the severity of symptoms on half (due to 50%)?


Why two-dimensional presentation of data called "table"?

I just wonder why a word "table" is also used as two-dimensional presentation of data?  It's just a single flat plate, I think "shelf" is more proper representation of such a concept.


Should fields be marked as required if all are required?

If I have a registration form on a responsive website with only 3 text fields to fill and ALL of them are obligatory, should I put a star key on every label or should that star key only appear if the user left the field blank and pressed register?


Will fruit/seed of a bonsai yield another bonsai plant/tree?

With practice one can create a bonsai; no complicated modification of the DNA in a high-end lab required. The bonsai will even beget bonsai fruit.   What I am curious about is - if such bonsai fruit is planted again, will it give rise to a normal, or a bonsai tree?


I have run following code. I expected that elements of list c will not refer to a, but be a copy os list a, but the result contradicts. Why? >>> a = [[]] >>> b = a *3 >>> c = a[:] *3    // should create a copy of a three times >>> b[1].append(6) >>> b [[6], [6], [6]] >>> c [[6], [6], [6]]    // but it is referring to a


See the min expl below. I would like to have two ToC: one giving only the rough structure of the document and a second one giving all the details down to subsubsections. The code pasted below should do just that but the second ToC is not displayed which I do not understand.  \documentclass{report}  \begin{document}  \setcounter{tocdepth}{1}           \setcounter{secnumdepth}{3}         \tableofcontents  \renewcommand*\contentsname{Contents (detailed)}  \setcounter{tocdepth}{3}            \tableofcontents  \chapter{XXX} \section{YYY} \subsection{WER} \subsubsection{ABC} \subsubsection{DEF} \subsection{ZTR} \subsubsection{OIU} \subsubsection{OIZ} \subsubsection{POI} \section{YYY} \subsection{WER} \subsubsection{EDC} \subsubsection{RFV} \subsection{TGB} \subsubsection{ZHN} \subsubsection{OUH} \subsubsection{WEK} \chapter{ZZZ} \chapter{AAA}  \end{document}      Just noticed there is still a problem with hyperref:  \documentclass[10pt, a4paper]{report} \usepackage{shorttoc} \usepackage{hyperref} \begin{document}  \setcounter{secnumdepth}{3}        \pdfbookmark[1]{Contents}{toc}     \shorttoc{Contents}{1}   \pdfbookmark[1]{Contents (detailed)}{toc}     \shorttoc{Contents (detailed)}{3}  \tableofcontents  \chapter{XXX} \section{YYY} \subsection{WER} \subsubsection{ABC} \subsubsection{DEF} \subsection{ZTR} \subsubsection{OIU} \subsubsection{OIZ} \subsubsection{POI} \section{YYY} \subsection{WER} \subsubsection{EDC} \subsubsection{RFV} \subsection{TGB} \subsubsection{ZHN} \subsubsection{OUH} \subsubsection{WEK} \chapter{ZZZ} \chapter{AAA}  \end{document}    By what does {toc} has to be replaced in the second \pdfbookmark? [Sorry, had problem with editing the above comment --> administrator please delete it!]


What is the most secure method to erase hard drive files?

I just got a program that can "shred" files so they cannot be recovered. It offers 4 erasing methods:   Random Data Method (1 pass) US DoD 5200.22M-STD (3 passes) US DoD 5200.28-STD (7 passes) Peter Gutmann Method (35 passes)   The program claims that the Gutman algorithm is the most secure, however I've read that that method is not necessary now with modern hard drives (not SSDs) and only a few passes or random scrubbing should be enough.  Which is the most secure method (with out actually having to physically destroy the drive)?


Changing the chapter font size does effect the toc font size - why?

i'm new to latex and i'm wondering why the toc font size does change when i change the chapter font size.  For example. what i do is:  \chapter{\Large{This is my chapter}}   and this part of code does effect the font size of this chapter in my toc. But why? How can i change the chapter font size but not the font size of this chapter in my toc?  (btw: sorry for my bad english)  Hope someone can help. Thanks guys!


Get extension from filename like variable - Javascript - jQuery

I have a varable var file = "testfile.txt"; I am using the following script to find its extension and it works well;  var parts = file.split('.'); var flename = parts[0]; var ext = parts[1];   But if i have a filename with more than one dots, the logic sucks.. It will give txt for filename.txt, but not in the case of file.nam.e.txt or something else.  Anybody suggest me the simplest solution to do this using javascript and(or) jQuery??  Thanks in advance..


What software should I use for converting fisheye photos to normal rectilinear photos?

Can you recommand me a software for doing this job? I shoot using Sigma 8mm lens and I would like to be able to obtain a normal image out of that. The camera is canon 550D.


I saw sed 's=.*/==' in context of sh script and I'm puzzled. I could not find in sed manual or web search (for sed s=) how s is used, not s///. Apart from s I see only one potential command here = (Print the current input line number), but in such case what the rest is doing...   Running the command in shell produces same output as input for e.g echo 'jkfdsa=335r34',  whereas echo 'jkfdsa=335r34' | sed 's/=.*/==/' does replacement as per manual. Also slightly modifying command to e.g. echo 'jkfdsa=3' | sed 's798=.*/==/' gives sed: -e expression #1, char 11: unterminated 's' command, so original should have some correct meaning. What is it?


The direct sum of two closed subspace is closed? (Hilbert space)

I know that if $X$ is a Banach space, then, the direct sum of two closed subspace $X_1$ and $X_2$ is not necessarily closed. But what if $X$ is Hilbert?  I assume there is something to do with the orthonormal basis, since this is something you can ask for a Hilbert space but not a Banach space.  Moreover, is the projection to $X_1$ bounded? Namely, $P$ is defined on $X_1\oplus X_2$: $$P(x)=x\quad \text{on $X_1$} \qquad P(x)=0\quad \text{on $X_2$}$$ is $P$ bounded?


Can I create another partition on a single partition system?

I have a system running Ubuntu 13.10 in a single partition. I need to create another ext4 partition, is it possible without reinstalling Ubuntu?  Please show me the procedure, if it is possible.


What makes Thor "worthy" to lift the Mjolnir?

How is "worthiness" defined in the context of lifting the Mjolnir? What makes Thor worthy to lift the Mjolnir?


Why did a user delete their own question?

I'm disappointed that a couple days ago I answered a reasonable question about git, only to have the user then delete the question instead up upvoting or accepting my answer.   I had responded to several follow-up questions and clarifications, and in that time no one else had participated at all. I invested a fair bit of time into that, and now I have nothing to show for it, and that knowledge is lost for everyone.   Why would a user do that? Is it wise to let questions and answers disappear like this?  Here was the link to the question at hand:


Was it already revealed in the manga who will be the wives of Naruto and Sasuke?

From the first episode of Naruto (season 1) until the last episode of Naruto Shippuuden, Naruto has a crush on Sakura, who in turn Sakura has crush on Sasuke (Ino also has crush on Sasuke). I've been wondering if who will be the wives of Naruto and Sasuke has already been revealed in the manga? Since both of them are already matured. There are some speculations  that Naruto will be the husband of Sakura (just saw it on FB- an image).


Blender Python: Detect Collection Exclusion Checkbox?

Is there any way to logically check the state of each collection's primary checkbox (the one to the left of its name in the outliner)?  When the box is toggled, the info panel shows "bpy.context.scene.exclude = True/False", but that doesn't make sense, since it is a collection being excluded, not the entire scene? Also, there doesn't appear to be any "exclude" member mentioned for collections in the docs.  When one of these are disabled, some exporters avoid exporting their objects, which is useful. But I believe they are pulling this off by selecting ALL objects, which excludes any in unchecked collections.  Does anyone know how to read this value correctly?  Edit: There is a similar question here  And the answers to this question also answer this question, but the questions are not the same. The checkbox in question is not specific to rendering. It excludes the object from the view layer (view-port, selections, etc). In addition, there is a specific toggle for render exclusion at LayerCol.Collection.hide_render.


How to download past purchases from old Apple ID without waiting 90 days to switch back to new Apple ID?

On my old laptop, I used a shared Apple ID to purchase music on iTunes. It was a little tedious because it was connected to my sister's bank account, so I had to send her money before each purchase I made, so that her account wouldn't overdraw.  That laptop died, and now I have a new one with a new Apple ID connected to my own bank account. However, some of my purchased songs were lost, so I temporarily logged into iTunes with my old Apple ID to re-download them. Right when I was about to download, iTunes warned me that I would need to associate my new laptop with the Apple ID, and that after you associate a device with your Apple ID, you can't associate that device with another Apple ID for 90 days.  I really don't want to be stuck on my old Apple ID for 90 days, is there a better way to do this?


i am building a app which takes input from user and then search to a remote database(MySql).And then display the retrieved data on VisualForce page.One important note that my app will be distributable.  here is my controller class  public with sharing class Search  {    public String strTag {get;set;}   public String strlocation {get;set;}    public PageReference find() {              return null;   } }   Thanks in advance.  Updated  public with sharing class Search  {   public String strTag {get;set;} public String strlocation {get;set;}   public PageReference find() {             HttpRequest req = new HttpRequest();   HttpResponse res = new HttpResponse();   Http http = new Http();    req.setEndpoint('https://localhost/salesforce/');   req.setMethod('POST');     req.setCompressed(false);   req.setBody('key1=value1&key2=value2');   req.setHeader('Content-Type', 'application/x-www-form-urlencoded');      try {     res = http.send(req);   } catch(System.CalloutException e) {     system.debug('Callout error: '+ e);   }   system.debug(res.getBody());      return null;  } }   I am getting below error now      error message System.CalloutException: Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = localhost/salesforce


Colors look great after editing in photoshop/lightroom at my screen! But when I look on all other screens the pictures look to warm (allmost yellow!) and to much contrast… is there something wrong with my screen? Can someone help me? I remember that a year ago I used quickgamma tool to optimalize my screen colors but don’t know how to retore to stock screen colors on my Asus laptop.  Best Johnny


Why Microsoft Remote Desktop cannot make full use of network bandwidth?

I am using Microsoft RDP on my OS X in order to control the Windows PC inside my local network. The two computers are connected via a 1Gbps Ethernet router, so the bandwidth shouldn't be a bottleneck. However, I find that the frame rate of RDP is not so satisfactory. Both the frame rate and image quality are very low when watching videos or running graphical programs. According to inspections, I found that the RDP is only using a few MB/s of the bandwidth which is far from full. So why it cannot make full use of the network bandwidth and provide promising quality and frame rate so that I can control it through the LAN as I were directly using it?


How come $\frac{1}{1-x}$ and $\frac{x}{1-x}$ have the same derivative?

Maybe I'm just having a brain breakdown moment, but it seems weird to me that both functions have exactly the same derivative, namely $\frac{1}{(1-x)^2}$.  Obviously I'm not disputing whether or not it's correct, but I'm looking for some sort of intuition/justification (geometric or otherwise) as to why this is indeed the case.  I can take the derivatives manually so this is really not a question of not understanding the algebra, rather maybe having poor geometric intuition as to why the changing numerator as a function of $x$ doesn't impact the rate of change of the overall function.


Is it possible to dual boot two Linux distributions and share swap space?

I am trying to dual boot two Linux distributions. My machine is running MintOs and I am trying to install kali Linux. I need to know whether I have to create a new swap area or can I use the old one.


I wanted to start learning particle physics and I have studied all classical Field theories. I found out that I should read Introduction to particle physics by Griffiths. But when I started reading I did not understand it. It said  For example, in relativity, energy and momentum are always conserved, but (rest) mass is not. Thus the decay Δ gives ρ +π is perfectly acceptable, even though the Δ weighs more than the sum of ρ +π Such a process would not be possible in classical mechanics.  Now I did not understand the Δ gives π and ρ part at all and what they mean. Have I started with a wrong book or am I missing something?


How can I add my username to the top panel in Xenial Xerus?

I would like to see my username in the top panel of Xenial Xerus. By default it is not present, as this screenshot demonstrates:    How can I place the logged in username there and then easily reverse this if I want? I am interested in both command line and gui solutions.


Union of Power Sets is Power Set of unions.

I've been working on this homework problem for a while now and I can't seem to figure it out.  The problem is as follows:  Prove that for any sets $A$ and $B$, $P(A) \cup P(B) = P(A\cup B)$ then either $A\subseteq B$ or $B\subseteq A$. I'm having trouble understanding what it means to have an equation as one of my hypotheses.  I looked online and I couldn't find anything online, so hopefully this is alright.  Thanks!  Any help would be appreciated


What to do if a referee plagiarises the result after rejecting a paper?

I find myself in an awkward situation. Nearly two years ago I submitted a paper to a reputable mathematics journal. After 15 months it was rejected with the rationale that there had been papers published (most since the submission date) that contained results that I should have referenced. I found that a little spurious, but moved on and put my work together with some colleagues and got our new paper accepted (pending some language issues) by a different journal.  However, one of my co-authors has found that my exact result (barring some small notational changes, but with the exact same language; I can recognise it as mine, I slaved over finding just the right words!) from my original paper has had the proof published in a book by one author of the references that caused the paper to get originally rejected!  My assumption is thus that the paper was sent to this person to referee and they liked the result so much that they kept it for themselves, which also explains the delay in refereeing... I believe that this author has also presented this result at a conference as their own work. They have a number of papers published on the topic in question from their doctoral thesis.  My question is what steps can I take now to re-assert my authorship?  I believe that it would have been simpler if I had also submitted it to the arXiv, but I wasn't sure (at that time) how that would be seen by the journal. I did give a presentation of my results at a local conference, so I would be able to produce credible witnesses to back up my claim, if necessary. The book published containing my work is largely the doctoral thesis of the author, so I am attempting to find a copy of the thesis since it was deposited before I submitted my paper to the journal. Can anyone suggest any other recourse?  My co-authors would prefer to err on the side of caution and include a reference to the result in our revised paper, but I would really like to reclaim my work...


Newton's third law. how things can move?

I am beginner in physics and i have some questions about Newton's third  law The law says :      When one body exerts a force on a second body, the second body   simultaneously exerts a force equal in magnitude and opposite in   direction on the first body   . now for my question if am exerting a force o 1 newton on an object according to the law the object exerts a force of 1 newton on me but in opposite direction. if the force is the reason for motion then how the object is moving if the sum of forces equals zero ? or it does not move ?


TikZ: Symmetric matrix without upper diagonal elements

I want to make a symmetric matrix in TikZ and don't want to show the upper diagonal elements.  \documentclass[tikz]{standalone} \usetikzlibrary{matrix, positioning, calc} \usetikzlibrary{shapes.geometric, fit}  \begin{document}  \begin{tikzpicture}[baseline=(U.center)] \matrix [matrix of math nodes, left delimiter=[ ,right delimiter={]},  nodes={outer sep=1pt}] (U) {   0  &   \textcolor{white}{9} & \textcolor{white}{3} & \textcolor{white}{6} & \textcolor{white}{11}   \\[0.1cm]  9  &   0 & \textcolor{white}{11} & \textcolor{white}{11} & \textcolor{white}{11}   \\[0.1cm]  3  &   7 & 0 & \textcolor{white}{11} &  \textcolor{white}{11}   \\[0.1cm]  6  &   5 & 9 & 0 &   \textcolor{white}{11}   \\[0.1cm] 11 & 10 & 2 & 8 &   0   \\[0.1cm]  };  \foreach \x in {1,...,5}{  \node[black,  left = 3 mm of U-\x-1] (U-\x-6) {$\x$};  };  \foreach \y in {1,...,5}{  \node[black, above= 1 mm of U-1-\y] (U-6-\y)  {$\y$};  };  \draw[red] ([shift={(4pt, 2pt)}]U-1-1.north west) -- ([shift={(5pt,2pt)}]U-5-5.south east); \draw[red] ([shift={(-5pt, -2pt)}]U-1-1.north west) -- ([shift={(-4pt,-2pt)}]U-5-5.south east);  \draw[red] ([shift={(5pt, 2pt)}]U-1-1.north west) -- ([shift={(-5pt,-2pt)}]U-1-1.north west); \draw[red] ([shift={(5pt, 2pt)}]U-5-5.south east) -- ([shift={(-5pt,-2pt)}]U-5-5.south east);  \node [draw, circle, red] at (U-5-3) {};  \node[black,  left = 6 mm of U] {$\mathbf{D}=\left\{ d_{ij}\right\}=$};  \end{tikzpicture}  \end{document}     I wonder how to get the blank upper diagonal elements without using the white text color of the elements. Thanks


A secant inequality for convex functions

Suppose $f(0) =0 $ and  $0<f''(x)<\infty (\forall$  $x>0)$, then $\frac{f(x)}{x}$ strictly increases as $x$ increases.    I have shown that $f'(x)-\frac{f(x)}{x}  = \frac{1}{2}xf''(c)$, for some $c\in (0,x)$. How do I proceed from here?


Is it really true that "if a function is discontinuous, automatically, it's not differentiable"?

I while back, my calculus teacher said something that I find very bothersome. I didn't have time to clarify, but he said:     If a function is discontinuous, automatically, it's not differentiable.   I find this bothersome because I can think of many discontinuous piecewise functions like this:  $$f(x) = \begin{cases} x^2, & \text{$x≤3$} \\ x^2+3, & \text{$x>3$} \end{cases}$$  Where $f'(x)$ would have two parts of the same function, and give: $$\begin{align} f'(x) = && \begin{cases} 2x, & \text{$x≤3$} \\ 2x, & \text{$x>3$} \end{cases} \\ = && 2x \end{align}$$  So I'm wondering, what exactly is wrong with this? Is there something I'm missing about what it means to be "continuous"? Or maybe, are there special rules for how to deal with the derivatives of piecewise functions, that I don't know about.


Existence of formulae for sines/cosines of products of angles in terms of sines/cosines of original angles?

There was something that I was getting a little curious about. We know that there are the so-called compound-angle formulae for calculating sines and cosines of sums of angles in terms of those of the original angles:  $$\sin (\alpha+\beta)=\sin\alpha\cos\beta+\cos\alpha\sin\beta$$ $$\cos (\alpha+\beta)=\cos\alpha\cos\beta-\sin\alpha\sin\beta.$$  Now, do there exist any sort of formulae for products of angles, that is, for $\sin(\alpha\beta)$ and $\cos(\alpha\beta)$? If so, how can one derive them? (I had a play and tried to get something, and it ended up being rather nasty; only holding for small-ish angles $\beta$ and resulting in some infinite series that may or may not converge to anything well-known.)


Fantasy novel with a giant living city made of purple crystals that the protagonist can communicate with

Ok this one is hurting my mind now.  Most details I can remember are:   Giant Living 'city' made from Purple material Main Character can speak to/control the 'city' Magic is 'Will'? Remember there being multiple books,but couldn't say how many   Sorry I can't be more detailed, but it's hiding in the corner of my mind, just out of sight, and I'm just getting flashes.  (City may be called 'Kethinica', but I guessed the spelling)


What is this symbol and how do I recreate it in LaTeX

This "I" symbol used in matroid notation:


Convert a character digit to the corresponding integer in C

Is there a way to convert a character to an integer in C?   For example, from '5' to 5?


How come that output of following programm is "pankaj", I was expecting a compilation error like "can not modify a constant string"  #include<iostream> using namespace std;  void fun(const char *a) {   a = "pankaj";   cout  << a; }  int main() {   const char *ptr = "GeeksforGeeks";   fun(ptr);   return 0; }


the function awk '!seen[$0]++' print the new occurrences in an input pipe.  I am however unable to add a pipe after. E.g  my_function_with_ouput | awk '!seen[$0]++' | while read j do echo $j done   Doesn't produce any output.


How to add multiple right braces to matrix and over/underbrace outside of matrix

Not sure how to add side braces and multiple over braces and underbrace for the matrix A  What I currently have is braces inside the row vector, not sure how to make outside of the row vector Not sure how to type up these matrices in latex


Where does the iris on the SGC stargate retract to?

In the Stargate SG-1 TV series it is shown prominently many times that the stargate in the SGC has a retractable iris. This iris is used to prevent matter from exiting the wormhole.    When the iris retracts it appears to pull back into the stargate itself and is completely hidden from view.    My question is, when the iris is retracted where is it stored?


Finding UMVUE for a function of a Bernoulli parameter

Given $m$ i.i.d. Bernoulli( $\theta$ ) r.v.s $X_{1}, X_{2}, \ldots, X_{m},$ I'm interested in finding the UMVUE of $(1-\theta)^{1/k}$, when $k$ is a positive integer. .  I know $\sum X_{i}$ is a sufficient statistic by the Factorization Theorem, but I'm having trouble proceeding from there. If I can find an unbiased function of the sufficient statistic the problem is solved by the Rao-Blackwell theorem.


How to correctly identify your phone model and version?

I have a Samsung Galaxy Nexus and I'm trying to do a fresh reinstall of Cyanongenmod.  I see in their website that there are three different versions of this phone: ;  Now I am confused and don't know which version I have? I bought it in Portugal. But is there a way to automatically identify the phone?  Thank you


How to know which back-link passes good link juice?

Currently i am in the process of removing bad inbound links towards my website. Now apart from PR or domain related significance how i know that which inbound links are passes the good link juice for my site.  Is it there any qualitative approaches in this direction?


Package missing when I run `sudo apt install ...`

I use Ubuntu 16.04. APT cannot seem to find the package m4:  root@kevin:/# sudo apt install m4  Reading package lists... Done Building dependency tree        Reading state information... Done Package m4 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'm4' has no installation candidate   I ran:  sudo apt-get upgrade && apt-get update   This didn't make any difference.  root@kevin:/# grep main /etc/apt/sources.list # deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted # deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted # deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted ## extensively as that contained in the main release, although it includes # deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted


How do I enable onboard (on screen keyboard) on the lock-screen?

I have a laptop-tablet device and I'm trying to enable onboard on the lock-screen.  Enabling onboard on the login screen is no problem but enabling the option  Show when unlocking the screen   is not giving the desired effect i.e. showing the keyboard on the lock-screen, when you lock your screen in a session.  Several questions exist that asks how to enable onboard on the lock-screen, however I have yet to find any that are actually referring to the lock-screen and not the login screen.  Is there any way to enable onboard on the lock-screen?  Edit:  This same question looks to be adressed here:  , however the options presented here do not give me an on screen keyboard on the lock-screen.


Player with 350 or more goals in domestic league

When Messi passed 350 goals for Barcelona, I asked this question, but couldn't find an answer anywhere. Who has scored more goals than Messi for a single club?  Edit: I was specifically asking for the goals in the domestic league.


Is "hanging bats" a participial phrase, gerund phrase, or simple noun phrase?

In the sentence "Hanging bats populate most of the caves in North America," what is the role of "hanging bats"?  I believe it is a simple noun phrase containing the participle "hanging" (which modifies "bats"), while another individual referred to it as a gerund phrase.  I should mention that the quiz question is "What kind of phrase is underlined?"


What's the difference between "==" and "=~"?

Given a string and a hash returned by openssl, why using == doesn't match them correctly but =~ does?  Background question:


How can I turn nodes that made in shader editor to script?

I want to make a button and when I press it, it will apply the material I made, that mean the nodes. I try different way to type script but it wasn't work. bpy.ops.node.add_node(type="ShaderNodeTexNoise")  What's wrong with this code?


I have moved a tar.bz2 from my Downloads to /usr/src, which is where I like to put all things that I install on my system. Now I extracted the file and I want to move its contents to /usr/share/icons. But I do not want to move the tar.bz2 itself:  # ls -l | grep Comix -rw-rw-r--  1 guarddog guarddog   2190951 May 26 11:03 ComixCursors-0.8.2.tar.bz2 drwxr-xr-x  3 root     root          4096 Oct 23  2013 ComixCursors-Black drwxr-xr-x  3 root     root          4096 Oct 23  2013 ComixCursors-Blue drwxr-xr-x  3 root     root          4096 Oct 23  2013 ComixCursors-Green drwxr-xr-x  3 root     root          4096 Oct 23  2013 ComixCursors-Orange   In the output command I want to move everything besides the tar.bz2, within the terminal.  I tried the following but unfortunately it moves the tar.bz2 as well:   mv Comix*[!tar.bz] /usr/local/share   I expected the negation operator to exclude the file ending wit tar.bz. The solution below is what I was looking for, didn't want to use find with complicated flags.


How Can move the text and ImageView Programatically in android studio?

I`m trying to move left, or right the text and ImageView on Android Studio, but I want to do this programatically.   @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     getSupportActionBar().setTitle("new title");     getSupportActionBar().setDisplayShowHomeEnabled(true);     getSupportActionBar().setLogo(R.drawable.bible1);     getSupportActionBar().setDisplayUseLogoEnabled(true);     setContentView(R.layout.activity_main);


How does one extract a command's exit status into a variable?

I started learning Bash a couple of days ago.  I'm trying to obtain an exit status of grep expression into a variable like this:  check=grep -ci 'text' file.sh   and the output that I got is   No command '-ic' found   Should I do it with a pipe command?


This question is somewhat of a follow up to an answer to a previous question ().  I would like to create a list environment (similar to itemize and enumerate) such that the output of the list environment is a comma-separated list.  For example, the following input:  \begin{commalist}     \item Item A     \item Item B     \item Item C \end{commalist}   Should produce the following output:  Item A, Item B and Item C.   Additionally, it would be nice to be able to specify the use of a comma instead of the final and (so that the output is instead Item A, Item B, Item C..