Creating a zipped list of two lists in Python, but allowing duplicates from one list to the other

Using itertools and permutation() to get all unique combinations of two lists is easy. For instance, if I had: ['a', 'b'] [1, 2]  I could easily get: [   [('a',1),('b',2)],   [('a',2),('b',1)] ]  However, what I really want is to allow duplicate pairings. Each item in the larger list will be unique, but the number of combinations would be exponential, since the same item in the first list could get assigned to multiple items in the second list. So for the two lists above, I would get: [   [('a',1),('a',2)],   [('a',1),('b',2)],   [('b',1),('a',2)]   [('b',1),('b',2)] ]  If I had three items in each of the two lists, I would end up with 27 results. What would be the best approach to this?


Null pointer Exception erorr while running, but Why?

public class Student { int[] mark ; char[] grade; public int[] getMark() {     return mark; } public void setMark(int[] mark) {     this.mark = mark; } public char[] getGrade() {     return grade; } public void setGrade(char[] grade) {     this.grade = grade; }   public Student(int[] mark){     this.mark=mark;     char[] grade=new char[mark.length]; } public void findGrade(){     for(int i=0;i<grade.length;i++){         if(mark[i]>=92){             grade[i]='E';               }         if(mark[i]>=85&&mark[i]<92)             grade[i]='A';         if(mark[i]>=70&&mark[i]<85)             grade[i]='B';         if(mark[i]>=65&&mark[i]<70)             grade[i]='C';         if(mark[i]<65)             grade[i]='D';     }      }  } public class Tester { public static void main(String[] args) {     int[] marks = { 79, 87, 97, 65, 78, 99, 66 };     Student student = new Student(marks);     System.out.println("Grades corresponding to the marks are : ");      student.findGrade();          char[] grades = student.getGrade();     for (int index = 0; index < grades.length; index++) {         System.out.print(grades[index] + " ");     } }  } I dont know what is the erorr, it throws null pointer exception erorr, please explain me! it is a array program to find the corresponding grades based on marks!!


How do you teach a toddler rhythm and melody?

My 1 year old daughter loves all kinds of music and rhythm. She dances and "plays" enthusiastically on both guitars, the piano and her toy glockenspiel. This has, since she was just four month, always been about me showing her that you can make noises on various instruments, and she then happily making as much noise as she can.  I think she's gotten the idea that different keys makes different notes, at least she like to play on all of them, and on the piano she also plays both hard and soft, but she still hasn't gotten the idea of rhythm. Her playing is always just about making notes as fast as possible, so I'm thinking that the next step is introduction to rhythms. She sometimes seems to try to clap her hands slower when I do it, but I'm not sure.  Any ideas or resources on how to introduce her to this would be appreciated.


PHP replaces special characters with question marks when reading data from a Netezza database, only on Linux

I read data from a Netezza Database with PHP using ODBC.  System: Red Hat Linux 7, Netezza ODBC drivers, unixODBC, httpd with several packages installed.  Database: IBM Netezza, data is stored as latin9 (the database configuration is given, can't be changed). Data:  NAME ---- Frank Fränk   When I read data from the database in PHP, special characters are replaced with question marks (not these ? in diamonds, that would be ok). PHP Code:  $nz = odbc_connect('DRIVER={NetezzaSQL};SERVER=x.x.x.x;PORT=5480;DATABASE=database;','username','password'); $result = odbc_exec($nz, 'select * from CUSTOMERS'); while(odbc_fetch_row($result)) {     echo odbc_result($result, 'NAME').'<br>'.PHP_EOL; }   Result:  Frank Fr?nk   What I tried so far:   When I use str_replace('?','X',...), I even get FrXnk. This means ä becomes a real question mark, further conversion/encoding of the string (e.g. utf8_encode() ) does not help. Options in the DBS string: Client_CSet=latin9, Client_CSet=utf8, Server_CSet=latin9, Server_CSet=utf8, charset=latin9, charset=utf8, etc. do not help. PDO instead of odbc_connect() produces the same result: Fr?nk On a Windows system with XAMPP, the same code works. odbc_result() returns a latin9-encoded string, utf8_encode() returns Fränk. I can also use R on the Linux system using the same ODBC connections. R reads Fränk correctly.   For me it's clear, the ODBC driver is working and returns a latin9-encoded string. PHP on the Linux system is doing some internal conversion that replaces characters with question marks. Any ideas what I could do?  PS: This is not a duplicate of "UTF-8 all the way through". First, I cannot change the database encoding. Second, specifying the charset in the connection string does not help. Third, it is a Netezza database and not MYSQL, I cannot use any of those MYSQL functions, Netezza is a bit weird when it comes to settings. However, I found ways to retrieve data correctly from the database, just PHP on Linux does not work.


how to exclude directories and file zipping a directory?

I, need to zip a directory excluding some subdirectory  and file; I used this:   zip -r zipfile.zip . -x ".*" -x "app/bower_components" -x "node_modules" -x "*.zip" -x "node_modules"   without  any success; node_modules is a folder in the principal one while bower_components is inside the folder app


How can I find out if someone really holds a doctoral degree?

We're currently interviewing candidates at my company and I'd like to verify if some of them really have the academic degrees they claim. One in particular claims a doctoral degree from a German university.  I've contacted the university, and the dean wrote back saying that they could not provide this information without the written consent of the individual.  I found this policy rather odd; I would have thought that the granting of a doctoral degree was public information. Is this normal? Is there anything else I can do to find out?  I obtained from the library a copy of the thesis in question but it was in German. I also found through Google  which appears to be a list of dissertations published by that university, but it is unclear whether these are doctoral dissertations or not. The person in question and his dissertation are in that list.


Scanner loop that is supposed to return each String,

I've got a problem with looping a scanner, wich should return EVERY string given as an input unless String != "end". Here is what I've done so far  private static String fetchString() {     Scanner scanner = new Scanner(System.in);     String stringElement = "";     System.out.println("Write a string");     while(scanner.hasNextLine()) {         stringElement = scanner.next();         if(stringElement == "end") {             break;         }     }     return stringElement; }   result:  Write a string abc abc abc end end   Loop, somehow, doesn't understand if(stringElement == "end"), it still wants new word. I can't get it. Where am I making a mistake?


My visa has been denied twice and im applying for a new one in about 2 weeks

I'm a tunisian citizen, I'm 21 years old and I'm a student. I do not have a job - in my country you get one at age around 24 after finishing your studies. But I do have a source of money.   I am going to apply for a German short visa to visit my girlfriend. We've been together for about 5 years now but we never met because of her parents they would like to see me first.  That's why I'm applying for visa. I have no intention to stay in Germany or get a job there.   I would like just to spend a week with her to meet her and her parents. I had a tumor before but I do thank god i survived from it and she was the only person that helped me going through it. So my question is if there is a way to help me get their trust. Again I'm not a criminal I would never do something illegal or get her in trouble.


I'm trying to reconcile these facts,   If I had paints of the primary colours and I mixed them together, I would produce gray.  White light contains every colour.    My most convincing attempt to answer the question: The colours of objects that don't produce light are the colours those objects don't absorb. A white object doesn't absorb any colour, a blue object absorbs all colours but blue, a green object absorbs all colours but green, etc. So by mixing paints of the primary colours I mix influences that collectively absorb all colours and reflect all colours; whereas, if I had paint that only absorbed all colours I would have black paint, and if I had paint that only reflected all colours I would have had white paint. Gray is a combination of white and black so I found this answer intuitively satisfying. However, I don't know if it's an accurate explanation of the observation.   Why does mixing every paint colour produce gray instead of white?  Thank you.


/sys: cpio: chown failed - Read-only file system (Building Passenger RPM using Docker)

While I'm trying to build rpm using  for Phusion Passenger 4.0.53 (), I get the following error. Any help is most appreciated.  $ ./build -p /srv/passenger_rpm_automation/passenger -P /srv/passenger_rpm_automation/passenger-release-4.0.53 -o /srv/passenger_rpm_automation/out -d 'el6' -a 'x86_64' -c /srv/passenger_rpm_automation/cache  . . rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- Error unpacking rpm package filesystem-2.4.30-3.el6.x86_64 rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- error: unpacking of archive failed on file /sys: cpio: chown failed - Read-only file system rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory) rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory) . . . rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 --   xz-lzma-compat.x86_64 0:4.999.9-0.5.beta.20091007git.el6 rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 --   zlib.x86_64 0:1.2.3-29.el6 rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- Failed: rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 --   filesystem.x86_64 0:2.4.30-3.el6 rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- DEBUG: kill orphans *** Command failed: /usr/bin/mock --verbose  -r epel-6-x86_64 --resultdir '/output/el6-x86_64' --uniqueext passenger-el6-x86_64 rebuild /output/el6-x86_64/passenger-4.0.52-1.el6.src.rpm ----- Task errored: Building binary RPMs -> passenger:el6:x86_64 ----- --------------------------------------------- Current time: 2014-12-11 15:17:10 Start time  : 2014-12-11 15:15:45 Duration    : 1 min 24 sec   Environment: Ubuntu 14.04 LTS 64bit Docker version 1.3.2


c++ unresolved externals lnk1120 and class template

my last question:   I fixed the issue in my last post. everything has been fine till just now. there is a new issue.   in the project A, i have coded up an linkedList class template.  #ifndef LINKEDLIST_H_ #define LINKEDLIST_H_   template<class T> struct Node{         T value;         Node* next;     };   template<class T> class linkedList {  private:     Node<T>* head; public:      bool isEmpty() const{ return head == nullptr;}     Node<T>* getHead() const{return head;}     bool existVal(T value) const;     void insertVal(T value);     void deleteVal(T value){}        linkedList(){}     ~linkedList(){}  };  #endif   Anyways, i created another class, which would included   linkedList<unsigned int> num1   as private member variable.  here is the actual code:  #include"linkedList.h"  #ifndef L2_H_ #define L2_H_  class Add2Nums{ public:     Add2Nums(unsigned int, unsigned int);     ~Add2Nums(){}   private:     linkedList<unsigned int> num1;     linkedList<unsigned int> num2;     Add2Nums(); };   #endif   #include"L2.h"   Add2Nums::Add2Nums(unsigned int a, unsigned int b){     while(a!=0){         num1.insertVal(a%10);         a/=10;     }      while(b!=0){         num2.insertVal(b%10);         b/=10;     }  }   when i build the project, the following issues came up:


Entry Data for Journey - Scope and Values

Does the Entry Data in a Journey stay the same value throughout the Journey if it changes in Salescloud? My Marketing Cloud Instance is connected to Salecloud via the Marketing Cloud Connector.   I have a Journey that starts with the Entry of the creation of a new record in a custom object using the Salesforce Data option. We have selected several fields to be used in the Journey as Entry Data.  My question is if the journey lasts 30 days and the value of this field changes in Salescloud during that 30 days, will the value be reflected in the journey or does the value stay the same throughout the entire journey?


Python: Get a variable vector from a list of classes

I have a list full of classes of the same type: class Example():      def __init__(self, myVar):         self.myVar = myVar         # other variables and functions         # ...     Following example shows the list: myList = [] for i in range(0,10):     myList.append(Example(i))  And now i want a quick way to get a new list with all myVar of all Example-classes. I thoght of something like: myVector = myList[:].myVar  But this doesn't work. Can anyone help me?


Is it: My apples and orange are/is wrong?

Simple question:     My apples and orange are wrong   or     My apples and orange is wrong   I am not a native English speaker, and I am having some trouble choosing between plural are or singular is for that kind of example.


How Do You Access A Friends Minecraft World When They're Offline?

So I am on Minecraft playing on my friends world (Not server). However, they won't go online for no reason. I want to go continue my work on that world and not start brand new on survival again. I've already made a lot of progress and would not like to lose it, can somebody help? I've already tried to get answers but they are either too complicated or for servers like IP.


I need help re-installing Google Play   I don't know how to. I have tried turning off my phone, but it doesn't work. I want to download Temple Run 2, but I can't because I don't have Google Play. I am hopeless.


Missing whitespace in beta site statistics box

At least for successful beta sites, the new design seems to result in a lack of whitespace between the numbers and what the numbers represent.  Because a picture is worth a thousand words, even though this particular example comes straight off the presses at :


Ubuntu 14.04 system messed up after kernel update

Yesterday i updated my 12.04 to 14.04 which went very well except some smaller issues.  Today is installed the nvidia package 337 (through the additional drivers app) and rebooted, everything was just fine.  After some hours and several reboots (everything was fine until now), i thought to update from the older kernel version 3.5, wich was still installed and active from 12.04, to the actual kernel version 3.13le also. The update itself went well but after that i was stucked at bootsplash and i got an errormessage that the UUID is not yet ready.   Okay i got my LiveCD and repaired the grub installation. After that i was able to boot to the login screen. I was happy and tried to login but keyboard and mouse was gone.   I rebooted now several times, blacklisted driver, enabled blacklisted ones for usbkbrd and usbmouse but no way. At the moment i reach the bootsplash my keyboard/mouse are gone.  Im not able to log in and im also not able to start a command line. The recoverymode is exactly the same. Im happy to have CentOS also installed so i can access the system.  Xorg.0.log shows errros about the nvidia driver is not found. All .conf files depending from the nvidia installation in /etc/modprobe.d/modules are broken. I was just wondering why because i already used the nvidia driver yesterday on the old kernel. The Problems occurs after the kernel update.  For me it seems that the kernelupdate brings that lucky situation :-)  Any hints are welcome. Is there anything an could do from Centos?  I will now try to blacklist all my roccat hardware which i had also installed and see how that works.  EDIT The network is also disabled from what i can say here


Before making a clean install, how do I detect configuration changes in the current system?

I have a five year old Ubuntu system that I've been upgrading, mostly cleanly, but recently there is too much crud in the OS.  I'm planning to do a clean install to lubuntu 12.10.  However, I don't want to lose any of my system configuration.  Luckily, /home is in its own partition.  I do know most of my configuration changes are in /etc/ so I will definitely make a backup of that directory.  Is there any script or tool which will let me detect changes made in the OS configuration directories (essentially, detect if there is a diff) so I can more safely do my clean install.  I'm sure without it, I could rebuild a system, but it would definitely save me a lot of time if I knew what has changed.


Help me understand the use of "would " in a particular sentence (in IELTS Book)

Examiner: Describe a place you have visited in the past. Candidate: [...] When I was a student, I would go there all the time and hang out with my friends.  I don't understand what "would" means in this case. Please help me; thanks in advance.


Looping through an object's (class instance) properties in python and printing them

In python, how can an object's properties be accessed without explicitly calling them? And print those properties?  Ex:  class MyClass:      def __init__(self):      self.prop1 = None      self.prop2 = 10       def print_properties(self):      # Print the property name and value  example_a = MyClass() example_a.print_properties()   Desired output:  prop1: None prop2: 10   Different from:  as it was pointed out that accessing the private __dict__ methods is not advised. Linked posted is 2008 answer and doesn't define how to iterate through the object.


Maximum number of tile possible in 2048 game?

Ok my question is what is the maximum number of tile we can make in the 2048 game assuming we were really lucky and got all 4 number tiles and got the new squares exactly where we needed them?


Is there any graphical explanation of the derivative of $\sin x$?

I'm trying to understand in a practical/graphical view the derivative of $\sin(x)$ (that results in $\cos(x)$).  Is there any animation or illustration explaining that?


I read the story over ten years ago while I was still trying to learn English, so I can only vaguely remember that the story is about a cop trying to track down a criminal who had superhuman abilities. Some of his abilities were pyrokinesis, using his mind to form a golem from earth and roam around while he stays in the room and stopping time. Eventually the cop was able to catch the criminal and shot him dead.   If anyone could identify the book I would be very grateful. I'd love to read it for nostalgic purposes.


Are there any books similar to Universe?

I enjoy to read Universe by Roger A. Freedman and William J. Kaufmann. I love this book because it contains lots of images and illustrations about the contents so i do not get bored with all the details. That's what i loved about the Universe. And i am not having any problem with the math in the book so far.   Are there any books similar to this but about Standard Model, Particle Physics or Quantum Field Theory.  (The math can be harder than Universe, it is okay.)


Drawing hollow disks in 3D with a sphere in center and small spheres on the rings using Tikz

I asked a question  but it seems Tikz is a better option. I was trying to draw the following logo of an atom using Mathematica, but I could only figure out how to draw intersecting ellipses, not a nice logo like below. Do you know how to draw it by Tikz?


I have a few E mount lenses (Sony user). Now I want to switch to Canon

I have been doing landscape photography for a while now and I am looking to upgrade to a Canon EOS 5DS.   As a Sony user, I have a few lenses that I like. In particular, the Zeiss Batis 2.8/18 is my favorite lens.   I can find plenty of adapters going from Canon's EF to Sony's E mount, but not the other way.  If I were to switch cameras to the EOS 5DS, does it mean I have to give up all my lenses and buy new ones?


How to use latest value of a variable in a function

I have a piece of code that counts. The function showResultAndCount() shows counter and adds 1, the other function showResult() just shows counter.   I would like both functions to be able to work with the latest value of the variable counter. At the moment both functions seem to have their own version of the variable. How can I achieve this without using global variables?  This so elementary I assume it will be a duplicate, but I have no idea how this behaviour is called and therefore have no idea what I should be searching for on stack overflow or Google.      <button id='counter1'>   Show counter and count </button>

 <button id='counter2'>   Show counter </button>


Compile error with \href ToC and \apacite

I would like to edit my document but I have a compile error somewhere between the \href and the apacite but can't locate it. I've tried blocking out code and taking out references, with varying results.  \documentclass[a4paper,12pt]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc}  % TOC, Citations, Refereneces, and Appendicies \usepackage{apacite} % \cite{ref1,ref2} %Warning - unsupported tocstyle code \usepackage[tocindentauto]{tocstyle}     \renewcommand{\thesection}{\Roman{section}}      \renewcommand{\thesubsection}{\arabic{subsection}.}     \renewcommand{\thesubsubsection}{\roman{subsubsection}.} %\usepackage{hyperref} %\urlstyle{same} %\hypersetup{ %   colorlinks=true, %   urlcolor=cyan, %   linkcolor=blue, %   citecolor=green, %   filecolor=magenta, %   pdftitle={Sharelatex Example}, %   pdfpagemode=FullScreen, %} \usepackage[toc,page]{appendix}  \begin{document}    ...to be installed \cite{church13,hershkowits97}. \bibliographystyle{apacite} \bibliography{bibliography} \end{document}   Here are the bibliography.bib entries then  @ARTICLE{church13,    author       = {K.H. Church and H. Tsang and R. Rodrigiguez and P. Defembaugh and R. Rumpf},    year         = 2013,    title        = {Printed circuit structures, the evolution of printed circuit boards},    journal      = {Circuit Insight},    volume       = {},    number       = {},    pages        = {},    howpublished = {},     url          = {http://www.808multimedia.com/winnt/kernel.htm}, }  @ARTICLE{hershkowits97,    author       = {N. Hershkowits and R.A. Breun},    year         = {1997},    title        = {Diagnostics for plasma processing (etch plasmas) (invited)},    journal      = {Review of Scientific Instrumentation},    volume       = {68},    number       = {1},    pages        = {880--885},    howpublished = {}, }


How can we play yu-gi-oh online after dueling network's shutdown?

Dueling network . Is there any way to play yu-gi-oh casually online now?   I used to like the ability to just make any deck and play casually, I am trying to see if anything took its place.


Share ubuntu-server 16.04 folder to windows host

I have installed the ubuntu-server 16.04 and VBoxLinuxadditions and Samba  I am trying to share a folder from this server to my windows host machine. Now I can see this virtual server on my network but there are no shared folders on the server.    How do I make one through the command line?


Is there a built in method for waiting for a file to be created in c#?  How about waiting for a file to be completely written?  I've baked my own by repeatedly attempting File.OpenRead() on a file until it succeeds (and failing on a timeout), but spinning on a file doesn't seem like the right thing to do.  I'm guessing there's a baked-in method in .NET to do this, but I can't find it.


Squid 3.5.12 HTTP vs HTTPS Custom Block Page

I have Squid 3.5.12 On Ubuntu Server 16.04.5 LTS  I'm using it to block everything except specific domains listed in whitelist.txt  Everything is working fine except for the blocked page shown to the user:  With HTTP it works just fine with ERR_ACCESS_DENIED. It shows that the site is blocked. I edited /usr/share/squid/errors/fr/ERR_ACCESS_DENIED to show a personalized message and it works as expected.  The problem here is with HTTPS, it gives ERR_TUNNEL_CONNECTION_FAILED.  I want to make it show the same message as the HTTP does.  Is there a way to do it? Thanks.


Direct proof of non-commuting loops of figure-eight?

The van Kampen theorem implies that the fundamental group of the figure-eight, being the wedge product of two circles, is not abelian. How can one prove directly that the path-product of the loop $\alpha$ around one of the two circles and the loop $\beta$ around the other (both at the point where the circles are joined) does depend on their order, i.e., that $\alpha \beta$ is not path-homotopic to $\beta \alpha$? Surely there must be a way!


$Z(G\ast H)=\{e\}$ and $G\ast H$ is an infinite group

Let $G,H$ be a group.  Consider the following statement:  If $G$ and $H$ each have more than one element then,   $(i)$ $Z(G\ast H)=\{e\}$  $(ii)$ $G\ast H$ is an infinite group.  How can I get $(i)$ and $(ii)$?.I am seeking a suggestion. Thanks


I was wondering how you are supposed to use commas after full dates in AP style. I've been told to always put a comma after the year, like in the sentence:  On April 4th, 2012, I found a cat.  However, I thought the following might be an exception:  April 4th, 2012 brought the death of my cat.  Notice how there's no comma after "2012."  My teacher disagreed and told me that the AP style dictates that we always put commas after dates like that. The way I reasoned through it is by replacing the dates with the word "Monday"  On Monday, I found a cat. Monday brought the death of my cat.  And you wouldn't write  Monday, brought the death of my cat.  TL;DR Which one is correct?  April 4th, 2012 brought the death of my cat.  or  April 4th, 2012, brought the death of my cat.


What was the meaning of the Night King's message?

In S08E01 of Game of Thrones, we see this message:    We have seen this several times, the symbol drawn with horse heads, the stones around the Weirwood where White Walkers are created and in some caves, drawn by Children of the Forest.  Do we know the meaning behind this symbol? Does it or something similar occur in the books as well?


When I run my program using JsoupPath, there is an exception: Exception in thread "main" java.lang.NoClassDefFoundError: org/antlr/v4/runtime/CharStream   And I open the file of JXDocument.java where the exception come from. I found the some import statements are red:  How could I resolve this exception?


My mom and I are having a dispute on much more easy versus much easier. For example, consider the sentence:     It's [much more easy]/[much easier] to do action X than action Y.   I say that much easier is correct and that much more easy is grammatically incorrect, while she says that both are okay. I understand that both are acceptable colloquially, but which is grammatically correct here? If you could explain why, that would be even better!


Performance StringBuilder vs concatenation

I tested a simple concatenation:   string res = "";  for (var i = 0; i < 1000; i++)  {      res += mystring;       }  return res;   and another with a StringBuilder object:   StringBuilder builder = new StringBuilder();  for (var i = 0; i < 1000; i++)  {      builder.Append(mystring);             }  return builder.ToString();   The bigger is the cycle, the better are the performances using the StringBuilder.  I would like to know the real reason of this result, I mean, that fact of creating, implementing an object, calling methods is faster than a simple string1 + string2?


How can I get the bash to look colored like this?


How can I view the contents of tar.gz file without extracting from the command-line?

I want to see the contents (list of files and folders) of an archive, for example a  tar.gz file without extracting it.  Are there any methods for doing that?


What does the "F" mean in-front-of these Grease Pencil brushes?

Anybody know what the leading "F" means on these brushes?


Someone asked me today, "Why we should care about groups at all?"  I realized that I have absolutely no idea how to respond.  One way to treat this might be to reduce "why should we care about groups" to "why should we care about pure math", but I don't think this would be a satisfying approach for many people.  So here's what I'm looking for:          Are there any problems that that (1) don't originate from group theory, (2) have very elegant solutions in the framework of group theory, and (3) are completely intractable (or at the very least, extremely cumbersome) without non-trivial knowledge of groups?      A non-example of what I'm looking for is the proof of Euler's theorem (because that can be done without groups).  [Edit] I take back "insolubility of the quintic" as a non-example; I also retract the condition "we're assuming group theory only, and no further knowledge of abstract algebra".


In the Star Wars universe can droids be Force-sensitive? Were there any droids that could use Force powers?  Is it possible in the Star Wars universe for a droid to become Force-sensitive?  What about androids if not droids? I think biological material is needed.


I'm looking for a word that describes that moment you feel overwhelmed by the beauty and grandeur of nature

I was on a mountain the other day and had a moment where I just had to stop and take it all in. I felt insignificant (in the best way) and just stopped to admire where I was. The closest words I could find was something along the lines of biophilia, or the German word Waldeinsamkeit.


How does the CPU communicate with the GPU before drivers are loaded?

As I understand it, GPUs have their own instruction sets, whose instructions are generated by the graphics drivers. The GPU instructions are then sent to the GPU. So, how does graphics communication work before the drivers are loaded? Are there some base instructions which GPUs must implement as a minimum to ensure that the computer can perform basic display tasks?


Django: How can I protect against concurrent modification of database entries

If there a way to protect against concurrent modifications of the same data base entry by two or more users?  It would be acceptable to show an error message to the user performing the second commit/save operation, but data should not be silently overwritten.  I think locking the entry is not an option, as a user might use the "Back" button or simply close his browser, leaving the lock for ever.


Is it possible to assign multiple colors to the command "cancelto" of the package cancel?  This answer  is almost there, but it changed the color for all the environments, at least it's my guess.   I was imagining something customizable, for example:  \renewcommand{\CancelColor}{\color{color of choice}} %%%%%%color as an input%%%%%%%  \cancelto[color of choice number 1]{0}{x} \cancelto[color of choice number 2]{0}{x^2}   Regards,


Short story about color-coded ant-people

This is a short story that I read when I was a teenager in the 80s.  It is about this man who buys an ant farm that contains ant-sized human creatures of different colors.  He acts as their "god" providing food and they worship his image.  Later on he decides to ration the food in order to make them go to war against each other which they do.  Of course from there some unexpected things happen including the ant-sized creatures escaping the farm and so on. Specifically, I remember that the orange anta had a special role in the development of the story.  thanks!


What is the difference between logical schema and physical schema?

While going through Database architecture I came across Schema's . I am very much confused with:  Logical schema  Physical schema  How these two schema exist in the Database?  How can these be manipulated according to need?  How Logical schema and physical schema are related?


Why Isn't There a Jedi Breeding Program?

I know that the Jedi are not supposed to have attachments with others (so it doesn't interfere with their work) and that would effect romantic relationships.  However Force sensitivity is, at least sometimes, able to be passed on genetically.    Why hasn't there been some kind of breeding program to encourage more people with a higher level of Force sensitivity from the offspring such a program would create?


Prestige level reset to 0 in Modern Warfare 3?

I was Prestige 17: Level 50, playing Search & Destroy in a lobby. I left the game and the next thing I know I'm Prestige 0: Level 0. I played a couple of games of Team Deathmatch and now I'm Prestige 0: Level 7. It seems like my prestige was reset for some reason and it won't go back to 17.   I've lost only my prestige progress; All the titles and emblems I've unlocked are still intact. My player card is just like it was before. I have the previously unlocked custom classes although I had to get to lvl 4.  I have tried signing out/in of PSN, removing/re-inserting the game CD, turning my PS3 off/on but no dice so far.  I created a secondary account just to reach prestige master and now I'm back to square one. Is there anything I can do to get my Prestige levels back?  Proof: My PSN is Jack-ThePwner


One of my players has a build that grants advantages when he is hit, especially when hit by an Opportunity Attack. The problem is that his AC is very high, so straight rolls miss.   My natural inclination is that the AC numbers shouldn't matter. If a player wants to be hit, he could move into the incoming attack. So, as long as the monster doesn't roll a 1, all Opportunity Attacks should land if the Players wants them to. ("Look at me! I'm very slowly running away! I hope all these big bad monsters don't strike me as I turn my back and trim my fingernails!")  Yes, I know that plate armor, for instance, will deflect any blow if hit in the center of the plate, but there has to be some way to expose/open oneself to damage.  I'm having trouble finding rules for when a players wants to be hit. What's the mechanic?


How to prove $\operatorname{rank}{(AB)} = \operatorname{rank}{A}$?

How to prove $\operatorname{rank}{(AB)} = \operatorname{rank}{A}$ given that $A$ is any $m \times n$ matrix, and $B$ is is any $n\times k $ matrix where $\operatorname{rank}{(B)}=n$ ?  It is a property of rank, written on .  EDIT  I'm sorry there is a typo, it should be $\operatorname{rank}{(AB)} = \operatorname{rank}{A}$ but I wrote $\operatorname{rank}{(AB)} \le \operatorname{rank}{A}$


Metric of the real numbers for which it is not complete

Is there a metric for which the real numbers are not complete? Clearly this is true if there is any non-complete uncountable metric space (though I haven't been able to find an example for this neither), but I am specially interested if the metric is something that can be written with the usual functions and operations in the reals.


How much RAM would Ubuntu 14.04 need?  (Usage: A bit of pictureprocessing, maybe an IP-Camera Stream, ordinary officework, simplecv, some Torrentdownloading).  Is 4GB or 8GB better suited for me?


Will Pokemon Go work with my rural location?

I am really looking forward for the launch of Pokemon Go here in Portugal (as an excuse to go outside) but I'm really concerned if it will work with where I live. I pretty much live outside civilization:   3KM away from my house is a small village with ~50 people, 30KM away is a town with ~1000 people, 90KM away is one of the biggest cities in the country, Coimbra   Therefore, I would like to know if I will be able to play Pokemon Go or if I need to use my private jet to get to the nearest Pokemon.  PS: What I actually mean with this question is: Will I be able to catch Pokemon in the wild, or will they not spawn? I have GPS and mobile data


Do I need to pass UK Border Control if I'm changing from Terminal 5 to Terminal 4 at Heathrow?

I'm an Indian national. I'm travelling from Germany to India and I have a 9 hour stop at Heathrow Airport. I have to change terminals, does this mean I have to go through UK's Border Control?


Override an advanced custom fields action callback

I'm in the process of writing a CDN plugin for WordPress and am trying to integrate it with the Advanced Custom Fields plugin. I need to filter the output of the "File" field type on the edit post screen so I can display the correct file size for an attachment not hosted locally.  Unfortunately, ACF doesn't provide a way to filter the output so I'm having to resort to completely overriding the ACF callback which outputs the field  To do this, I need to first remove the ACF callback from the action, then add my own. I'm not able to use remove_action() because the ACF callback is an object method and I cannot access the object variable  I don't want to use remove_all_actions() because it could potentially break other plugins hooking on to the action so I have come up with the following:      global $wp_filter;      if(isset($wp_filter['acf/create_field/type=file'])) {         foreach($wp_filter['acf/create_field/type=file'] as $priority => $filters) {             foreach($filters as $key => $filter) {                 if(is_array($filter['function']) && ($filter['function'][0] instanceof acf_field_file)) {                      // If the function is an array, and the first part is an instance of the acf_field_file we have found what we're looking for                     unset($wp_filter['acf/create_field/type=file'][$priority][$key]);                      break 2;                 }             }         }     }      // Now add our own callback     add_action('acf/create_field/type=file', array($this, 'create_file_field'));   There's just something about looping through the wp_filters global that I don't like. Is there a better way of doing this or am I going to have to stick with this ugly bit of code?  EDIT: I'd like to stress that this is NOT a support request/question for a 3rd party plugin (ACF). The plugin being used is not relevant to the question. The question, in it's most basic form, is how to remove a callback from an action which happens to be an object method where the object variable cannot be accessed


How to join two separate shapes with an intermediate one

so my probleme is quite simple. i have 2 circles away from each other and not intersecting, I want to connect those 2 cirlces with a rectangle in the middle.  heres what I have    and heres what i want     however as u can see its not perfect. I would like to know how. (Ai cc 2018)


File.Copy() to file server with network Credential

I am writing console application which will Copy file from my local disk to file server.  This folder is protecting by username and password. File.Copy() method does not work. It gives permission error.   I have tried it but it does not work. First it was written in VB but I have changed the code to C# but there are have some errors. I don't know what does this error mean.  Maybe you can advise me other way coping  file to protected File Server  with simple File.Copy(bla bla) it gives me "you have not permission"  when i converted VB code to C# it gived me error below: Attempted to read or write protected memory  I have found solution


Whether and how to thank a girlfriend or boyfriend in the acknowledgements of thesis?

How is it received by the academia if someone thanks to his/her girlfriend/boyfriend in the acknowledgements of the thesis?  I have seen writers including his/her fiancee in the acknowledgements, however I don't know if including an informal relationship in the thesis will be received well.  If it is acceptable, how should I refer to my girlfriend?


What is strain? Why does DNA coil upon itself?

I have been reading Lehninger's Principles of Biochemistry to understand DNA supercoiling (pg-). Supercoiling is the twisting of a DNA upon itself and this happens when the two helically wound strands of DNA are either underwound or overwound. The book says that this act of underwinding or overwinding generates a structural strain  which is then accommodated by coiling of the DNA upon itself (supercoiling). Here the word strain has been used in the way stress of mechanical physics would be used. I wonder if it means stress. Besides I would like to know how underwinding or overwinding cause the DNA to coil upon itself. Excerpts from the book:  DNA supercoiling is generally a manifestation of structural strain. Most DNA are negatively supercoiled (which means that the supercoiling is left handed). In almost every instance, the strain is a result of underwinding of DNA double helix. Supercoiling is not a random process; the path of the supercoiling is largely prescribed by the torsional strain imparted to the DNA....  Torsional strain, again is it talking about ? P.S. The description of the question has been changed recently.


Is Ubuntu One available for Ubuntu 18.04?

I want to sync files to the cloud in Ubuntu but I cannot do it using Google Drive or OneDrive, instead I have to manually upload them.  I found Ubuntu One, but I can't find any way to install it.  How do I install it?


Unable to create a required list of a given size


I have a listing of files that have numeric characters at the end after a dot.  ex :   abc.log abc.log.1 xyz.log xyz.log.1 xyz.log.2   I need to list only the logs that have .log at the ending and not the ones with .log.1 or .log.2 at the ending.


C++14 Is dereferencing to temporary object safe?

I have code like this and I am curious if this is safe.  #include <iostream> struct A{     int x=4;     A* operator-(){return this;}     }; A func(){return A();}  int main(){     std::cout<<(-func())->x<<std::endl; //Dereferencing to temporary object     return 0; }   I compiled it with g++ 6.3.0 with -O3 and it printed 4 as I had expected. I know it wouldn't work if I put the result of -func() in a new variable and dereferenced it later, but in the above case, is the result guaranteed?


Any simple way to apply a color index (to achieve things like 256 color range) across an entire render?

I am wanting to make some animations that have a reduced color range (similar to 80s/90s CGI.)   I know of ways to reduce that for still imagery such as in photoshop, but I know of no ways to do this within Blender. The only color options change the color from 8 to 16 bit.  Is there a compositor node to do this, or would I have to batch edit every frame separately than compile later into a movie file? Or is there another program better suited for this like Final Cut Pro?


What is the importance of Modular arithmetic in cryptography?

Why do we use modular arithmetic so often in Cryptography?


Would it be a mistake to use the word "gay" in business or academical writings?

This is a post by NiceTryDad on instagram.     Son: "What does the word "gay" mean?"   Me: "It means happy."   Son: "Oh, are you gay?"   Me: "No, son, I have a wife."   Later then, I googled up the meaning of the word "gay". And I found that it has some meanings in its older use, like having or showing a merry, lively mood, and also bright or showy. And also,  explains:     Gay meaning ‘homosexual’ became established in the 1960s as the term preferred by homosexual men to describe themselves. It is now the standard accepted term throughout the English-speaking world. As a result, the centuries-old other senses of gay meaning either ‘carefree’ or ‘bright and showy’ have more or less dropped out of natural use. The word gay cannot be readily used today in these older senses without arousing a sense of double entendre, despite concerted attempts by some to keep them alive. Gay in its modern sense typically refers to men (lesbian being the standard term for homosexual women) but in some contexts it can be used of both men and women   I know that that post was just a joke, but I'm wondering if I can use the word gay to indicate that someone's happy in business or academical writings. Since people would always refer it to its modern sense (homosexuality).


Showing that $|f(z)| \leq \prod \limits_{k=1}^n \left|\frac{z-z_k}{1-\overline{z_k}z} \right|$

I need some help with this problem:     Let $f\colon D \to D$ analytic and $f(z_1)=0, f(z_2)=0, \ldots, f(z_n)=0$ where $z_1, z_2, \ldots, z_n \in D= \{z:|z|<1\}$. I want to show that $$|f(z)|  \leq \prod_{k=1}^n \left| \frac{z-z_k}{1-\overline{z_k}\, z} \right|$$ for all $z \in  D$.   It seems that I need to use Schwarz-Pick Lemma but it seems that the problem doesn't satisfy the conditions. Another lemma that I can use is that of Lindelöf saying: Let $f:D \to D$ analytic, then $$|f(z)|\leq \frac{|f(0)|+|z|}{1+|f(0)| \cdot |z|}$$ for all $  z \in D$.  It seems to be an easy problem but I couldn't succeed in solving it.


Unable to make array with 25 integers populated with random numbers from 10 to 99. /java

I have to use the math.random to populate my array with 25 random integers between the range 10 and 99. I'm also having problems trying to print the array. Instead of the full array being printed, only the memory location is printed. How to I write the command for it to print? Thanks in advanced. This is how I've written my code and I know there's something wrong with it but just done know how to iron it out. Thank you in advance   public class Proj5COMP110 { public static void main(String args[])  { System.out.println ("Project 5: Quick Sort");     int i;     int mSample [] = new int[25];     for ( i= 0; i< mSample.length ; i++)      {         mSample[25] = (int)(Math.random ()* (99-10)+10);     } System.out.print(mSample[25]);  } }


How can I make a program start at a higher priority?

I'd like to set my pulseeffects to start  up at a higher priority automatically after booting up the pc. It works as a workaround for couple small issues but setting it manually every time starts to get annoying.


I had a directory with a file and another empty directory in it like this:  . .. file.ext folder   I did:  mv file.ext /folder   The file disappeared now, not in folder too not where it was before!   Anyway to find it back?   Thanks


Should I cross-post a question that hasn't been answered?

I didn't get answer from my question for EX:"" IN SQA, So can i post same question on Stack Overflow. Please help me... any how iam doing this for to get the answer.


Two Clash of Clans accounts on one device

I have been playing on two clash of clans accounts on one device for a long time but just recently i cannot switch from my lvl17 to my lvl75. The switch villages option is not popping up for me and I don't know why. Can anyone help me get my main account back?


How do you make a local (LAN) server in minecraft?

I went to multiplayer and pressed "New Server" I entered the name I want it to be and the address. I pressed done but it said "hostname not available"


I have an hp pavilion g6 laptop that have ubuntu as operating system , and I had no other OS on it. but now I need to install win7 with ubuntu. and I cant do it. can anybody help me with this


How do I use an OpenType font with my LaTeX document?

I want to use a really cool open-source OpenType font with my LaTeX document.  I was told that either I could go through a long process of converting the OpenType font to one useable by LaTeX, or I should instead switch to using XeTeX.  Is there a way for me to use an unmodified OpenType font with my LaTeX document (and existing LaTeX installation)?


Struggling to understand curve extrusion

What I am experiencing a lot in blender is invalid curve extrusion size. It works just fine for non-scaled curved but it gets messy once curve is actually scaled. Steps to replicate...  Create a curve Scale it up (required - lets go with 10x) Extrude 1 m. Actual extrusion is 10m (that's expected) Apply scale Extrude param is still 1m but the actual extrusion is 10.  It just doesn't add up. Shouldn't extruded curve be actually extruded to the defined size? I think it's a bug but perhaps I am just missing something. Shouldn't extruded curve be actually extruded to the defined size? I think it's a bug but perhaps I am just missing something.


How can I avoid this unwanted rotation in an object with curve modifier?

I'm trying to make a handrail but i get this unwanted rotation. I want the start and the end of the handrail to have the same rotation (flat).  I used a long subdivided cube to show it better, you can see that at the start it is flat like I want it but at the end it gets rotated by something like 40 degrees.  If I use a curve with the bevel option instead of an object with the curve modifier i get the same problem.


I don't see "Helpful" in the list of things I can do when I press the flag link.   In my profile page I saw "6 helpful flags."  How do I earn these flags?  May I make them on other peoples' posts or comments?   This is what I am talking about:


Should K=2 softmax regression and logistic regression give the same results?

I would like to demonstrate the  of the softmax function and its relation to the sigmoid function with a practical example.  With toy data, it's easy to show that:  logits = np.array([.123, .456])  softmax(logits) == np.array([ sigmoid(logits[0] - logits[1]), 1 - sigmoid(logits[0] - logits[1]) ])   With real data, I'm constructing both a vanilla logistic regression model and vanilla k=2 softmax regression model, each without a bias term. All weights are initialized to .0001. I'm running 1 step of gradient descent, using a batch size of 1.  Should the two functions make identical predictions? What relationship, if any, should we observe between the weights and/or logits of the respective functions?  Empirically, I'm not seeing any relationship between the two.


calculate least cost pathways for a region and create distance rasters to rivers

How do you calculate all the least cost pathways that exists for a region? I would like the output map to display all routes (and was wondering whether this can be done in one set of operations). I want to determine this by taking into account two things: slope and valley floors.    I have been informed that I need a DEM raster, and distance rasters to valley floors and rivers. I have a river system shapefile (once is in a polygon and the other is in a line format) but I don't know exactly how to create these rasters. As it stands, this is what the DEM raster and the riverways shapefile look like:    I have followed the tutorials in ArcGIS help 10.1 but I just don't seem to be going anywhere. I am able to create least cost pathways between two points based solely on slope, and I have tried reclassifying via building models but have been unsuccessful in creating images that display meaningful results - I think the biggest issue is inputting or creating distance rasters to valley floors/rivers and combining that with the slope raster.  Can anyone explain in layman's terms how I could create distance rasters to valley floors/rivers from a polygon or line shapefile and how this can be combined with a slope raster to create an output map displaying all existing least cost pathways for a selected study area?   Please, any help, advice, suggestions or comments would be immensely appreciated!


A cork and a metal Bob are connected by a string as shown in the figure.   In case the beaker is given an acceleration towards left, the cork moves towards ..?   I answered that the cork moves towards right because of a pseudo force but the answer key says that it moves towards left due to a pseudo force. But if you look at it, it seems intuitive that the pseudo force  gets applied to the right, isn't it?


I can see this as being 50/50 between here and Eng.SE, so I decided to ask here as it deals with the PCI Express standard.  I'm attempting to create a library of PCI Express card edge footprints in Altium Designer, but I'm running into two dilemmas as to how the Card Electromechanical Specification lays out the the card edge dimensions. The image below is a snippet of the mechanical spec:    The two issues I'm having are:   The length (or, I suppose, height) of the normal-size pins are not specified. I was able to infer based on the height of the PRSNT2# pin and the difference in distance between edge of pin to edge of card that the normal pin should be 4.20mm high - is that correct? The distance of B12 to the key centerline is specified as 1.50mm, but not the distance in the other direction, that of B11 to the centerline. I'm a little uncomfortable making the assumption that the two are the same and that the pitch between the pins is 3.00mm - can anyone confirm (or deny) this?


I tried the following but I get the errors at the end. In order to make sure that 4.8.2 was not interfering, I removed it.  Any suggestions would be great!  sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install g++-4.9  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  g++-4.9 : Depends: gcc-4.9-base (= 4.9.2-0ubuntu1~14.04) but 4.9.2-10 is to be installed            Depends: gcc-4.9 (= 4.9.2-0ubuntu1~14.04) but it is not going to be installed            Depends: libstdc++-4.9-dev (= 4.9.2-0ubuntu1~14.04) but it is not going to be installed E: Unable to correct problems, you have held broken packages. idf@C55t-A:/etc/apt$   Edit 1  When I used aptitude, I get these warnings although it seems to work  perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:         LANGUAGE = "en",         LC_ALL = (unset),         LANG = "en_US.UTF-8"     are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory


Select part of VARCHAR value separated by the same special characters

I am using SQL Server 2008 R2  This is the value that I have :  DECLARE @DBB varchar(200) = 'A2gg3h.B2g3ghh3.Cggh3663.D1jhg23.Eh2hjj2g'   Returning the 2 outer values are easy enough :  SELECT LEFT(@DBB, CHARINDEX('.', @DBB)-1) SELECT RIGHT(@DBB, CHARINDEX('.', @DBB)-1)   How would I alter script in order to select values :  1. 'Bg2g3ghh3' 2. 'Chggh3663' 3. 'Dh1jhg23'   Using CHARINDEX would only bring back (LEFT) 7 and (RIGHT) 9.  Thanks


Bat file to backup when the cable is connected

I need to do a Bat file (or something like that) that do a Incremental Backup of some especified folders when, and just when, the Ethernet Cable is connected.  How can I do it? I have no idea how can I start..


Usage of the Present simple and the Future Progressive

Why we use the Present Simple in the sentence:     The train leaves at half past six tomorrow morning.   I think the future progressive also may use there. It is because future progressive can denote events which are expected to happens in the normal course of events. That is, what is differences of the sentence, cited above and the sentence:     The train will be leaving at half past six tomorrow morning.


In QGIS 3.4.4, using the Field Calculator, the expression  round(-2.040,1)   returns   -1.9   where I expected it to return  -2   Converting the field to real round(to_real(-2.040),1) did not change anything.  In QGIS 2.18.19 and got the expected result.  Is the syntax changed in 3.x or is this a (known) bug? Or am I expecting the wrong output?


"this" and object literals in JavaScript

var v = {     foo: (function () {         return this;     }.bind(this)) };   What is the value of this when passed to the bind invocation (and why)?


Upgrading A Verizon Galaxy Note 2 to Marshmallow

I'd like to upgrade my old Verizon branded Samsung Galaxy Note 2 (SCH-I605) running 4.4.2 to Android Marshmallow to get the latest updates (specifically the security updates for StageFright), but thus far I haven't been able to find any documentation on the internet showing how. My Nexus 6 actually gets it's updates directly from Google thus guaranteeing I always have the latest patches.  I'm tech savvy, but I've never tried unlocking/rooting/modding a phone before. Can anyone provide any guidance on what tools to use and what ROM to install?  Note: I understand rooting/modding a phone comes with risks and accept full responsibility if I 'brick' my phone.


How do I change my Stack Exchange password?

How do I change my password?  I have a Stack Exchange account but can't seem to find the option to change my password.  Help please?


I've read , I've read , I've read , but I still just don't get it. How does a Quantum Computer work? It sounds very intriguing, but I just can't wrap my mind around it. I would greatly appreciate it if someone could explain it to me as they would explain the basics of it to their 7 year old nephew (who apparently is probably about equal to me in their ability to understand this concept!)   Typically analogies work best when explaining concepts to the unenlightened, but this is quantum theory, so I'm not sure any analogy could exist that can explain such a bizarre concept ;)


How to break up table headings into two lines?

I'd like to have the headers of my table on two lines. For example, I would like Reaction Buffer to be ABOVE (150mM sodium acetate), and etc. for each column, but I don't know how to do this.  Also, the table is far too wide for my document, does anyone know how to compress (shrink) the whole thing?  \footnotesize \begin{table}[h] \centering \small \footnotesize \tabcolsep=0.11cm \begin{tabular}{@{}ll@{}@{}ll@{}@{}ll@{}ll@{}} \toprule Tube & MilliQ Water $(\mu L)$ \, &  100 mM MgCl\_2 $(\mu L)$, & Reaction Buffer (150 mM sodium acetate) $(\mu L)$  \,  & 500 mM NaOH $(\mu L)$, & 4 mM pNPP $(\mu L)$\\  \midrule     1 & 60 & 15 & 30. (pH 4.0)& {} & 600. & 30. \\     2 & 60 & 15 & 30. (pH 5.0) & {} & 600. & 30.\\     3 & 60 & 15 & 30. (pH 6.0) & {} & 600. & 30.\\     4 & 60 & 15 & {} & 30. (pH 7.0) & 600. & 30. \\     5 & 60 & 15 & {} & 30. (pH 8.0) & 600. & 30. \\     6 & 60 & 15 & {} & 30. (pH 9.0) & 600. & 30. \\  \bottomrule \end{tabular} \end{table}  \end{homeworkProblem}


Did not get notification about new privilege

Today, I crossed 5000 reputation on Stack Overflow. So probably I expected to get a notification about privilege of Approve or reject tag wiki edits. But I did not get any notification. Is this because I already visited that privilege page before I reached 5000 reputation? Or is this a bug?  P.S. Today, I also crossed 2000 reputation on Meta Stack Overflow. Where I got a notification about privilege of Edit questions and answers. So I think this is an issue of Stack Overflow only.  My notification box: (You can see there is no notification about Approve or reject tag wiki edits privilege.)


Can we have a Primary Avoidance Theorem ?

Prime Avoidance Theorem says:     Let $ P_1, P_2,\dots, P_n $ be prime ideals in a commutative ring   $R$ and let $I$ be an ideal of $R$ such that $ I \subseteq P_1 \cup P_2 \cup \cdots \cup P_n$. Then $ I \subseteq P_k $ for some $k\in \{1,2,\dots,n\}$.   Is true if replace prime ideals by primary ideals?


Evaluate: $\int \sqrt {\tan (x)} \,dx$  My Attempt: $$=\int \sqrt {\tan (x)} \,dx$$ Let $u=\tan (x)$ $$du=\sec^2 (x) \,dx$$ Then  $$=\int \frac {\sqrt {u}}{u^2+1} \,du$$ Let, $s=\sqrt u$ and $ds=\dfrac 1 {2\sqrt u} \, du$ So, $$=2\int \dfrac {s^2}{s^4+1} \, ds$$  What to do further?


How to Display Hierarchical Vocabulary Terms in URL Pattern Separated with Slashes

I'm not sure if this is the appropriate place for this question (I'm a self-proclaimed newbie)...I have a vocabulary with the following scheme:  category1     subcategory1a     subcategory1b   I'm trying to create a URL pattern for the content path so it has the following URL pattern: category1/subcategory1a/[node:title].  I have Drupal 7.22, Entity API 7.x-1.0-rc3, Token 7.x-1.1, and Pathauto 7.x-1.1 and have been trying different token patterns in the URL aliases section.  If I set the pattern to be [node:field-VOCABULARYNAME]/[node:title], then the URL alias generated is: category1-subcategory1a/[node:title]. Is there a way to have a "/" appear between the parent term and subterm instead of a dash?  Or is there a way to create the pattern: [node:field-VOCABULARYNAME:0]/[node:field-VOCABULARYNAME:1]/[node:title]?  The tokens related to individual content items ("nodes") listed are:  [node:field-VOCABULARYNAME]     [node:field-VOCABULARYNAME:1]     [node:field-VOCABULARYNAME:2]     [node:field-VOCABULARYNAME:3]   If I set the pattern to [node:field-VOCABULARYNAME]/[node:field-VOCABULARYNAME:1]/[node:title], then the URL alias generated is: category1-subcategory1a/subcategory1a/[node:title].  In my content type, I have the field that's tied to the vocabulary is set up as a Hierarchical Select widget with Term reference as the field type.  I found these  and  posts and it seemed most relevant to me, but I do not have the taxonomy term tokens listed.  Thank you for your guidance


bypass activation lock on i pod touch 5th generation

how do I bypass a activation lock for a I pod touch 5th generation if I can't get a hold of previous users apple id and password


Is Starbound the sequel to Terraria? or what is their relationship?

A game called 'Starbound' popped up on Steam and I am confused as I am waiting for Terraria 2.  I love Terraria and some various websites said that the Starbound developer team has members from the Terarria team.  Also terraria 2 and starbound are both supposed to feature infinite worlds and space travel etc.     Is starbound terraria 2? or are they different competitor companies / games? Is starbound game play similar to terraria?


How to extract the decimal part from a floating point number in C?

How can we extract the decimal part of a floating point number and store the decimal part and the integer part into two separate integer variables?


Can photons be detected without being absorbed?

I am thinking about a detector that would beep if light passes through it. Is it possible?


Basically Drupal is bit complicated for normal clients. Drupal 7 is better but still its not that user friendly for clients especially when comes to admin content or taxonomy!  Is there any module or themes which designed the client in mind? I found  and  very helpful :) Any other to simplify admin section?


Should I flag for moderators to add status tags?

Occasionally I see an old Meta post that has no status tag (like ), but from the answers it looks like the question is resolved.  Example:  should be  since the answers say HTTP compression actually is enabled.  Is it worth flagging these questions, or is that a waste of time?


Where is the advanced class trainer for smugglers?  I can't find where I am supposed to choose my specialization.


Time traveller destroys the universe by going fifteen minutes back

I am looking for a veryshort story from the 1960s about a time traveller who travels back in time fifteen minutes only to tell the person he meets that the amount of energy it took to propel him back in time destroys the universe.


What is the difference between anonymous function and function expression in JavaScript?

I've been having trouble with function expression and anonymous function.  let sayHi = function() {   alert( "Hello" ); }; //This is function expression  var anon = function() {   alert('I am anonymous'); } anon(); //This is anonymous function   I don't see the difference between those two. From i see, they look the same to me. Can anyone please give me a better explanation of it so i can understand it. I appreciate it. Thank you


Sometimes can't able to select the options from drop down webdriver/java

I can able to activate the drop down and able to select the value from it sometimes but sometimes i can't able to select the option for the drop down and i am facing an timeout error.  Code:  driver.findElement(By.xpath("//*[@id='tabstrip-2']/div[1]/span/span/span[2]/span")).click(); Thread.sleep(15000); driver.findElement(By.xpath("//*[@id='ddlschedule_listbox']/li[2]")).click();   Error: Exception in thread "main" org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with Command duration or timeout: 35 milliseconds


How to access /srv on the root partition when a different mount is mounted at /srv?

In our case, we have a /srv mount which is a LUKS partition. After a reboot, this partition needs to be manually mounted because the passphrase needs to be entered (keyfiles not allowed), but during that time the /srv folder on the root partition is already being filled with replication data. This caused the / partition being at 100% capacity. I'd like to be able to remove the contents of the /srv folder on the root partition, without influencing the mount that's mounted at /srv. Is there a way to do it, taking into account this is a live production system and we can't afford any downtime? Note: this issue isn't about preventing the /srv folder from being filled. We're looking into fixing that by using /srv mount as a systemd unit dependency


I am confused by my test results:  Set<opportunity> setOpp = new Set<opportunity>(); Opportunity opp = [select Id,CloseMonthText__c from Opportunity where     id='0067000000hqu5X']; for(integer i=0;i<10;i++){     opp.CloseMonthText__c='A'+i;     setOpp.add(opp); } System.debug('SetOpp: '+setOpp); System.debug('size: '+setOpp.size());  For(opportunity o:setOpp){     System.debug(o); }   The output I get is something like this:     SetOpp: {Opportunity:{Id=XXXX,CloseMonthText__c=A9}}      Size: 10      Opportunity:{Id=XXXX,CloseMonthText__c=A9      Opportunity:{Id=XXXX,CloseMonthText__c=A9      Opportunity:{Id=XXXX,CloseMonthText__c=A9      Opportunity:{Id=XXXX,CloseMonthText__c=A9      Opportunity:{Id=XXXX,CloseMonthText__c=A9      Opportunity:{Id=XXXX,CloseMonthText__c=A9      Opportunity:{Id=XXXX,CloseMonthText__c=A9      Opportunity:{Id=XXXX,CloseMonthText__c=A9      Opportunity:{Id=XXXX,CloseMonthText__c=A9      Opportunity:{Id=XXXX,CloseMonthText__c=A9   I know that set detect duplication of SObject by checking all the fields of the record. I think Set stores a reference to the actual instance. In the for loop it's also changing the referenced value of set. How come the set size is 10? Can anyone explain the output?


prove：  $\left|x+\frac{1}{x}\right|\geq 2$  Can I just use   $\left|\left(\sqrt{x}\right)^2+\left(\frac{1}{\sqrt{x}}\right)^2\right|\geq 2$  and  $\left|\left(\sqrt{-x}\right)^2+\left(\frac{1}{\sqrt{-x}}\right)^2\right|\geq 2$?


Euclidean geometry in non-inertial frame

Refer, "The classical theory of Fields" by Landau&Lifshitz (Chap 3). Consider a disk of radius R, then circumference is $2 \pi R$. Now, make this disk rotate at velocity of the order of c(speed of light). Since velocity is perpendicular to radius vector, Radius does not change according to the observer at rest. But the length vector at boundary of disk, parallel to velocity vector will experience length contraction . Thus, $\dfrac{\text{radius}}{\text{circumference}}>\dfrac{1}{2\pi}$ , when disc is rotating. But this violates rules of Euclidean geometry.   What is wrong here?


Period detection of a generic time series

This post is the continuation of another post related to a . Basically, at this point I'm interested in a robust way to discover the periodicity/seasonality of a generic time series affected by a lot of noise. From a developer point of view, I would like a simple interface such as:  unsigned int discover_period(vector<double> v);  Where v is the array containing the samples, and the return value is the period of the signal. The main point is that, again, I can't make any assumption regarding the analyzed signal. I already tried an approach based on the signal autocorrelation (detecting the peaks of a correlogram), but it's not robust as I would like.


Is the Amazon EC2 instance id will be reused?

Today lots of peoples/developers are using VM's in EC2, so keeping in this mind there are lots of VM's were getting created and deleted every day.  Also, EC2 allocates an ID (auto-generated) to each instance in the cloud at the time of VM creation.  So, Is there any chance that this ID gets reused(repeated) considering this same ID was assigned to an instance but now that instance got deleted?  And Is this ID will be unique globally or per user??  Thanks


Why is there a delay when entering a wrong password?

When entering the right password the application or the OS (no specific application, pretty much everywhere) accepts this immediately, but when entering a wrong password there is a slight delay of 1-2 seconds. Why is that?


Given the follow sample data:  CREATE TABLE People(PeopleID int, Name varchar(10)) INSERT INTO People VALUES(1, 'Chris') INSERT INTO People VALUES(2, 'Cliff') INSERT INTO People VALUES(3, 'Heather')  CREATE TABLE Things(ThingID int, ThingName varchar(10)) INSERT INTO Things VALUES(14, 'Bike') INSERT INTO Things VALUES(17, 'Trailer') INSERT INTO Things VALUES(18, 'Boat')  CREATE TABLE PeopleThings(PeopleID int, ThingID int) INSERT INTO PeopleThings VALUES(1, 18) INSERT INTO PeopleThings VALUES(2, 14)   ...and the following query:  SELECT P.Name,      T.ThingName FROM People P     LEFT OUTER JOIN PeopleThings PT ON P.PeopleID = PT.PeopleID     INNER JOIN Things T ON PT.ThingID = T.ThingID   I am wanting to see the following results:  |Name      |ThingName | ----------------------- |Chris     |Boat      | ----------------------- |Cliff     |Bike      | ----------------------- |Heather   |(null)    | -----------------------   I am wanting a list of everyone in the PEOPLE table, and the names of the THINGS they own (or if they own anything).  I know the issue is somewhere in my JOINs, but I'm not understanding/seeing where.  Please help.


Need to prove: $\sum_{n=1}^{\infty}{a_n}$ converges $\implies\sum_{n=1}^{\infty }\frac{\sqrt{a_n}}{n}$ converges

I need to prove that for a positive sequence $a_n$:  $$\sum_{n=1}^{\infty}{a_n} \text{ converges} \implies \sum_{n=1}^{\infty }\frac{\sqrt{a_n}}{n} \text{ converges}$$  How can I prove it with only basic tools such the comparison test? I've been struggling with this one for pretty long time and I'd be glad for some help.


I have visited the USA and I have VWP to my passport now it is out of date, but my ESTA is still valid. Am I able to enter the USA again if my VWP is out of date but my ESTA is valid?  I am little bit curious because I was told by officer that the VWP needs to be taken out of my passport when leaving the USA for the very last time and the customs officer didn't do that, so I am little bit worried now. Sorry for my English though. I am from the EU.


Is it "men's" or "mens'"? And what's the rule?

Why is it that men's eyes always drift toward females?  I mean, "men" is the plural form of "man". So it's "mens'"... but it looks very strange, and maybe this only applies if the word doesn't change in plural form? For example, if it had been "one man" and "several mans", it would've been "several mans' eyes", but now that it's "men", "several men's eyes" is how you type it? Is that the rule? Have I understood this correctly?


I want to get the inverse of aforementioned function. I know it is not one-to-one normally, but my $x$ is restricted to $[0,1]$ where we have no problem. I didn't really know how to inverse such a complicated function so I tried to get an answer online.  I visited 2 different websites, wolframalpha and emathhelp. My problem is, these 2 "calculators" give me a slightly different result and I can't find out if it is the same or not, so I don't know what the correct inverse is.   I post 2 pictures with the 2 results. The first is from wolfram and the second for emath.      I've noticed that if I insert the $-1$ in the cubic root by writing it as $\sqrt[3]{-1}$  the signs of $2x$ and $1$ change accordingly, but the sign of the square root is staying the same.  Perhaps I somehow transform the $\sqrt[3]{-1}$ into a complex number involving $i$ and that affects the sign of the square root ? Not sure.  Any help would be greatly appreciated.  EDIT: My question seems to be the same with another and thank you for pointing it out to me. However people in the comments pointed out that for $ x$ in $[0,1]$ the term inside the square root becomes negative. Is that a problem? Can I accept this solution as the inverse function in the restricted domain $[0,1]$? I would still like a more detailed answer about the actual inverse of the function if this isn't the correct one, if of course someone can offer it. Thanks a lot .


I bought a new iPad and my wife is taking my old Mini. She really likes "Word Collect", but wants to start at the beginning, not at my level. I deleted the app, deleted the backup, but when I reload the game from iCloud it comes in at my old level, not zero.


Chaining subprocess.Popen to similuate pipes

I've read though many examples of this on StackOverflow but can't quite get it working.  I'm simply trying to execute a piped command using subprocess.Popen.  The challenge is that I don't know the command being submitted so need to loop as needed if it contains pipes (all the examples I've found know ahead of time how many Popens are needed..).  For example, using this command (ls | grep .py) does the following:   The first command appears to run correctly.  It's return code is 0 and I can see the expected data in stdout but the 2nd Popen always exits with a returncode of 1 with no useful information in either stdout/stderr as to the problem.   Here is the code I have:      def run_powershell_command(command, timeout_in_secs):     try:         cmd_split = command.split('|')         if len(cmd_split) > 1:             processes = []             for x, next_cmd in enumerate(cmd_split):                                                     next_cmd = "powershell -command \"{}\"".format(next_cmd.strip())                 if x == 0:                     processes.append(subprocess.Popen(next_cmd, shell=True, universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE))                 else:                     prev_stdout = processes[len(processes)-1].stdout                     processes.append(subprocess.Popen(next_cmd, shell=True, universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=prev_stdout))              try:                 # kick off the LAST processes which has all sub-processes chained                 output.stdout, output.stderr = processes[len(processes)-1].communicate(timeout=int(timeout_in_secs))                  # wait for each processes to complete                 for process in processes:                     process.wait()                  output.returncode = processes[len(processes)-1].returncode             except subprocess.TimeoutExpired as e:                 for process in processes:                     process.kill()   (Note: This is an internal tool so I'm not concerned with using the shell=True)


Small regex issue with validating phone numbers (Javascript)

Wanting to validate phone numbers with the following criteria.  -Minimum of 6 digits.  -Can only have the following symbols "+", "(", ")", "-".  -Contain no more than n consecutive symbols, but numbers are OK.  Here are some examples of what i consider valid:  07519767576 +447519767576 (02380) 346450 (+44) 7519767576   I have been trying to do this myself for quite a while but hitting a brick wall. Here is what i have tried so far  ^(?=.{9,}$)(?=[^0-9]*[0-9])(?:([\d\s\+\(\)\-])\1?(?!\1{5}))+?$   This kinda works but its a bit of a hack because it also limits amount of consecutive numbers.  I am not able to do this check in PHP, it has to be done in JS sadly. Is this even possible without needing a degree in regex?


Do I need both x64 and x86 versions of the C++ redist

If I have both the x64 and the x86 version of a Microsoft C++ Redist package, can I uninstall the x86 version? If I did uninstall the x86 version, would the x64 version cover the dependencies on the x86 package?


How can I delete the reminders database?

seems my reminders data are corrupted. A regular task is popping up again and again which I cannot delete (error message).  I am fine with deleting ALL regular tasks from both the reminders and calendar app.  Is there a safe way to empty reminders recurrent entries (or, delete the reminders data completely without loosing non-reminder entries in calendar? I am aware both are nastily intertwined.  (MBP 2015 Mojave 10.14.1)


Is it still possible to hatch Electabuzz, Jynx, Pikachu and Magmar?

Since a recent update, it is possible to hatch Pichu, Togepi, Cleffa, Igglybuff, Magby, Smoochum and Elekid from eggs. But since that update, I have never seen any Electabuzz, Jynx, Magmar and Pikachu hatch from my eggs, while it was the case before this update.  Is it still possible to hatch one of those four Pokémon nowadays?


/usr/bin/env as a shebang - and its security implication

I have seen advice in several places to use the following shebang line  #!/usr/bin/env bash   instead of  #!/usr/bin/bash   My knee-jerk reaction is, "what if somebody substitutes this executable for their own in say ~/.local/bin ?" That directory is often set up in the user's path before the system-wide paths. I see this raised as a security issue often as a side note rather than anything to take seriously, but I wanted to test the theory.  To try this out I did something like this:  echo -e "#!/usr/bin/python\nprint 'Hacked!'" > $HOME/.local/bin/bash chmod 755 $HOME/.local/bin/bash PATH=$HOME/.local/bin env bash   This yields  /usr/bin/env: ‘bash’: No such file or directory   To check whether it was picking up anything at all I also did  echo -e "#!/usr/bin/python\nprint 'Hacked!'" > $HOME/.local/bin/perl chmod 755 $HOME/.local/bin/perl PATH=$HOME/.local/bin env perl   which prints, as I expected,  Hacked!   Can someone explain to me why the substitute bash is not found, but the substitute perl is? Is this some sort of "security" measure that (from my point of view) misses the point?  EDIT: Because I have been prompted: I am not asking how /usr/bin/env bash is different from using /bin/bash. I am asking the question as stated above.  EDIT2: It must have been something I was doing wrong. Tried again today (using explicit path to env instead of implicit), and no such "not found" behaviour.


Rsync seems incompatible with .bashrc (causes "is your shell clean?")

It turns out rsync can't work with a remote server which has a .bashrc file?  At local client i got when run rsync:  protocol version mismatch -- is your shell clean? (see the rsync man page for an explanation) rsync error: protocol incompatibility (code 2) at compat.c(180) [sender=3.0.7]   As suggested  removing the .bashrc on server solved the problem. How to solve it without removing the .bashrc file (temporarily)?


Excel text to appear on screen but not print

I am creating a contract in excel and I do not want the line item pricing to appear when printed.  Changing the font color to white is time consuming so not an option.  Hiding the group of cells would destroy the sheet when printed.  Is there a way to format the group of cells so the text will appear on the screen but not when it is printed?


Cannot get started with learning SharePoint 2013

I am new to SharePoint in general and I am going to start a new SharePoint 2013 project. I have registered with plursight training and I have attended some online sessions with them in addition I have read some materials on MSDN . But till now I am unable to figure out how to link the SharePoint components together especially for those which are required to build an interactive knowledge based library for my company.   As all the training courses are talking about SharePoint 2013 as concepts and features with minimal demos showing how these components work together on a live environment, or to implement a full business scenario even if it is a simple scenario.  I think when learning any new technology , it is better to see how to build a simple application from A-Z which can help in understanding the whole picture for the technology. For example when I first learn asp.net mvc I have read how to build an application named NerdDinner (which is simple mvc application) but it was a solid starting point to understand MVC details and more advance functionalities.   So from where I can find demos which show how to build a simple SharePoint 2013 applications, bearing in mind that what I am trying to achieve in SharePoint 2013 (at least for the current stage) are :-   To build a knowledge library categorizing all our company procedures, manuals, technical material, policies, etc. Enable employees to write the above contents and publish them, so they can be view, edited, updated, delete by specific users. To have some workflows on certain documents, so that they will not be available to employees until they went through predefined approval steps.


Python array value unexpectedly changes after function call

I have a small function which uses one list to populate another.  For some reason, the source list gets modified.  I don't have a single line that manipulates the source list arr.  I am probably missing the way Python deals with scope of variables, lists.  My expected output is for the list arr to remain the same after the function call.  numTestRows = 5 m = 2 def getTestData():     data['test'] = []     size_c = len(arr)     for i in range(numTestRows):         data['test'].append(arr[i%size_c])         for j in range(m):             data['test'][i].append('xyz')  #just a 2x5 str matrix arr = [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j']] print('Array before: ') print( arr) data = {} getTestData() print('Array after: ') print( arr)   Output  Array before:  [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j']] Array after:  [['a', 'b', 'c', 'd', 'e', 'xyz', 'xyz', 'xyz', 'xyz', 'xyz', 'xyz'], ['f', 'g', 'h', 'i', 'j', 'xyz', 'xyz', 'xyz', 'xyz']]


difference between class self attributes and inline class variables

given this example class, I am wondering what the advantage/disadvantage of free floating things like BITBUCKET_API_URL vs self.attribute_name. My coworker explained why once but he isn't here right now. Thank you  class BitbucketAPIHoss(object):      BITBUCKET_API_URL = 'https://bitbucket.org/api/1.0/'      BITBUCKET_HEADERS = {'Content-Type': 'application/json'}      def __init__(self, username='codyc54321', password='feel_the_already_horrific_economy_bern'):         self.username = username         self.password = password      def get_bitbucket_project_names(self):         repo_dicts = self.get_bitbucket_response_as_dict('user/repositories')         repo_names = extract_values(key='name', dictionaries=repo_dicts)         return repo_names      def create_repository():         pass      def get_bitbucket_response_as_dict(self, url_ending):         url = os.path.join(self.BITBUCKET_API_URL, url_ending)         r = requests.get(url, auth=(self.username, self.password), headers=self.BITBUCKET_HEADERS)         content = r.text         payload = demjson.decode(content)         return payload


What is the best way of getting Septim in The Elder Scrolls V: Skyrim?

I got The Elder Scrolls V: Skyrim not too long ago so, I'm a total noob. I want a horse, but im literally too broke for it. Is there any faster way to get money than just doing the quests?


In my react shouldComponentUpdate function，this.props and nextprops have all the same attributes, but they are not equal.My code:  shouldComponentUpdate(nextProps) {     console.log(this.props);     console.log(nextProps);     console.log('nextProps vs this.props:', nextProps === this.props);     console.log('this.props.style vs nextProps.style:', this.props.style === nextProps.style);     console.log('this.props.data vs nextProps.data',this.props.data === nextProps.data);     return true;   }   the output is :   My confusion is whether the props has some hidden attributes.


If $E$ is generated by $E_1$ and $E_2$, then $[E:F]\leq [E_1:F][E_2:F]$?

Suppose $K/F$ is an extension field, and $E_1$ and $E_2$ are two intermediate subfields of finite degree. Let $E$ be the subfields of $K$ generated by $E_1$ and $E_2$. I'm trying to prove that $$ [E:F]\leq[E_1:F][E_2:F].$$  Since $E_1$ and $E_2$ are finite extensions, I suppose they have bases $\{a_1,\dots,a_n\}$ and $\{b_1,\dots,b_m\}$, respectively. If $E_1=F$ or $E_2=F$, then the inequality is actually equality, so I suppose both are proper extension fields. I think $E=F(a_1,\dots,a_n,b_1,\dots,b_m)$. Since $\{a_1,\dots,a_n,b_1,\dots,b_m\}$ is a spanning set for $E$ over $F$,  $$[E:F]\leq n+m\leq nm=[E_1:F][E_2:F]$$ since $m,n>1$.  Is this sufficient? I'm weirded out since the problem did not ask to show $[E:F]\leq [E_1:F]+[E_2:F]$ which I feel will generally be a better upper bound.


Which charge actually moves to constitute current? Positive or negative?

Now this might be a very stupid question for many readers, but I am getting really confused.   I was reading about electricity and current, and I read this:  Suppose we connect a wire to the ends of a battery, and a bulb in the circuit, current flows and lights up the bulb. The battery is responsible for doing work on the positive charges to move them from negative terminal to positive terminal, that is moving against the field. Now, these energised positive charges move through the external circuit, and within the circuit they give some of their energy to light the bulb. I understood this very well.  Now, reading further, it was written that "Electrons are actually responsible for current flow". It was written that there is concentration of energised negative charges on the negative terminal, and these electrons then move through the external circuit from negative to positive terminal. This is really confusing.     So my question: What actually flows? The negative charge or the   positive charge?   Further reading, I also read that in semi-conductors, fluorescent light bulbs etc., both charges move through the circuit.     Now, one more doubt: If both charges move through the circuit in this   case, shouldn't the charges stop in the middle of the wire, because   opposite charges will attract each other, hence stopping their   movement?


display the caption of a figure as if it was a subfigure

I know how to use the subfig package to fit many subfigures (each with its own caption) into a larger figure (with a general caption).  I know how to use the sidecap package, the put a figure's caption on the side of the figure.  What I do not know is how to display a caption inside the figure, as if it were a subfigure.  More precisely, I have three subfigures that I would like to fit on a 2x2 layout, with the remaining quadrant used for the caption.    Is that easy to achieve?


Which one is correct "et al.’s" or "et al."?

I want to use the possessive noun form with et al. as in  et al.'s versus et al.


Is it possible to prevent launchd running a missing task on wake?

I have a launchd task configured to run once an hour using the StartCalendarInterval key to set specific times at which the task will run.  However, the default behaviour of this is that, when an interval is missed (i.e- computer was asleep) the task will immediately run at the next available opportunity (i.e- on wake).  Is it possible to disable this behaviour in my plist file?  I haven't found any obvious key(s) for controlling this, and the only other thing I can think of is to check the current time in the task itself, but this means duplication of timing behaviour (set the time in the plist, and then check it in the task itself).


Suppose that $f\colon\mathbb{R}\to\mathbb{R}$ without any further restriction. If $f(f(x))=x^2-x+1$, how can one find $f(0)$?   Thanks in advance.


Topological Property of the Set of Integers

Is the set of integers $ \mathbb{Z}$ closed in $\mathbb{R}$ equipped with the usual topology?


So I heard that if you want to make a wormhole you need negative energy. What is special about Negative Energy that allows it to do that? What are the properties of Negative Energy compared to normal energy?


I flagged  because it is clearly a comment in my opinion, and not only in my opinion but in the answerer's opinion, too. (See his own comment below.)  So I don't understand why I got this for my flag: "declined - flags should not be used to indicate technical inaccuracies, or an altogether wrong answer". This is not a wrong answer, this is not an answer. There's no other problem with it, probably it is a good comment.


Multiple entry in a month allowed under ESTA?

I am from Australia and planning to visit Canada and U.S this year. I got my ESTA approval but not sure about coming to U.S. twice in a month. I will be visiting NY from Toronto and then back to Toronto and then Vancouver. From there I am planning a trip to LV & LA. Will there be an issue as my second visit will be in a couple of weeks time again to U.S.  Any help please as I am not sure about this, thanks.


How can I extend quote's width in moderncv? I want the quote element to be wider so it would occupy less amount of lines. Here is my minimal working example:  \documentclass[11pt,a4paper,sans,english]{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} \usepackage{lipsum} \usepackage[scale=0.8,a4paper]{geometry} \usepackage{xltxtra} \usepackage{xunicode} \setmainfont[Mapping=tex-text]{Times New Roman} \setsansfont[Mapping=tex-text]{Calibri} \newfontfamily{\cyrillicfonttt}{Courier New} \usepackage{polyglossia} \setmainlanguage{english} \firstname{John} \familyname{Doe} \title{Software Developer} \mobile{mobile number} \quote{\lipsum[11]} \begin{document} \makecvtitle \end{document}


How Lagrangian equations of motions can be obtained from Newton's laws?

Let's consider a system of $N$ point particles. Let's also assume that acceleration of each particle is a function of positions of all the particles. I assume that for such a system we can prove that the motion of the system is described by Lagrangian equations of motion. How exactly can it be done? ADDED I do not ask why Lagrangian is defined as $L = T - V$. What I am interested is how to derive Lagrangian equations of motion from Newtonian equations of motion.


Associate elements in non-integral domains.

Elements $a$ and $b$ of an integral domain are associates if   $a\mathrel{\vdots}b$ and $b\mathrel{\vdots}a$   I have proved this fact. Then I tried to find out $a$ and $b$ which divide each other and does not associate. This may happen only in non-integral domains of course. But I couldn't find an example. Can someone suggest one?  Definition of associates.     $a$ and $b$ are associates if $a=b\epsilon$ where $\epsilon$ is   invertible element of the ring.      $a\mathrel{\vdots}b$ means $a$ is divided by $b$. ($a=bc$). It is the   same as $b|a$.


help me understand derivatives and their purpose

I am only starting learning calculus and it's difficult for me to understand the main concept behind calculus ideas particularly differentiation I have searched many resources but most of them are very similar explaining things with words like "speed", "rate of change", "tangent" and "function change in respect to input change"... I know the rules of computation but  the purpose is not very clear for me  I would be very grateful if somebody could help me grasp this concept and explain why one would want to compute the "rate of change" of a function and what exactly problem do derivatives solve.  Pretend that I am very stupid (unfortunately I am :) ) and don't use any abstract concepts (even if they are  intuitive to a human being )  as "speed" if possible Thanks


How do I install google chrome oin ubuntu 12.04

How do I install google chrome on ubuntu 12.04


P(x) is a polynomial of degree three having local maxima at x = -1 and given P(-1) = 10, P(1) = -6. Further P'(x) has local minima at x = 1. Determine square of distance between local maxima and local minima.


After AJAX call specific button via jQuery not working

I am trying to get this to work for a while now and dug around, but so far have found no solution. CASE I have a tree-view in which I can click on an item within that tree-view to load data in a couple of tab-panes. This works fine via AJAX. Other options, like changing data within the input files and automatically saving (using pretty much an onkeyup at the inputs) works fine too, no problem here. One of my tab-panes has a sidebar with a button, in which I want users to assign a profile to this data. The jQuery is as following: $('#profiles').on("click", ".content-container", function(e, data) {       e.preventDefault();          console.log('i got hit in the face');      });  This is in my main.js file. The rest of my 2000 lines work fine, so it isn't the JS file or the opening of jQuery. The .content-container is the static item in which I load my pane controls where, within, the underlying HTML has been placed.

  For the sake of argument, this is the most basic I'll put down the button. You click on a href in that sidebar, and it should simply give me a console.log back. However, every time it refreshes the page since my href is being automatically filled with my standard URL (no # but a reference to localhost), hence the e.preventDefault. When I click on this button it fails to prevent the default action and reloads the page anyway. I thought I did everything right by assigning it to the .on since I know it will be placed later in the code, but apparently it still doesn't see it in my code.


unchecked or unsafe operations. Recompile with -xlint:unchecked for details

I am aware that there is number of similar posts. The error, as i understand, means that i should be more specific with types. My code:  import java.util.*; public class Storefront {     private  LinkedList<Item> catalog = new LinkedList<Item>();      public void addItem(String id, String name, String price, String quant) {          Item it = new Item(id, name, price, quant);          catalog.add(it);     }      public Item getItem(int i) {             return (Item)catalog.get(i);     }      public int getSize() {          return catalog.size();     }      //@SuppressWarnings("unchecked")     public void sort() {         Collections.sort(catalog);     } }   However, I do specify that LinkedList consists of objects of type Item. When i compile it with -xlint, i get     warning: unchecked method invocation: method sort in class Collections is applied to given types Collections.sort(catalog);  required: List'<'T'>'  found: LinkedList'<'Item'>'  where T is a type-variable: T extends Comparable'<'? super T'>' declared in method  '<'T'>'sort'<'List'<'T'>'>     As i understand, LinkedList implements List and Item implements Comparable. So, aren't 'required' and 'found' same?  Also I was checking if catalog.get(i); is actually an Item (as, some say it may have caused the problem), but it produced the same error.


I am running Ubuntu 15.04, but I have had the problem since 14.04. When i start the computer, the login screen shows up but i don't need to enter my password to login. I also cannot lock the computer, the screen goes black until i move the mouse and then I am logged in again.   I tried using sudo passwd [username] and set password that way, but to no avail. Also I have deactivated the automatic login. During my latest try I installed a new greeter (lightdm-gtk-greeter) I do not know much about these but this method also led nowhere.   For some reason on this computer I have a keyring program that I do not have on my Ubuntu laptop.


Math.Round(1.225,2) gives 1.23, shouldn't it give 1.22

AFAIK .NET's default round option is to even, so Math.Round(1.225,2) should give 1.22 but it gives 1.23.  Math.Round(2.225,2) = 2.22  Math.Round(100.225,2) = 100.22    all the values I tried rounds to nearest even but only 1.225 and -1.225 rounds to 1.23 and -1.23.


Does Tarski-Grothendieck set theory can prove the consistency of ZFC?


Can a Space Marine army consist of units from different chapters?

I'm a newcomer to the Warhammer 40K tabletop miniature game and I'm researching different armies, but I wasn't sure if different Space Marine chapters were compatible.  For example, could I play an army consisting of Space Wolves, Blood Angels and "regular" Space Marines without raising any eyebrows in "normal" play?


"Protocol error" mounting VirtualBox shared folders in an Ubuntu guest

I have Ubuntu 10 as the guest OS on a Windows 7 machine.  I have been trying to setup shares through VirtualBox, but nothing is working.  First, I create the share in VirtualBox and point it to a Windows folder.  Then I try to mount the drive in Linux, but I keep getting /sbin/mount.vboxsf: mounting failed with the error: Protocol error  I have read so many solutions to this, but none seem to work.  I have tried:  Using the mount.vboxsf syntax Reinstalling VBox additions Rebooting Enabling and trying as root account  I made a share called "Test" in VBox Shared folders.  Then I made a directory in ubuntu named "test2".  Then I tried to execute this command: sudo mount -t vboxsf Test /mnt/test2  Any other ideas?


n = int(input())  # number of strings for _ in range(n):     string = input()     print(string[::2], string[1::2])  # print even letters, odd letters   Why inside of string[1::2] has a 4 property. So must be 3 property start, end, increment step. And the code running with nothing wrong. Can explain why the string had 4 property not 3, it same thing or different?


How can I have the same latex font of this book?

I'm writing my manuscript for my thesis and this the package that I'm using for the fonts :  \usepackage{lmodern} \usepackage{ae,aecompl}   I was reading a physical book and I want to know which type of font the author is using for his template.    Thank you


Copy specific file type keeping the folder structure

I have a folder structure with a bunch of *.csv files scattered across the folders. Now I want to copy all *.csv files to another destination keeping the folder structure.  It works by doing:  cp --parents *.csv /target cp --parents */*.csv" /target cp --parents */*/*.csv /target cp --parents */*/*/*.csv /target ...   and so on, but I would like to do it using one command.