I want to obtain the figure as    Could you suggest to me the way to draw it? Thanks so much. Note that, the circle is a point (x,y).  Update: This is a simple data set for points(x,y)  (3,3.2) (4,3.8) (4,4.5) (5,5.1) (5.5,5.6) (5.3,5.8) (6.3,5.8) (7, 7.4) (7.3, 7.5) (8.3, 8.5) (9, 8.5) (10, 11.0) (11, 11.5) (11.2, 11.6) (11.5, 11.9) (12.5, 12.9) (13.5, 13.1) (14, 13.8) (15, 15.3) (16, 16.5) (17, 17.2) (18, 18.4) (19, 19.1)   This is my code based on suggestions:  \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplotstable}  \begin{document}  \begin{tikzpicture} \begin{axis}[ xlabel=Weight (kg), % label x axis ylabel=Height (cm), % label y axis axis lines=left, %set the position of the axes xmin=0, xmax=20, % set the min and max values of the x-axis ymin=0, ymax=20, % set the min and max values of the y-axis clip=false ] \addplot[only marks,mark=o] coordinates {(3,3.2) (4,3.8) (4,4.5) (5,5.1) (5.5,5.6) (5.3,5.8) (6.3,5.8) (7, 7.4) (7.3, 7.5) (8.3, 8.5) (9, 8.5) (10, 11.0) (11, 11.5) (11.2, 11.6) (11.5, 11.9) (12.5, 12.9) (13.5, 13.1) (14, 13.8) (15, 15.3) (16, 16.5) (17, 17.2) (18, 18.4) (19, 19.1)}; \addplot [only marks] table {\loadedtable}; \end{axis}  \end{tikzpicture} \end{document}


i am a software developer. i had develop application using vs2010 and want to run in Linux .the problem is, .exe installed successfully in Linux but not running i had every thing from my side but nothing happen so please help me..


I know that there are two non isomorphic groups of order $122$. One is cyclic group of order $122 $ and another is $D_{61}$. I know that all cyclic groups are isomorphic. But I can not understand why there is no non cyclic group other than $D_{61}$.  Can anyone please make me understand?


I have a calendar in an outlook server for work, and I'd like to sync that calendar to my Google account so that I can see my meetings on my phone.  I've found a few solutions for subscribing to my Google calendar in outlook, but I'm trying to do the opposite of that.  I really don't care about being able to manage the calendar at all.  I just want to be able to see my work schedule somewhere other than on my laptop.  Is there an app that makes this possible?


INVALID_TYPE: Must send a concrete entity type. When creating an account with SOAP

I am getting the below error when trying to create an "Account" object in salesforce org by SOAP request. Request: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com" xmlns:urn1="urn:sobject.enterprise.soap.sforce.com">    <soapenv:Header>       <urn:SessionHeader>          <urn:sessionId> *Session ID given*</urn:sessionId>       </urn:SessionHeader>    </soapenv:Header>    <soapenv:Body>       <urn:create>           <urn:sObjects>             <urn:sObjects xsi:type="urn1:Account" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">             <Name>Bluebeards Grog House</Name>             <Description>It is better than Blackbeards.</Description>          </urn:sObjects>       </urn:create>    </soapenv:Body> </soapenv:Envelope>   Response: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="urn:fault.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    <soapenv:Body>       <soapenv:Fault>          <faultcode>sf:INVALID_TYPE</faultcode>          <faultstring>INVALID_TYPE: Must send a concrete entity type.</faultstring>          <detail>             <sf:InvalidSObjectFault xsi:type="sf:InvalidSObjectFault">                <sf:exceptionCode>INVALID_TYPE</sf:exceptionCode>                <sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage>                <sf:row>-1</sf:row>                <sf:column>-1</sf:column>             </sf:InvalidSObjectFault>          </detail>       </soapenv:Fault>    </soapenv:Body> </soapenv:Envelope>


How do I teleport the player when they reach a specific Y-coordinate?

I want the player to be teleported when they reach y=0. I tried the /execute command and it didn't work.


Solve Exception in thread "main" java.lang.NoClassDefFoundError in Linux

I am sorry if the question is already repeated as i did not find suitable answer in stack overflow.  I have written a code for automatic sending of email when the count should be less than 20.  The code seems to compile and run in Eclipse. but when i try to run in the Linux terminal I am getting an error     Can any of you help me?


Direction of emf and it's physical sense?

I have a situation where  there exist a time varying magnetic field and a circular loop place perpendicular to it. Let us assume that the magnetic field is $\vec B=\frac{B_0 t}{\tau}$ . I tried to modify this problem is my own way that I will be discussing later right now is irrelevant. Also please note, the minor details of this problem need not be considered like polarization etc, or anything, think of it as high school level stuff.  So, my question is that, I know that by using Faraday law $e=-\frac{d\phi}{dt}$   I will get the result as $e=-\pi r^2 \frac{dB}{dt}$(not substituting value yet as it's not required).  So, now i have got this emf whose meaning i don't understand, what I mean to say is what would this emf look like , what would be it's direction, end point , start point, etc. Basically I can't understand it's physical sense and direction(loosely speaking here , please note that this direction, i meant to be associated with the path integral).  Also, suppose that I replace the situation with an circuit having equivalent emf what would it look like?  Now continuing with the problem by the $e=-\vec E.\vec dl$ , I was told that there exist a induced electric field having circular loop and direction I don't remember but with upward magnetic field seems to be anti-clockwise(please verify and explain!)  Gives $E=\frac{1}{2}r\frac{dB}{dt}$ so, the only problem is how I can visualize this emf and electric field. As well is there any way to produce current using that emf? Connecting somewhere? Or an equivalent circuit?  EDIT: The equation of electric field of course implies that $E$ is constant for a given $r$ , so this implies the circular nature of  electric field but what about it's direction, suppose that if i connect a wire loop in that electric field would a current flow through it, would that be the direction of emf? (Suppose that material is not affected by magnetic field).


Solving modulus equations with multiple unknowns

I have the following equations:  $$8\equiv-(3a+7b)\mod11$$ and $$9\equiv-(5a+4b)\mod11$$  How do I solve them? I've tried to subtract one equation from the other, but I end up with the wrong answer.  It is supposed to be: $a=2$ and $b=9$.


Generating a separate pdf file of tables and figures from a latex file?

Is it possible to generate a PDF of figures and tables of a paper from LaTeX itself?  I saw Journals and Conferences asking for a separate file of tables and figures.  In  question, questioner proposed a method that uses \usepackage{endfloat} to push all the figures and tables to the last pages and then use a PDF editor to cut the last pages of PDF. This is a solution but not a good one. LaTeX should be able to do this by its own.  What I have in mind is to compile the LaTeX file and it generates a complete PDF output and beside that a separate file that contains all the figures and tables of former PDF.


Error: 'System.LimitException: Too many SOQL queries: 101'

I am getting an error: 'System.LimitException: Too many SOQL queries: 101'  when I run a testing class for another class similar to this one, which is located in the same Object. I am trying to use classes that handle all the code instead of writing the code in triggers. Can anybody please tell if the code i wrote for this class is good approach or should I use a different one.   I will appreciate any help!  Trigger code:  trigger RollupSalesAndUnits on MWSOrderItem__c (before update) {  //to fire the class rollupSalesTriger if (Trigger.isUpdate) {     RollupSalesAndUnits.Run(Trigger.new); } }   Class code:  public class RollupSalesAndUnits {   public static void Run(MWSOrderItem__c [] items){   Map<Id, NRProducts__c > osos = new Map<Id, NRProducts__c >();       for(MWSOrderItem__c p : items){             if(!String.isEmpty(p.NRProduct__c )){                 NRProducts__c prod = osos.get(p.NRProduct__c );              if (prod == null) {                 prod= new NRProducts__c (Id = p.NRProduct__c );                  osos.put(p.NRProduct__c , prod);             }              for(AggregateResult result : [SELECT  NRProduct__c p, SUM(Detail_Total__c) FROM MWSOrderItem__c WHERE NRProduct__c =: p.NRProduct__c AND AgeSet__c < 7 AND Order_Complete__c = 'Yes'  GROUP BY NRProduct__c]){                   prod.X24_Hrs_Sales__c = (Double)result.get('expr0');                             }              for(AggregateResult result : [SELECT  NRProduct__c p, SUM(Detail_Total__c) FROM MWSOrderItem__c WHERE NRProduct__c =: p.NRProduct__c AND  AgeSet__c < 7  GROUP BY NRProduct__c]){                    prod.X7_Days_Sales__c = (double)result.get('expr0');               }               for(AggregateResult result : [SELECT  NRProduct__c p, SUM(Detail_Total__c) FROM MWSOrderItem__c WHERE NRProduct__c =: p.NRProduct__c AND   AgeSet__c < 30  GROUP BY NRProduct__c]){                    prod.X30_Day_Sales__c = (double)result.get('expr0');                }               for(AggregateResult result : [SELECT  NRProduct__c p, SUM(Detail_Total__c) FROM MWSOrderItem__c WHERE NRProduct__c =: p.NRProduct__c AND    AgeSet__c < 60  GROUP BY NRProduct__c]){                     prod.X60_Days_Sales__c = (double)result.get('expr0');               }              }      }    update osos.values();    }  }


We have inherited VB6 dll which we need to make changes to. We have the code but don't have VB6 compiler. How can we rebuild the dll? Where can we download the VB6 environment/compiler from? Thanks in advance.


Determine if the following sequence is convergent and find its limit: $x_n=(n^n/n!)^{1/n}$

Let we have the following sequence $$x_n=\left(\frac{n^n}{n!}\right)^{\frac{1}{n}}$$ Determine if  the following sequence is convergent  and find its limit


What would be the general form of $\sum_{i=1}^n \frac{1}{i}$?

How would I come to a general form of this type of summation, similar to   $$\sum_{i=1}^n i = \frac{n(n+1)}{2}$$ and  $$\sum_{i=1}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$ ?  I found this post about calculating higher powers of i, but am unsure if this would apply for negative powers as well: , as his formula:  $$\sum_{n=0}^N n^{m+1} = \frac{N^{m+2}}{m+2}+N^{m+1}$$ results in dividing by 0 (zero) for m = -2.  Also, How could I extrapolate for the more general form  $$\sum_{i=1}^n \frac{1}{i^k}$$ where k is some constant? This is my first StackExchange post, so feel free to give me tips on how to improve my posts. Thank you.   Edit: I have now learned that there is no rational closed form expression of the Harmonic numbers, But can someone explain why, or simplify another proof explaining why?


what functionality does comma hold here,why it doesn't evoke compile time error?

code snippet:  #include <stdio.h> int computeSum(int number1, int number2) {     int sum;     sum = number1 + number2;     return sum;  } int main() {       int sum = 0,k=0;        k,sum= computeSum(4,2);       printf("%d %d",sum,k);       return 0; }   What is the functionality of comma ( , ) between k  and sum,why it doesn't evoke any error?what is its significance?


I have a number of Xen virtual machines running on a number of Linux servers. These VMs store their disk images in Linux LVM volumes with device names along the lines of /dev/xenVG/SERVER001OS and so on. I'd like to take regular backups of those disk images so I can restore the VMs in case we need to (the LVM devices are already mirrored with DRBD between two physical machines each, I'm just being extra paranoid here).  How do I go about this? Oviously the first step is to snapshot the LVM device, but how do I then transfer data to a backup server in the most efficient manner possible? I could simply copy the whole device, something along the lines of:  dd if=/dev/xenVG/SERVER001OS | ssh administrator@backupserver "dd of=/mnt/largeDisk/SERVER001OS.img"   ...but that would take a lot of bandwidth. Is there an rsync-like tool for synching contents of whole disk blocks between remote servers? Something like:  rsync /dev/xenVG/SERVER001OS backupServer:/mnt/largeDisk/SERVER001OS.img   If I understand rsync's man page correctly, the above command won't actually work (will it?), but it shows what I'm aiming for. I understand the --devices rsync option is to copy devices themselves, not the contents of those devices. Making a local copy of the VM image before syncing it with the remote server isn't an option as there isn't the disk space.  Is there a handy utility that can synch between block devices and a backup file on a remote server? I can write one if I have to, but an existing solution would be better. Have I missed an rsync option that does this for me?


regular expression to find sub string from a string having no white space

I have sample string as below :  input - {"page":1,"per_page":10,"total":76,"total_pages":8,"data":""}  I want to filter out the total_pages as 8 in a sample Java program. For that I thought to build a regex to filter out substring as "total_pages":8,     Below is code .  **String regex = "/(.*total_pages.*?,/)"; String res =  "{\"(page\":1,\"per_page\":10,\"total\":76,\"total_pages\":8,\"data\":)"; System.out.println(res); System.out.println(Pattern.matches(regex,res));**   Please tell why It never matches with the substring.


I want to find the sum of the following expression in terms of $n$. I tried looking for it but couldn't come up with one. Any help will be greatly appreciated.  $$\sum_{i=0}^n \frac{1}{4^i}\binom{2i}{i}$$


Sharing alignment between equations in two different items

In the following minimal example, I have two equations inside an itemize environment, with an item per equations. Each equation is defined in its own equation environment.    \documentclass{article} \usepackage{amstext}  \begin{document}  \begin{itemize}  \item Lorem ipsum dolor sit amet, consectetur adipiscing elit:   \begin{equation}     f(x) = \left\{     \begin{array}{l l}       1 & \text{ nisl justo, hendrerit} \\       0 & \text{ sagittis condimentum}\\     \end{array} \right.  \end{equation}   \item Duis magna nunc, ultrices at fringilla non, feugiat sed massa:   \begin{equation}     g(x) = \left\{     \begin{array}{l l}       -1 & \text{ fermentum fringilla mauris eget} \\       0 & \text{ gravida ipsum vitae}\\     \end{array} \right.  \end{equation} \end{itemize}  \end{document}   However, each equation has its own alignment, giving the following result:    It would be nice (I think) if both equations could be aligned in the same way, something like this:    Is this possible?   Note: it would be nice if the solution could be also applied to equations in different paragraphs.    UPDATE:   presented a very nice solution, which is currently the most upvoted, but it does not work quite well:  \documentclass{article} \usepackage{amsmath} \begin{document}  This is a list.  \begin{itemize}    \item First item.   \begin{align*}   f(x) &= \begin{cases} 0 & \text{now} \\ 1 & \text{then} \end{cases}   \intertext{\item Second item.}   g(x) &= \begin{cases} 0 & \text{here and there}  \\ -1 & \text{to and fro} \end{cases}   \end{align*}  \end{itemize}  After the list. \end{document}     Can you see? "now" and "then" are not aligned to "here and there" and "to and fro". Can we solve this? :)


I can't use NVIDIA drivers installed via PPA or from NVIDIA sites. Everytime I try to boot after installation, I end with black screen with static cursor on top left corner. But when I choose drivers in section Additional drivers, it boots BUT I can't change to NVIDIA nor Intel via prime-select command. It shows something with alternatives not set or something like that.    P.S.: I also had issue about NVIDIA driver, which cause to freeze screen, but sounds and everything else was still working. Temporary solution was CTRL + ALT + F1 then CTRL + ALT + F7 but it happend after few seconds/minutes later. It mostly happens when playing minecraft. Don't you know about anything about it? Is it bug?  Thanks for answer Laptop Specs: CPU: Intel i3-2328M 2.2GHz VGA: NVIDIA 620M RAM: 4 GB OS: Ubuntu 14.04 (using Unity or Cinnamon)


I had trouble while trying install Telegram on Ubuntu

I had followed  video tutorial but I couldn't install Telegram, because of this error:  E: Unable to locate package telegramm E: Unable to locate package desktop   Does anybody know how to fix that?


I don't have any OS on my computer right now, but I have 2 500gb hard drives and would like to duel boot windows 7. I would like to have about 250gb for windows and the other 750gb go to ubuntu. How do I go about doing this?


I've installed AMD graphic drivers and rebooted my system. Now when i'm logging in my screen turns off or shows a lot of noise in different colors, but i cant see anything. That means i cant use my Xubuntu insalled on HDD. I've live USB Stick, how to revert installation using Live USB? Or maybe nay other possibilities?


Placement of scale tick labels in pgfplots

When i use scale ticks in my plots i can't get those multiplicators to move anywhere. So basically i use plots like:   \documentclass[border=5mm]{standalone} \usepackage{pgfplots}  \begin{document}   \begin{tikzpicture}      \begin{axis}[scaled ticks=true]     \addplot coordinates { (20000,0.0005) (40000,0.0010) (60000,0.0020)};      \end{axis}   \end{tikzpicture}%  \end{document}   which gives:     So my Question is: How can i get this x tick scale label to move onto the right side of the right y-axis? So that it is above the x-axis?  (The mind behind this question is, that i sometimes have large x-labels, which then are very close to the scale label)


can not match the String get from properties file in Java

I have a line in file config.properties  clean=true  and use following code to get this property  private static String clean; Properties prop = new Properties(); try {     prop.load(new FileInputStream("config.properties"));     clean = prop.getProperty("clean"); }   I use System.out.println(">"+clean+"<") to see the output and get ">true<", which indicates there is no blank, no \n  However, when I use  if (clean == "true") {               // program does not go here } else {     // program goes here }   what is the possible reason?...


How can I pass the variable to the to RegEx?

I want to pass the cookie as a variable .  letstr = cookie; (/\bcookie\b/g).test('having cookie.');


What good is the flesh memory of a Snitch?

We find out in the Deathly Hallows that a snitch has a "flesh memory" and can recall the first person that touched it.  It is claimed that this is to help settle a "disputed capture".  Does this imply that one doesn't need to "catch" the snitch as much as you just need to be the first to touch the snitch?  I seem to recall that you need to actually catch it though, which raises the question: Does the flesh memory of the snitch really settle anything?


I've just gotten through replacing capacitors on a trio of dead LCD screens (nothing's blown up yet, so far) - they either had one or two capacitors on their inverter circuit SLIGHTLY bloated, and not quite leaky. I ended up replacing all capacitors of the same brand/'colour', even the ones that looked fine, in case.  Now, checking a bad resistor is simple - i can use a standard multimeter to test it, and i tend to check my solders with the continuity testing option of the multimeter.  How would i test a capacitor ? Is there some standard, common way to test one?


how do I flip image left to right( mirror)

how do I flip image left to right(mirror) on a secondary display with windows XP professional? Want to Show my desktop using a teleprompter.


Under which conditions do two moving bodies start orbiting each other around their center of mass?

If two bodies are close, both will get attracted to each other and collide. Under what conditions will the two bodies start revolving around their common center of mass? I understand that such bodies represent the gravitional two-body problem, but I want to know what are the initial conditions that allow it so settle into such a configuration (without going into the maths)


Should I use Ubuntu OS on a new laptop supplied without an OS?

I am looking at purchasing a new laptop without an operating system from PCSPECIALISTS, but they will not advise me as to whether it will be OK to use UBUNTU OS. Can someone please advise if it is OK to use UBUNTU?  The laptop specification is:   Chassis & Display: 15.6" Matte HD LED 16:9 Widescreen (1366x768) Processor (CPU): Intel® Pentium® Quad Core Processor N3520 (4 x 2.16GHz) 2MB Cache Memory (RAM): 4GB KINGSTON SODIMM DDR3 1600MHz (1 x 4GB) Graphics Card: Integrated Intel® HD Graphics Memory - Hard Disk: 500GB SERIAL ATA II 2.5" HARD DRIVE WITH 8MB CACHE (5,400rpm) DVD/BLU-RAY Drive: Ultra Slim 8x SATA DVD±R/RW/Dual Layer (+ 24x CD-RW) Memory Card Reader: Internal 9 in 1 Card Reader (MMC/RSMMC/SD: Mini, XC & HC/MS: Pro & Duo) Sound Card: Intel 2 Channel High Definition Audio + MIC/Headphone Jack Bluetooth & Wireless: GIGABIT LAN & WIRELESS INTEL® N-7260 (300Mbps, 802.11BGN) + BLUETOOTH USB Options: 3 x USB 2.0 PORTS + 1 x USB 3.0 PORT AS STANDARD Battery: Genesis Series 32WH Battery (Up to 9.5 Hour Battery Life) Operating System: NO OPERATING SYSTEM REQUIRED Keyboard Language: GENESIS SERIES INTEGRATED UK KEYBOARD Notebook Mouse: INTEGRATED 2 BUTTON TOUCHPAD MOUSE Webcam: INTEGRATED 1MP HD WEBCAM


While installing Ubuntu 18.04 LTS I created swap in hard drive which is leading me hang for heavy applications because I have 8 GB of RAM.


Show this form is locally exact and not globally exact.

There is an example on DoCarmo (Differential Forms and Applications) that they show that  $$ \omega = \frac{-y}{x^2+y^2} dx + \frac{x}{x^2+y^2} dy $$ is locally exact but not in their entire domain ($\mathbb{R}-\{ 0\} $).  I can see that in the path $(cos(t),sin(t)), t \in [0,2\pi]$ the integral is $2\pi$ so is not exact, but I don't understand why that form is locally exact. They show that is close (using that $d \omega = 0$). But why that implies that $\omega$ is exact?   Help with this please.


Deriving Schrodinger equation from Klein-Gordon QFT with the definition $\psi(\textbf{x},t)\equiv \langle 0|\phi_0(\textbf{x},t)|\psi\rangle$

In the book "Quantum Field theory and the Standard Model" by Matthew Schwartz, , the position space wavefunction is defined as   $$\psi(x)=\langle 0|\phi(x)|\psi\rangle, \tag{2.82+2.83}$$  where $|\psi\rangle$ is any state in the Fock space. Then he uses the equations (i) $\partial_t^2\phi_0=(\nabla^2-m^2)\phi_0$ (i.e., the Klein-Gordon equation for the free massive scalar field $\phi_0(\textbf{x},t)$) and (ii) $[H,\phi_0]=-i\partial_t\phi_0$ to derive Eq. 2.85, in following 3 steps:  $$i\langle 0|\partial_t\phi_0(\textbf{x},t)|\psi\rangle=\langle 0|\int \frac{d^3\textbf{p}}{(2\pi)^3}\frac{\sqrt{\textbf{p}^2+m^2}}{\sqrt{2\omega_\textbf{p}}}(a_p e^{-ip\cdot x}-a^\dagger_p e^{ip\cdot x})|\psi\rangle\\ =\langle 0|\sqrt{m^2-\nabla^2}\phi_0(\textbf{x},t)|\psi\rangle.\tag{2.85}$$  This equation is used to successfully derive the Schrodinger equation in quantum mechanics for the state $\psi(\textbf{x},t)\equiv \langle 0|\phi_0(\textbf{x},t)|\psi\rangle$.   The first equality follows from differentiation of $\phi_0(x)$ w.r.t $t$. How does the second equality follow from the first? How are the inputs (i) and (ii) are utilized to derive the second equality from the first? Is it true that the operator $$i\partial_t\sim\sqrt{m^2-\nabla^2}~?$$ If yes, what is the use of doing the middle step?


let f be continuous on R. Is there an open interval on which f is monotone? explain why?


Book where kids find a journal about supernatural entities?

The kids moved into a house inherited from a family member. There was a journal one kid found in an attack. The journal detailed a bunch of fantasy, fey-type creatures. The kids had a evilish brownie living in their house. The book was presented as something true that was mailed in to the publisher. There were two series.


Is there a word/phrase to describe expressions of moral righteousness accompanied by inaction?

Almost like when one says one thing and does another (hypocrisy), but if one were expressing emotions, opinions or beliefs without following through in their day-to-day actions or way of living. Not necessarily that they're being actively deceptive about what they believe, but that expressing themselves provides enough catharsis that they don't feel the need to take action afterwards - i.e. my own belief in my moral superiority is confirmed/bolstered by my words not my deeds.  For example, if the Prime Minister made an emotional speech on television about the horrors of genocide on Holocaust Memorial Day, but did not make intervention in current genocides a political priority, because she felt like she'd done enough by just talking about it.   Or another example: Crying to your friend because you miss your sister, and you want your friend to know that you care about your family, but after receiving praise/comfort/etc from your friend, you don't actually call your sister.   Thank you.


Could someone explain to me graphically how the harmonic series can be divergent while the alternating harmonic series can be convergent since they are both using 1/n in their series and going towards 0.


How does one measure the non-uniformity of a distribution?

I'm trying to come up with a metric for measuring non-uniformity of a distribution for an experiment I'm running.  I have a random variable that should be uniformly distributed in most cases, and I'd like to be able to identify (and possibly measure the degree of) examples of data sets where the variable is not uniformly distributed within some margin.    An example of three data series each with 10 measurements representing frequency of the occurrence of something I'm measuring might be something like this:  a: [10% 11% 10%  9%  9% 11% 10% 10% 12%  8%] b: [10% 10% 10%  8% 10% 10%  9%  9% 12%  8%] c: [ 3%  2% 60%  2%  3%  7%  6%  5%  5%  7%]   <-- non-uniform d: [98% 97% 99% 98% 98% 96% 99% 96% 99% 98%]   I'd like to be able to distinguish distributions like c from those like a and b, and measure c's deviation from a uniform distribution.  Equivalently, if there's a metric for how uniform a distribution is (std. deviation close to zero?), I can perhaps use that to distinguish ones with high variance.  However, my data may just have one or two outliers, like the c example above, and am not sure if that will be easily detectable that way.   I can hack something to do this in software, but am looking for statistical methods/approaches to justify this formally.  I took a class years ago, but stats is not my area.  This seems like something that should have a well-known approach.  Sorry if any of this is completely bone-headed.  Thanks in advance!


Is an $n\times n$ matrix where the diagonals are equal to one and the off diagonals all have magnitude smaller than one always invertible?

I have an $n\times n$ matrix where the diagonals are equal to one and the off diagonals all have magnitude smaller than one. Is this matrix invertible? What is the quickest way to prove it?


Upgrade to version newer than repositories

I have  about how to upgrade ghostscript to a version that is available on 15.04 but not on 14.04LTS (which I have). On this site there are numerous almost identical question regarding different packages, a few examples include:         So I thought it would be very useful in general to know: is there  a general, automated way to upgrade a package, including all its dependencies, to a version that is newer than Ubuntu's repos? Is this more easily done if the newer version exists in more recent Ubuntu releases?


Someone Uploaded PHP Backdoor to Wordpress Site

I have enough security that I was alerted to a PHP backdoor that was uploaded to a WordPress site hosted on one of my servers. It was removed within minutes of being uploaded so no damage was done. No other sites show abnormal file uploads and have been checked for extra files and any files that were recently changed or added. It seems that only one site was affected. I was thinking that maybe the new WP or the theme has a bug that allows someone to upload files.  My main question is how can someone upload a file to a server without FTP or access to WordPress to upload it. I found the first uploaded file in the root of the directory.  I have already scanned and clean the site so now I just would like to figure out how they uploaded the file.


You don't have permission to access when to set two name-based web sites on a single IP address in apache

Apache was installed on my debian,i want to bind two domain name with different directroy.  cat  /etc/hosts 127.0.0.1  hwy.local  www.hwy.local  test.app   www.test.app   Two domain name all binded with  127.0.0.1.  cat   /etc/apache2/sites-available/000-default.conf  <VirtualHost *:80>     ServerName www.hwy.local     ServerAdmin webmaster@localhost     DocumentRoot /var/www/html     ErrorLog ${APACHE_LOG_DIR}/error_hwy.log     CustomLog ${APACHE_LOG_DIR}/access_hwy.log combined         <Directory /var/www/html>             Options Indexes FollowSymLinks MultiViews             AllowOverride None             Order allow,deny             allow from all         </Directory> </VirtualHost> <VirtualHost *:80>  ServerName www.test.app ServerAdmin webmaster@localhost DocumentRoot  /home/debian9/app ErrorLog ${APACHE_LOG_DIR}/error_app.log CustomLog ${APACHE_LOG_DIR}/access_app.log combined     <Directory /home/debian9/app>         Options Indexes FollowSymLinks MultiViews         AllowOverride None         Order allow,deny         allow from all     </Directory> </VirtualHost>   Create file .   touch  /var/log/apache2/error_hwy.log  touch  /var/log/apache2/access_hwy.log  touch  /var/log/apache2/error_app.log  touch  /var/log/apache2/access_app.log  sudo chown -R www-data:www-data /home/debian9/app  sudo chmod -R g+rw /home/debian9/app  sudo systemctl restart  apache2   Save the same file test.html  in both /var/www/html and /home/debian9/app.
it is a test
   Why www.hwy.local/test.html can open it ,www.test.app  run into error.  `This site can’t be reached`   curl -i  www.test.app/test.html HTTP/1.1 403 Forbidden Date: Fri, 07 Sep 2018 09:08:13 GMT Server: Apache/2.4.25 (Debian) Content-Length: 296 Content-Type: text/html; charset=iso-8859-1  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">  <title>403 Forbidden</title>
Forbidden

You don't have permission to access /test.html on this server.

 <address>Apache/2.4.25 (Debian) Server at www.test.app Port 80</address>    Can't set DocumentRoot for www.test.app as  /home/debian9/app  which is different from /var/www/html for www.hyw.local?


What is the symbol for a closed (filled in) triangle pointing to the right?

I wish to use such a symbol in an itemize environment. I found these symbols: \triangleright and \rhd from .  Here is a MWE: \documentclass[oneside,11pt]{book}  \usepackage[semibold,tt=false]{libertine} \usepackage{libertinust1math} \usepackage{enumitem}  \begin{document}  \begin{itemize}[label=$\triangleright$]   \item A   \item B \end{itemize}  \begin{itemize}[label=$\rhd$]   \item A   \item B \end{itemize}  \end{document}   Can you please help me find closed analogues of the above?


Is "Unearthed Arcana: Players Make All Rolls" Correct?

In , they give rules so that players can make all the rolls, rather than the DM sometimes rolling for enemies. In one section, there are specifically , which the players roll against, rather than the DM. However, after doing some math, I think they've made a mistake. They say that you convert a Saving Throw into a Saving Throw Check by adding 11 to the defender's saving throw modifiers, and using that as the DC for the check.  The player then rolls against this DC, adding their spellcasing ability modifier and proficiency bonus.  However, according to the following math, this conversion does not produce the same results. In this math, I compare the chances of a player succeeding on a saving throw check, using the rules in the UA article, and of a monster failing its saving throw using the standard PHB rules. If the math is correct, both of these results should have the same chance. These are the formulas I used.  Chance to succeed Saving Throw Check = (20 - DC + 1 + proficiency + casting mod) / 20 Chance to FAIL a Saving Throw = (DC - 1 - save proficiency - save mod) / 20  Assuming a proficiency bonus of +2, +0 for all ability mods, and no save proficiency:  Monster's Saving throw Check DC = 11 + save mod = 11 Chance to succeed a saving throw check DC11: (20 - 11 + 1 + proficiency + casting mod) / 20 = 12/20 = 60% Player's Saving throw DC = 8 + proficiency + spellcasting ability mod = 10 Chance for monster to fail saving throw DC10: (10 - 1 - save proficiency - save mod) / 20 = 9/20 = 45%  If this were a valid conversion, both formulas would result in the same chance of success for the player, and failure for the monster respectively, however, they are off by 15%. This suggests that the unearthed Arcana's rules are not a valid conversion. Are the Unearthed Arcana rules wrong, or is my math wrong?


No redirect back to question after posting a comment

Basically the title says everything. There is no action after I post a comment, just a notification that the comment was posted successfully and white screen.   App Version: 1.6.6.2 Device: iPhone 6 OS Version: Version 12.0 (Build 16A366)


How to reorder field in a file geodatabase without creating a new feature class?

I have a Script(toolbox) to reorder the fields into a file geodatabse and the output is a new feature class with fields in the order specified, is there any way to replace the existing feature by the new input created?  I'm using ArcGIS 10.2 here is my script :  import os,string,sys  try:     import arcgisscripting     gp = arcgisscripting.create() except:     import win32com.client     gp = win32com.client.Dispatch("esriGeoprocessing.GpDispatch.1")   FC_In = sys.argv[1] NewOrder = sys.argv[2] FC_Out_WS = sys.argv[3] FC_Out_Name = sys.argv[4]  strFields = gp.listfields(FC_In)  strNewOrder = NewOrder  Layers = [""]  # Get Field Collection into List Fields = gp.listfields(FC_In)   NewOrder = string.split(strNewOrder,";") print Fields print NewOrder  x=0 #NewOrder enumerator  y=0 #Layers enumerator (first)  # Cycles through the input feature class creating field collections while x<len(NewOrder):     Fields.Reset()     Field = Fields.Next()     while Field:         FieldName = str(Field.name)         if x<len(NewOrder) and NewOrder[x].lower() == FieldName.lower():              Layers[y] = Layers[y] + FieldName + " " + NewOrder[x] + " VISIBLE"             x=x+1         else:             Layers[y] = Layers[y] + FieldName + " " + FieldName + " HIDDEN"           Field = Fields.Next()          if Field:             Layers[y] = Layers[y] + "; "             FieldName = str(Field.name)         else:             print Layers[y]             Layers.append("")             y=y+1             Layers[y]=""   # Use Field collections to create Layers with proper order until all fields have been used z=0 #Layers enumerator (second) LayerList = "" for Layer in Layers:     if Layer <> "":         if LayerList <> "":             LayerList=LayerList + ";"         LayerList=LayerList + "Layer" + str(z)         print LayerList         gp.MakeFeatureLayer(FC_In, "Layer" + str(z),"#","#",Layer)         gp.addmessage(gp.getmessages()+ "\n")         z=z+1   #Collect Info about Input Feature Class dsc = gp.describe(FC_In) fc_in_stype = dsc.shapetype fc_in_sr = dsc.spatialreference  # Create new empty Feature class with desired fields  try:     gp.CreateFeatureClas(FC_Out_WS,FC_Out_Name,fc_in_stype,LayerList,"#","#",fc_in_sr)     gp.addmessage(gp.getmessages()+ "\n") except:     gp.addmessage(gp.getmessages()+ "\n")  # Append Records to new feature class print FC_Out_WS + "\\" + FC_Out_Name print FC_In gp.append_management(FC_In, FC_Out_WS + "\\" + FC_Out_Name) gp.addmessage(gp.getmessages()+ "\n")  del gp


How to prove $\int_0^\infty e^{-x^2}cos(2bx) dx = \frac{\sqrt{\pi}}{2} e^{-b^2}$

I've been grappling for a few hours with this problem ($b$ is a parameter)  $\int_0^\infty e^{-x^2}cos(2bx) dx = \frac{\sqrt{\pi}}{2} e^{-b^2}$  Tried direct integration by parts, differentiation w.r.t. $b$, then integrating... all to no avail. I think the second approach is the way... Pls help


Corresponding GROUP_CONCAT() in SQL SERVER 2017

I want to convert the following MYSQL query to MS SQL Server. But, I am sure that GROUP_CONCAT doesn't exist in MS SQL Server prior to 2017. There is a function in SQL SERVER 2017. Can anyone help me?  SELECT region, GROUP_CONCAT(route_name) AS route_name  FROM route_details  LEFT JOIN ride_details ON route_id = r_id  WHERE region != '' AND service_date = '2019-09-02'  GROUP BY region


How do I view all available HDD's/partitions?

I found a 6 GB IDE HDD in my basement. I want to plug it in and see what might be on it. The drive seems to be recognized in BIOS.   I can't find it in Ubuntu to view files, and Ubuntu is the only OS on that particular computer. I was wondering if Ubuntu has an equivalent to the Windows feature "My Computer", which lists all available drives/storage devices. Typically, My Computer shows C:, which can be opened to view all of your directories and files. At this point, it is very similar to Ubuntu's Home Folder.  How to view/select all available partitions of that drive or all available HDD's without formatting or tampering with the contents in any way?


Run unix command precisely at very short intervals WITHOUT accumulating time lag over time

Question  I'd like to be able to run a UNIX command precisely every second over a long time period.  I need a solution, which does not lag behind after a certain time, because of the time the command itself needs for execution. sleep, watch, and a certain python script all failed me in this regard.  On the microcontroller's such as the  I'd do that through hardware clock interrupts. I'd like to know whether there is a similar time-precise shell script solution. All the solutions which I found within StackExchange.com, resulted in a noticeable time lag, if run over hours. See details below.  Practical purpose / application  I want to test whether my network connection is continuously up by sending timestamps via nc (netcat) every 1 second.  Sender:  precise-timestamp-generator | tee netcat-sender.txt | nc $receiver $port   Receiver:  nc -l -p $port > netcat-receiver.txt   After completion, compare the two logs:  diff netcat-sender.txt netcat-receiver.txt   The diffs would be the untransmitted timestamps. From this I would know at what time my LAN / WAN / ISP makes troubles.     Solution SLEEP  while [ true ]; do date "+%Y-%m-%d %H:%M:%S" ; sleep 1; done | tee timelog-sleep.txt   Gets a certain offset over time, as the command within the loop also takes a little time.  Precision  cat timelog-sleep.txt  2012-07-16 00:45:16 [...] 2012-07-16 10:20:36   Seconds elapsed: 34520  wc -l timelog-sleep.txt   Lines in file: 34243  Precision summarized:   34520-34243 = 277 timing problems 34520/34243 = 1.008 = 0.8 % off   Solution REPEAT PYTHON  Found at:   repeat.py 1 "date '+%Y-%m-%d %H:%M:%S'" >> timelog-repeat-py.txt   Supposed to avoid the time offset, but fails to do so.  Precision  wc -l timelog-repeat-py.txt  2012-07-16 13:42:44 [...] 2012-07-16 16:45:24   Seconds elapsed: 10960  wc -l timelog-repeat-py.txt   Lines in file: 10859  Precision summarized:   10960-10859 = 101 timing problems 10960/10859 = 1.009 = 0.9 % off   Solution WATCH  watch -n 1 "date '+%Y-%m-%d %H:%M:%S' >> ~/Desktop/timelog-watch.txt"   Precision  wc -l timelog-watch.txt 2012-07-16 11:04:08 [...] 2012-07-16 13:25:47   Seconds elapsed: 8499  wc -l timelog-watch.txt   Lines in file: 8366  Precision summarized:   8499-8366 = 133 timing problems. 8499/8366 = 1.016 = 1.6 % off.


So this problem was given as an end of the class quiz. I didnt have time to test it out so I tried re-writting it and testing. However for some reason its not working the way I want it and I dont know why.  So you've got a nxn grid given as lists. A robot with an initial starting point given as a tuple. And the path the robot will travel given as "N", "S", "E", "W" within a list.  so input would be something like  make_grid(starting_point, path, size_of_grid) make_grid((0,0),["S","E","S","S"],4)   with an output like  [".","_","_","_"],[".",".","_","_"],["_",".""_""_"],["_",".""_""_"]   where the "." is the robots starting point and traveled path. The "_" are the untraveled areas of the grid. And if it hits the border it stays in the exact same spot. My problem is the result is that it marks the whole column as a traveled path with a period   def check(coord ,size):     if ((coord<0) or (coord>size)):         return True     else:         return False   def make_grid(start, path, size):     n = 0     row = []     while (n < size):         row.append("_")         n += 1     n = 1     grid = [row]     while ( n < size):         grid.append(row)         n +=1      x = start[0]     y = start[1]      grid[x][y] = "."      n = 0     while (n < len(path)):         if (path[n] == "N"):             x -= 1             if (check(x,size)):                 x += 1         elif (path[n] == "E"):             y += 1             if (check(y,size)):                 y -= 1         elif (path[n] == "S"):             x +=1             if (check(x,size)):                 x -=1         elif (path[n] == "W"):             y -=1             if (check(y,size)):                 y += 1         grid[x][y] = "."         n += 1      n = 0     while (n < size):         print grid[n]         n += 1


"I miss seeing her dancing" or "I miss seeing her dance"?

I'd like to know if it's correct to use ING + ING together in that sentence (i.e. seeing & dancing). I've seen people use both of these options, but I don't know if they are both correct.


When I use calc2latex I receive the error message "BASIC Runtime Error: Object Variable not set"  Using Ubuntu 16.04


CSS not applied to newly added row on table with jquery

I have a table on which the user can select a row. I've made some CSS to highlight the selected row. The user can add rows to the original table. The probelm is that the added rows are not highlighted when selected.  HTML PART :

                      title 1 	                      title 2

                    old row 1	                    old row 1

                    old row 2	                    old row 1

   CSS :  .table_to_fill tr:hover, .table_to_fill tr.selected { background-color: #1E90FF; color : #fff; font-weight : bold;}   Javascript :  $(".table_to_fill tr").click(function(){ $(this).addClass("selected").siblings().removeClass("selected"); });  //to add rows $("#add_row_button").click(function(){ $('#table_id tr:last').after('
new row	new row
'); });   So what I'm doing wrong ? Thanks for any help.


If $a$, $b$, and $c$ are sides of a triangle, then $\frac{a}{b+c}+\frac{b}{c+a}+\frac{c}{a+b}<2$.

Let $a,b,c$ be the lengths of the sides of a triangle. Prove that $$\sum_{\text{cyc}}\frac{a}{b+c}=\frac{a}{b+c}+\frac{b}{c+a}+\frac{c}{a+b}<2\,.$$  Attempt.  By clearing the denominators, the required inequality is equivalent to $$a^2(b+c)+b^2(c+a)+c^2(a+b)>a^3+b^3+c^3\,.$$ Since $b+c>a$, $c+a>b$, and $a+b>c$, the inequality above is true.  Is there a better, non-bruteforce way?


python regular expression dose not match the last end of line

I'm just learning python regular expression and I don't understand why it matches the last '\n':  import re  s = 'abc\t'   # no # s = 'abc\n'   # yes  if re.match('^(\S+)$', s):     print 'yes' else:     print 'no'   As far as I know, '\S' should not match '\t' or '\n', but here '\n' is matched. Any Help?


Please consider the following MWE:  \documentclass{article} \usepackage{siunitx, etoolbox} \newcommand{\testa}{Some text} \newcommand{\testb}{40}                                                                                \begin{document} \begin{itemize}   \item Item 1 %  \ifnotnull{\testa}{\item This appears only if testa is not null}{\item Oh! testa is null}   \ifnumgreater{\testb}{49}{\item This appears only if testb is greater than 49}{\item Oh! testb is lesser than 49}  \end{itemize} \end{document}   What command do I use in place of \ifnotnull to check if \testa is/ is not null?


What curve does this represent as t varies over [−1, 1]?

Let $x(t) = \frac{1-t^2}{1 + t^2}$  and  $y(t) = \frac{2t}{1+t^2}$  What curve does this represent as $t$ varies over $[−1, 1]$?  My attempt:  I suspect it represent parabola. I know that by trigonometry formula  $\sin2A = \frac{2\tan A}{1+\tan^2 A} =\frac{2t}{1+t^2}$. But here I used the graph of $\sin2A$, it look parabola, and $\cos2A = \frac{1-\tan^2A}{1+\tan^2A} =\frac{1-t^2}{1+t^2}$, similarly it also look like parabola.  If anybody help me ,,i would be very thankful,,


No way to create an effective spam filter

We are having a big spam problem and we don't know how to resolve it. We have one spammer that send us mail daily. All these emails are from different themes, using different email addresses that are only used one time, and the domains are used only one time. So we don't have any way to stop it. The only pattern is that the domain names are really young and are registered the same day the spam is send. They use .us and .me domains.  Any suggestion to resolve this problem?


Lifejacket and Lifeboat badges should be categorized as answer badges, not question badges

I noticed the : "Lifejacket" and "Lifeboat". These are awarded to answerers for answering a negatively-scored question that later goes on to earn a positive score, and the answer itself is also upvoted.  According to the blog post, these badges are awarded to the answerers, not the questioners. (If it's not clear, the text "we’re retroactively awarding these badges so if you’ve rescued any questions in the past, that achievement will be recognized within about 24 hours" implies it.)  However, both of these badges are currently listed in the "Question Badges" section of the . As these badges are awarded to the answerers, these should be listed as "Answer Badges".


From my reading, $SU(4)$ has 15 parameters and $SU(2)$ has 3 parameters that range differently with certain parameters (rotation angle). And all the parameters are linearly independent to each other.  My question are:   What the characteristic of each of the parameters? If I choose two of them, what is the reason behind the theory?  Can anyone explain to me or suggest any book/paper to me to understand the parameters themselves?


After update, now I'm getting "Disk not ejected properly" every time my Mac sleeps

Been running El Capitan since it was officially released. Updated to 10.11.4 a few days ago. I have a WD Elements USB 3.0 drive connected to my Mac mini (directly to the rear ports, not via a hub). Ever since the update to 10.11.4 whenever my Mac goes to sleep and I wake it up again, I get a notification to say the "Disk was not ejected properly".  This has never happened with this drive before, not on Mountain Lion, Mavericks, Yosemite or El Capitan until now.  I have another external caddy also with a full size 3.5" drive in it. This is powered by the mains.  It seems to me that the Mac is now terminating power to the USB 3.0 port prematurely (before the disk has had a chance to unmount properly ?), I do not get the message for my full-size disk that is permanently powered.  Tried adding the disk to the spotlight ignore list but to no avail.  Anyone else notices this issue?


How does an apodization filter improve bokeh?

The new  has an "apodization" filter, which  "smoothes the outline of the subject to create a more natural bokeh effect".  The  mentions photography, and says that "usually it refers to a non-uniform illumination or transmission profile that approaches zero at the edges" and that a previous Minolta/Sony lens uses "a concave neutral-gray tinted lens element as apodization filter".  So, is this just an internal filter which gradually gets darker near the edges (presumably reducing "bright line" bokeh")? Or is it something more complicated?  How big of a deal is this in practical use (or is it mostly a gimmick)? Is this something that is always fundamentally better for natural, smooth bokeh, or can that be achieved in different ways through other types of designs which wouldn't benefit from also having this?  Could the same thing be achieved with a screw-on filter for any lens, or is it essential that this filter be internal?


find a file with "find" and show the size of the file

How can I find a file at the same time view the size of the file?  ERROR: I tried this command, but I only got the size and details of other files.  find -name "*.conf" | ls -l


Adding third display to a MacBookPro via Thunderbolt port ?

I have a Mid 2012 13" MacBook Pro (MD102B/A). It has 1x Mini Display / Thunderbolt Port and 2x USB 3.1 Gen 1 ports.  At my desk I need a bigger setup, so I connect the MacBook Pro to a 24" monitor using a Mini DisplayPort to HDMI adapter.  I wish to add a second 24" monitor to my setup, so that I have 2x external monitors plus my 13" MacBook Pro screen all in the use at once. I want to use each monitor as a separate extended display, not as mirrored displays.  I have done this in the past about 4 years ago when connecting a Mac mini to 3 screens and I have used the HDMI out, Thunderbolt out, plus a USB to HDMI adapter, but the USB to HDMI adaptor made the 3rd screen quite laggy.  Is there a more up to date way to do this using a Thunderbolt splitter or hub? I have found a few online including a  and a couple made by StarTech but wondered if they where going to work with the MacBook Pro. I don't believe my MacBook Pro has the most up to date Thunderbolt, although it does have 1 GB of dedicated GPU.


Piping output of a command into grep and then into another command

I am taking output of one script, then piping this putput to grep and piping the output of grep into another script:  ./script1 | grep 'expr' | ./script2   However, the second script never gets any input. Again, nothing gets printed when I substitute script2 with cat and script1 with ping:  ping localhost | grep localhost | cat   Same thing happens if I replace grep with awk:  ping localhost|awk '{print $1}'|cat   What is going on?


How can a high schooler get more involved in mathematics?

For a high school student interested in majoring in math and learning more about math, what kinds of mathematical research can a student in high school get involved in? How can a high school student get involved? If a high school student does conduct research, what mathematical journals would be willing to publish their work? Also, what other ways are there for a high schooler to get involved in more complex mathematics?


Decoherence and Young's double slit experiment

If we shine light on an electron wave passing through a double slit then the interference pattern is destroyed. This is now understood as decoherence coming from interaction of the electrons with light.   What I do not understand is why decoherence doesn't occur from the material making up the barrier (in which we have the slits). I mean why do we need the light to cause decoherence and why in the absence of the same does the electron behave like an isolated system?


I use 17.04 and rc.local is gone(I couldn't do it with rc.local anyway).  I just want this two commands to run at the startup;  cd Folder python3 file.py   That's it. I looked all the similar answers here but I couldn't make it.  Thank you so much!


bash ssh warning when connect to raspberry: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

I tried  for example  to solve my problem and  too.  My problem is that when I try to connect to my Raspberry pi2, I got the following messages:  Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l  The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.  Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sat Mar 21 13:25:48 2015 from 192.168.10.1 -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)   Needless to say, when I try to do an "apt-get upgrade" or try to install a new application in my raspberry, I got errors relating to language. That's why I started looking for the solution...  Some additional informations:  When I typed "locale" on my raspberry I got the following messages:  pi@raspberrypi ~ $ locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8   If I write the same command on my laptop (I want to connect to raspberry from this laptop using ssh):  mirind4@mirind4-pc:~$ locale LANG=en_US.UTF-8 LANGUAGE=en_US LC_CTYPE="en_US.UTF-8" LC_NUMERIC=de_DE.UTF-8 LC_TIME=de_DE.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=de_DE.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=de_DE.UTF-8 LC_NAME=de_DE.UTF-8 LC_ADDRESS=de_DE.UTF-8 LC_TELEPHONE=de_DE.UTF-8 LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=de_DE.UTF-8 LC_ALL=


The Limit of $x\left(\sqrt[x]{a}-1\right)$ as $x\to\infty$.

How to find the limit of: $$ \lim_{x\to \infty }x\left(\sqrt[x]{a}-1\right)$$ Without using L'hôspital rule.  I've tried to bound the term and use the squeeze theorem but I couldn't find the right upper bound. I've also tried to convert $a^\frac{1}{x}$ to $e^{\frac{1}{x}\ln{a}}$ but it didn't help me.  Whats the right way to evaluate that limit?


$e^{2\pi i x} = (e^{2\pi i})^x$: What happens if x is rational?

I'm a bit embarrassed that I've had difficulty on getting around this one:  $$e^{2\pi i x}$$  Solving it by itself, we can reduce it down to $(e^{2\pi i})^x = 1^x$ such that $e^{2\pi i x} = 1$ for all $x$.   However, directly plugging in non-integer rational numbers, chiefly $x = 1/2$, we get results that does not stay true to the above equality.   I'm a bit perplexed of trying to explain the different results for this one. I admit that I haven't had too much experience with complex numbers compared to other fields.


Proof that Limit of the Log is the Log of the Limit. What is the intuition behind this statement?


How do I print all lines of a file with duplicate values in a certain column


Html data showing � (questions marks) instead of characters

From the above image im getting ? symbols in option in database there is a chareter present how can i resolve this issue..  I have a header like this  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />   And i am looking for permanent solution this is my code:  and when print the variable it is coming like this:console.log(getContact);        function get_question_detail(q_id){     $("#all_option").html("");     var temp_ques = sessionStorage.getItem(q_id);     if (temp_ques){     var getContact = JSON.parse(temp_ques);      for (var j = 1; j <= ans_option_count; j++) {     var temp_var = "sr_no" + j;     var full_div = '<div class="answer_option"><input type="radio" name="ans_option" value="' + j + '"  class="validate[required]"  />&nbsp;&nbsp;&nbsp;' + getContact['option'][temp_var] + '';     $("#all_option").append(full_div);     // console.log(full_div);     }


Time it would take for sound to travel between moon and earth?

Neil degrasse Tysons documentary series the Cosmos, he mentions that we actually see the moon one second later than it actually is due to the distance of the earth and the moon and speed of light making us see the moon a second behind instead of at real time. If there was someone on the moon clapping (and we ignored other rules of physics like the sound fading and sound waves through space) how long would it take to hear them clapping from Earth?


How can I find the number of instances of each text?

So I have a large file which is in a columns comprised of cities. I want to write a program that will find the total number of instances of each city and display it in a new file. How should I go about doing that.  This is an example, there are way more values than this  If the file is like this   City            Manhattan    Cork        Manhattan   Chennai Chennai   How output should look  City Manhattan 2  Cork      1 Chennai   2


The reason I'm asking this (when it's been asked before) is because I'm playing an Animated Armor, which technically HAS no senses. It's just magic in a shell. (Ghost in the shell, anyone?) So that begs the question, does something that's purely magical have the ability to see through walls? And if so, can it be stopped by that so many feet of wood, stone, iron, and lead? My question is stemmed off of the homebrew race (and the monster)


How do I carve a text shape or "negative space" into an object?

I have a logo design that I'm trying to re-create digitally. I want to situate the company name in front of a vector design (a wheel) and cut-away from the wheel in the shape of the text so there is separation or "padding" in between elements. The text should "eat away" at the surrounding element in the shape of itself.  I know I could create a regular stroke, convert to outlines, align it outside and make it 6-8pts, but I want this logo to be able to go on various backgrounds and be embroidered on shirts such that the area around the text is actually negative space and doesn't require that the stroke colour match whatever it's being printed or placed on.  I just tried making a copy of my text > creating outlines > object -- path -- outline stroke > and then using minus front to carve out the shape, but minus front takes too much detail away from the middle area. It's a wheel and it completely erases the spoke elements rather than "shaving" them.  Thanks!


Problem with JSON element named "number"

I have an APEX class that should have a property named "number" but since this is a restricted keyword in Salesforce, I'm not allowed to do that.  where I should name it number1 and then make a .replace() on serialized JSON string. But this does not seem safe. Is there any safer way like annotating this property "number1" with value "number" so that it generates JSON element named "number"?


In the memoir class, how can I create two versions of the figure float environment which behave the same way, but have different names and are each numbered and listed in their own sequence?  Specifically, I have a variety of images which have been inserted using figure floats, but now the images that are maps need to be separated from the rest of the images: that is, I want "Map 1" to be different from "Figure 1", and I need a separate list of "Maps" and "Figures" at the beginning (basically by calling something like \listofmaps as well as \listoffigures). I've read over the basics on custom floats, but am not sure how to just create a renamed clone of the original figure float while also retaining the original environment.


I have a question in the sentence "All round him the long scar smashed into the jungle was a bath of heat" from "Lord of the flies"

I have a question about the sentence in bold below. It's from the novel .     The boy with fair hair lowered himself down the last few feet of rock   and began to pick his way toward the lagoon. Though he had taken off   his school sweater and trailed it now from one hand, his grey shirt   stuck to him and his hair was plastered to his forehead. All round   him the long scar smashed into the jungle was a bath of heat. He was   clambering heavily among the creepers and broken trunks when a bird, a   vision of red and yellow, flashed upwards with a witch-like cry; and   this cry was echoed by another.   Which is the subject of the sentence "All round him the long scar smashed into the jungle was a bath of heat"?  Which is the predicate of the sentence "All round him the long scar smashed into the jungle was a bath of heat"?  Which is the object of the sentence "All round him the long scar smashed into the jungle was a bath of heat"?  Is "the long scar" all around him?  Does the word smash mean "to hit (something) violently and very hard"?  Does "a bath of heat" mean "a bath's heat"?


$(a,b) = [a,b]?$ Are these vectors in $\mathbb{R}^2$?

I was explaining something to my friend when we ran into this question that I couldn't clearly answer.  Does $(a,b)=\begin{bmatrix}a\\b\end{bmatrix}$? Are these different notations for a single object sitting in one particular space, or are these distinctive objects in different spaces?  We say that $(a,b)\in \mathbb{R}^2$, but we also say $\begin{bmatrix}a\\b\end{bmatrix}\in\mathbb{R}^2$. No big deal...but then do we say $\begin{bmatrix}a&b\end{bmatrix}\in\mathbb{R}^2$ also?  I have only learned Cartesian product, $$\mathbb{R}\times\mathbb{R}=\{(a,b)\mid a,b\in\mathbb{R}\}.$$ Is $$\mathbb{R}\times\mathbb{R}=\left\{\begin{bmatrix}a\\b\end{bmatrix}\mid a,b\in\mathbb{R}\right\}$$ another common definition? Are these even distinct or just two ways of naming the set?


I am stuck in a question for Algebraic Structures:  I need to prove the following:      Let $R$ be a ring. If $a^2=a$ for any $a\in R$, then $a+a=0$ for any $a\in R$.   (of course $+$, $\cdot$ and $0$ regarding $R$)  P.S. This is similar to a  (if $a \cdot a = 0$ then $a + a = 0$) but I wasn't able to apply the ideas from there. In that question we assumed that $R$ is a unity ring.


I tryed to download the Tale of Two Kingdoms mod for Minecraft. I opened up the bin and there was no minecraft.jar! How do I download minecraft.jar so I can download Tale of Two Kingdoms?


In storing passwords in php mysql, can i assume the passwords to be safe if i were to run md5 algorithm again and again and with combination of text replacement and rotation?


How did fake Mad-Eye Moody, Barty Crouch Jr., evade two highly skilled Legilimens?

, the magical skill of extracting feelings and memories from another person's mind.  Both men interacted almost daily with the fake Mad-Eye Moody, Barty Crouch Jr., for an entire school year. Yet neither man suspected Crouch for who he was until the end of the school year.                                  How did Barty Crouch Jr. evade detection by two skilled Legilimens?  A stray thought by Crouch could have given away his identity or his plans. Was he trained in Occlumency to keep his thoughts private from prying minds?  Please provide answers based on canon sources.


Does a power supply draw only as much power as it needs?

I recently built a small mini-itx Intel ATOM-based Ubuntu home server. The case I choose is a small case but only a full size ATX power supply would fit it. I choose a mid-grade OCZ 500 watt modular power supply for it and it works great. I could not find a modular ATX power supply out there that was less than 450W.  So my question is, does my 500W power supply draw 500W just because thats what it is? Or does the power supply only draw as much power as is needed to power the computer components?   One mini-itx ATOM board + two SATA HDDs = less than 100W I figure. My goal was to build a low cost, low power consumption server, so hopefully the 500W power supply isn't drawing 500W.


How do you boot from windows usb stick without it trying to install distro. The only way I could get the stick to boot was use wubi icon then it tries to install and ends up saying I don't have enough space.   I'm running  Windows Xp and ubuntu 10.10


How to cover my handler class in a test class

public class CaseTriggerHandler {          public static void closeCase(Set<Id> caseId,Map<Id,Case> newMap){                  List<Quality_Investigation__c> qualityInvestigationList = [SELECT Id,Send_to_Advisor__c,Cancel_Investigation__c,Case__c FROM Quality_Investigation__c WHERE Case__c IN:caseId];         For(Quality_Investigation__c singleQI:qualityInvestigationList){             if(singleQI.Send_to_Advisor__c==False &&  singleQI.Cancel_Investigation__c==False ){                                  newMap.get(singleQI.Case__c).addError('You cannot Close this case. ' +'There are Open QIs');             }                      }      }


I was about to post an answer to a PPCG question when I got this error:    It's an -compressed string that reads Hello, World!. I see no reason as to why this character is blocked, as it's just some random Unicode character. Hopefully it's not some emoticon of some illegal cupcake that doesn't show up on my Windows XP machine...


Is Superiority Dice Damage Doubled Due To Assassinate?

Critical hits double all the dice rolls. Since Superiority Dice are dice rolls too, do they get doubled on a crit? That is, if a Fighter attacks, rolls a 20, and decides to use a combat maneuver, do they roll 2d8 for bonus damage?  Case in point: a Rogue3(Assassin)/Fighter3(Battle Master) multiclassed character deals a surprise round. Since they auto-crit due to Assassinate if they hit, they can also tack on a maneuver to add a guaranteed 2d8 damage (assuming the maneuver adds that damage in), on top of the 6d6 damage from sneak attack.  Related: , but I don't think it's a duplicate as this is concerning a more specific scenario with a multiclassed character.


How to write the symbol > with ~ under it in laTex?

Hi I have the following symbol but I don't know how to enter, I have not seen it anywhere on in the internet as well, does anybody know how to input this symbol in latex?  thanks!  the symbols is:


Why I should show that no element of $R$ divides both $2$ and $1 + \sqrt{-5}$?

Here is the question I want to answer: Let $R = \mathbb Z[\sqrt{-5}]$ and $ I = (2, 1 + \sqrt{-5})$ be an ideal of $R$. Show that $I$ is not a free $R-$module. But here in this question  in its answer the author said that: to prove that it is free of rank 1, we should try to prove that no element of $R$ divides both $2$ and $1 + \sqrt{-5}.$ could anyone explain to me why this will prove that it is not free of rank $1$? Here is the answer I am speaking about: It is generated by two elements so if it were free, it would be free of rank $1$ or $2$. If it were free of rank $1$, it would be generated by a single element: you can then try to prove that no element of $R$ divides both $2$ and $1+\sqrt{-5}$. If it were free of rank $2$, then $2$ and $1+\sqrt{-5}$ would have to be free generators (can you see why ?). You can then try to prove that this is not the case, that is, that $2$ and $1+\sqrt{-5}$ are not linearly independent. EDIT: I know that we are using the contrapositive of this statement for the proof: $I$ is free $R$ module $\implies$ I is a principal ideal. And I know that we are trying to show that $I$ is not principal.


What's the subject of "There is my biscuit!" ? And how about "There is one biscuit left"?

What's the subject, grammatically speaking, of these sentences?   There is my biscuit! My biscuit is there! There is one biscuit left.   I don't really know how to analyze these. The following observations seem to be relevant, though:   The verb to be doesn't take an object. In the first two sentences, there is a demonstrative pronoun. It is therefore potentially a subject, I think. I don't know what part of speech is taken by there in the third sentence. In favour of reading my biscuit and one biscuit as the subjects is that if there were more than one biscuit then, in each case, the verb would become plural (There are my biscuits! etc.) In favour of reading one biscuit as the subject of the third sentence is that if we recast it as (the slightly unidiomatic) There remains one biscuit, it seems that one biscuit would have to be the subject.   All of this leads me tentatively towards thinking that my biscuit and one biscuit are the subjects here, but I'm not totally confident about this.  One other possibility: since to be doesn't take an object, does that mean it can have two subjects? In I am he, presumably both I and he are subjects, if neither is an object?


SQL Server in memory temp table disk usage

I've activated in-memory tables on my databases and use it only for table variables. However I notice that the disk space used by the in memory folder keeps growing and growing. I was wondering if there was a way to delete those files as there should be no persisted data in them.  Thanks in advance.


Proving inequality $\left( \frac {x} {y}\right) ^{x}\left( \frac {1-x} {1-y}\right) ^{1-x}\geqslant 1$

Let $x,y\in \left( 0;1\right).$ I want to prove that  $$\left( \dfrac {x} {y}\right) ^{x}\left( \dfrac {1-x} {1-y}\right) ^{1-x}\geqslant 1$$


find a positive continuous function with a finite area : $\int_0^\infty f(x) dx$ , but the $f(x)\rightarrow$ doesn't exist.

find a positive continuous function with a finite area : $\int_0^\infty f(x) dx$ , but the limit of $f(x)$ as $x$ goes to infinity doesn't exist. I tried finding such a function but I failed .


Setting a global python variable within a function

I have a restful variable that I want to set to a global variable in python.   This code works. It allows the rest of the script to read the_api      global the_api  auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) the_api = tweepy.API(auth) print(the_api)   This code does set the_api, but in other functions the_api is undefined... Why can't I vset the_api from within a function in python.  def initTweepy():     auth = tweepy.OAuthHandler(consumer_key, consumer_secret)     auth.set_access_token(access_token, access_token_secret)     the_api = tweepy.API(auth)     print(the_api)


Duties on 2 laptops while travelling to India

I am an Indian living in Australia as permanent resident. I intend to carry 2 laptops to India while on an official trip. 1 laptop is company one and another is personal. I am carrying personal one for getting it repaired in India.   Can I do this without the need to pay any duties?


Python code error when using QGIS plugin Openlayers

I am getting this error message whenever I try to use the Openlayers plugin. I can not read or write Python particularly well at the moment, though I am trying to learn, so I am struggling to identify the problem. I have tried un-installing and reinstalling openlayers plus using it on previous versions of QGIS with no success. Basic attempts but really haven't got the time to delve deeper into more complex procedures with out really knowing what I'm doing.  "An error has occurred while executing Python code:  Traceback (most recent call last):   File "C:/Users/*****/.qgis2/python/plugins\openlayers_plugin\weblayers\weblayer.py", line 97, in addLayer     self._addLayerCallback(self)   File "C:/Users/*****/.qgis2/python/plugins\openlayers_plugin\openlayers_plugin.py", line 130, in addLayer     layer = OpenlayersLayer(self.iface, self._olLayerTypeRegistry)   File "C:/Users/*****/.qgis2/python/plugins\openlayers_plugin\openlayers_layer.py", line 330, in __init__     self.olWebPage = OLWebPage(self)   File "C:/Users/*****/.qgis2/python/plugins\openlayers_plugin\openlayers_layer.py", line 48, in __init__     proxy = getProxy()   File "C:/Users/*****/.qgis2/python/plugins\openlayers_plugin\tools_network.py", line 42, in getProxy     proxy.setPort(settings.value("/proxyPort", 10, type=int)) TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 2  Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] QGIS version: 2.10.1-Pisa Pisa, d20c5b7 Python path: ['C:/PROGRA~1/QGISPI~1/apps/qgis/./python/plugins\\processing', 'C:/PROGRA~1/QGISPI~1/apps/qgis/./python', u'C:/Users/*****/.qgis2/python', u'C:/Users/*****/.qgis2/python/plugins', 'C:/PROGRA~1/QGISPI~1/apps/qgis/./python/plugins', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\matplotlib-1.3.1-py2.7-win-amd64.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\nose-1.3.3-py2.7.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\tornado-4.0.1-py2.7-win-amd64.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\backports.ssl_match_hostname-3.4.0.2-py2.7.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\certifi-14.05.14-py2.7.egg', 'C:\\PROGRA~1\\QGISPI~1\\bin\\python27.zip', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\DLLs', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\plat-win', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\lib-tk', 'C:\\PROGRA~1\\QGISPI~1\\bin', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\jinja2-2.7.2-py2.7.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\markupsafe-0.23-py2.7-win-amd64.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\pytz-2012j-py2.7.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\six-1.3.0-py2.7.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\xlrd-0.9.2-py2.7.egg', 'C:\\PROGRA~1\\QGISPI~1\\apps\\Python27\\lib\\site-packages\\xlwt-0.7.5-py2.7.egg', u'C:/Users/*****/.qgis2//python', 'C:\\PROGRA~1\\QGISPI~1\\apps\\qgis\\python\\plugins\\fTools\\tools', 'C:/Users/*****/Documents/*****/*****']


Subscript R notation for the finite fields

I'm trying to understand the notation used in the literature for Pairing-based cryptography. I know (and I hope I've understood it well) from  that $\mathbb{Z}_p$ is the finite field of prime order $p$, where  $p$ is the order of the field $q$ and the characteristic of the field and $q=p^n$  I came across this notation  and  while researching the Identity-Based Encryption (Boneh-Franklin): $$s \in_R\mathbb{Z}^*_q$$ The $\mathbb{Z}^*$ means that the finite field is provided with the multiplication operation. But the $_R$ confuses me, as I can't find its meaning on the web. Could somebody explain it? PS: are the following notations equivalent? $GF(p)$, $\mathbb{Z}_p$, $\mathbb{Z}/p\mathbb{Z}$ and $\mathbb{F}_p$


Google Maps Location History is showing an incorrect location

I have a major problem that I hope someone can help with. On my Google Maps feature under my Location History it shows a location that I was never at at any point, but when my wife happened to see that location she doesn't believe me that the GPS could be wrong and pinpoint that location if I was never there.  I was first wondering myself how could that could be possible if I was never there or my phone was never at that location that was 35 miles away from me and second is there any way I could prove the GPS being wrong? Can I contact Google Maps and can they give an official printout of that certain day and every location I was? I really need to prove my honesty to her and hope there is a way.


SVN ignoring .aux, .log, .gz and .pdf when typesetting version controlled .tex files

Suppose I have a project that uses SVN for version control and includes .tex files.  Collaborators may wish to typeset/compile these .tex files into .pdf files in order to view how they look.  This has a side effect of creating the .aux, .log, .gz, and of course the .pdf file in the directory of the .tex file.  Since these are redundant, is it possible to tell SVN to ignore those file extensions when running a command like "svn status?"  That way the repo only has .tex files in it and does not waste space on those additional files.    I found this question, which I believe asks the more or less the same thing as mine:  (1)   My issue with it, is that it seems like a lot of work for a little feature.  Basically if SVN could just be told  "hey, these files are actually semantically irrelevant/vacuous/redundant for the project.  You don't need to add them or put them under version control!," that would be great.


Why does operating system need to know subnet mask?

If I understand correctly, the operating system gets subnet mask together with IP and other stuff from the DHCP server. And this subnet mask seems to be important for router because it knows if packet goes from/to LAN or should be sent somewhere else or it's received from Internet. But why is the subnet mask needed for the operating system? What does the operating system do with the knowledge of the subnet mask?


How can I take a sun backlight portrait like these examples?

How can I take a photo like the ones below? The problem is that my photos (taken with a bridge, Sony H2) will get blown up at the highlights. Is it because I'm using a weak camera? Is it because I'm shooting in JPG (can't use RAW)?  Is this dynamic range achieved by greater cameras + RAW? Or is it by post-processing?  Is there a pattern to this type of photos like: wide apperture (< f5.0), RAW, ...?  Examples:   or  or


I want to change the whole background.I have installed many apps for this purpose that  demands to erase that part of pic.and i can't do it well..I think no one can do this well.I just want that thing on applying that it will really look like, u are at that place..no erasing no croping.do u know about such app?this all look unreal


How does the Hamiltonian change if $L\to L + \frac{dF}{dt}$?

The Hamiltonian is defined as the Legendre transform of the Lagrangian $$H = p\dot{q} -L .$$ In the Lagrangian formalism we are free to add the total derivative of an arbitrary function $F=F(q,t)$ to the Lagrangian $$ L \to L' = L + \frac{dF}{dt} $$ because such an additional term has no effect on the Euler-Lagrange equation.   For the momentum $ p =  \frac{\partial L}{\partial \dot{q}} $ such a shift of the Lagrangian implies $$ p \to p'= p +  \frac{\partial  F}{\partial q} .$$   If we combine these two observations, we find the following transformation law for the Hamiltonian \begin{align} H(q,p) \to H' &= p' \dot q' - L' \\ &= \left( p + \frac{\partial  F}{\partial q} \right) \dot q - \Big( L + \frac{dF}{dt} \Big) \\ &= H + \frac{\partial  F}{\partial q} \dot q - \frac{dF}{dt}  \end{align} Is this transformation law correct or am I missing something important? (In the literature I've only found several times the statement that the Hamiltonian like the Lagrangian is allowed at most to change be the total derivative of some function. But here it seem that there is an additional term...)


I made a storage room, but now I can't have my kid live in the house I built. Is there anyway I could change the storage room into a child's room?


Good evening guys, I am currently trying to figure out how to add a custom pagebreak inside a figure environment containing multiple subfloats (2 columns) using the subfig package, e.g.: \begin{figure}     \centering     \subfloat[][1] {         \centering         \includegraphics[width=.45\linewidth]{...}     }     \qquad     \subfloat[][2]{         \centering         \includegraphics[width=.45\linewidth]{...}     }      \subfloat[][3]{         \centering         \includegraphics[width=.45\linewidth]{...}     }     \qquad     \subfloat[][4] {         \centering         \includegraphics[width=.45\linewidth]{...}     }      \subfloat[][5]{         \centering         \includegraphics[width=.45\linewidth]{...}     }     \qquad     \subfloat[][6]{         \centering         \includegraphics[width=.45\linewidth]{...}     }      \subfloat[][7] {         \centering         \includegraphics[width=.45\linewidth]{...}     }     \qquad     \subfloat[][8]{         \centering         \includegraphics[width=.45\linewidth]{...}     }      \subfloat[][9]{         \centering         \includegraphics[width=.45\linewidth]{...}     }     \qquad     \subfloat[][10] {         \centering         \includegraphics[width=.45\linewidth]{...}     }     \caption{...}     \label{...} \end{figure}  I have tried inserting \pagebreak, \newpage, and \clearpage between figure 2 and 3 to split the figure across two pages, but none of them worked. Is this even possible? What is the best way to achieve this? Thank you all!


I'm setting up a minecraft server for just myself and friends. I'm using the official server (on windows) from minecraft.net I got it all up and working but I'm curious how to change the Server Name. It looks like before 1.8.1 you could just add server-name=my server to the server.properties file, but now that doesn't seem to work. Googling didn't seem to return any helpful results, is it possible to change the server name and not just the MoTD?


Why does Rust f32 does not give good solution but f64 does?

This simple program compiles without any issue and equality assertion is evaluated as true. fn main() {     let celsius_temp: f64 = 23.0;     let fahrenheit_temp: f64 = celsius_to_fahrenheit(celsius_temp);      assert_eq!(fahrenheit_temp, 73.4);     println!("Test passed!"); }  fn celsius_to_fahrenheit(celsius_temp: f64) -> f64 {     (celsius_temp * 1.8) + 32.0 }  However, if I use instead of f64 a data type of f32, Rust compiler panics and assertion is false. It gives me a following message: thread 'main' panicked at 'assertion failed: (left == right) left: 73.399994, right: 73.4' Why does it work with f64 and not with f32? I am not using here large numbers.


Every Lebesgue measurable set contains a closed subset such that the set difference has small measure

I have this exercise:     $M$ is the lebesgue measurable sets on $\mathbb{R}$.   Suppose that $E \in M$. Show that for each $\epsilon > 0$, there is a   closed set $F$, with $F \subset E$ and $\lambda(E \backslash F)  <\epsilon$.   Here $\lambda$ is the Lebesgue measure.  I am stuck on this exercise. Using the definition of the Lebesgue measure, I know that there is a sequence of open intervals $\{I_n\}$, $E \subset \bigcup I_n$, so that for instance $\lambda(E) > \sum \lambda(I_n)-\epsilon/2$. I thought that maybe I could shrink the intervals to get closed intervals, however that didn't work because I don't know how much they have to be shrinked in order to get containment in E, and also there is a problem that an infinite union of closed sets might not be closed itself.  Another option is to use the Caratheodory criterion somehow, but I don't see how that helps?


How can I have my mac display a reminder when it connects to a particular network?

I'd like my mac to display a reminder with a customized message every time it connects to a certain network.  The network can be distinguished by whether my mac's local IP address falls into a few possible IP address ranges, or whether the connection's gateway is one of three possible IP addresses. The connection could be Wi-Fi or ethernet.  Preferably the reminder would be an alert style notification that has to be manually dismissed, but I'm not wedded to that.  And just so that I don't get inundated with these notifications every time the network connects or disconnects for some random reason, I'd like to set it up so that I only get one of these reminders per day.  Is there a way I can set this up, short of writing my own piece of software?  edit: This question is not a duplicate of  as I'm looking to see a customized reminder upon connecting to a specific local area network as determined by IP address, regardless of the network adapter used. That question is about being notified when a Wi-Fi network becomes available.


Find all natural numbers $x,y$ such that $3^x=2y^2+1$.

Find all natural numbers $x,y$ such that   $$3^x=2y^2+1$$  solutions are $(1,1)$, $(2,2)$, $(5,11)$. I found that parity of both is same and If $x$ Is odd it is of the form $4k+1$.


"Find rank of matrix $\begin{bmatrix}                     0&0&-3\\                      9&3&5\\                     3&1&1\\                     \end{bmatrix}$ using echelon form?" "I am getting an answer equal to 2."  "When I reduce this I get $\begin{bmatrix}                           1&1/3&0\\                           0&0&1\\                            0&0&0\\ \end{bmatrix}$ so two pivots so rank must me 2 right ? However the book I am using says rank =1."


Permanent background ssh connection to create reverse tunnel: what is correct way?

Related question:   Answer from there helped me a lot, this command does what I need:  ssh -R 2225:localhost:22 loginOfServerWithPublicIP@publicIP   So I wrote the script to reconnect all the time:   #!/bin/bash   while true; do     echo "try to connect..."     ssh -o ServerAliveInterval=240 -R 2225:localhost:22 user@host     echo "restarting in 5 seconds.."     sleep 5  done   And added it to the /etc/crontab. But I found out that works if only I execute it "by hand" from shell, but if it is called by cron, ssh connects and immediately finishes. (so, the script above reconnects all the time)  From man ssh, I found that for background connections I should call it with -n key, but it didn't help. Then, I just looked around for similar scripts and I found that it works if I call tail -f something, i.e. some "neverending" command, so I just created empty file /tmp/dummy_file and now my ssh command looks like this:  ssh -o ServerAliveInterval=240 -R 2225:localhost:22 -n user@host tail -f /tmp/dummy_file   It works now! But, this solution seems a bit ugly, plus I don't really understand actual reasons of that behavior. Just by chance, I tried to call bash instead of tail -f (bash seems to me "neverending" command, too), but it doesn't work.  So, could anyone please explain this behavior, and what is the correct way to create background ssh connection to keep reverse ssh tunnel up?


After login I just get an orange screen that says Ubuntu 14.04, no sidebar or desktop

I am an Ubuntu newbie. Ubuntu worked for 2 weeks but one day I installed a few things and then shut down. The next morning when I booted into Ubuntu it let me log in but then it just stayed on an orange screen that said Ubuntu 14.04. The side bar and rest of the desktop never showed up. I waited an hour for and still nothing.


How can I have two profiles, with two skins, in Minecraft?

How can I have two different profiles, with two different skins, in Minecraft? My two daughters want to play, and I don't want to download two copies of the game, or buy two accounts. They would be playing from different computers, too.


Regression anatomy: can a multivariate model with K independent variables be broken down into K bivariate models?

writes:     Most econometrics textbooks limit themselves to providing the formula for the $\beta$ vector of the type      $$\beta = (X′X)^{-1} X'Y.$$      Although compact and easy to remember, this formulation is a sort black box, since it hardly reveals anything about what really happens during the estimation of a multivariate OLS model. Furthermore, the link between the $$\beta$$ and the moments of the data distribution disappear buried in the intricacies of matrix algebra. Luckily, an enlightening interpretation of the $$\beta$$s in the multivariate case exists and has relevant interpreting power. It was originally formulated more than seventy years ago by Frisch and Waugh (1933), revived by Lovell (1963), and recently brought to a new life by Angrist and Pischke (2009) under the catchy phrase regression anatomy. According to this result, given a model with K independent variables, the coefficient $\beta$ for the k-th variable can be written as       $$ \beta_k = \frac{cov(y,\tilde{x}_k)}{var(\tilde x)}$$      where $\tilde x_k$ is the residual obtained by regressing $x_k$ on all remaining $K − 1$ independent variables.      The result is striking since it establishes the possibility of breaking a multivariate model with K independent variables into $K$ bivariate models and also sheds light into the machinery of multivariate OLS. This property of OLS does not depend on the  underlying Data Generating Process or on its causal interpretation: it is a mechanical  property of the estimator which holds because of the algebra behind it.   Judd et al. (2017) have a  of this too, pp.107-116.  I'm not sure how you would break a multivariate model with $K$ independent variables into $K$ bivariate models, it seems like you would need more. For example with three independent variables and a constant ($K=4$), I worked out you need 5 base-level regressions (if you don't count the redundant ones in light blue) and 11 regressions of residuals on residuals. Am I missing something?


How does one create, caption, label and refer to a subfigure?

So its a fairly simple question to a problem people normally experience. I have a rough idea of what to do, but I am looking for the correct way of doing things. So in the solution I will include what would be the bare minimum requirements I think would get this problem solved. I am looking for feedback and corrections though.  So please tell me, how does one go about creating subfigures within a figure. After that, caption it. Then label it for reference and then refer to it in the text?


I am running out of disk space and noted that I have a large /var/cache directory. Can I safely remove this? (using Arch Linux, BTW).


Why do fundamental physical laws involve the second derivative?

The title says it all. This is a question that has been nagging at me for some time. Mathematically, the first derivative is not really any different from the second derivative, or the $k$-th. So I ask, what is so special about the second derivative?


Using `\left(` and `right)` puts a space after an operator

When I use \left( and \right) to get appropriately sized parentheses for an operator, a space is created between the operator and the parentheses. I think it looks bad. Is it intentional? If so, why? If not, is it easy to 'repair'?  \documentclass{article}  \usepackage{amsmath} \usepackage[active,tightpage]{preview} \PreviewEnvironment{align*} \begin{document} \begin{align*}     \log(a) &= 0\\     \log\left(a\right) &= 0\\     \log\left(\frac{a}{b}\right) &= 0 \end{align*} \end{document}   Gives the following output:


Share a folder between Windows 8.1 guest and Ubuntu 14.04 host in VirtualBox

I have a computer running Ubuntu 14.04, with Windows 8.1 running inside VirtualBox. I needed Windows for a number of reasons, mainly for Office and OneDrive (school things).   My problem is that I can't seem to create a shared folder between the two computers. I have a folder /home/graham/Windows, that I have set as a shared folder for the guest in VirtualBox.   Edit: In regards to other documentation, most is for Windows has a host and Ubuntu as a guest, or an older version of Windows as a guest. Everything I find says the shared folder should just appear within Windows 8.1, but this is not the case.  When trying to mount \\vboxsvr\Windows within Windows 8.1, it says that the     server can't be accessed.   I have virtualbox guest addons installed on the guest.  Here is a screenshot of the error given by windows when trying to map the network drive:     Any suggestions are greatly appreciated!  Graham


Python: Creating an N-dimensional list from separate lists of varying sizes and dtypes

Say I have these lists:  a = [1, 2, 3, 4] b = [6,7] c = ['a', 'b', 'c']   I would like to create a 3-Dimensional data structure that contains new lists combining all the elements of each list together in all possible ways. I would then like to access these new list using matrix like indexing.   So for example, say f is a function that does what I want. Then I could do this:  m = f(a,b,c)   Then m[0][0][0] would give [1,6,'a'], m[1][0][0] would give [2,6,'a'], and so on.   Basically, I know I can already do this using nested for loops.  jList = [] for j in a:     kList = []     for k in b:         lList = []         for l in c:             o = [j,k,l]             lList.append(o)         kList.append(lList)     jList.append(kList)   This gives me a list of lists of lists of lists.  [[[[1, 6, 'a'], [1, 6, 'b'], [1, 6, 'c']],    [[1, 7, 'a'], [1, 7, 'b'], [1, 7, 'c']]],   [[[2, 6, 'a'], [2, 6, 'b'], [2, 6, 'c']],    [[2, 7, 'a'], [2, 7, 'b'], [2, 7, 'c']]],   [[[3, 6, 'a'], [3, 6, 'b'], [3, 6, 'c']],    [[3, 7, 'a'], [3, 7, 'b'], [3, 7, 'c']]],   [[[4, 6, 'a'], [4, 6, 'b'], [4, 6, 'c']],    [[4, 7, 'a'], [4, 7, 'b'], [4, 7, 'c']]]]   This is fine, but I have to do this for dimensions higher than 3, and the many nested for loops just seems like it can't possibly be the best or most efficient way to build this type of data structure. I can't help but thinking there must be a better solution, something in some library like the function I made up above, maybe numpy function, but I've done a lot of searching and have not found something for lists of varying sizes and data types like I have.   Any ideas?


Using or not get and set methods in C# classes

In c# when I always heard that is a good practice when creating a property for a class to include the get e set functions. For example:  public int Id { get; set; }   I think the reason to be a good practice is that if I want to change the behaviour I do not need to change the public interface of my class. Example:  public int Id  {     get;     set    {       if (value < 0)          value = 0;    } }   My question is, if I declare my property without the get and set methods I will not get the same effect? If I declare my property like this:  public int Count;   Can I change is behaviour without change the public interface? If I get the same effect then what’s the point of creating the get and set methods by default if in 90% of the time we don’t need them?


How to calculate 95% CI for cumulative incidence rate using R?

for example, 30 events during 10000 person-years, the cumulative incidence rate is 3 per 1000 person-years, how to calculate its 95% CI?


I am using a finite element program that outputs data in .txt files. And I want to input these data in my LaTeX code. Is there a way to input the data files so that they appear as the program output format? Program output data file:  LaTeX code: \documentclass[a4paper,oneside,openany,article]{memoir} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[danish]{babel} \usepackage{graphicx}     \graphicspath{{Figures/}} \usepackage{fullpage} \usepackage{mathtools}  \begin{document} \input{Data/shearwall_only_bc_A.txt} \end{document}  LaTeX output:


Should I keep all my .bib files in a single folder, or one with each .tex file?

Self-explanatory. I would be most interested to hear from researchers who have published a fair amount, decided one way or the other wasn't working for them, so switched — and why.  Related advice / observations welcome: e.g. "why the hell would you need more than one .bib file?"


I have a document with some problems in the positions of the last images. I copied the code here and after that, I copy the warnings that I get:      \documentclass[journal]{IEEEtran} %\usepackage{cite} \usepackage{graphicx} %\usepackage{caption} \usepackage{subcaption} \usepackage{epstopdf} \usepackage[cmex10]{amsmath} %\usepackage{footnote} %\usepackage{setspace} %\usepackage[framemethod=tikz]{mdframed} \usepackage{upquote}  \begin{document} \IEEEpeerreviewmaketitle  \section{Introduction}  \IEEEPARstart whatever   whatever  \begin{figure}[ht]     \centering     \includegraphics[width=75mm]{uno.eps} \caption{uno (5 paths, length 31 m-sequence) } \label{fig:uno} \end{figure}   text text text  \begin{figure}[ht] \centering     \includegraphics[width=75mm]{dos.eps} \caption{dos } \label{fig:dos} \end{figure}  text text text:   \begin{figure}[ht] \centering     \includegraphics[width=75mm]{tres.eps} \caption{tres } \label{fig:tres} \end{figure}  text text:  \begin{figure}[ht] \centering     \includegraphics[width=75mm]{cuatro.eps} \caption{cuatro } \label{fig:cuatro} \end{figure}  text text text:  \begin{figure}[ht] \centering     \includegraphics[width=75mm]{cinco.eps} \caption{cinco } \label{fig:cinco} \end{figure}   \end{document}   This is the warning:     LaTeX Warning: 'h' float specifier changed to 'ht'   Please, let me know if you need more details. Thank you!


9V battery and resistor are connected in series - the voltage across the resistor is < 9V. Why?

I am taking my first steps into learning about electronics as a hobbyist and I am struggling to understand something about resistance.  I have read about Ohm's law and it seems fairly straightforward so I set up a simple circuit on .    This circuit consists of a 9V battery and a single resistor (10 Ohms) with its leads connect directly to the 9V battery.          – Schematic created using   When I place the probes of their simulated voltmeter across the leads of the resistor, it reads 7.83V.  I can't make any permutation of Ohm's law produce that result.  What would be the expected voltage across the resistor?  Based on other posts on this site, I would expect the voltage to be 9V.  I don't know how that simulator (123D) calculates its values or how it simulates the circuit.  I am sure that I am missing something fundamental but so far I haven't figured out what.  Is the 123D circuit simulator right?  Should there be only 7.83V across that resistor?  I set up a similar circuit (using CircuitLab) and it seemed to show that the voltage would be 9V.  So I am confused.  Is this just an inaccuracy of the 123D's simulator?  Can someone help me to clear the fog?


Unable to paste from Linux PC to USB flash drive, but from another Windows PC it works, until repairing the USB drive

I just tried to copy a file from a PC with Linux to a USB flash drive like I did it some minutes before. Unfortunately, I could not click on the paste option anymore.  When attaching the same drive to a different PC with Windows 10 on it, it worked to paste files onto the PC. I switched back and forth multiple times, but no change.  Only after applying the automatic repair option in Windows and attaching the stick to Linux PC again, everything worked fine again there too.  If anybody has an idea of why it still worked on Windows, but not on Linux, I would be really interested in it.