Include figure from pdf file to a document class of two side article

I want to include a figure from Pdf file to a LaTeX document, which I have done before by using    \includegraphics{42.pdf}   But today I want to write a paper using latex so I change my document class to  \documentclass[twoside]{article}   then I try to add Pdf figure, then the problem stat, when I try compiling this the document compiles and there is no error in the code, but no figure shows up in Pdf  here is my code     \documentclass[twoside]{article} \usepackage{authblk} \usepackage{graphicx} \usepackage{caption} \usepackage{titletoc} \usepackage[sc]{mathpazo} \usepackage[T1]{fontenc} \usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry} \usepackage[font=it]{caption} \usepackage{multicol} \usepackage{lettrine} \usepackage{abstract}     \renewcommand{\abstractnamefont}{\normalfont\bfseries}     \renewcommand{\abstracttextfont}{\normalfont\small\itshape} \usepackage{titlesec}  \title{\vspace{-15mm} \fontsize{24pt}{8pt}\selectfont \textbf{Test latex file}}    \author[1,*]{Andreas} \author[2,**]{Lulu}  \affil[1]{\normalsize Department of Physics and Astronomy, College of Science} \affil[2]{\normalsize Department of Physics, College of Science} \affil[*,**]{a@gmail.com ,s@gmail.com} \vspace{-5mm} \date{May 2015}    %%%%%%%%%%%%%%%%%%%%%%%% \begin{document}  \maketitle   \begin{abstract} \noindent In quantum optics \end{abstract}   \begin{multicols}{2}  \section{Introduction}  test test test  test test test  test test test  test test test  \begin{figure}[ht] \centering \includegraphics[width=8cm]{42.pdf} \caption{{\protect\footnotesize Test.}} \end{figure}  \section{Conclusion} test test test  test test test  test test test  test test test   \end{multicols}  \end{document}


How do I show the current node title in page.html.twig OR in node.html.twig?

If I want to show the current node title in page.html.twig (by default it seems to only be available in node.html.twig) I have to create a preprocess function like so:  function theme_preprocess_page(&$variables, $hook) {   // Set our page title so we can access it in page.html.twig   if ($node = \Drupal::routeMatch()->getParameter('node')) {     $variables['my_node_title'] = $node->title->value;   } }   And then I have to overwrite page-title.html.twig by copying it into my current theme folder and commenting out everything.  This doesn't seem "right".  Is there a better way?


Minimal polynomial is invariant under field extensions

I saw it's been answered before but I could not understand the answers as it delved into material that I did not study yet.  My question is as follows:  Suppose $p \in F[x]$ is the minimal polynomial of some matrix $A \in M_n(F)$ and $F \subseteq K$  I need to show that $p$ is also the minimal polynomial of $A$ over the field $K$. In other words: Show that the minimal polynomial remains the same when we move to a bigger field.  What I thought of:  Obviously $p$ is irreducible in $F$, suppose it is reducible in $K$, which means there are $q,t \in K, q,t \notin F$ such that $p=qt$, now we just need to show that $q(A) \neq 0$ and $t(A) \neq 0$...But why is that so?  Edit: Another way of presenting this question is "Show that if $p$ is the minimal polynomial of $A$ over the field $K$ while the entries of$~A$ are contained in a subfield $F \subseteq K$, then all the coefficients of $p$ are elements of $F$".


Trying to code a Tic Tac Toe for learning purpose

I'm quite new to coding so please be kind!  I'm trying to code a tic tac toe game in Java Swing. But I'm having a quite annoying error and I don't understand why this error is being displayed. Can anyone help me understand why please?  this is my code :  import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel;  public class Board extends JFrame {     private JPanel pan = new JPanel();     private  boolean player1 = true;     private JButton[] tab_but = new JButton[9];      public Board() {         initializeComponent();               }     public void initializeComponent() {         this.setTitle("TicTacToe");         this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         this.setSize(400, 400);         this.setLocationRelativeTo(null);         this.setResizable(false);         this.setContentPane(pan);         GridLayout gl = new GridLayout(3,3);         pan.setLayout(gl);         for (JButton jButton : tab_but) {             jButton = new JButton();             pan.add(jButton);             jButton.addActionListener(new ButtonListener());         }         this.setVisible(true);           }     class ButtonListener implements ActionListener{         public void actionPerformed(ActionEvent e) {              if (player1) {                 ((JButton)e.getSource()).setText("X");                 checkWin();                 player1=false;               }             else {                 ((JButton)e.getSource()).setText("O");                 player1=true;             }            }        }     public void checkWin() {         if(tab_but[0].getText().equals("X")) {             System.out.println("hi");         }     } }   As you can see I'm trying to check with the method checkWin() if the text of the first button is an "X". But the console returns java.lang.NullPointerException even though the X has been written on the first button (when I clicked on the first button)


How to get WordPress' hooks/actions run sequence?

In what order add_action hooks execute? i.e. init wp_head wp_footer after_theme_setup  etc... ??? ??? ???     EDIT: I've also posted my solution.


Can not update Python and other software

I am updating my Python and can not get through. The systems suggest using sudo apt-get -f install, however, it does not work either. How can I solve this issue?  $sudo apt-get -f install Reading package lists... Done Building dependency tree       Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   python3-update-manager update-manager The following packages will be upgraded:   python3-update-manager update-manager 2 upgraded, 0 newly installed, 0 to remove and 59 not upgraded. 11 not fully installed or removed. Need to get 0 B/574 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 405655 files and directories currently installed.) Preparing to unpack .../python3-update-manager_1%3a16.04.4_all.deb ... /var/lib/dpkg/info/python3-update-manager.prerm: 6: /var/lib/dpkg/info/python3-update-manager.prerm: py3clean: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg: trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found dpkg: error processing archive /var/cache/apt/archives/python3-update-manager_1%3a16.04.4_all.deb (--unpack):  subprocess new pre-removal script returned error exit status 127 /var/lib/dpkg/info/python3-update-manager.postinst: 6: /var/lib/dpkg/info/python3-update-manager.postinst: py3compile: not found dpkg: error while cleaning up:  subprocess installed post-installation script returned error exit status 127 Preparing to unpack .../update-manager_1%3a16.04.4_all.deb ... /var/lib/dpkg/info/update-manager.prerm: 6: /var/lib/dpkg/info/update-manager.prerm: py3clean: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg: trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found dpkg: error processing archive /var/cache/apt/archives/update-manager_1%3a16.04.4_all.deb (--unpack):  subprocess new pre-removal script returned error exit status 127 /var/lib/dpkg/info/update-manager.postinst: 6: /var/lib/dpkg/info/update-manager.postinst: py3compile: not found dpkg: error while cleaning up:  subprocess installed post-installation script returned error exit status 127 Errors were encountered while processing:  /var/cache/apt/archives/python3-update-manager_1%3a16.04.4_all.deb  /var/cache/apt/archives/update-manager_1%3a16.04.4_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


Ubuntu does not load after successfull installation

I have Windows installed on my pc on partition (C), then I installed Ubuntu 14.04 on another partition. After the installation process finished successfully, Ubuntu asked to restart. Unfortunately, after the restart Windows was booted without showing a menu and asking me which OS to boot.  So how can I fix this problem and get a boot menu that allows me to boot Ubuntu?


I accidentally deleted root using sudo rm *

I accidentally used sudo rm * while I was in the root directory. Now, I am not able to open terminal and my computer does not shut down, only a single _ is flicking on the black screen. How can I solve this/reset my computer?


What is the difference between all of these impact factors?

While searching a Thomson indexed journal to submit to, I found this one :  And they are showing different impact factors :  Impact Factor: 0.971 [UIF, Germany] Global Impact Factor 0.533 [ Australia] Scientific Journal Impact Factor: 2.59 [ Canada] Scientific Indexing Services Impact Factor: 0.982 [USA] NAAS Rating : 4.95  My question is : what are the differences between all of them, and How can I evaluate the quality of a journal beside its impact factor. Thanks!


How are pokemon's individual values calculated? Simple question, I'm trying to make an app for personal use.


How do I calculate the distance of an object in a photo?

If I took a picture of a windmill on the horizon — given that I know the sensor size and the focal length of the lens and other factors to do with the shot — could I calculate how far away an object is from the photographer?


I've been trying to think up of two combinatorial proofs but I'm confused on the first and just completely stuck on where to begin for the second.   $$\sum_{k=-m}^n \binom{m+k}{r}\binom{n-k}{s} = \binom{m+n+1}{r+s+1}$$ For the RHS, I understand that it is basically looking at the number of $(r+s+1)$ subsets that can be formed from $(m+n+1)$. On expanding the LHS to yield $\binom{0}{r}\binom{n+m}{s}+\binom{1}{r}\binom{n+m-1}{s}...\binom{m}{r}\binom{n}{s}+\binom{m+1}{r}\binom{n-1}{s}+...\binom{m+n}{r}\binom{0}{s}$, I see that it is basically adding together the various ways of drawing a constant $r$ and $s$ from two changing populations that sum up to $m+n$. However, I don't actually see where the $+1$ comes from. Is there anything wrong with my intepretation of the LHS? $$\sum_{i=1}^n (i-1)(n-i) = \binom{n}{3}$$ I know that RHS is counting the number of subsets of 3 that can be formed from $n$. However, I do not have any idea of how to be interpreting the LHS.


bool func(double &u, double &v){     .     .     .     if((u+v) <= 1.0)         return false;     cout <<"u:  " << u << "  v:  " << v << endl;     return true; }   I have a function like this.  Output is:  u: 0.914812  v:  0.0851877   Their sum is: 0.9999997. However the program does not go in the if statement. It returns true. Why?


How does the presynaptic terminal stay at the postsynaptic neuron?

I wondered about this because the two neurons never actually touch. The synaptic cleft is very small, but if there is no connection the neurons might easily separate... [in chemical synapses]


Why is Dragon Ball Super's animation quality so terrible?

I've been watching the Dragon Ball Super series from the release date and I keep hating it more and more. I don't know if you guys have noticed it but all battle animations are terrible.  Here's an example:    Is there a logical explanation why a 2015 anime is so poorly animated compared to DBZ?


How to add a label based on multiple fields and brackets in GeoServer SLD

Is it possible to create a label which is comprised of multiple fields, in GeoServer using SLD? For example, on the  page of the SLD Cookbook, the point with default label section shows how to create a label based on the point attribute name: <TextSymbolizer>   <Label>     <ogc:PropertyName>name</ogc:PropertyName>   </Label>   <Fill>     <CssParameter name="fill">#000000</CssParameter>   </Fill> </TextSymbolizer>  How can I create a label based on two fields, which contains brackets around one of the fields? For example,  name (population) Borfin (157860)  Testing shows that it's possible to add a new <ogc:PropertyName> element for the second attribute, and put the brackets on new lines: <TextSymbolizer>   <Label>     <ogc:PropertyName>name</ogc:PropertyName>     (     <ogc:PropertyName>pop</ogc:PropertyName>     )    </Label>   <Fill>     <CssParameter name="fill">#000000</CssParameter>   </Fill> </TextSymbolizer>  but this results in a label containing a line break. How can I generate a label with all of the elements on a single line, as in Borfin (157860)?


The attached photo is pulled from a Piccolo DSP reference design from TI.  They use 57.6k pull-up resistors and 2.2k pull-down resistors to allow configuration of boot pins at startup.  I've seen all sorts of values for static configurations like these, and I'm not sure why you would choose 57.6k/2.2k vs. 10k/1k, or 10k/0 (i.e. tie switch pin directly to GND).   Are the SW1 pins not shorted to GND to protect against an accidental short if the GPIO is misconfigured to be an output?  Why did they choose 57.6k/2.2k?    Another example is the write-protect pin on an EEPROM.  It can be configured via pull-up/down resistor to set a static config, but I've seen designers choose to use 330/1k/2.2k/10k/etc resistor to pull the pin to GND or VCC (even when the pin can't be misconfigured as an output).  The only reason I can think of is that this provides flexibility for some kind of automated manufacturing ICT test to pull the pin in the other direction.  For example, if the EEPROM is normally write protected, but manufacturing wants the ability to program in-circuit, then connecting the pin via 2.2k ohm resistor (instead of shorting it to VCC or GND) allows the test probe to pull the pin into write-enable mode temporarily.    What are the other considerations for choosing pull-up/down resistor values?


In javascript how it's possible to replace all occurrence of &,<,> in a string   I tried this    var str="<>&";  str.replace("&","&amp").replace("<","&lt").replace(">","&gt");   but not able to change even first occurrence


How vibration sensitive are hard disk drives?

I've gotten my hands on a seriously cheap laptop grade 2.5 inch drive. I'm intending to use one on a desktop that doesn't have 2.5 inch bays as a boot drive. While I know there are adapters available, I know its fairly common with SSDs to simply velcro/tape the drive somewhere. I'm wondering if I can do the same with a laptop hard drive.  One issue I see here is SSDs are fairly insensitive to vibration, while hard drives are. Just how vibration sensitive are drives? Would a jerry rigged mount need to take this into account?


What happens to the reputation you earn once you have reached the daily limit?

If you start a question that becomes popular on stack exchange, and then you reach the daily reputation cap, what happens to the extra reputation earned in that day?  Is it carried over, or lost forever?


What is the relationship between $\ker(A), \ker(A^2), \ldots, \ker(A^n)$?

If $\vec{y} \in \ker(A)$ then $A\vec{y} = \vec{0}$ so that $(A*A)\vec{y}= A*(A\vec{y})=\vec{0}$ and $\vec{y} \in \ker(A*A)$.  If $\vec{y} \in \ker(A*A*\cdots *A)$, then $(A*A*\cdots *A)\vec{y}=\vec{0}$ so that $(A*A*\cdots *A^{i-1})*(A\vec{y})=\vec{0}$ so that $\vec{y} \in \ker(A)$.  Does this mean that the $\ker(A)=\ker(A^2)=\cdots=\ker(A^n)$?


There is a table titled Project Results Framework. In one of its columns it says "Indicators", and in the row below that, it says this:     By the middle of 2011, analysis is finalized and up to date comprehensive   information about the potentials and deficiencies of the biosafety policy is available   Of course there are lots of other things with the same grammar in that column. All I want to know is the tense of this short paragraph.


I have created a .bib file using Jabref. Now I placed this file in the same folder where all my other latex fles are present. I am adding the reference to this .bib file using this:  \section*{References} \bibliographystyle{elsarticle-num} \bibliography{jab}   I am compiling my latex code on WinEdt but afterwards the file generated does not contain any references. Reference part is just blank.  Please guide me in this regard.


Help with Test Class for trigger and apex class

I am new to Apex test classes and I have a trigger and class that is working for my org but I have no idea where to start to get them to have coverage. Anyone able to help me on this?  public Class checkRecursive{ private static boolean run = true; public static boolean runOnce(){ if(run){  run=false;  return true; }else{     return run; } } }   trigger:  trigger AccountTrigger on Account (before update) {  if(checkRecursive.runOnce()) { list<Account> account_Updatelist= new list<Account>(); for(Account acc : Trigger.new)   {      if(acc.Total_Opportunities_Won__c>=1 && acc.Active_Opportunities__c == 0 && Trigger.oldMap.get(acc.id).Account_Clearing_Date__c!=null && acc.Account_Clearing_Date__c == Trigger.oldMap.get(acc.id).Account_Clearing_Date__c + 1)         acc.Customer_Type__c = 'Former Client';         else if(acc.Total_Opportunities_Won__c>=1 && acc.Active_Opportunities__c >= 1)          acc.Customer_Type__c = 'Current Client';        else if(acc.Total_Opportunities_Won__c==0 && acc.Active_Opportunities__c==0)          acc.Customer_Type__c = 'Prospect';        if(acc.Active_Opportunities__c==0)          acc.Account_Clearing_Date__c = system.today();        else if(acc.Active_Opportunities__c>=1)         acc.Account_Clearing_Date__c = null;        //  account_Updatelist.add(acc);    }  //  if(account_Updatelist!=null && account_Updatelist.size()>0)     //  update account_Updatelist;    }    }


Getting length of an array when passed to an object

I am learning about pointers, and how they can be used to send array(size is not assigned) to objects. Ultimately i m trying to learn how arrays can be added and multipled using operator overloading instead of using "vector" in c++.   I defined a class named vector as follows,  class vector { private:     int len;     int *pvec; } public:     vector(int array[])     {         len = sizeof(array)/sizeof(*array);         cout<<len<<endl;         pvec = new int[len+1];         for(int i = 0;i<len;i++)          {             pvec[i] = *(array + i);          }     }     void display()     {         cout<<"[";         for(int i = 0;i<len;i++)         {             cout<<pvec[i];             if(i < len-1)             {                 cout<<",";             }         }         cout<<endl;     } };   and i declared an object of class vector as follows  int vec1[] = {1,2,3,4}; vector v(vec1);   when i try to display the elements in the vector using the member function as  v.display();   the output is as follows  2 [1,2]   but as you can see the length of the vector is 4, but in the output it is displayed as 2. If i try to display the length of the array in main as  cout<<sizeof(vec1)/sizeof(*vec1)<<endl;   the length is displayed as 4, but if i pass the same array to the object it is displayed as 2.   If any one could point out a mistake in this program, i would be grateful.


How do I completely get rid of the dock from GNOME Shell?

I have tried using   sudo apt remove gnome-shell-extension-ubuntu-dock   but the dock is still present when I open the Activities overview and show all programs. How do I completely get rid of it?


How do I grant elevated privileges for a program during runtime?

When I've already started an application with a normal user account, at some point I may face that the program actually requires an elevated privilege for some operation.  Closing and restarting the program, depending on its design and the operation state, is not always convenient and in some situations it could mean data loss.  Is there a way to grant elevated privileges for an already running program (one that does not have a self-elevating feature built-in) during its run time?  edit note that my user is an Administrator.


why my site does not display the Russian and Chinese language encoding

My site does not display the Russian and Chinese language even if I add the header in my php page Header ('Content-Type: text / html; charset = utf-8');


How do you attach a debugger to a Web service?

I am using a Web service. Can anybody tell me how to debug through it?


How do I find out if my system is using Mir?

I've just installed Mir and I'm wondering if I'm actually running it or if it fell back to X. How can I tell if Mir is running?


I am using PDOs first time on my project and have some confusions in my mind and wanted to clarify:   Everyone recommends PDOs because it prevents from SQL injection so   Do we need to apply other functions before making query like strip_tags OR they aren't necessary with PDOs?  What is different betweeen :username and username?   Example:  $stmt = $db->prepare("SELECT id FROM USERS WHERE username=:username); $stmt->bindParam(":username", $username); $stmt->bindParam("username", $username);  Does this prevent from SQL injection? PDO::PARAM_STR which is used as third parameter in bindParam statement Is it necessary to close connection by setting connection object to null in end? like  $db = null;


card reading killing my battery, on macbook pro running Debian

I am currently using a macbook pro but the operating system is debian 8.2 not os x  I am using a macbook pro but there's this one device that's just draining a lot of power. This USB device: Card Reader (Apple)   32.5 W    100.0%                      Device         USB device: Card Reader (Apple)   2.60 W    100.0%                      Device         Radio device: btusb   209 mW     19.7 pkts/s                Device         Network interface: wlan0 (wl)   This device really drains my battery, I noticed that my laptop wouldn't even get 2 hours when not plugged in, I installed powertop. Made all the recommended changes but this device, I can't find out how to disable it. I don't even use that reader and forgot that it was there.  I configured all my devices to use limited power in my rc.local  echo '0' > '/proc/sys/kernel/nmi_watchdog' echo 'min_power' > '/sys/class/scsi_host/host0/link_power_management_policy' echo '1' > '/sys/module/snd_hda_intel/parameters/power_save' echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs' echo 'auto' > '/sys/bus/usb/devices/2-4/power/control' echo 'auto' > '/sys/bus/usb/devices/1-12/power/control' echo 'auto' > '/sys/bus/usb/devices/1-8.3/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.3/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:01:00.1/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.3/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.4/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.2/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:00:1b.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:00:16.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:00:14.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:00:01.1/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:00:01.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:08:00.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:07:06.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:07:05.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:07:04.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:07:03.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:07:00.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:06:00.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:05:00.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:04:00.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:03:00.0/power/control' echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control'   How can I get this device to act sanely or disable it completely because I  haven't used it.


Irreducible Polynomial $g = X^4 + X + 1$ in $\mathbb{F}_2$

I have the Irreducible Polynomial $g = X^4 + X + 1$ over $\mathbb{F}_2 E$, the extension of $\mathbb{F}_2 = \{0,1\}$ with root $\alpha$ of $g$.  My previous problems have asked me to find the number of elements in $E$ and see if they may all be represented in the for $a^n$ with $n \in N$ (I believe the answer to these are 16 and no respectively)  I am struggling however to find all the roots of $g$ in $E$ expressed in the form $\nu + \mu\alpha + \lambda \alpha^2 + \gamma \alpha^3$ as my final problem has posed.   Any help would be kindly appreciated.


Hash functions to generate a one-time pad

Maybe this is a newbie question:  Stream cypher, will XOR message bits with one-time pad bits. Suppose I have a , like a  or something similar. I could use the pseudorandom string to XOR the message. Use the password as the seed of the generator. Same password = same pseudorandom sequence. Could hashing blocks of the pseudorandom sequence create a stronger one-time pad stream?


Which continuous function satisfies $\int\limits_0^x f(t) dt \ge f(x)$ for all $x$ in $[0,1] $?

Written with .   Let $f:[0,1] \to [0,\infty)$ be continuous. Suppose   $$ \int\limits_0^x f(t) dt \ge f(x), \text{ for all } x \in [0,1]$$   Then which of the following is true   A. No such function exists   B. There are infinitely many such functions   C. There is only one such function   D. There are exactly two such functions   See the end of the question for correct answer. I have been able to figure out that, perhaps $e^x$ is one such function so A is NOT the answer. Correct answer : - C Source - Tata Institute of Fundamental Research, Graduate School Admissions 2014


Have a JSON_PARSER_ERROR after sent a JSON representation of a parameter of a REST service

I have a custom REST service which has a get and post methods. Both, get and post methods use the same wrapped object. In get case it returns this wrapped object, in post - I was hoping to have the same wrapped as input parameter for POST method, but I'm having this error     [       {           "errorCode": "JSON_PARSER_ERROR",           "message": "Unexpected parameter encountered during deserialization: name at [line:2, column:18]"       } ]   Input JSON   {                 "name": "XX 1142"     }   and wrapped is  global class BlahblahService {  ...     global class Wrapper {         global String id { get; set; }         global String name { get; set; }     global Wrapper() {}     } }   If I do this in Execute Anonymous everything deserializes fine.  What am I doing wrong?


I was recently reading a paper and I came across this diagram in the paper:  It basically shows the precision of an approximation algorithm as x and y varies. Does anyone know what sort of package this is?


How to clean USB flash drive from infections safely without losing files/documents inside

How can I clean a USB flash drive from infections safely without losing files/documents inside?  When I connect USB drives, there are shortcuts, exe files and hidden files, so I want to make un-hidden, cleaned from viruses and safe docs and files too.


I'm working on a nice problem in measure theory. Given $\mathbb{R}$ with its standard Lebesgue measure on its $\sigma$-algebra and a Lebesgue integrable function $f: \mathbb{R} \rightarrow \mathbb{C}$, what could we say about the limit $$\lim_{t\rightarrow 0} \int |f(x)-f(x+t)|d\lambda(x)$$ Of course with continuous functions, this limit is always equal to zero. But I can see some difficulties arrising quickly. Maybe one can force this integral to be nonzero somewhere when taking a suitable limit for $t$.   Certainly when trying to make this into a rigorous proof (that the limit is equal to zero), I did not see a clear way to get this result.  I'm not looking for a complete solution but any hints would be appreciated!


Proving that $x^n$ converges to $0$ whenever $|x| < 1$

I've already proved that for any $p > 0$ and for any $\alpha \in \mathbb{R}$, the sequence $\frac{n^\alpha}{(1 + p)^n}$ converges to $0$.  Now, I want to prove that $\lim_{n \to \infty} x^n = 0$ as long as $|x| < 1$.  I've split it into two possible cases:  (1) $0 < x < 1$.  Let $p = \frac{1}{x} - 1$, so that $x = \frac{1}{1 + p}$ and $p > 0$ (since $x < 1$). Then we let $\alpha = 0$ to see that $$\lim_{n \to \infty} x^n = \lim_{n \to \infty} \frac{n^0}{(1 + p)^n} = 0$$  (2) $-1 < x < 0$.  Here we cannot use the sequence $\frac{n^\alpha}{(1 + p)^n}$ again, since if we let $p = \frac{1}{x} - 1$, then $p$ isn't necessarily positive (for example, if $x = - \frac{1}{2}$, then $p = -3 < 0$).  How can I prove Case (2)?


Existence of data when mean vector and covariance matrix (p.s.d.) is fixed?

I would like to prove that for any positive semidefinite matrix $\Sigma_{n\times n}$ and any vector $\mu_{n\times1}$, are there always data points (no matter how many, as long as finite) whose empirical covariance matrix is $\Sigma_{n\times n}$ and the empirical vector is $\mu_{n\times1}$. What is the way to prove it rigorously?


How can I play effectively as a single Imposter vs 9 crewmates?

When I play as a single Imposter, alone against 9 crewmates - I rarely win games. I kill one crewmate at a time, adding time to the game, but usually the dead body is reported before my kill cooldown expires. It takes ages for the imposter to win and making it stressful and risky as well. Crewmates always sus me, and I don't know how. What if 3 crewmates are considered safe, and it's only me left? All in all, how can 1 imposter kill all the crewmates without being sussed out? I even camp vent.


Remove all data and settings of an uninstalled application

Given that I removed an application using apt remove, how do I remove the configuration files later, so that I get the result of apt purge?


if (customer === "new") {   //run code } else { }   When I run this condition it run my code while actually I have string value in customer "customername" and comparing with sring "new" which is not equal as ("customername" != "new")  it should not run the code while comparing.  I found to using === equal will check type if type is same it will pass true so == is the option to check the value but I am facing erro on using ==.  Expected '===' and instead saw '=='  eqeqeq


C# extract type and use as type parameter in another generic function

My goal is to have a collection of various generic types which will be used to populate a drop down list. The end user will select an item from the list which will then make an API call and return data based on the custom type stored in the list. So I created an interface that my generic class will inherit from: using System.Type;  namespace A {     public interface ICustomCollection     {         int Index { get; set; }         string Name { get; set; }         string ResourceName { get; set; }         Type TType { get; }         Type YType { get; }     } }  Then the generic class which inherits from it: using System.Type;  namespace A {     public class CustomCollection<T, Y> : ICustomCollection         where T : ITType         where Y : IYType     {         public int Index { get; set; }         public string Name { get; set; }         public string ResourceName { get; set; }          public Type TType { get { return typeof(T); } }         public Type YType { get { return typeof(Y); } }     } }  Then, I instantiate the list when the component is initialized and PerformWork once the user selects an object from the drop down list: using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Reflection; using Microsoft.JSInterop; using Microsoft.AspNetCore.Components;  namespace A {     public partial class DoWork : ApiBase     {         public List<ICustomCollection> Items { get; set; }         public ICustomCollection SelectedItem { get; set; }          protected override async Task OnInitializedAsync()         {             Items = new List<ICustomCollection>()             {                 new CustomCollection<ClassA, ClassB>()                 {                     Index = 1,                     Name = "Option 1",                     ResourceName = "url/for/api"                 }             };             await base.OnInitializedAsync();                      }          public async Task PerformWork()         {             //At this point, SelectedItem has been populated with the current ICustomCollection Item             var selectedT = SelectedItem.TType;             var selectedY = SelectedItem.YType;              //fails here with conversion error             return returnedData = await CallApiHelper((dynamic)selectedT, (dynamic)selectedY);         }          public async Task<string> CallApiHelper<T, Y>(T object1, Y object2)           where T : ITType           where Y : IYType         {             //base.CallApi implements the same generic type constraints as CallApiHelper             return await base.CallApi<T, Y>(SelectedItem.ResourceName);         }     } }  The error message I'm getting specifically is:  Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The type 'System.Reflection.TypeInfo' cannot be used as type parameter 'T' in the generic type or method 'CallApiHelper<T,Y>(T, Y)'. There is no implicit reference conversion from 'System.Reflection.TypeInfo' to 'ITType'.  which makes perfect sense. Is there a way to extract the underlying type and pass that instead?  I'm open to suggestions....


I have a chicken burrito that has a high salt content and lots of hot sauce in it. Will it stay safe refrigerated any longer than regular cooked chicken (which has a 3-4 day cutoff)?  Response to possible duplicate:  I've searched the linked article and it doesn't answer my question. My question is specifically about how salt affects the timing.


What kind of load balancing algorithms are there

I was researching different load balancing algorithms for HTTP and I just found 3.   Random, Round Robin and Weighted Round Robin.   Are there any other options?  Thanks  Paul


Prove triangle inequality using the properties of absolute value

So I was given the task of proving the following variant of the triangle inequality using only the properties of the absolute value:  $\vert\lvert x\rvert -\lvert y \rvert \rvert \leq \lvert x+y\rvert$  Now my initial instinct was to divide it to four cases based on the possible values of x and y, and show that in each case I get a truth expression, but it seems a bit "brute force" to me and I'm not sure this is what my instructor meant. Since I'm not allowed to use the actual triangle inequality and must adhere to absolute value properties, is there any other solution?  (Of course he'll accept this answer if it's correct, but I want to learn what it is I'm missing).


How do I open specific ports on Linux (an AWS instance of RHEL v. 7)?

I'm using RedHat version 7.  My AWS instances are in a security group with ample permissions for inbound connectivity.  I can do Yum updates.  The servers can ping each other.  I can transfer files from my workstation to the servers.  I even temporarily allowed all traffic from any IP address.  This didn't seem to help me.  I understand that RedHat v7 doesn't use IP tables by default.  RedHat v.7 uses firewalld or something similar.  I tried shutting off the firewall.    I used this command to configure the firewall: system-config-firewall-tui I unchecked the "Enabled" option for the firewall and saved changes.  I ran these commands:   systemctl stop iptables   systemctl stop firewalld   systemctl disable firewalld  I have root permissions.  The nmap utility indicates that almost every port is blocked.  I tried the nmap utility against specific ports and multiple ports from one Linux server to itself and a second Linux server on the network to the original Linux server.  I would get something like this:  Host is up (0.00042s latency). PORT     STATE  SERVICE VERSION 6379/tcp closed unknown  I double checked the nmap results with a bash script with these lines:  exec 6<>/dev/tcp/127.0.0.1/6379 || echo "Not listening on port 6379" exec 6>&- # close output connection exec 6<&- # close input connection  The above bash script indicated that the port was closed. (The script was from this link: )  I enabled the iptables just to see if a firewall needed to be running.  I ran this to try to open port 6379:  iptables -A INPUT -p tcp --dport 6379 -j ACCEPT  The above command has no response.  I just go to another prompt.  What can I do to open port 6379?  It seems like only port 22 is open.


In The Force Awakens we see that stormtroopers are given designations, and that Finn's is FN-2187. I'm not so interested in the numbers given, as I assume they are just to distinguish between troopers (although Finn's numerical designation had an ).  Why are they prefixed with FN specifically? Out of universe,  I can understand it means we can rename FN-2187 as Finn. But what does it mean in in-universe ?  Nb. I understand you'll need some other designation so as not to be limited to 9,999 troops. I'm more interested in specifically why the letters FN.


Schengen visit visa holder can directly travel from his/her origin home country to any schengen counrty?

my query:Is this possible of legitimate that schengen visit visa holder can travel from his/her origin home country to any schengen country ... for example: if i have schengen visit visa of Italy and i am traveling form my home country pakistan so can i go to sweden or spain rather italy directly from my home country??


Differentiable injective function betweem manifolds

Let $f:M\rightarrow N$ an injective differentiable functions between the manifolds M and N. Prove that $\dim M\leq \dim N$.   Can anyone give me a hint to solve this theorem? I tried to relate the injectivity of $f$ with the injectivity of its differential but that is not gonna work.   Thanks!


An electron can be moved using magnetic field so how about neutron? What really happens at quantum level when you physically move it and what fundamental force is involved? For this question let's ignore gravitational force thanks.


What does "Do you expect to run the X Windows System?" do when installing OpenBSD?

When installing OpenBSD 5.1, I got the question:   Do you expect to run the X Windows System?   What change does the installer make to my system if I say "yes"? I know what X Windows is, but I don't know why the installer wants to know if I plan to use it. Does it enable/disable X somehow based on my answer?


There are two students born exactly in one day of year. How to prove?

I remember once in our Statistics class, our professor mentioned an interesting problem, that is:     In our class, consisting of 30 students, I bet that there are two students born on an exact day of year.   It was quite clear to all of us that he will lose the bet, but then he asked all the students to write out their birth date on the board and surprisingly three of us were born in the same day of year!  It was very interesting to us. He wrote the proof to his statement, showing that If there are 40 students in one classroom, the probability that at least two students are born in the same day of year is over 90 percent (as I recall).  A few days ago, I told my friends about this, they all laughed at me saying it is impossible. I tried to give them the proof but I failed. I've forgotten everything!   I guess it is a famous problem in statistics, can anyone provide the proof or any link to any docs providing the proof to this statement?


Getting the current hour in C using time.h

Total newbie question here; I apologize in advance.  Suppose I have a daemon written in C that wakes itself up every five minutes or so, does some processing if there's anything in its input queue, and then goes back to sleep. Now suppose there is some processing that it only has to do after a certain (configurable) time--say, 2 pm (and before midnight).  In C, what is the quickest, best way to get the current time's hour into an int variable, so that it can easily be checked against--to determine if, in fact, it is after 2pm on today?


does ubuntu have a program installer like windows msi?

I am installing java on Ububtu 13.10. I know that there are 2 option to install jvm , manually or via apt command. But I am asking to myself, there is an ubuntu equivalent of windows msi or exe (I click and wizard do anything)?


If there was a perfect environment, and something was able to continue to heat up indefinitely, what would happen?.. What would be the outcome of something continuously heating up?


I've been trying to find out whether I add the proficiency bonus to my monk's unarmed strike attack, ie 1d4 + DEX + PROFICIENCY vs 1d4 + DEX. I've found some sources that say yes but most only seem to add the ability modifier. Any sources you could reference along with your answer would be a big help, thanks,


The new LED strobes while the old incandescent light works fined. I replace one of the two bulbs on the motion detection light fixture with a 150w incandescent flood light bulb....and the LED flood light stopped flashing/strobe. Why will the out door fixture work fine with one LED bulb and one incandescent bulb....but only flash with two LED bulbs?


ModernCV classic - family name on separate line

I'm trying to create a resume using the moderncv classic template, but the lay-out of my name is a bit off. Since my last name is fairly long and the personal information box on the right includes a photo as well, my family name gets hyphenated. When I use the option \usepackage[scale=0.75]{geometry} to decrease the margins, my family name gets pushed to the second line in its entirety, but the first name and family name are not properly aligned. The problem also persists when using different fonts or XeLaTeX instead of LuaLatex.  What is the correct way to move my family name to the second line manually and align it properly? I prefer this approach to reducing the font size of the name so that it can fit on a single line (as was answered , although the accepted answer seems to cause a bunch of warning messages in texstudio).  was another similar problem, but I did not manage to translate the solution to the \familyname option of moderncv.  Here is my minimal working example and the output:  \documentclass[11pt,a4paper,sans]{moderncv}  \moderncvstyle{classic} %\usepackage[scale=0.75]{geometry}  \firstname{Klmopq}\familyname{VeryLongName} \extrainfo{Personal Information} \photo[64pt][0.4pt]{lion}  \begin{document} \makecvtitle \end{document}


How to prove $\gcd(dm,dn)=d\cdot\gcd(m,n)$

I want to prove the following equation : $$ (dm,dn) = d\cdot(m,n)  $$ where  $$ (m,n) = \gcd(m,n) \\ (dm,dn) = \gcd(dm,dn) $$ I tried this : $$ (dm,dn) \rightarrow \exists g_1 \in Z : g_1|dm, g_1|dn \rightarrow g_1|(dm\cdot x+dn\cdot y) \rightarrow g_1|d\cdot (mx+ny) \\ \rightarrow g_1=\frac{d\cdot (mx+ny)}{t} $$ And the same for $ (m,n)$ : $$ g_2=\frac{mx+ny}{t} $$ If i insert $g_1$ and $g_2$ i get : $$ d\cdot\frac{mx+ny}{t}=d\cdot \frac{mx+ny}{t} $$  Is this right?


"on pace for ... users at 90 days" - how are these statistics calculated?

From :    How does the system extrapolate from the existing userbase how many users there are likely to be with at least a certain rep score in forty days' time? I can think of a few possible algorithms none of which make much sense. Has the algorithm used ever been made public?  (I've seen  from 2012, but I don't think this is a duplicate. The old meta post has a lot of guesses at possible algorithms, but nothing is confirmed.)


Compute product of all combinations of a list

I have a list of 11 numbers, and I want to test the product of all combinations against some rule (2^11 possibilities).  I came across , but it seems to return a list of all combinations, which I think would take up to much memory.  My C++ thinking would be to go through each binary number 0x001 to 0x7FF and multiply each number where its corresponding bit is 1.  Example with 4 numbers: My list is [2, 3, 5, 7]  The first binary number would be 0001 giving - 2 = 2  Later we would get to 1110 and the product would be 3 * 5 * 7 = 105  Is there a better way of doing this in python? A bit manipulation doesn't seem like the right way to go.


Let $X$ be a random variable which takes values in $\{0,1,...,10\}$. What are the minimum and maximum possible values of the variance of $X$?  I know $\mbox{Var}(X)=E[X^{2}]-E[X]^{2}$, but I'm unable to think how I can maximize or minimize it.


I just made a figure with text I had compiled in LaTeX and arrows added later:    Is it possible to have some text connected by diagonal arrows like above, all in LaTeX code?


When citing a foreign-language article, do I need to translate the journal name?

Internet sources seem to agree that, in the list of references,  the title of an article written in a non-Latin script should be transliterated and also translated. Similarly, the title of the journal should be transliterated if necessary. My question is: should non-English journal names should also be translated in the references?


Let $G$ be a nonempty open subset of $\mathbb{R}$ (with usual topology on $\mathbb{R}$) such that $x,y\in G$ implies that $x-y\in G$. Show that $G=\mathbb{R}$.  Clearly $0\in G$. Now how to show that all real numbers are there in $G$? Please help.


What is the difference of posting data between using jquery and the html action?

I have a form that can be cloned via jquery. I can submit all the inputs if I use:  <form method="POST" action="insert_mydata.php" id="myForm">   But if I try to use:  $(function() {     $("#myForm").submit(function() {         $.ajax({             type: "POST",             url: "insrt_mydata.php",             data: $('#myForm').serialize(),             success: function(data) {                 alert(data);                 alert("Successful");             }         });         return false;     }); });   Please help me find out what I am missing. Thank you.  The script I am using to clone the form:  $('.add').click(function(e){     e.preventDefault();     var lastRepeatingGroup = $('.repeatingSection').last();     var cloned = lastRepeatingGroup.clone(true);     cloned.insertAfter(lastRepeatingGroup).find(":text").val("");     resetAttributeNames(cloned); });   How does the two method differ from each other as the latter is working (Data are being inserted the way I want it to be), while the jquery method is not.  Thank you.


Is there a word to describe the virtue of "to do something and ask for nothing in return"?

I am wondering if there is a positive, formal counterpart to the slang "No strings attached" to describe, for example, a parent's unquestioned devotion to their children, or the virtue of someone's "a friend in need is a friend in deed", help first, question later mentality.


I've never taken up a course in number theory and just decided to study it on my own. Here's one of the exercises:  Solve the congruence $30x \equiv 186 \pmod{216}$, and express your answer in terms of congruence classes modulo 216.  My solution is as follows: Since 6 is a factor common to 30, 186, and 216, the given congruence is equivalent to $ 5x  \equiv 31 \pmod{36}.$ This congruence has a unique solution because $\operatorname{gcd}(5,36)=1$. Via the Euclidean algorithm, $36=7 \cdot 5 + 1$, thus $5(-7) + 36(1) = 1.$ It follows that $ 5(-7) \equiv 1  \pmod{36}.$ Multiplying both sides by 31, $ 5(-7)(31) \equiv 31  \pmod{36}.$ Hence,  $ 5(-217) \equiv 31  \pmod{36}.$ Since $-217 \equiv 215 \pmod{216}$, we have $x \equiv 215$ is a solution to our original congruence. Other solutions are of the form $215 + 36m$ where $m=0,1,2,3,4,5,6$. Thus the congruence classes of the solutions modulo 216 are $215,35,71,107,143,179$. I think my solution should be correct (based from  and ) but I'm trying to learn this on my own so I don't have any intuition for such problems. What's the theorem or intuition behind adding multiples of 36 to 215?


How does wave function collapse when I measure position?

Text books say that when you measure a particle's position, its wave function collapses to one eigenstate, which is a delta function at that location. I'm confused here.   A measurement always have limited accuracy. Does the wave function collapse to exactly a eigenstate no matter what accuracy I have? When a particle is in an eigenstate of position, I can represent the state in momentum basis, and calculate it's expected value (average) of kinetic energy. This gives me infinity. Can a particle ever be in such a state?


Question on finite Vector Spaces, injective, surjective and if $V$ is not finite

Let $V$ be a vector space and $\alpha \in \operatorname{End}(V)$   (i) If $V$ is finite dimensional, then $\alpha$ is injective iff $\alpha$ is surjective.  (ii) Give example showing (i) is false if $V$ is not finite dimensional.  So on (i), since $V$ is finite dimensional, then $V$ has a basis with finite cardinality and hence $\dim(V)=n$. Also, the following holds, $\dim(V)=\dim(\ker(\alpha) + \dim(\operatorname{im}(\alpha))$ Since $\alpha$ is injective, then the $\ker(\alpha)$ is $0$ which implies that the $\dim(\ker(\alpha)$ is $0$ which implies that $\dim(\operatorname{im}(\alpha))=\dim(V)$ and that shows that $\alpha$ is surjective. (Is that right?)   On the second one, (ii), I just have no idea. I mean shouldn't Axiom of Choice be able to work here?


In    <!DOCTYPE html>   <title> 51 Pegasi Studios </title> <link rel="icon" href="file:///D:/Files/51PEGASI/icon.png">
      HOME   ABOUT   GAME DESIGN   GAME DEV   PROGRAMMING   MUSIC
         I want the image to be centered vertically, similar to the text buttons, on the same line as them. I've tried messing around with different alignments and such, but to no success. I'm assuming there's a way to go about doing it without having to use a different method than I did with the text.   is what it looks like in practice.


Putting in MATLAB codes in a box as figures?

how do I put MATLAB codes in a box or deal with them as if they are figures? Is there a way to do it within LaTeX itself? I am currently using the verbatim environment to present my codes and to be honest, I don't think they are very well presented!


How to make applications open on the correct monitor when using multiple monitors?

I'm using Windows 8.1, which has much better multiple monitor support than Windows 7 (sort of). However when I'm in a full-screen app on one monitor, and I go to the Start menu on the other and open a desktop app, it opens on the opposite monitor because of it being on that one last time the app was used.  This suspends the full-screen app and switches to the desktop view on that monitor. I then have to drag the desktop app to the other monitor which I didn't have my mouse pointer near in the first place, then switch back to the full-screen app on that monitor by going to the upper-right corner.  This is so incredibly irritating, every time I plug in my laptop to my second monitor and try to use it, this happens. Not to mention whenever I have Netflix or any kind of video in the second monitor and it just randomly stops playing when I'm trying to work on the other screen.  Most likely there is going to have to be a third-party application to install to do this, right? I would really prefer if it was free, as this was less annoying in Windows 7 when the application would only open on top of the other that was on that monitor. This is one of the maybe two annoying things I don't like about Windows 8/8.1. Everything else is fantastic, to be honest.


British airways BA256 - BA376 Transit requirement

I am traveling from New Delhi IGI Airport to Blagnac Airport Toulouse via Heathrow London, I would be boarding my flight at 10.20 am from India which will drop me at Toulouse at 20.35 with a 5-hour layover at Heathrow. I am going on a student visa, do i require an airport transit visa. If so please assist me how to apply for transit visa.


How to make this not an infinite loop? I can't figure out what I'm doing wrong

This is what I'm trying to do:  Write a Java program that reads a sequence of student records and prints the total score for each student. Each record has the student’s first and last name, followed by a sequence of test scores and a sentinel of –1. The sequence is terminated by the word END. Here is a sample sequence:    Harry Morgan 94 71 86 95 -1  Sally Lin 99 98 100 95 90 -1  END     Please note:  • Hint: you need nested loops  • Validate the user’s entry as needed • Don’t use arrays, you don’t have to save your values.   Here is my code so far(when I run it, it infinitely loops, my "END" won't stop the loop):      import java.util.Scanner;      public class loopshelp {            public static void main(String[] args) {                    Scanner keyboard = new Scanner(System.in);                    Scanner input = new Scanner(System.in);                     String name = "0";                    while(name != "END") {                         int sum = 0;                         String f_name = "";                         String l_name = "";                         System.out.println("Enter student's first name[enter 'END' when done]");                         f_name = input.next();                         System.out.println("Enter student's last name[enter 'END' when done]");                         l_name = input.next();                         name = f_name;                         int value = 0;                         while (value != -1) {                              System.out.println("Enter a value[enter -1 to stop]");                              int num = keyboard.nextInt();                              sum = sum + num;                              value = num;                              }//while value != -1                        System.out.println(f_name + " " + l_name + ": "+ (sum + 1));                        }//while f_name != end                    keyboard.close();                   input.close();                   }             }


How to restore from Titanium Backup with file on computer?

I flashed new firmware and before doing so backed up apps and data with Titanium Backup. How do I restore? I have the folder on my PC which contains two .gz files and a properties file.


Dan levels: difference between amateur and professional?

Is there a difference between amateur and professional dan levels in go? If yes, how are they related?


What is the tense in this sentence? Is the verb in conditional?

In what verbal tense is "were"? Could it be considered conditional? Or a preterite in subjunctive mood?   The best way I can explain it to you is by saying that, for a second or two, I felt as though, instead of going to the centre of a continent, I were about to set off for the center of the earth.


I'm doing some remodeling on a river cabin. It was built 50 years ago and most of it is not to code.  It's not mine and I'm trying to get my family to look at upgrading all the wiring. It doesn't even have outlets with grounds in them.  Also, for those who might be concerned, I do have some experience wiring. My uncle wired his whole home and came down to wire my dad's shop. He taught me and an inspector said it was wired better than some homes he'd been in. I know how to safely wire this project in, just not issue like this. If I can't find a satisfactory answer or I don't feel confident, I will call in a professional.   My issue is that I'm working on redoing a wall in the bathroom. There is currently a light fixture with a built in plug for plugging in something like a hair dryer. I'm replacing that light fixture and would like to add a gfci outlet in the wall before I add the FRP board I'm covering it with. The current gang box for the light is free floating and I'm going to replace it with a plastic one with the little wings that hold it in place. Being able to push it back I can read that the wire says 14/2.  Ideally all the wire would be 12/2, but I don't know when or if that will happen. I'll never use 14/2, so instead of buying a roll of that, can I use a piece of the 12/2 romex that I already have, and wire off the light to the outlet?  I understand that the outlet would only work when the light was on. I just want to make sure I'm not going to burn the cabin down. In my mind, it would be fine, because it's already wired correctly for 14/2, with the correct amp breaker, so if it hits a load too high for the 14/2, then the breaker shuts off. It just has the capability to run more power. I wouldn't be able to do the reverse, but this seems okay.  Am I correct on this or is there an issue I don't know about? Thanks. I did see similar questions, but none that I thought were exactly this issue.


Following Setup:    (As soon as you earn 10 reputation on the site, you'll be able to embed images)  I'd like to add up all the same numbers in the second column, but i don't get it how to do so. Output should look like the following:  +------------+------------+ | 00000030   | 106        | | 00000001   | 106,107,125| | 00000002   | 103        | | 00000002   | 103        |  and so on .... +------------+------------+   Is that even possible with simple SQL or do i have to use an sql cursor?


Another combinatorics problem: $\sum\limits_{k = 0}^n (-1)^k \binom{2n-k}k2^{2n-2k}=2n+1$

I am dealing with problem 10F in the textbook A Course in Combinatorics by J. H. van Lint and R. M. Wilson.   Problem 10F: Prove directly the equality  $\sum\limits_{k = 0}^n {{{\left( { - 1} \right)}^k}\left( {\begin{array}{*{20}{c}} {2n - k}\\k\end{array}} \right){2^{2n - 2k}} = } 2n + 1$.  Sketch of the proof: Evaluate  $\sum\limits_{n = 0}^\infty  {\sum\limits_{k = 0}^n {{{\left( { - 1} \right)}^k}\left( {\begin{array}{*{20}{c}}{2n - k}\\k\end{array}} \right){2^{2n - 2k}}{x^{2n}}} } $. To do this, use Hint 1. Then, use Hint 2.  Hint 1: $\sum\limits_{j = 0}^\infty  {\left( {\begin{array}{*{20}{c}}{a + j}\\j \end{array}} \right){x^j} = {{\left( {1 - x} \right)}^{ - a - 1}}} ,\,\,a \in {\mathbb{Z}^ + }$.  Hint 2:  ${\sum\limits_{i = 0}^\infty  {\left( {2i + 1} \right){x^{2i}} = \left( {\frac{x}{{1 - {x^2}}}} \right)} ^\prime }$.   Attempt: It is enough to show that  $\sum\limits_{n = 0}^\infty  {\sum\limits_{k = 0}^n {{{\left( { - 1} \right)}^k}\left( {\begin{array}{*{20}{c}} {2n - k}\\ k \end{array}} \right){2^{2n - 2k}}{x^{2n}}} }  = {\left( {\frac{x}{{1 - {x^2}}}} \right)^\prime }$. But I can not use Hint 1.


Why can't I see my USB drive during Windows 7 installation?

I'm trying to install Windows 7 Professional SP1 64 bits on a NVMe SSD from a USB drive. I know Windows 7 does not have NVMe support, so I need to install the drivers during the installation. The problem is that during the installation I cannot see my USB drive were I copied the drivers. Here is what I did:   I used the Rufus tool to create a bootable USB in GPT partition UEFI mode FAT32 format. I added the drivers to the USB and to a second USB. I inserted the USB in the computer's USB 2.0 port and entered the BIOS. on the BIOS I enabled CSM support and selected UEFI mode for Storage and PCIe. Then I booted into the installer and it asked me for a driver which I was expecting. I clicked on Browse and I could only see the X: drive which has the installation, but I couldn't see my USB drive. I inserted my second USB, but that didn't work either. I read comments of people inserting it on the USB 3.0 slot and that why it didn't recognize it, but that isn't the case here, I'm using USB 2.0.   Specs:   Mobo: ASUS Z170-A CPU: Core i7 6700k RAM: 2 ✕ 8GB DDR4 2666Hz Hyper X Fury SSD: Samsung 950 Pro NVMe M.2.   I might be missing something in the BIOS, but I don't know what.


I'm running a remote bash script (using ssh -t 'bash doscript.sh'). In "doscript.sh" I have a sudo su anotheruser. At that point, the script seems to push a shell and I'm left in that "interactive" script and the rest of my script (doscript.sh) doesn't run unless I type "exit". Is there a workaround that gets around this problem?  Thanks in advance.  Here is the contents of my test script "doscript.sh":  sudo su diy cd pwd whoami exit whoami


Maximal cardinality of a family of pairwise disjoint "figure eights" in the plane

Let $A$ be the set of non-intersecting "figure eights" (objects shaped like $8$) in the $\mathbb{R} \times \mathbb{R}$ plane, so that $|A|$ is maximal. What's $|A|$?  Examples of figure eights: $8$, $\infty$, and all angle variations.  It seems to me the answer is $\aleph$. Maybe you can view figure eights as objects defined by center and radius. Center being point of intersection of $8$, and radius defines the two "circles" above and below the eight.  Honestly I'm quite clueless.


I'm getting a gpg error:   http://ppa.launchpad.net precise Release: the following signatures couldn't be verified because the public key is not available : NO_PUBKEY 5A9A06AEF9C8DB0    This came after doing  sudo apt-get-repository ppa:ok2cqr/ppa sudo apt-get update   The error happened after a long list of 'Hit http  can't copy/paste from the Ubuntu laptop to here, a mac desktop with a better WiFi connection, but at the time i seemed to have a reliable connection.  thanks scott


Including References from bib-file in TexMaker and using Citation-Keys

I am writing my thesis and everything is working grat except the quoting from the bibliography. I have to say that I am more or less a newbee in this topic - so far I did with the normal bibliography "thebibliography", but I would like to use BibLaTex instead in order to have a better overview over all citations. Also it would be nice to use the abreviations including the first letters of the author and the latter two numbers of the year, e.g. "Fe02".  What I have so far is the following bib-file (only one element shown) saved under the name mylibrary.bib in the same location as the other tex-files.  @BOOK{fernholz02,     AUTHOR = {Fernholz, E. Robert},     YEAR = {2002},     TITLE = {Stochastic Portfolio Theory},     EDITION = {1st edition},     ISBN = {978-1-4419-2987-7},     PUBLISHER = {Springer Science + Business Media New York}, }   Now I have inserted the library in my tex-file in the following way (neglected the other things in the preamble):  \documentclass[a4paper]{report} \usepackage[ngerman,english]{babel} \usepackage[backend=biber]{biblatex} \usepackage{csquotes} \bibliography{mylibrary}    \begin{document}      \section{introduction}      This is the introduction and \cite{fernholz02} is such a nice book that it is often-cited in this thesis.     \printbibliography \end{document}   When running the compiler with PDFLaTeX, it gives the following error messages. Mainly, he couldn't find the bibliography.  Citation 'fernholz02' on page 1 undefined Empty bibliography There were undefined references. Please (re)run Biber on the file.... and rerun LaTeX afterwards.   I have already searched in other questions for the solution. Suggested was for example to run first PDFLaTeX, then BibTeX and then twice PDFLaTeX again. But this ends by the second time of compiling in an error message related to BibTeX:  This is BibTeX, Version 0.99d (TeX Live 2014/W32TeX) The top-level auxiliary file: test_biblio.aux I found no \citation commands---while reading file test_biblio.aux I found no \bibdata command---while reading file test_biblio.aux I found no \bibstyle command---while reading file test_biblio.aux (There were 3 error messages)   What I am doing wrong? I appreciate any help - thanks already!


I installed the cuda toolkit 7 and right after I restarted I was stuck in a login loop. I tried all the suggestions I could find which includes deleting the .Xauthority file, .profile, reconfiguring lightdm, reinstalling lightdm, checking ownership permissions etc.   Nothing worked, my only option seems to be a reinstall, however, since I'm not sure what caused this in the first place I'm thinking it may quite well occur again.   Any suggestions outside the aforementioned is most welcome. I really just need to be able to login so that I can get to my work, thanks.


Suppose I am given a $2$x$2$ matrix $A=$ \begin{pmatrix} a & b \\ c & d \end{pmatrix}  And an initial vector $x_n$ = \begin{pmatrix} x_0 \\ y_0\end{pmatrix}.  Under repeated iteration $x_{n+1} = Ax_n$, we find that $x_{n+1}$ converges to a line in the direction of the $eigenvector$  of $A$ of the form $X$= $[u,mu]$ where $m$ is the slope of the line.  I know that this process somehow also involves the largest $eigenvalue, \lambda,$ of $A$, though I am unsure how it connects.  My question is: How does the largest eigenvalue connect to this repeated iteration, how do I find the slope of the line of convergence $m$, and what is meant by the "direction of the eigenvector"?


Is it possible - for a privileged process - to change the GID of another process. I know that there is the setgroups() system call that allows a process to change it's own GID. However, I want to do this from 'outside' the process (and after the PAM stack was processed). I already saw  post, but there was no real answer to the problem. Are there any reasons for not changing the GID after PAM traversal other than there might be problems with opened resources like file descriptors? I understand that opened files would still use the old GID after the change.


A library to convert ANSI escapes (terminal formatting/color codes) to HTML

I'm looking for a code library that converts ANSI escape sequences into HTML color, via plain  tags or CSS. For example, something that would convert this:  ESC[00mESC[01;34mbinESC[00m ESC[01;34mcodeESC[00m ESC[01;31mdropbox-lnx.x86-0.6.404.tar.gzESC[00m ESC[00mfooESC[00m  Into this:  bin code dropbox-lnx.x86-0.6.404.tar.gz foo   Converting breaks into
 isn't necessary, it's just the escape codes that I don't know. I could hack it together myself, but I'd probably miss something important like underlines or mess up how background colors work. I'd rather just sit on top of someone else's code.  Does such a tool (command line linux) or library (perl, python, or ruby preferably) exist?


I am trying to write a basic piece of operator overloading code. However, I am getting a few errors which I cannot explain.  Header file:  class Overloading { public:     int number;     Overloading();     Overloading(int);     Overloading operator+(Overloading);     void vUselessoverloadFunction(); };   C++ code:  Overloading::Overloading() {}  Overloading::Overloading(int i) {     number = i; }  Overloading Overloading::operator+(Overloading Object2) {     Overloading NewObject;     NewObject.number = number + Object2.number;     return (NewObject); } void Overloading::vUselessoverloadFunction() {  Overloading ObjectOne(15); Overloading ObjectTwo(24); Overloading ObjectThree();  ObjectThree = ObjectOne+ObjectTwo; cout << ObjectOne.number << endl; cout << ObjectTwo.number << endl; cout << "Overloaded object value: " << ObjectThree.number << endl;  }   I am getting the following errors: On line ObjectThree = ObjectOne+ObjectTwo;:-Assignment of function 'Overloading ObjectThree()'  -Cannot convert 'Overloading' to 'Overloading()' in assignment  and on line cout << "Overloaded object value: " << ObjectThree.number << endl; -Request for member 'number' in 'ObjectThree', which is of non-class type 'Overloading()'. Any help would be greatly appreciated!


After installing Ubuntu 13.04 x64, I realised that my sound wasn't working (only headphone showed up in settings).  Following , I manually added my Dell Studio 1740 audio hardware to:   options snd-hda-intel model=dell-m6   Within etc/modprobe.d/alsa-base.conf.  Using the test speakers feature, I found that no sound was coming out of my right speaker (the one with the power and volume dials).


If I were to cast  a black card that makes the opponent discard 2 cards at random, and the only 2 cards my opponent has in his hand have protection from black would they be protected? Would it fall under Targeting since it doesn't actively target the creatures with white, it should go off?


Two balls, first with the mass $m_1$ and the second with the mass $m_2$ are falling from the heigh $h$. Suppose all the collisions are perfectly elastic and do not consider the size of the balls. $m_1 < m_2$ and ball with the mass $m_1$ is on the top.    What height $h_1$ will the ball with the mass $m_1$ jump to and what height $h_2$ will the ball with the mass $m_1$ jump to?     I think equations as $(m_1+m_2)gh=m_1gh_1+m_2gh_2$ and $(m_1+m_2)v=m_1v_1+m_2v_2$, where $v$ is the velocity of both balls falling, are correct, but I have no idea how to get $h_1$ and $h_2$ independent of each other.  It seems to me, like here is some common operation or relation, that I just don't know, that I have never seen or don't remember... Please don't describe me "you have to do this and this" and "think about what happen when...". I need to see the progress. I need to see these equations and what's happening.


Allergic to grapes, apple and cherry how to use recipes with wine

Wine allergy is my problem... not alcohol. I am also allergic to grapes, apples and cherries. Many recipes call for wine... what can I substitute?


Would replicated material eventually break down?

The nutrients from replicated food would probably be used up by the body fairly quickly, but what about materials that aren't directly consumed? Is it possible that after a period of time they would return to whatever they were before being replicated?


Why I cannot establish the recursive relationship between the surface areas of a $n$ and $n-1$ spheres?

Let $S_{n}(R)$ be a surface area of a $n+1$-dimensional sphere of radius $R$. It is easy to obtain $S_n(R)=S_n(1)R^{n}$. In particular, $S_1(R)=2\pi R$ and $S_2(R)=4\pi R^2$. Consider the sphere $S_n(1)$ centred at the origin with radius 1. A vertical hyperplane $x_1=x$ intersects the sphere and leaves a cuts, which should be a $n$-dimensional sphere $S_{n-1}(r)$. The intuition is that you will obtain a circle when cutting a sphere by a plane. So the nearby surface area of the original $n+1$ sphere can be locally approximated by $\Delta x\cdot S_{n-1}(r)$, the surface area of a slim stripe. Inspired by the calculus approach and summing up the surface areas of all the slim stripes and having $\Delta\rightarrow0$, I have\begin{equation}\label{eq:5}S_n(1)=2\int_0^1S_{n-1}(r)dx,\end{equation} with $r=\sqrt{1-x^2}$. Hence \begin{eqnarray*}S_n(1)&=& 2\int_0^1S_{n-1}(r)dx =2\int_0^1S_{n-1}(1)r^{n-1}dx\\ &=&2 S_{n-1}(1)\int_0^1r^{n-1}dx=2S_{n-1}(1)\int_0^1 (\sqrt{1-x^2})^{n-1}dx.\end{eqnarray*} Let $t=1-x^2$, so $x=\sqrt{1-t}$, and $dx=-1/2\cdot (1-t)^{-1/2}dt$. The last expression becomes \begin{eqnarray*}S_n(1)&=& 2S_{n-1}(1)\int_0^1 (\sqrt{1-x^2})^{n-1}dx=-2S_{n-1}(1)\int_1^0 t^{(n-1)/2}\cdot \frac{1}{2}\cdot (1-t)^{-1/2}dt\\ &=&S_{n-1}(1)\int_0^1 t^{(n-1)/2} (1-t)^{-1/2}dt=S_{n-1}(1)\mathrm{B}(\frac{n+1}{2},\frac{1}{2}),\end{eqnarray*}where the notation $\mathrm{B}$ stands for the Beta function. I therefore obtain a recursive relationship \begin{equation}\label{eq:4}S_{n}(1)=S_{n-1}(1)\frac{\Gamma(\frac{n+1}{2})\Gamma(\frac{1}{2})}{\Gamma(\frac{n+2}{2})}.\end{equation} Utilizing \eqref{eq:4} I conclude that \begin{eqnarray*}S_n(1)&=&S_1(1) \frac{\Gamma(\frac{3}{2})\left[\Gamma(\frac{1}{2})\right]^{n-1}}{\Gamma(\frac{n+2}{2})}=S_1(1) \frac{\frac{\sqrt{\pi}}{2}(\sqrt{\pi})^{n-1}}{\Gamma(\frac{n+2}{2})}\\ &=&2\pi \frac{\frac{1}{2}\pi^{n/2}}{\Gamma(\frac{n+2}{2})}=\frac{\pi^{\frac{n+2}{2}}}{\Gamma(\frac{n+2}{2})}.\end{eqnarray*}  However, when substituting $n=1,2$ into he last expression, I get \begin{eqnarray*}S_1(1)&=&\frac{\pi^{3/2}}{\Gamma(3/2)}=2\pi,\\S_2(1)&=&\frac{\pi^2}{\Gamma(2)}=\pi^2,\end{eqnarray*}where the second equation  is plainly wrong. I trust my calculation is correct. The only possible explanation is therefore my approach to establish the recursive relationship (the first equation) must be wrong. But I don't see where the problem is. Any suggestions or comments are highly appreciated.


Is it possible to have global color swatches or color styles in Photoshop?

I'm looking for a way to use one color in multiple different layers, and then be able to change that color in all the layers in one single place.  Lets say that I have four layers using #ffffff. Now I want to know what my design looks like with #ffff00 instead. How can I do this without manually changing all four layers?  I can add that adjustment layer on hue/saturation is not really what I'm looking for. What I need is something like "change all #ffffff to #ffff00."


Independence of $x = z_1^2 + z_2^2$ and $y = z_2 / z_1$, with $z_1, z_2$ having a standart normal distribution

I'm trying to prove the independence of  $x = z_1^2 + z_2^2$ and $y = z_2 / z_1$, with $z_1, z_2$ having a standart normal distribution. Knowing that $z_1$ and $z_2$ are independent from each other.  I know   $x$ is like the $r^2$ of a polar coordinate. And $y$ is like $arctg(\alpha)$. But I still don't know how to use that to prove what I want.  Things I'm trying todo since I posted the question:  Trying to use Jacobian method to at least find $f_{X,Y}$, if I could then find $f_{X}$ and $f_{Y}$ I could prove the independence using the definition.  Things I've done since first posted:  I have found $f_{Z_1,Z_2} (z_1,z_2) = f_{Z_1}(z_1)*f_{Z_2}(z_2) = \frac{1}{2\pi}*e^{\frac{-(z_1^2 + z_2^2)}{2}}$  Some ideas:  I'm stuck trying to find the inverse of the transformation, but if there was a way to find it I'd be closer to know the distribution of $f_{X,Y}$  If I do something along $z_1 = r*cos(\theta), z_2 = r*sin(\theta)$, then I have $X = r^2, Y = tan(\theta)$,  maybe it's better to do two "easy" transformations than a hard one.  That transformation leads to   $z_2/z_1 = tan(\theta)$  $\sqrt{z_1^2 + z_2 ^ 2} = r$  Then going by the jacobian method, saying that g is the transformation. I have that   $f_{R,\theta}(r,\theta) = f_{z_1,z_2}(r*cos(\theta), r*sin(\theta))*J(g^-1(r,\theta)) = f_{z_1,z_2}(r*cos(\theta), r*sin(\theta))*r$  $ = \frac{r}{2\pi}*e^{-r^2/2}$  Then we have the other one,  $x = r^2$  $y = tan(\theta)$  Once again I go with the jacobian method,  $|J(t^{-1}(X,Y)| =   | \begin{bmatrix}                            \frac{\partial \sqrt{x}}{\partial x} &                             \frac{\partial \sqrt{x}}{\partial y}  & \\                            \frac{\partial \arctan(y)}{\partial x} &                             \frac{\partial arctan(y)}{\partial y}                        \end{bmatrix} |                  = | \begin{bmatrix}                            \frac{1}{2*x^{2}} &                             0  & \\                            0 &                             \frac{1}{1 + y^2}                     \end{bmatrix}  | = \frac{1}{2\sqrt(x)*(1+y^{2})}$  $f_{r,\theta}(\sqrt(x),arctan(\theta)) = \frac{1}{2\pi}*e^{-\frac{x}{2}}$  $f_{x,y} = \frac{1}{2\pi}*\sqrt{x}*e^{-\frac{x}{2}}*\frac{1}{2\sqrt{x}}*(1+y^{2}) = \frac{e^{-\frac{x}{2}}}{4\pi*(1+y^2)}$  This is close to the answer, because X has an exponential distribution, and Y another one. But there is a mistake somewhere, because the probability of Y being any number is $1/2$ instead of $1$


Mysql: Using where comparison operator in outer query against select subquery result

I am am trying to use a WHERE clause based on a scalar subquery result. The query executes correctly without the WHERE clause. With the WHERE clause I get Error Code: 1054. Unknown column 'available_services' in 'where clause'.  How can I achieve filtering based on the result of the subquery?  Also since subqueries can be pretty inefficient any suggestions of how to improve the query would be useful.  SELECT DISTINCT      `suppliers`.`id` AS `supplier_id`,      `suppliers`.`name`,      `suppliers`.`code`,      `suppliers`.`notes`,      (         SELECT GROUP_CONCAT(             `services`.`name`              ORDER BY `services`.`order`              SEPARATOR ', '         )          FROM `supplier_services`          LEFT JOIN `services`              ON `supplier_services`.`service_id` = `services`.`id`          WHERE              `supplier_services`.`service_id` = `services`.`id`             AND `supplier_services`.`supplier_id` = `suppliers`.`id`         GROUP BY `supplier_services`.`supplier_id`     ) AS `available_services` FROM `suppliers`  WHERE `available_services` like '%pet%'  GROUP BY `suppliers`.`id`


Does hidden just mean unseen and unheard?

Exactly what "hidden" means in game is not completely obvious.     Hiding When you try to hide, make a Dexterity (Stealth) check. Until   you are discovered or you stop hiding, that check’s total is   contested by the Wisdom (Perception) check of any creature   that actively searches for signs of your presence.      You can’t hide from a creature that can see you, and if you   make noise (such as shouting a warning or knocking over a   vase), you give away your position. An invisible creature can’t   be seen, so it can always try to hide. Signs of its passage   might still be noticed, however, and it still has to stay quiet. (PHB p. 177)   So we know you can take an action do do it, and that when you are hidden from a creature they don't know (exactly) where you are.  One further hint comes from the Unseen Attackers and Targets section:     If you are hidden–both unseen and unheard–when you make an attack, you give away your location when the attack hits or misses. (PHB p. 195)   Does "hidden" just mean unseen and unheard, like that section suggests? (also unsmelt, unfelt, untasted - generally unsensed) Or does it mean something else?  Some implications if this were the case:   There would be some extra niche cases that allowed easier access to being hidden.  creatures out of sight of a PC that had the Deafened condition would effectively be hidden from the PC The Silence spell could be used to stop enemies without line of sight to a PC from knowing exactly where they/their party are in its radius (effectively "Mass Hide" as long as they have a line of sight blocker and stay in the radius)


Quantum algorithms frequently use bra-ket notation in their description. What do all of these brackets and vertical lines mean? For example: $|ψ⟩=α|0⟩+β|1⟩$  While this is arguably a question about mathematics, this type of notation appears to be used frequently when dealing with quantum computation specifically. I'm not sure I have ever seen it used in any other contexts.     Edit  By the last part, I mean that it is possible to denote vectors and inner products using standard notation for linear algebra, and some other fields that use these objects and operators do so without the use of bra-ket notation.   This leads me to conclude that there is some difference/reason why bra-ket is especially handy for denoting quantum algorithms. It is not an assertion of fact, I meant it as an observation. "I'm not sure I have seen it used elsewhere" is not the same statement as "It is not used in any other contexts".


I wrote the following code in Python 3.  x= int(input ("Enter the first number: ")) y= int(input ("Enter the second number: ")) z= int(input ("Enter the second number: ")) tot = x+y+z avg = tot/3 print ("average = ",avg)   Result when I enter 2,7,1 as the first, second and third number, it prints:    average =  3.3333333333333335   When I enter 20, 70, 10 it prints:  average =  33.333333333333336   When I try with 200, 700, 100 it renders:  average =  333.3333333333333   Please explain me the exact reason to get different values as the average in the above 3 cases.


Am I eligible for hats if I join a Stack Exchange site after the start of Winter-Bash?

The question pretty much tells it all.   I joined  today and I'm not seeing any hats in my profile. So joining any SE site after Winter-Bash starts doesn't grant me hats? I see that there may be a . Is this the case?


<html> <body> <script type= "text/javascript">  var i=10; function f(){    alert(i);    if(!i){      var i= 20;    }    alert(i); } f(); </script> </body> </html>   This is my html file. The outputs I get are undefined for first alert and 20 for the second alert. Why is this so? What is happening here?


How to print the entire array list without appending the index in Java?

I'm a rookie in Java. I just started it a day before. I don't know whether its a stupid question. Whatever , when i run the below codes , I got   [I@15db9742 as output.   public class array1 {     public static void main(String[] args)     {            int[] arr={1,2,3};         System.out.println(arr);     } }   what does it mean ?   When i create a char array as   char[] c={'a','b','c'};   i got the output as  abc   System.out.println(c);   Why i didn't get the o/p as 123 in the above case...   Eager to hear the answer...................


What would happen if 'The One' died prematurely? The Matrix

What would happen if 'The One' died before fulfilling the prophecy?  I understand that in the Matrix 'The One' seems to be for all accounts immortal, but what I am curious to is if he were to say die in an accident in Zion or maybe he was murdered by someone, like agent smith was trying to do. We know he can die as he did when fight the last battle, so he is in that respect the same as everyone else in the real world.  Being that the Matrix needs the anomaly to restore balance,     The Architect: As I was saying, she stumbled upon a solution whereby   nearly ninety-nine percent of the test subjects accepted the program   provided they were given a choice - even if they were only aware of it   at a near-unconscious level. While this solution worked, it was   fundamentally flawed, creating the otherwise contradictory systemic   anomaly, that, if left unchecked, might threaten the system itself.   Ergo, those who refused the program, while a minority, would   constitute an escalating probability of disaster.       Neo: This is about Zion.        Neo: Why am I here?       The Architect: Your life is the sum of a   remainder of an unbalanced equation inherent to the programming of the   matrix. You are the eventuality of an anomaly, which despite my   sincerest efforts I have been unable to eliminate from what is   otherwise a harmony of mathematical precision. While it remains a   burden assiduously avoided, it is not unexpected, and thus not beyond   a measure of control. Which has led you, inexorably, here.       Neo: You haven't answered my question.        The Architect: Quite right. Interesting. That was quicker than the others.         The Architect: The function of the One is now to return to the source,   allowing a temporary dissemination of the code you carry, reinserting   the prime program. After which you will be required to select from the   matrix 23 individuals, 16 female, 7 male, to rebuild Zion. Failure to   comply with this process will result in a cataclysmic system crash   killing everyone connected to the matrix, which coupled with the   extermination of Zion will ultimately result in the extinction of the   entire human race.      Neo: You won't let it happen, you can't. You need   human beings to survive.      The Architect: There are levels of survival   we are prepared to accept.   So the systemic anomaly manifests and is produced when the time is right, so if that person was to die like I said earlier, would another anomaly be born, or would 'The One's' powers be transferred to what you would call a backup? Which I would not think would be far from the truth, as there are all those kids at the Oracle's residence waiting to see if they were 'The One' due to the powers that had???  Was there anything mentioned in a back story or something like that?


Will I be refused entry at the UK border after a visa refusal?

My partner is British and I’m American; we’ve been dating for three years. I visited back in March 2017 for a week, entering the UK visa-free.   We then  decided I should visit him and stay for 6 months, so I applied for a tourist visa. I stated all sorts of things that I planned to see while there and, naively, I didn't include much evidence that I can support myself. The Standard Visitor Visa was refused, mainly because they think I have reason to stay longer than my intended visit.   I was upset and didn’t really know how to proceed, so we spoke to a lawyer and asked if we had grounds to appeal. I was told that I don't and that I should just buy a ticket and take my chances when I arrive at the border at Heathrow.   I’ve bought my ticket for 02/07/2018, with a return on May 22, planning to stay for 14 weeks. I’m really worried. His mom will write me a letter showing she has more than enough to provide her home and living expenses. I’m taking about $5,000 and my return ticket for my flight on May 22.  Is there anything else I should take to try and convince the customs and immigration that I am not there to stay, only visit?


How do I set up a small mailing list / newsletter with Gmail?

Can I setup kind of a mailing list / newsletter from my Gmail / GApps account?


$A, B, C$ are the angles of a  triangle  then  $tan^2(A/2)+tan^2(B/2)+tan^2(C/2)$ is  always greater than what integral value.


Store last bash command in bash variable

I have bash script file. last_command=$(!!);  here variable last_command should have the value of last command executed but it is not.. i get this error: !!: command not found  I also tried this: Last_command=$(fc -nl -1)  This works in direct shell but when I try to use in bash script file it gives error. I also tried  All above questions work directly on command line but when used in a script file it either gives an error or blank line.


Why has there never been measured a free quark or gluon, but only objects that are built out of them, such as mesons and baryons?

Why do we not observe any free quarks or gluon, but only particles that are built out of them, such as mesons and baryons? How does this phenomenon emerge from QCD?


How to hide a footnote in a section title from the table of contents

This is a question that arose in the comments here:   I normally hide footnotes from the TOC by doing this:  \section[title]{title\footnote{This is a footnote.}}.   This works in a lot of document classes (memoir, article, ...), but not in all of them. amsbook, for example, uses the optional argument only for the running heads so the footnote mark still ends up in the TOC. So what is the 'universal solution'?


Cycling Between Mission Control Windows with the Keyboard

Is there any way to cycle between Mission Control (⌃+↑) windows with the keyboard? I'm referring first and foremost to moving between the windows shown in the bird's eye view, see image.  Either native or 3rd-party solutions are most welcomed.    Thank you.


I am creating a custom form on a Salesforce Marketing Cloud Landing Page. This page will have information such as Email address, first name and last name pre-filled from an email, however there will be some cases where emails can be entered by the customer. What is the best way to validate email addresses on form submit? E.g. a regex to look at overall structure or is there a better way?


Question  Are there any downsides, or side-effects to paying off the remaining balance of a home mortgage with the help of an unsecured loan owed to a relative?  Are there legal considerations that need to be addressed?  Tax implications?    Risks?  I have done some searching, but most of what I have found is that it is considered a bad idea to refinance a mortgage to pay off unsecured debt.  I'm trying to do the opposite.  I did find this link  but in that question, the personal loan seems to be from a bank with a possibly higher interest rate and seeks ways to get out of what seems to be a difficult situation.  Background  I currently have a 15 year fixed rate (3.0%) mortgage on a house in the US.  The starting balance was $270k.  We have been paying extra on it, and it currently has a remaining balance of $60k.  We have no other debts.  I have $40k in cash.  My relative has $20k in cash, and has offered it as a personal loan at 0% interest.  Combined, these are sufficient to pay off the mortgage completely.  From the point of view of the mortgage processor, I would own the property.  The relative and I are discussing writing a gentleman's contract for the terms of repayment (speed, amounts, frequency, etc..), and what happens in various what-if scenarios.  The relative has stated that they do not want any collateral.  The spouse and I are both working, and are currently on track to pay off the mortgage in less than a year without this help.  Taking this offer would accelerate that plan considerably.  From my point of view, this seems like a really good deal for me, and a generous blessing from the relative.  What am I missing?  Update1  Thank you all for the items to consider.  The Tale of Woe is an apt component that I had been contemplating, and is a big negative for this deal. This link  is similar in that the source of some of the payoff is a unsecured loan from family.  These questions are similar in that regard.  With that said, my question is more around the implications of converting a secured loan into an unsecured one - shifting the risk.  The comment about the IRS minimum interest rate (before which a loan is considered a gift) is definitely a new one on me.  While it isn't a deal breaker, it does mean a slightly more complex tax return for me and the relative.


What does this E symbol mean?     It is from the .


When using Views Bulk Operations, the options for Rule Components are not shown in the VBO drop down for all users

When I am logged in as the root admin, I am able to create Rule Components (rule and rule sets) and have them appear in the View Bulk Operations (VBO) settings menu as an option for a VBO view table column.  As the root admin, I can also navigate to the view's page and successfully perform the Rule Component on table entries using the VBO interface.   However, when I log in as another user (seemingly regardless of role or permission) The Rule Component options which were enabled for the VBO column are no longer available.  It appears that some sort of permission is blocking them.  It is not obvious which permission (or if it is a permission) is blocking the Rule Component Options so they don't appear in the VBO list.    Does anyone have experience with this problem and knows a way to get Rule Components to appear in the VBO drop down in a view for all users?


I tried to create a text file in a bash script.  The echo command spans multiple lines and has some double quotes "".  #!/bin/bash   echo "blabla bla bla bla "blabla"  bla bla " bla bla bla" and so on and so on  bla bla  blu bla  "bla bla bla " bla bla" > /root/bin/bla   There are many double quotes "" in echo command that is undesirable.  And I did   #!/bin/bash   echo 'blabla bla bla bla "blabla"  bla bla " bla bla bla" and so on and so on  bla bla  blu bla  "bla bla bla " bla bla' > /root/bin/bla   I wondered if there are any difference between double quote " and single quote '  Which one has higher priority? Is it just the fact that they are visually different?


How to interact from python script to .C or .O file?

I want to call a .C or .O file from my python script and execute any of the C program function. How can I write my script to call a function in C?


Am I allowed to enter Poland on French-issued multiple-entry Schengen visa?

I am an Indian national and a frequent traveler. I have been issued a Schengen multiple entry visa twice from the French Embassy in Central Africa. I have been to France three times and two times to Poland on same visa. Now I am in India and  would like to fly directly to Poland on the same valid visa. I would like to know are there any issues entering Poland first instead of France?


Why exif Orientation does not force image horizontal?

I am trying to have some stability in image orientations but they differ in Debian image viewer/LaTeX and with image viewers.  I do but it does not have an effect on the orientation of wrongly positioned images; manually adjusting it with -Orientation=[1234] does not help  exiftool -Orientation=1 -n *.jpg   Fig. 1 Output where the same image is opened in image viewer (Shotwell, ...) and Debian Space review (same output in LaTeX)        I thought first that the image orientation was the mistake but it is not because doing convert masi.jpg -rotate 90 masi-rotated.jpg keeps also the relative difference the same.   Exif info  Wrongly positioned image, having the 90 degree or its multiples in orientation   $ exiftool 28.jpg  ExifTool Version Number         : 9.74 File Name                       : 28.jpg Directory                       : . File Size                       : 69 kB File Modification Date/Time     : 2016:11:29 11:59:08+02:00 File Access Date/Time           : 2016:11:29 12:07:17+02:00 File Inode Change Date/Time     : 2016:11:29 12:06:29+02:00 File Permissions                : rw-r--r-- File Type                       : JPEG MIME Type                       : image/jpeg JFIF Version                    : 1.01 Resolution Unit                 : None X Resolution                    : 1 Y Resolution                    : 1 Exif Byte Order                 : Little-endian (Intel, II) Orientation                     : Rotate 270 CW Software                        : Shotwell 0.20.1 Color Space                     : sRGB Exif Image Width                : 425 Exif Image Height               : 707 XMP Toolkit                     : XMP Core 4.4.0-Exiv2 Image Width                     : 425 Image Height                    : 707 Encoding Process                : Baseline DCT, Huffman coding Bits Per Sample                 : 8 Color Components                : 3 Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2) Image Size                      : 425x707   Correctly (as expected) positioned image in both views  $ exiftool 27.jpg  ExifTool Version Number         : 9.74 File Name                       : 27.jpg Directory                       : . File Size                       : 66 kB File Modification Date/Time     : 2016:11:29 11:58:53+02:00 File Access Date/Time           : 2016:11:29 12:13:36+02:00 File Inode Change Date/Time     : 2016:11:29 12:07:46+02:00 File Permissions                : rw-r--r-- File Type                       : JPEG MIME Type                       : image/jpeg JFIF Version                    : 1.01 Resolution Unit                 : None X Resolution                    : 1 Y Resolution                    : 1 Exif Byte Order                 : Little-endian (Intel, II) Orientation                     : Horizontal (normal) Software                        : Shotwell 0.20.1 Color Space                     : sRGB Exif Image Width                : 842 Exif Image Height               : 504 XMP Toolkit                     : XMP Core 4.4.0-Exiv2 Image Width                     : 842 Image Height                    : 504 Encoding Process                : Baseline DCT, Huffman coding Bits Per Sample                 : 8 Color Components                : 3 Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2) Image Size                      : 842x504   Debian: 8.5 Gnome: 3.14


A dictator tries to escape war by suspended animation, but travels too long, killed by maroonee

Anthology story sought. A warlord, the Master? tries to escape capture by suspended animation, but last incoming rocket salvo seals his cave in mountains. Stays suspended for far longer than thought, woken by somebody who has been marooned alone for his views. When latter realises the evil of the Master he kills him, condemning himself to solitude for the rest of his life.


Undefined symbols for architecture x86_64 with Xcode

I know there have already been topics on this matter but I unfortunately cannot solve my problem due to my beginner level in C++ programming.  I am on OS X Maverick  on this topic:   it is mentioned that the issue of getting the 'Undefined symbols for architecture x86_64' compiling error was often solved by using the option -stdlib=libstdc++ My question is very simple: how do you use this option on Xcode? I am pretty sure it is in Build settings->Apple LLVM 5.1 - Language - C++ -> C++ Standard Library where I can choose libstdc++ instead of libc++ but I am still getting the compiling error when setting this to libstdc++.  The code I'm trying to compile is some template instantiation:  HEADER FILE (range.h) #ifndef Proj_range_h #define Proj_range_h  template <class Type> class Range { private:     Type lo;     Type hi;  public:     //Constructors     Range(); //Default constructor     Range(const Type& low, const Type& high); //low and high value     Range(const Range<Type>& ran2); //copy constructor      //Destructor     virtual ~Range();      //Modifier functions     void low(const Type& t1); //to set the low value     void high(const Type& t1); //to set the high value      //Accessing functions     Type low() const; //lowest value in range     Type high() const; //highest value in range      Type spread() const; //high - low value  };   #endif    CLASS MEMBER FUNCTIONS CODING (range.cpp) #include "range.h" template <class Type> Range<Type>::Range(const Range<Type>& r2) {     //Copy constructor     lo=r2.lo;     hi=r2.hi; }  template <class Type> Range<Type>::Range(const Type& low, const Type& high) {     lo=*low;     hi=*high; }   template <class Type> Type Range<Type>::spread() const {     return hi-lo; }  template <class Type> Range<Type>::~Range<Type>() {     //Destructor }   MAIN FILE (main.cpp) #include "range.h" #include <iostream>  int main() {     double closingPrice=40;      double openingPrice=60;      Range<double> bearish(closingPrice,openingPrice);      return 0; }   I hope my question is clear enough.  Thanks


I've got 28 bronze badges on Stack Overflow, 10 on Astronomy and 15 on Software Recommendations, making it a total of 53. Yet, my combined flair doesn't show that. It just shows the combined badges from my SO and Astronomy SE sites. The reputation has no problem. I can see the correct combined rep. Why is it happening? Is it because Software Recommendations is in private beta?  Here are the flairs (Combined and that from Software Recommendations):     The rep on my combined flair is the sum total of my rep from all three sites. But the badges aren't.


Can I make apt-get install default to having the -y option?

I'd like apt-get to default to using the -y option without me having to explicitly provide it.  Is this possible?