How do I make two echos output to a text file on separate lines

So I have a shell script math.sh which takes a number as an argument and echos one added to it and one subtracted from it: #!/bin/bash  echo "Add: "$(($1 + 1)) echo "Subtract : "$(($1 - 1))  and my other shell script execute.sh is basically taking math.sh and a textfile as an argument and writing the output of math.sh to the text file. #! /bin/sh echo $1 > $2  However, the two echos are outputting to the text file on the same line as: Add: $(($1 ++)) Subtract : $(($1 --)) when I need it on separate lines like: Add:$(($1 ++)) Subtract:$(($1 --)) How would I do this without editing math.sh? Because my execute.sh needs to be able to output any shell script to the text file, not just math.sh, on separate lines.


"Your 1 hour 6 minutes are up" / "Your 1 hour 6 minutes is up"

I'm not sure which of these is more correct.      Your 1 hour is up.   This is easy. Singular.      Your 5 minutes are up   Again, simple enough. Plural.      Your 1 hour and 6 minutes is up.   Your 3 hours and 1 minute are up.   Should the plural be based on the hours or minutes?


How to convert strings into integers in Python?

I have a tuple of tuples from a MySQL query like this:  T1 = (('13', '17', '18', '21', '32'),       ('07', '11', '13', '14', '28'),       ('01', '05', '06', '08', '15', '16'))   I'd like to convert all the string elements into integers and put them back into a list of lists:  T2 = [[13, 17, 18, 21, 32], [7, 11, 13, 14, 28], [1, 5, 6, 8, 15, 16]]   I tried to achieve it with eval but didn't get any decent result yet.


It is correct and formal to include "of" when writing dates?

A friend of mine, native EN speaker, told me that the following is correct written like this:      We met on the 1st of June.   Is that really true? I cannot see any reference that these are used in written text.


I'm  getting timeout errors on google-related sites. If I try to open google.com, gmail.com, etc, it will keep displaying the "waiting reply" on the browser bottom, and the page won't open. If I am browsing another site that includes, say, www.google-analytics.com, ajax.googleapis.com, google fonts, etc, then it start loading, displaying a "connecting to [google-related site]" on the browser bottom, and stall at that point for a long time.  I can browse other sites fine and they load quickly. I can ping the domains with 0% loss and <100ms times. I can ping 8.8.8.8, I am not behind a proxy, there is nothing on my hosts file, I am not at work or in a networked environment: it is a home network behind a router. I connect using wifi (I am too distant to use wired).   Other users on the same network don't have the issue. I can both ping and browse the sites. I have pinged ajax.googleapis.com from my android and my other laptop, and they return the same IP than on this laptop. They also share the same external IP address, according to   The issue happens on ubuntu 12.04, and as it is cyclic but not frequent enough to make sure, I don't honestly remember if it happens on Windows 7 as well (it is a dual-boot machine). Rebooting the router won't help. Rebooting the computer fixes the problem, until it happens again.  It's been happening for a few months now. The last time it happened (earlier today) I performed a ping before and after the reboot. Here's the results:  before  $ping ajax.googleapis.com PING googleapis.l.google.com (74.125.21.95) 56(84) bytes of data. 64 bytes from yv-in-f95.1e100.net (74.125.21.95): icmp_req=1 ttl=47 time=157 ms 64 bytes from yv-in-f95.1e100.net (74.125.21.95): icmp_req=2 ttl=47 time=163 ms 64 bytes from yv-in-f95.1e100.net (74.125.21.95): icmp_req=3 ttl=47 time=156 ms 64 bytes from yv-in-f95.1e100.net (74.125.21.95): icmp_req=4 ttl=47 time=165 ms 64 bytes from yv-in-f95.1e100.net (74.125.21.95): icmp_req=5 ttl=47 time=157 ms 64 bytes from yv-in-f95.1e100.net (74.125.21.95): icmp_req=6 ttl=47 time=155 ms 64 bytes from yv-in-f95.1e100.net (74.125.21.95): icmp_req=7 ttl=47 time=159 ms 64 bytes from yv-in-f95.1e100.net (74.125.21.95): icmp_req=8 ttl=47 time=157 ms   after  $ping ajax.googleapis.com PING googleapis.l.google.com (74.125.134.95) 56(84) bytes of data. 64 bytes from gg-in-f95.1e100.net (74.125.134.95): icmp_req=1 ttl=47 time=207 ms 64 bytes from gg-in-f95.1e100.net (74.125.134.95): icmp_req=2 ttl=47 time=154 ms 64 bytes from gg-in-f95.1e100.net (74.125.134.95): icmp_req=3 ttl=47 time=154 ms 64 bytes from gg-in-f95.1e100.net (74.125.134.95): icmp_req=4 ttl=47 time=152 ms 64 bytes from gg-in-f95.1e100.net (74.125.134.95): icmp_req=5 ttl=47 time=157 ms 64 bytes from gg-in-f95.1e100.net (74.125.134.95): icmp_req=6 ttl=47 time=160 ms 64 bytes from gg-in-f95.1e100.net (74.125.134.95): icmp_req=7 ttl=47 time=154 ms 64 bytes from gg-in-f95.1e100.net (74.125.134.95): icmp_req=8 ttl=47 time=157 ms 64 bytes from gg-in-f95.1e100.net (74.125.134.95): icmp_req=10 ttl=47 time=154 ms 64 bytes from gg-in-f95.1e100.net (74.125.134.95): icmp_req=11 ttl=47 time=152 ms   The issue happens on different browsers, I installed epiphany and it shows the same behaviour.  I have inspected the network tab on firefox and it shows a single, unreplied GET request:   I installed wireshark and listened for HTTP GET requests; on other sites it pops up on the report, but on ajax.googleapis it shows nothing. I listened then for DNS requests, there are some differences:     If connect via telnet to the port 80 of a random site and perform a GET it works, but I can't telnet to ajax.googleapis.com (or it's IP), the connection never completes.


How do you estimate the total time reindexing an entire table will take in PostgreSQL?  I have a large PostgreSQL database, the primary table of which has 15 million rows with 100 columns and 200 indexes.  I'm seeing a problem where, after a night of processes loading data into the table, queries to the table are terribly slow for about 3-6 hours after the loading ends. However, these queries miraculously become fast again after 6 hours post-load.  Is this temporary slowness caused by Postgres updating indexes in the background? How do I speed up this processing? I can't find any parameters for controlling this.  I was thinking about running a REINDEX on the table immediately after loading ends, but I'm not sure how long this will take, and I'm worried it might take longer than the original load and will only worsen performance.  My table stores dozens of descriptors about a customer, and the indexes (many of them partial indexes) are for speeding up very routine queries run by users.  The database is nearly a terabyte, so I rarely load the entire thing to a dev environment. Instead, I have a script that copies a few thousand records.


Let $f:[a,b]\rightarrow\mathbb{R}$ be continuous on $[a,b]$ and differentiable on $(a,b)$. Show that if $\lim_{x\rightarrow a}f'(x)=A$, then $f'(a)$ exists and equals $A$. Use the definition of $f'(a)$ and the Mean Value Theorem.  Definition of a derivative:  Let $I\subset\mathbb{R},f:I\rightarrow\mathbb{R}$, and $c\in I$. We say $L$ is the derivative of $f$ at $c$ if $\forall\varepsilon>0,\exists\delta>0$ such that if $x\in I$ and $0<|x-c|<\delta$, then $|\frac{f(x)-f(x)}{x-c}-L|<\varepsilon$. We say $f$ is differentiable at $c$ and denote it as $f'(c)=L$. We can say $f'(c)=\lim_{x\rightarrow c} \frac{f(x)-f(x)}{x-c} = L$  Mean Value Theorem:  Suppose $f$ is continuous on a closed intervale $I:=[a,b]$ and that $f$ has a derivative in the open interval $(a,b)$. Then there exists at least one point $c\in(a,b)$ such that $f(b)-f(a)=f'(c)(b-a)$  Quite honestly I do not see how I could make these two things work together. Also, if we simply replace $f'(x)$ with its limit definition we would have a limit inside of a limit, and I am not sure how to deal with that either.  Any help in pointing me in the right direction would be greatly appreciated.


How do you sort a PHP array of objects by displayName and output them alphabetically in a smarty template?  if(Tools::getValue("action") == "contacts") {     $config = _PS_CLASS_DIR_ . 'hybridauth/config.php';     require_once(_PS_CLASS_DIR_ .  "hybridauth/Hybrid/Auth.php" );      $serviceProvider = Tools::getValue("service");     $hybridauth = new Hybrid_Auth( $config );     $service = $hybridauth->authenticate( $serviceProvider );     $contacts = $service->getUserContacts();      if (is_array($contacts)){         self::$smarty->assign('contacts', $contacts);         self::$smarty->display(_PS_THEME_DIR_.'addressbook.tpl');     }     $service->logout();      die(); }   I was outputting the list like this:

         {foreach from=$contacts key=k item=contact}
                 <input type="checkbox" id="{$contact->identifier}">

                         {if isset($contact->photoURL)}                         photoURL}" onclick="toggle('{$contact->identifier}')"/>                         {else}                         identifier}')" />                         {/if}

                             {if ($contact->displayName !== '')}                                 {$contact->displayName}                             {else}                                 {$contact->email}                             {/if}

         {/foreach}

   but now I'd like to modify it in an alphabetical index..

A

B
         ...

A

             {foreach from=$contacts key=k item=contact}
             {if ($contact->displayName !== '')}                 {$contact->displayName}             {else}                 {$contact->email}             {/if}

B

             {foreach from=$contacts key=k item=contact}
             {if ($contact->displayName !== '')}                 {$contact->displayName}             {else}                 {$contact->email}             {/if}

         ...


Proving that $2^{n+2} \mid a^{2^{\large{n}}} - 1 $, for $a \in \mathbb{Z}$ odd, $n \in \mathbb{N}$

How can I prove this? I was thinking of using strong induction on $n$, and I've managed to prove the base case using induction again on $a$,  $$2^3 \mid a^{2} - 1$$  but I couldn't work my way around the rest of the proof with the usual properties of divisibility (if $m \mid n$, then $a^m - 1 \mid a^n - 1$, etc).


Provide a complete proof for the statement: prove that $\underbrace{\sqrt{2+\sqrt{2+\sqrt{2+\dots+\sqrt{2}}}}}_{\text{n radicals}}=2\cos{\frac{\pi}{2^{n+1}}}$


Is it safe to use a laptop AC adapter with 220V power if the AC cable is not rated for 220V?

The AC adapter supplied with my laptop is designed to accept voltage in the range of 100-240VAC at 50-60Hz, but the AC cable that plugs into the adapter unit itself is only rated to 125VAC 7.5A 2.5A.  I know the adapter can accept 220V power, but is it safe to use this cable with the AC adapter to plug into a 220V socket?  Edit: The part in question is a 90W HP Smart AC Adapter.  The laptop does not cause the AC adapter to draw more than about 80 watts from the socket (as measured with a Kill A Watt meter).  Edit 2: The amperage rating of the cable as marked on the attached label is 2.5A, not 7.5A.


Not able to install tree comand in ubuntu

My ubuntu is running on windows 7 using VMWARE player. I was try to install tree command . but it failed. could you help me why?  I am using "sudo app-get install tree" command and it is failing with   E: unable to locate package tree   Ubuntu version is 14.04 LTS (GNU/Linux 3.13.0-24 generic x86_64)  Regards, Koushik


I fermented 5 gallons of cider from 1.044 to 1.0. It's very tart, so I want to add 2 lbs of honey to sweeten it up.   I also want to bottle it with some carbonation. How do I prevent the honey from fermenting it back down to 1.0 and still sweeten the cyser?   I looked at carbonation tablets, but they just appear to be modified sugar cubes. If I stop the fermentation with Campden, can I still bottle carb it?


I am trying to prove relation between G.C.D and L.C.M for three integers. Is the following relation even true. If yes, then I need hints please. let a, b and c be any integers then, $$lcm(a,gcd(b,c))=gcd(lcm(a,b),lcm(a,c))$$ Or in notations, $$[a,(b,c)]=([a,b],[a,c])$$


$$\int_{-\infty}^{\infty}{{\rm d}x \over 1 + x^{2n}}$$  How to calculate this integral? I guess I need to use residue. But I looked at its solution. But it seems too complicated to me. Thus, I asked here. Thank you for help.


The question asks to prove that  $$\|v\|_{1}\|v\|_\infty \leq \frac{1+\sqrt{n}}{2}\|v\|^2_2.$$  I have shown that $\|v\|_1\|v\|_\infty \leq  \sqrt n \|v\|_2 \|v\|_\infty = \sqrt n \|v\|_2^2 \frac{\|v\|_\infty}{\|v\|_2} \leq \sqrt n \|v\|_2^2 $. However, this is not as tight as the desired form. Could someone provide a hint or an answer?


Is there an application to manage config files in the /etc directory with version control?

I want to use version control for config files in Ubuntu server.    But I found it's not easy to simply use git for the whole /etc directory, because many files don't need to be tracked and sometimes the system will write to files like logs which should be ignored.    Is there an application that can do this and make it easy? If it is based on git that is better.


Identify short story from Year's Best Science Fiction, where school friends descend an ancient stairway into a deep ravine looking for adventure

This was a short story/novella published in Gardner Dozois's "The Year's Best Science Fiction" series. It was probably included somewhere around the 2003 20th edition, give or take a number of years.  The story is about 3 or 4 high school friends, one female, who embark on a journey of discovery by traversing down an ancient stairway into the depths of a steep deep ravine to search for the remaining traces of the "ancients." The friends don't really know where their lives are headed and are each descending the ravine in search of some inner truth.  Near the top, the stairway is well maintained but as they descend deeper it becomes more ancient and dilapidated until it is barely traversable. As they near the bottom, where the ancients had their cave dwellings, one person finds his inner strengths, one wills himself out of existence, and the female finally understands everything.  Believe me, the story is magnitudes better than my description of it.  Can you please identify it?


What is different between "M" and "A" with exposure compensation modes?

Are there any different in using camera in manual mode vs aperture mode plus exposure compensation? This the same according to dynamic range or maybe something other difference?


how i can get a good shading of this carved object?

so here you can see that i triagulate the mesh but it doesnt change anything at all, and the other pic i keeped the ngons (that i dont wont in my mesh by the way so i need the mesh in those parts triagulated) and neither solves anyting, so how can i get a good shading of the normals, i am using a normal editor called Y.A.V.N.E to make a good shading to my models but sometimes when topology isnt good, or in carved object through booleans this issue happens in most of mesh objects.last pic is a new model that i am developing


Can't display the date correctly in a file generated by a cronjob

I'm doing a cronjob task which creates a daily database backup. To desctinct the daily files, I name them as follows: dump- (the current date). The backup operation went well, but the date is not interpreted as it should be (dump-$(date '+%Y-%m-%d')) instead of dump-14-12-2018.  #filename=dump-$(date '+%Y-%m-%d') #*/3 * * * * cd /bdd-backups/ && mysqldump --all-databases >  $filename.sql -u xxx -pxxx


How to give permissions to read write but not delete the file

I want to give users the ability to create write and read files in other user directory, but not to have option to delete the file after created ( sticky bit not going to work here ... )  for example :  I have user manager  with directory repository I have user worker1 that need to write files to /manager/repository but can't delete the files  I have user worker2 that need to write files to /manager/repository  but can't delete the files I have user worker3 that need to write files to /manager/repository  but can't delete the files   but worker 1-2-3 can't delete the files after created only manager and root can delete the files worker 1-2-3 created.  I tried few chown and chmod tricks with applying the sticky bit without success.


How to add fixed amount of empty dicts to Python list?

If I create a list with an empty dictionary in it, then multiply that list by a number, it seems that instead of adding more dictionaries to the list, python just populates the list with more references to the same dictionary.  >>> d = [{}]*3 >>> d[0]["x"] = 43 >>> d [{'x': 43}, {'x': 43}, {'x': 43}]   As you can see, adding an element in one of the dictionaries leads to insertion into all of them, which means that there is in fact only one dictionary, with three pointers in d to it.  Why is this? What is the best way to add a number of empty dicts to a list in Python?


What's the benefit of paying more fees on wealthfront?

I recently become interested in wealthfront, and plan to make the first real investment in my life. However, as I read more about mutual funds and ETFs, I realize that wealthfront is actually built upon on vanguard's mutual funds and ETFs.  The fees of wealthfront is higher than vanguard's mutual funds and ETF. Then I get a question: why pay more if I can buy from vanguard directly.  I find one answer to that wealthfront is more tax efficient. But this seems a minor reason to me. The other answer is that the minimum investment of wealthfront is smaller. I actually don't care about that.   Then what's the real advantage of wealthfront over vanguard?


How do I install Chromium from the command line?

I have already tried using the Ubuntu Software Center, but it won't install the Chromium browser. How can I install it using the terminal?


Motive : This code aims to provide default values to structure members inside structure defination

Here's my code:  #include<stdio.h>  struct parent_structure {     char pe_1 = 'a';  };  struct child_structure {     int ce_1 = 1;     int ce_2 = 2;     int ce_3 = 3;     struct sample_structure     {         int ss_1 = 1 ;         char ss_2 = 'a';     } ce_4 ;     struct parent_structure ce_5; };  int main() {     struct child_structure c_1;     printf("size of element : %d",sizeof(c_1));      return 0; }   ERROR:  test.c:5:15: error: expected ':', ',', ';', '}' or '_attribute_' before '=' token      char pe_1 = 'a';                ^ test.c:10:14: error: expected ':', ',', ';', '}' or '_attribute_' before '=' token      int ce_1 = 1;               ^   PROBLEMS:  * If i initalize value at the time of defining structure   it gives the error shown above.   I was trying this question for a while and if I initialize values to members of structure like at the time of declaration of structure it shows an error.  Please tell me what is wrong with this?


MOOC's certificates on graduate admissions

Do departments look at MOOC's certificates favorably during the graduate admissions process? Will it give me any advantage over students who don't have them if I am trying to enter a PhD program?


It obviously requires single- and multi-variable calculus and linear algebra, but what else? And where do you suggest to get that background from?this isn't a duplicate because I'm for the math needed precisely and only for the feynman lectures.


JasperReports NullPointer only when running from complied jar

I am getting a weird null pointer, If I run the project from netbeans, the programs works just fine, but when I run the compiled jar I get a weird NullPointer whe I'm trying to load the JasperReport I have this class that generates the report, by obtaining an InputStream from within the jar, generates the parameters Map, and selects the appropiate Connection: class ImpresorRemesas {  void mostrarRemesa(String remesa) {     String titulo = String.format("Remesa %s", remesa);     InputStream reporte = getClass().getResourceAsStream("/com/ttracasa/remesas/remesa.jasper");     Map parametros = new HashMap();     parametros.put("remesa", remesa);     Image logo = new ImageIcon(getClass().getResource("/com/ttracasa/remesas/imag_tracasa.jpg")).getImage();     parametros.put("logo", logo);     ReporteJasper.mostrar(titulo, reporte, parametros, Remesas.connection); } }  Notice that I also parametrize resources from within the jar to the Map, I don't think is relevant but nevertheless. This InputStream, Map and Connection are passed along to a static utility class, which loads the JasperReport , fills the JasperPrint and displays the JasperViewer public static void mostrar(String titulo, InputStream stream, Map<String,Object> parametros, Connection connection) {     try {         JasperReport jasperReport = (JasperReport) JRLoader.loadObject(stream);         JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parametros, connection);         JasperViewer jasperViewer = new JasperViewer(jasperPrint, false);         jasperViewer.setTitle(titulo);         jasperViewer.setVisible(true);     } catch (JRException ex) {         UtileriaGui.mensajeError(ex, null);     } }  If I run the project from Netbeans, it works as expected, however, after I compile the jar, I get this NullPointerException. java.lang.NullPointerException at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source) at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.readShort(UnknownSource) at java.io.ObjectInputStream.readStreamHeader(Unknown Source) at java.io.ObjectInputStream.<init>(Unknown Source) at net.sf.jasperreports.engine.util.ContextClassLoaderObjectInputStream.<init>(ContextClassLoaderObjectInputStream.java:56) at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:277) at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:262) at com.ttracasa.utilerias.ReporteJasper.mostrar(ReporteJasper.java:36) ...  I thought it might have something to do with the jar, but I checked and the resources are inside at the expected path. I also thought it might have to do with my path use of slashes (i.e. /com/ttracasa/etcetera instead of /com\\ttracasa\\etcetera) but does not seems to be the case, it might have something to do with the InputStream being mishandled before JRLoader works with it, but why? what am I missing? it works like a charm within the IDE. The class ImpresorRemesas and my utils are in different jar files, but I dont think it should make any difference. According to  this method returns null if no resource with this name is found. I checked and this seems to be the case, when running from inside the jar the resource can't be found because if I check the stream it is in fact NULL Perhaps it has something to do with how the manifest is being generated:   Manifest-Version: 1.0 Ant-Version: Apache Ant 1.10.4 Created-By: 1.8.0_201-b09 (Oracle Corporation) Class-Path: lib/mysql-connector-java-5.1.23-bin.jar lib/jcalendar-1.4.  jar lib/jasperreports-6.9.0.jar lib/commons-beanutils-1.9.3.jar lib/c  ommons-collections4-4.2.jar lib/commons-digester-2.1.jar lib/commons-  logging-1.1.1.jar lib/groovy-all-2.4.16.jar lib/itext-2.1.7.js6.jar l  ib/poi-4.0.1.jar lib/jfreechart-1.0.19.jar lib/UtileriaGeneral.jar li  b/Permisos.jar lib/Oficinas.jar Main-Class: com.ttracasa.remesas.Remesas


Difference between sentences using 'was' and 'being'?

What is the meaning of below sentences using was and being?     He committed suicide after he was severely beaten up by four teachers. He committed suicide after being severely beaten up by four teachers.


When, where and **how often** do you find polynomials of higher degrees than two in mathematical, pure/applied, research?

A formula for solving a polynomial of degree three, see  link; $ax^3+bx^2+cx+d=0$, is  $$\begin{align} x\quad&=\quad       \sqrt[3]{           \left(               \frac{-b^3}{27a^3} + \frac{bc}{6a^2} - \frac{d}{2a}           \right)            +                 \sqrt{               \left(                   \frac{-b^3}{27a^3} + \frac{bc}{6a^2} - \frac{d}{2a}               \right) ^2                 +                \left(                   \frac{c}{3a} - \frac{b^2}{9a^2}               \right) ^3            }       }\\       &+\quad       \sqrt[3]{           \left(               \frac{-b^3}{27a^3} + \frac{bc}{6a^2} - \frac{d}{2a}           \right)            -                 \sqrt{               \left(                   \frac{-b^3}{27a^3} + \frac{bc}{6a^2} - \frac{d}{2a}               \right) ^2                 +                \left(                   \frac{c}{3a} - \frac{b^2}{9a^2}               \right) ^3            }       }       \;-\;\frac{b}{3a} \end{align}$$     Unlike quadratic, cubic, and quartic polynomials, the general quintic   cannot be solved algebraically in terms of a finite number of   additions, subtractions, multiplications, divisions, and root   extractions, as rigorously demonstrated by Abel (Abel's impossibility   theorem) and Galois. However, certain classes of quintic equations can   be solved [...] Source:    At levels of $5^{\text{th}}$ degree polynomials, things are starting to look really serious in my eyes. My question is:     If it is possible to not answer subjectively: When, where and how often do you find polynomials of higher degrees than two in mathematical, pure/applied, research?


i am coding a double linked list, in each node there are two slots, one for information and the other for data. Both inputs are choosen by user in console.The information slot is basically a string , meanwhile the Data slot must be an integer ( [information, data] <-- node is made like this,) now if i have more than one nodes on the linked list , i have to check if the new Node i am inputting into the list has the same Information and same data ( its ok if two nodes have same data OR same information)      public void nodiInformazioneguale(String information, int key) {       Node n = new Node(information, key, null, null);       if (n.getInformazione() == head.getNext().getInformazione()&&n.getData( == head.getNext().getData()) {          System.out.println("Insert another information && key");      }  }


Prove that in ring $\mathbb{Z}, \forall a,b \in \mathbb{Z} $, $(a,b) = (d)$, where $ d = \mathrm{gcd}(a,b)$

Prove that in ring $\mathbb{Z}, \forall a,b \in \mathbb{Z} $,   $$(a,b) = (d),$$ where $ d = \mathrm{gcd} (a,b)$. Also, generalize this for all finite generated ideals in $\mathbb{Z}$.   I don't even know how to start. I am not sure if I got the definition of generated ideal. When I have $(a)$, what does that mean?


How to explain visually and in a mathematically simple manner why the moment of inertia of a system is minimum at its center of mass?

I've been solving different problems related with finding the moment of inertia in a set of different particles, and ojects of known rotational inertias. Let's say spheres, cylinders, rings, rods and so on.  To put it in perspective, let's assume that we have a cube with four point masses in each corner and I want to find the moment of inertia of the whole system when the moment is at minimum.  I'm assuming that when the degree of rotation (i'm not sure if the term is correct, please indicate me if this is wrong) is the least then the contribution of the rotational inertia is not affected by any additional radius as when there is some offset from the center of mass of the object.  Typically when I want to know what will be the rotational inertia of a system I would use the principle of superposition of rotational inertia for the system and then Steiner's theorem to find the moment of inertia for an axis paralell to that point.  Hence this formula is expressed as:  $I_{p}=I_{o}+mr^2$  where $I_{p}$ is the rotational inertia of the system about that point and $I_{o}$ the moment of inertia where axis of rotation for that object is in its center. Since there isn't any additional radius to add, the whole expression would be reduced to   $I_{p}=I_{o}$  But I'm not sure if this is a valid conclusion.  There exists a  which has attended this topic but in a mathematical aspect but it is lacking of a justification in the sense of how to visually explain this fact.   Therefore, does it exist a video or an animation or an experiment on how can this be proved? I don't know if at this point I'm explaining my major confusion. Can all of this be proved in layman terms?.  The existing mathematical proofs for this are a bit too sophisticated for my current knowledge of mathematics, but does there exist an introductory calculus explanation for this behavior? Can someone help me?


What can cause an answer to get deleted without information about who actually deleted it?

Usually when answer gets deleted directly (i.e. not as side effect of its parent question deleted) it says "deleted by [name here] [time stamp]". Plus, it always leave a revision.  However, I just stumbled over  on Stack Overflow:        Weird, don't you think? Looking in the , nothing strange in there and nothing strange in  as well.  Finally, the last straw... :        Another thought was maybe some automagical conversion to comment, but no such comment exists.  Can anyone shed some light over this phenomenon?


Word to describe the knowledge of certain number of people

I'm looking for a word that can explain the specific knowledge that just certain number of people have. For example, when doctors talk, they use specific vocabulary for their field.      When doctors talk they use their [specific knowledge] which is only understood by them.


Why can't I use switch statement on a String?

Is this functionality going to be put into a later Java version?  Can someone explain why I can't do this, as in, the technical way Java's switch statement works?


I have noticed recently that the syntax for an image has changed recently. What I remember (and still works) is this:  ![Image description][2]   But now, it looks like this:  [![Image description][2]][2]   What happened? Why does it look like this?


Why is it that the "ow" in now makes the /aʊ/ sound while "ow" in snow makes the /oʊ/ sound? Has this always been, was it spelled differently and then changed, or was it spelled this way but the sound changed?


What Stack Exchange site is the right one for API/library questions?

I recently had some beef with other users on Stack Overflow. And why I'm getting the feeling that giving context is not a desired thing on Stack Overflow, I'm hopeful it might be here, so I'll give a little bit of context before coming to my actual question. Basically, I was facing a programming problem (streaming audio data from a mobile device), and I couldn't figure out what what the standard solution for this problem was, so I was asking what the standard solution for this is. The question was closed for being too broad, which I still find odd. I would have understood if the question had been closed for being off-topic for Stack Overflow, citing 4. of the listing on the Stack Overflow Help page listing off-topic types of questions, being:   Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.   While I don't think that is exactly the same as asking for what is the standard way, I can understand that it is possible to consider my question as asking for a recommendation. But I don't want to argue about that distinction as well. Nor do I want to talk about how badly this was handled by some users (deleting helpful comments from another user and myself without giving a reason why, for instance). It might be worth another topic here how to avoid such behaviour, but never mind now. In the end, I was so angry that I deleted the question. (*) What I want to ask is the following:  If I'm having a software development issue I cannot easily solve by myself, it is usually that I want to do something and would like to know if there's a standard solution for this. Usually some API or library, or even protocol, which is commonly used for tasks like this. Of course, I'm googling things then, but it happens that I can't find the answer, or that all answers I can find are wildly outdated, citing solutions that no longer exist.  In my opinion, these are legitimate questions about software development. Now, while it's debatable if they fall under the clause stated above, let's assume for now they would be considered off-topic for Stack Overflow. What Stack Exchange site would such kind of questions be on topic? (*) Footnote: I think I found an answer to my original question by now (still doing some research on it). I think if someone suggested that, I would have accepted the answer and the answer would have not been a recommendation for a software library, which underlines my point that I'm not convinced my question actually was off-topic. This is not a duplicate of the question where to ask for software, since I am not. I‘m asking where to ask what technology to use. I don’t want software recommendations, but platform/protocol/general technology. Please note my comment below, I find these superficial duplicate suggestions very unwelcoming. To illustrate the difference: if I'm asking for a good way to distribute information on the internet, the answer could be to suggest using a web server. A software recommendation would be Apache, for instance. A software recommendation is something you want when you already know what technology to use. This is a step before that, choosing the right direction.


Prevention of SQL injection in password input field? PHP

In a sign up / login  form , we validate user input like username and email  and make sure that it does not contain any special character . my question is about the Password input field . Is it possible to inject sql query using password input field? because we allow user to add special characters to it.


If a projectile attack at a monk misses, can the monk use Deflect Missiles to catch the projectiles and throw them back?

Say there are projectiles aimed at a monk that don’t quite beat the AC, leading to a missed attack, but the roll was close to hitting (only falling short by 3-5).  Can monk use Deflect Missiles to catch the projectiles and throw them back at the attacker in a new Attack action?


Consider the following family of polynomials $$P_n(X)=\sum_{i=0}^n(n+1-i)X^i,\,n\ge 1$$ Let’s write down the first few $$ \begin{align} &P_1(X)=X+2\\ &P_2(X)=X^2+2X+3\\ &P_3(X)=X^3+2X^2+3X+4\\ &P_4(X)=X^4+2X^3+3X^2+4X+5 \end{align} $$ My claim is that this family is a family of irreducible polynomials in $\Bbb{Z}[X]$. I proved it for $n \le 5$ by the Eisenstein criterion after the change of variable $X=t+1$ For $n=6$ after the change of variable the polynomial writes as follows $$Q_6(t)=P_6(X-1)=t^6+8t^5+28t^4+56t^3+70t^2+56t+28$$ and the Eisenstein criterion (only workable $p=2$) doesn’t work anymore. By reducing $\bmod 7$ we prove the claim for $n=6$. I tested with Mathematica and irreducibility is checked for $n\le 150$. I noticed $$P_n(X)=XP_{n-1}(X)+n+1$$ But I am struggling to find a generic proof. I have given up on counterexample. Thanks for your help.


I know that given a differential equation, one that is separable, it is not fully correct to handle the $\frac{dy}{dx}$ as a ratio. Meaning that it is not simply a small difference in $y$ over a small difference in $x$, as the difference is infinitesimal. It is simply a notation created by Leibnitz that is equivalent to $f'(x)$.  My question is if this is the case then why is this method for ODE still used and taught? Is the answer always correct when dealing with ODE using this method or is does it lead to wrong results in some cases?


Do you reroll a dragon's breath weapon recharge time after each breath attack?

Dragon breath weapons have a recharge time. For example, a  can use its breath weapon every 1d4 rounds.  Do you re-roll the recharge time each time you use the breath weapon? Or once per (...encounter? ...day? ...dragon?)


Please help with this problem caused by autocite command

I'm new to latex. It has been now almost one month trying to learn for my thesis. If I had a problem I would just type it here, and finally get the solution. But with this command autocite it is always problematic. It is now been 4 days trying to figure it out. Well I switched from natbib to biblatex and even biber. Everything works fine and I had my bibliography and I used the style verbose. But when I try to use the command autocite it doesn't show them.   On the other hand, I worked with footcite it gives me the citation in footnotes, which I do not understand. But I don't know why this command do not work in my .tex file even though I switch to biblatex and biber.  An example of what i did  \documentclass[12pt,a4paper]{book}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[french]{babel} \frenchbsetup{FrenchFootnotes=false}%more common footnote style \usepackage{fnpct}%just a cool package for nice footnotes \usepackage{csquotes} \usepackage[hang,flushmargin]{footmisc} \usepackage[pdftex]{graphics} \usepackage{enumerate} \usepackage{{\images}} \usepackage{blindtext} \usepackage{tikz} \usepackage{amsmath} \usepackage{amssymb} \usepackage{xcolor} \usepackage{epigraph} \usepackage[nottoc]{tocbibind} %to disply bibliography in the table contents  \usepackage[backend=biber,style=verbose-trad2,natbib=true,sorting=nyt]{biblatex}  \addbibresource{mabib.bib}  \begin{document}  Some texte\cite{cdechow_2017}    some texte\footcite[p.12]{brown_corporat_2016}  \printbibliography  \end{document}


Influence of the scale factor on the projection

I'm currently reading documentation about map projections to understand the source code of the Proj4 project.  The scale factor is named in a variety of sources I read. This sources explained its definition and its value for some projections.   In the source code of Proj4, for the mercator projection (sphere and ellipse case), the scale factor influences the coordinates on the projection :   //P->k0 is the scale factor xy.x = P->k0 * lp.lam; xy.y = - P->k0 * log(pj_tsfn(lp.phi, sin(lp.phi), P->e));   Why and how I should use the scale factor during the computation of the projection ? Is there any valuable resources on the web ?  This question in asked in the sense of projection computation. I can find the formula for the inverse and forward projection as well as the scale factor in a various of resources, but no one explains how I should use both in a algorithm. You have the definition of the projection and the definition of the scale factor, but it's not clearly written that I should multiply or divide the result by the scale factor.   Is it a general rule : if I find the formula for any projection with the related scale factor, should I, in all cases, always divide or multiply the results by the scale factor ?


Using ArcPy to run Report Layout File (RLF) report and add to layout (for Data Driven Pages)?

I currently have a data driven page template set up which I manually cycle through and for each page run a Report Layout File (RLF) report and then add this to the ArcMap layout.  The added element is then positioned on the legend to give additional data to the map user.  The RLF draws it's data from the attribute table of a map layer that is not the DDP index layer.    I now want to automate the production of these maps.  I have no problem with the scripting for the data driven page and exporting side of things, but not sure how to go about adding the report for each page before exporting.    Can anyone suggest if there is a way to do this?   I looked at arcpy.mapping.ExportReport but couldn't see how this works with bringing them back into the mxd and positioning them?  It seems to be more for exporting standalone reports to later add to a book.  Also the outputs were not quite the same as what the run report option within Arcmap produces, which is perfectly aligned to the size I need. They were either the wrong size, layout, or quality.    I also considered adding tables as is described  but don't want the grid lines to show.


How can I make my UI to load faster and imrpove performance?

I have an UI which contains a button and a list which contains some data. When the user clicks on the button before the list is loaded, it gives a NPE. I added a null check like this which prevents the crash.  //here cardData is the List  which needs load.  if (cardData != null) {     for (CardDisplayData display : cardData) {                // do something             }    }   I was doing this at the end of onCreate        new FetchData().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR).get();   I removed the null check and replaced the executor. Now, the list data loads before opening the UI and there is no crash anymore. But this has slowed down the performance as the UI loads first and then implements the button listener.   My Async task,   private class FetchData extends AsyncTask<Void, Void, Void> {          @Override         protected Void doInBackground(Void... voids) {             displayData(); // here is the data that needs to be displayed             return null;         }          @Override         protected void onPostExecute(Void aVoid) {             super.onPostExecute(aVoid);             try {                 Collections.sort(cardData);             } catch (IllegalStateException ise) {                 LOG.warn("Illegal state exception, ignoring it {}", ise);             }             PrintStockAdapter adapter = new PrintStockAdapter(getApplicationContext(), cardData);             details.setAdapter(adapter); //details is a listView             adapter.notifyDataSetChanged();         }     }


How to find out the file path I dropped my Python script from? I want to call an external application for image post-processing from a Python script and I want the application to be in the same folder as the script. And I want Blender to automatically find that application.  I know about this question: "" but it's not the same


I was running few commands and suddenly my apt-get command stopped working, reporting command not found error.   Kindly help. I am blocked due to this.  I tried commands from this answer -


Suppose $f_1, f_2$ are holomorphic function on the disk unit $\mathbb D.$ If $\left|f_1\left(z\right)\right|+\left|f_2\left(z\right)\right|=1, \forall z\in \mathbb D.$ Prove that $f_1$ and $f_2$ are constants. My attempt $\left|f_1\left(z\right)\right|+\left|f_2\left(z\right)\right|=1, \forall z\in \mathbb D.$ $\implies$ $|f_1(z)|<1$ and $|f_2(z)|<1$, If the domain is $\mathbb C$ instead of $\mathbb D$, I could I have apply lioville's theorem. Since, $\left|f_1\left(z\right)\right|+\left|f_2\left(z\right)\right|=1$, so $f_1(0)=0$ and $f_2(0)=0$ is not true simultaneously. So, I can not use Shwartz lemma. I am helpless. Please help me.


Does Super Control Panel Exist for Windows 8 and Windows 8.1?

Naming a new folder on your desktop Super Control Panel.{ED7BA470-8E54-465E-825C-99712043E01C will display all the settings in Windows 7; is there an equivalent to this for Windows 8 and Windows 8.1?


Why does the "which" command give duplicate results?

which -a ruby gives me  /usr/ruby /usr/ruby /usr/ruby   It gives the same path three times. Why does this happen?


Is a rating in a set range a categorical or numerical variable?

For example, assume people were asked to rate a movie on a scale from 1 to 10, and their rating had to be a whole number in this range (so no decimals).   Would this rating be classified as a numeric or categorical variable?  Also to take this a step further, say we asked them to rate 2 movies on the same scale, and then summed the result to produce a "result" variable. Would this be categorical or numeric?  I would be inclined to say numeric for both, but technically, there are only a set number of ratings they could give which would mean the "result" variable would have to be a number between 1 and 20 therefore, they could potentially be classified as categories?  What would you classify these variables in these scenarios as?


Diagrammatic Representation of Classes - Is there a standard?

I'm in the process of writing php based code as an exercise in OOP (its a WP Plugin, but I don't believe that the question is WP specific, so posted here).  I've got loads of ideas and stuff floating around my head much quicker than I can type them into working code. So I'm wondering if there's a standard method for scribbling them on a sheet of paper that will represent dependencies, links, etc? Or even if anyone has any ideas that work for themselves?


When Canonical will update meta-release-lts file?

Since Ubuntu 20.04.01 was released a few days ago I expected that devs will update https://changelogs.ubuntu.com/meta-release-lts or https://changelogs.ubuntu.com/meta-release to meet new release. But still, there is no description for the new release so do-release-upgrade don't find a new version without -d argument I think that LTS can be upgraded after new .01 version is out


How to understand $L_4$ and $L_5$ Lagrange points gravity balance?

It's relative easy to understand gravity balance of Lagrange points $L_1$, $L_2$ and $L_3$. But I am having a hard time to understand how a body would be "kind of" balanced out on Lagrange points $L_4$ and $L_5$.


Calculating Optimal Geohash Precision from Bounding Box

I'm using Elasticsearch's  to plot clusters on a map (using Leaflet). I understand that for larger areas a lower precision setting should be used to limit the number of buckets created/returned.  How should I determine the appropriate precision value to request?  Is there a standard or recommended formula for calculating the optimal precision based on a bounding box and/or zoom level? Is it better to just map zoom levels to precision values (I know that's probably easiest.)


if $u(x,y) $ satisfies $u_{xx} + u_{yy} = 0$ then    $v=u(\frac{x}{x^2+y^2},\frac{y}{x^2+y^2})$ satisfies $v_{xx} + v_{yy} = 0$   I tried using the chain rule and it didn't work for me.. I think I might have missed something maybe..  Could anyone show how to properly write $v_{xx} $ and $v_{yy} $ ?   Thanks.  EDIT :  my question is also about generally differentiating such function, like is that okay to do :   let $t =\frac{x}{x^2+y^2}$ and $s=\frac{y}{x^2+y^2}$ $v_{x } = \frac{\partial u}{\partial t} \frac{\partial t}{\partial x} + \frac{\partial u}{\partial s} \frac{\partial s}{\partial x}    $  or if $v$ is just substituting any $x$ in $u$ for $\frac{x}{x^2+y^2} $ and any $y$ in $u$ for $\frac{y}{x^2+y^2}$ then maybe $v_{x } = \frac{\partial u}{\partial x} \frac{\partial t}{\partial x} + \frac{\partial u}{\partial y} \frac{\partial s}{\partial x}  $


Zip a file without including the parent directory

I have a folder that contains multiple files  folder  artifact1.app artifact2.ext2 artifact3.ext3 ...   My goal is to zip the file from outside this folder (so without using cd command) without including the folder dir. zip -r ./folder/artifact.zip ./folder/artifact1.app  This command includes the folder dir in the final zip. Any hints? Related question:


Do I need transit visa for Hong Kong airport

I'm a Bangladeshi citizen... I'm going to Nanjing bt there will be transit in Hong Kong airport about 2 hr...in terminal 1 Via cx  Do I need transit visa for transition in Hong Kong?plz help


android.util.Patterns Unit test returns NullPointerException

I'm starting to work with unit tests in android  I have trying to test a method that uses:  android.util.Patterns.EMAIL_ADDRESS.matcher(validEmail).matches()   it should return true as I added this in my build.gradle  testOptions {      unitTests {         returnDefaultValues = true     } }    Still the test throws a NullPointerException.   I have two questions:  1- How do I fix this?  2- Should I reconsider my design and remove the android dependency to a mock object.   // @ LoginPresenterTest @Test public void clickOnLogin_loginSuccess(){     loginPresenter.login(validEmail, validPassword);     verify(loginView).setLoginButton(false); } // LoginPresenter public void login(String email, String password) {      loginView.setLoginButton(false);     if(!isValid(email, password)){         loginView.setLoginButton(true);         return;     } } // Validation public static boolean isEmailValid(String email){     return !(email.isEmpty() || !android.util.Patterns.EMAIL_ADDRESS.matcher(email).matches()); }   When android.utills is commented their will be no exception.


Calling Android Activity from exported Unity project, NullPointerException

I have exported an Android Unity project to create and Android Studio project (as detailed here: )   While, the project will now run through Android Studio, I am unable to load an Activity which I created after importing the project.  I am wondering is this possible?  I have checked other solution for NullPointerException when calling a new class in android and was unable to see any relating issues, making me question if my approach to this problem is correct  The unity project is a simlple button that will access a method in the UnityPlayerActivity (proved through Log), before attempting to load the new activity AndroidTestActivity, which just contains a TextView.  Code is as follows  Unity C#:  public void Click () {      Debug.Log("Clicked");      AndroidJavaObject jo = new AndroidJavaObject("com.Test.AndroidTest.UnityPlayerActivity");     jo.Call("Created"); }   UnityPlayerActivity.java  public void Created(){     Log.e("tag", "Created");      Intent i = new Intent(this, AndroidTestActivity.class);     this.startActivity(i); }   LogCat Output:  E/tag: Created E/Unity: AndroidJavaException: java.lang.NullPointerException: Attempt to  invoke virtual method 'android.app.ActivityThread$ApplicationThread android.app.ActivityThread.getApplicationThread()' on a null object reference      java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.ActivityThread$ApplicationThread android.app.ActivityThread.getApplicationThread()' on a null object reference          at android.app.Activity.startActivityForResult(Activity.java:4400)          at android.app.Activity.startActivityForResult(Activity.java:4358)          at android.app.Activity.startActivity(Activity.java:4682)          at android.app.Activity.startActivity(Activity.java:4650)          at com.Test.AndroidTest.UnityPlayerActivity.Created(UnityPlayerActivity.java:39)          at com.unity3d.player.UnityPlayer.nativeRender(Native Method)          at com.unity3d.player.UnityPlayer.c(Unknown Source)          at com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source)          at android.os.Handler.dispatchMessage(Handler.java:98)          at android.os.Looper.loop(Looper.java:154)   I have also ensured that the new activity is declared in the android manifest and it has been imported in UnityPlayerActivity


Is there a command to explicit the Ubuntu flavour?

I know that the lsb_release command echoes the Ubuntu version I'm currently using. But is there a command that prompts the system flavor (Ubuntu, Lubuntu, Kubuntu, Edubuntu, etc.) I'm in? Like:  $ the_command Ubuntu   If I'm using Ubuntu or  $ the_command Lubuntu   If I'm using Lubuntu?


Does anything symbolic happen in chaining bash commands via a pipe or is it all compute-pass-compute-pass?   For example in head t.txt -n 5 | tail -n 2, is head t.txt -n 5 getting computed and then tail -n 2 executes over it. Or first there is some abstraction to tell the shell that lines 3 to 5 are to be read? It might not make a difference in this example, but I guess can in other scenarios.


Amount of money needed to apply for a B1/B2 US visa in Russia?

I have a friend that wants to come and spend some time with me in the U.S. from Russia. She has told me that in order to get her visa approved she has to show that she financial means while here with me. The amount is 1800$ that she is supposed to show the Travel agent and if she can't show that amount she will be denied for out of country travel for the period of 5 years. How much is fact or is all fiction?


Regain control after opening firefox via terminal

I'm opening firefox via the terminal using  firefox   but I can not type any other command after this one since I don't regain control of the terminal after having typed that.  The only way to do so (for me) is to press CTRL + Z but then firefox freezes.  I'm using Lubuntu and am not totally new to it but haven't used it as much as Windows.


Conversion rule: how to switch oil and butter?

Just a moment ago, I was making muffins. The recipe calls for 125ml oil. As a footnote, it says that you can replace the oil with 125g butter.  Can you do so in every recipe (not just muffins or pastry)?  I've found , but the amounts aren't the same (while my recipe says to use the same amount).


Using OSX or Linux, how to create a Win7 OS on a flash drive - not for installing Win7 - I need the runnable OS?

I have three computers, a Win7 laptop, a Mac and an Ubuntu box. The Win7 laptop has just died and to try to get it running again I have to run various Win7 apps, like HDScan and Intel's raid manager IAStorUI, but I can't get Windows to load.   How do I create a CD or a USB stick that will boot into a Windows GUI? My rescue disk lets me run command prompt commands, but not any app that needs a GUI.   I have looked at Oracle's virtual box and there seems to be a release called portable-virtualbox but I need Windows to run the install exe.  Are there any other solutions? e.g. iso images I can just burn to disk?  This question had been marked as a duplicate of , but for new potential answerers, my situation is different from that question and is not covered by the answers there.  To clarify:   I need a solution that I can set up using either Mac or Ubuntu, because I do not have a functional Windows OS anymore.  Anything like Win2Go or Windows to Disk does not help because I can't run them.  GRUB does not provide a solution for creating a bootable Win7 USB stick. Neither does installing VMware on Linux mint.  BartPE is no longer available.


How do i find an anime or manga only from characters names?

The only things i know is that is it a manga that has an anime and i think the main character name is hana but im not sure if she’s the main character and i think she also has a cat named mero. How do i find the anime/ manga?


Student coming to office shirtless and unclean

I am a junior lecturer in first-year maths at a tropical university. At the end of the semester, many students come to my office to ask questions about the subject's materials.  There is one young man in particular who jogs to uni, and arrives at my office shirtless and reeking of sweat. This is somewhat unpleasant for me. I've even taken to leaving a towel over the back of the seat that he uses so that I can replace it after he leaves.   Is there anything I can say to dissuade him from this practice? He appears to be quite oblivious of the discomfort that he causes in others. However, he does not appear to be breaching the .  (for what it's worth, I'm a 28-year-old unmarried female)


Can I run Day of the Tentacle Remastered Edition with ScummVM?

I remember that when Loom, Indiana Jones and the Fate of Atlantis, Indiana Jones and the Last Crusade and The Dig were re-released on Steam it was possible to play the games through ScummVM.  Is it possible to play the Day of the Tentacle Remastered Edition through ScummVM too?  I have tried  but it doesn't work:  When using  to extract the files (use the tool to go into classic/en) I see tentacle.000, tentacle.001 and monster.sou.  These are for the original 90's release (i.e. not the remastered version).


Looking for a self-contained book on QFT

I am looking for an introductory book on QFT which is relatively self-contained. Aims: Useful for philosophers interested in Philosophy of Science (but Mostly math-oriented) If such a book simply does not exist, I would equally appreciate multiple books that answers the question. Shankar's QM book does what I intend but for QM. Perhaps a book like Shankar's would be perfect.


How to connect to a Network SAMBA Printer in Ubuntu?

In my office all computers are Windows and my computer runs Ubuntu 18.04.  We are connected by same network where IPv4 default gateway is 192.168.1.246, my IPv4 address is 192.168.1.111 and the the Windows computer to which the printer is connected has IPv4 address 192.168.1.114 (the printer is shared by the Windows 8 computer).  How do I connect/print with the printer with my Ubuntu?  My printer is HP Laserjet M1005 MFP.


what is the difference between these two jQuery selectors

$(document).on('click', '#edit', function(){ //code });  and $('#edit').on('click', function(e){ //code });  I have been working with some jQuery and get confused between these two


Chi-square test for more than 2 x 2 tables

There are there groups (colA, colB, colC) representing three different measurement methods. The question is whether there is a difference between the three methods. To decide the question we perform experiments and measure the same thing with each method. The output of each method is a label not a value on a numeric scale. In addition, we do not have a control group so we do not know which method's output is the right one in the experiment. I solved the question in the way below  but I became uncertain whether it is a correct solution. I might have oversimplified the problem. Consequently, the chi-square approach used tests something else not what we want.  Data:             colA,    colB,    colC experiment1 label1,  label1,  label2 experiment2 label3,  label1,  label3 experiment3 label4,  label4,  label2 experiment4 label5,  label4,  label5 ...    My first approach, probably oversimplified:   As we do not know which label is correct and which not, we regard at first all the outputs of method A correct and compare them to the other two columns and count the same labels in the same experiments in the other columns, then we regard all the outputs of method B correct and then method C. So we get the label count below:   I. colA regarded as correct colA(4) colB(2) colC(2)  II. colB regarded as correct colA(2), colB(4), colC(0)  III. colC regarded as correct colA(2), colB(0), colC(4)   Then we compute a chi-square test for each, here II. and III. are the same. (There are more than 5 expected values in each column it is just the example to highlight the problem.) This way we get three p values for each test, from which we select the highest one to be on the safe side and decide whether the deviations between columns are likely to be caused by chance only.    My second approach would probably be:   The data same data transformed in a different format:                          label1, label2, label3, label4, label5 methodA (earlier colA)       1,      0,      1,      1,      1, methodB (earlier colB)       2,      0,      0,      2,      0, methodC (earlier colC)       0,      2,      1,      0,      1,   Here the expected values for each label would be greater than 5 with the real data. However, we do not want to test whether the distribution among the labels are caused by chance only but whether there is a difference between the methodA, methodB and methodC. Can Chi-Square be used here? What other tests would you propose to use to see whether there is a difference between the three methods?  What would be your solution?


I am trying to prove Hardy's Inequality for integrals:     Let $f:(0,\infty) \rightarrow \mathbb R$ be in $L^p$. Let $F(x) = \frac{1}{x} \int_0 ^x f(t)dt$. Then $F \in L^p$ and $\|F\|_p \leq \frac{p}{p-1} \|f\|_p$.    I have seen proofs of this which use Haar measure and Fourier analysis, eg. here . However, I am wondering if there is a more elementary proof.   I have tried to deduce this using Jensen's inequality and Fubini's Theorem as follows:  Jensen's inequality implies that $\left|\frac{1}{x} \int_0 ^x f(t)dt)\right|^p \leq \frac{1}{x} \int_0 ^x |f(t)|^p dt$. Therefore   $$\int_0 ^\infty |F(x)|^p dx \leq \int_0 ^\infty \frac{1}{x} \int_0 ^x |f(t)|^p dtdx = \int_0 ^\infty \int_t ^\infty \frac{1}{x} |f(t)|^p dx dt.$$  But, this last integral is infinite, and I'm not sure how to get a sharper bound on $|F(x)|^p$. Any suggestions?


is listed on a lot of websites with the Druid creature type, but the card only lists "Elf".  Is Argothian Elder a Druid too?


Online, I have seen people with shrubs around their town tree. My tree is developed enough that I can see the town history. I also have the golden shovel, but I cannot figure out how to plant shrubs around my town tree. please help me out.


Can I stay in Turkey for ~180 days by aligning two 180 day travel visas

That is, I would like to stay in Turkey for 180 days. Is it possible to do this by first applying and getting the eVisa 90 days before my arrival in Turkey so the duration of my stay lasts through the second half of the 180 day window. Next, after those 90 days, I would leave the country for a day and get another eVisa, then enter the country again for another 90 days. This would essentially let me stay in Turkey for about 180 days. Is there some flaw in this plan?


Install Ubuntu with other linux distributions on same machine

I have brand new machine.  I want to install Ubuntu and one more Linux distributions on same machine. When the machine is up I want to have the option to choose which Linux to load.   Is it possible?  How to do it?


I'm experiencing a horribly erratic, bouncy/shaky cursor in Ubuntu, but not in Windows.  It's a Dell Latitude E6230 laptop.  I was going to replace the touchpad until I discovered I wasn't having the problem in Windows.  Might this be a driver issue? Is there a touchpad/mouse driver for Ubuntu that might remedy this problem? I have the same problem while using other Linux distros too on this laptop.   Thanks.


The program will read size of free memory partitions and size of processes from a text file and then will try to allocate a memory partition for each process using the first-fit algorithm. Input example: 300,600,350,200,750,125 115,500,358,200,375  My code for the implementation: import sys   filename = sys.argv[1]   with open(filename, "r") as file:         free_memory = file.readline().strip().split(',')         process_size = list(map(int, file.readline().strip().split(',')))          file = open("output.txt","w")     #---------------------------# #First-Fit Memory Allocation# #---------------------------#   file.write(f"First-Fit Memory Allocation\n{'-'*60}\n") file.write(f"start => {' '.join(free_memory)}\n")   memory = list(map(int, free_memory)) memory_str = list(free_memory) for process in process_size:         data = f"{process} => "         allocated = False         for index in range(len(memory)):                 if not allocated and memory[index] >= process:                         memory[index] -= process                         memory_str[index] = memory_str[index][:-1*len(str(process))]                         memory_str[index] += f"{process}*"                            if(memory[index] != 0):                                 memory_str[index] += f" {memory[index]}"                         allocated = True                                  data += f"{memory_str[index]} "            if(not allocated):                 data = f"{process} => not allocated, must wait"                         file.write(data+'\n')             My code works so far but I want to reformat my code to make it simpler and more readable. Any ideas?


How to update all indexes with value pulled from another list when there are duplicate values?

id_dict = {1 : 'cat', 2 : 'dog', 3 : 'fish', 4 : 'cow' } feature_list = ['cat','cat', 'dog', 'dog','fish', 'calf'] id_list = ['nan','nan','nan','nan','nan', 'nan']  for key, value in id_dict.items():     for item in feature_list:         if item == value:             id_list[feature_list.index(value)] = key  How can I make sure that the id_list is updated with [1,1,2,2,3] when the values match and pass over when a value is not in there ? Currently, only the first value is being updated. Current Output: [1, 'nan', 2, 'nan', 3]


Tikz picture appears at the wrong location inside the document

I haven't found any question on this but I'm having problems when placing a Tikz picture in a document. It's enclosed in a Figure environment, and it uses \centerfloat to center it, with some code in the preamble since it's not a Memoir, but an Article class.   In my MWE I added the picture between two Lorem Ipsums, but when typesetting, it appears before both of them. What is happening and how can I solve it?  \documentclass{article} \usepackage{rotating} \usepackage{pgfplots} \usepackage{tikz} \usetikzlibrary{arrows,positioning,calc} \usepackage{caption}  \makeatletter \newcommand*{\centerfloat}{%   \parindent \z@   \leftskip \z@ \@plus 1fil \@minus \textwidth   \rightskip\leftskip   \parfillskip \z@skip} \makeatother  \tikzset{     every node/.style={align=center, fill=white, draw=black, thick, rectangle, outer sep=0mm, inner sep=0mm},     rect/.style={minimum height=8mm},     recv/.style={text width=2.5cm, rotate=90}, }  \begin{document}      FIRST Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sit amet ante id augue faucibus maximus sit amet vel lacus. Suspendisse potenti. Nullam metus nunc, auctor vel rutrum sed, sollicitudin vitae ante. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In ornare elit dui, sed aliquet erat pharetra ac. Nullam viverra ipsum tincidunt est cursus, at elementum neque congue. Aliquam tempor lorem ac eros mollis accumsan. Quisque vulputate consectetur ex at mattis. Ut aliquam, ligula at placerat elementum, lorem mauris convallis ante, vel faucibus nulla leo vel odio. Quisque nec ullamcorper ipsum.\\  \begin{figure}     \centerfloat \begin{tikzpicture}     \node[rect, text width=4cm] (prop) at (0,0) {proposition};     \node[rect, text width=12cm, left=0mm of prop, anchor=east] (ent) {entity};  \end{tikzpicture} \caption{A caption} \end{figure}  SECOND Nullam et efficitur justo. Donec sodales velit sit amet lorem varius tempus. Nulla vitae leo justo. Phasellus rhoncus egestas dui, in rutrum nisi ullamcorper sit amet. Aliquam eget imperdiet dolor. Morbi quis hendrerit erat. Nulla ornare purus ac sollicitudin dapibus.  \end{document}    And here's the result:


Can I make separate save files/towns/mayors in Animal Crossing: New Leaf?

My wife and I bought an Animal Crossing: New Leaf Special Edition 3DS-XL for my daughter.  We are wondering if there is a way to have separate saves (separate towns) so that each of us can have our OWN town and each be a mayor.  I've found conflicting reports so far as to whether you can make saves to separate SD cards and I'm not familiar with how game saves work on a 3DS.  Is there any way that each of us can have our own experience, and not just all be citizens in the same town?  In case it helps, Animal Crossing: New Leaf comes pre-installed on this special edition 3DS-XL.


Why use img[:,:,::-1] instead of img in plt.imshow() in python

I know how to slice a list in python. But I have a confusion when I see the following codes:  from PIL import Image import numpy as np import matplotlib.pyplot as plt  img = Image.open('test.jpg') img = np.array(img) print(img.shape) # (204,204,3) plt.imshow(img) plt.imshow(img[:,:,::-1])   Both the last two lines can display the image correctly. But I wonder why img[:,:,::-1] as the img itself can display correctly. Is it just for fun or intentionally?   Thanks in advance!


If $f$ is an entire function with a non dense image then it is constant

Is it true that if $f$ is entire with a non dense image then it is constant? Can anybody help with the proof? Or give a counter example. Thank you


Administrator user receive Access Denied and Need Permission

I want to move a file that is named resmon.exe from C:\Windows\System32 to D:\. While I logged with an Administrator user, but I can't move it and I receive something like Access-Denied! As you see below I am Administrator :  This is output when I try to copy and paste normally : When I right click and select paste :  When I click on Continue :  And this is output of Command-line windows, when I want to move the file via commands: Note: I run CMD as Administrator  Q1: Why I receive Access-Denied? Q2: How can I move the file? Q3 : What is TrustedInstaller in third image? AND how I can have its permission? Appreciate you time and consideration :)


I've noticed recently that where in England we say "couldn't care less" in the US the negative is avoided and the phrase becomes "could care less". This is rather jarring because of the contradictory semantics. Can anyone confirm this observation, and shed any light on the difference of usage (if it indeed exists)?


Get an egg (item) that doesn't summon a chicken

I searched for every tag possible on an egg (item) but I didn't find anything special to get an egg that will never spawn a chicken.  these are all the visible tags on an item.egg + the command I used to get them (I runned that command when I dropped the egg on the ground)    so does anyone know how to /give or get an egg without the chance to spawn a chicken?


Consider a metal rod between two bodies of different temperature.How do you explain the occurrence of steady-state when heat Is transferring by conduction through the rod. I mean why should there exist a point called steady-state in the first place, meaning why the temperature of the rod at a point become static in steady state?


How to get sudo to prompt you for a password each time

I find that if I execute something using sudo that then if I execute something else soon after also using sudo, that it does not prompt me for my password, and although this can be inconvenient in some situations, it is a security risk in others, and a hassle to keep on coming back and executing the command to make it prompt your for the password on the next go. So I was wondering if and how I could get it to prompt me every time, or for it to at least only remember my password for a very short amount of time?


Regarding the high number of rejected migrations from Stack Overflow to Server Fault

Currently, there is a 40% (updated Nov 9, 2012) rejection rate on migrations from Stack Overflow to Server Fault.  Here are some samples of rejected questions from the last few days:   .     The first example is from 2009 and already had an accepted answer (in addition to being bad and off-topic on SF). There was no reason to migrate it. The second two, while seemingly on-topic for SF based on the title, are borderline unintelligible in regards to the content. They contained no details, no relevant information, and amount to "Halp! Halp! Itz broked!"  I realize that there is a much larger number of users on Stack Overflow that are capable of voting to migrate and as a result, it takes 4/5 votes to migrate, while every other site is 3/5. This, unfortunately, does not appear to be an effective solution.  Questions should not be migrated based on their title, they should be judged on their content and topicality on the target site. This, obviously, is not happening as there is a 40% rejection rate on Server Fault.  What can we do to further educate Stack Overflow users about what is and is not on-topic elsewhere? Should SO have a higher reputation threshold than the other sites for vote-to-migrate privs? Should a migration require 5/5 votes instead of the current 4/5?


Roll20 reminded me of a similar program; help me identify it?

I was in chat here on the site and saw mention of an online tabletop gaming website called roll20.net. I have checked it out and it looks pretty promising for online play as it works in the browser, has a rolling tool in it, shows a visual of the battle map, character/monster tokens, etc.  It reminded me of a game play video I saw a while back where people were using a very similar program, so similar in fact I thought they were playing on roll20.net when I was poking around the site. However when I decided to watch some youtube videos of roll20 games it turned out that it was not the program that I remember from that gameplay video I saw months ago.  The only differences is can remember between the two programs is that the one I am failing to re-find on youtube had animated characters that were controlled in real time via the keyboard (wasd or arrow keys, I dont remember exactly what one of the guys said to the new player that asked how to control his character).  Basically, I would like to know some sites or programs that are similar to roll20.net in their functionality to make sure that if I choose to start running a game on a site like that I can choose the best one for my needs (and also to find that program I can't find the video of on youtube, tho that isn't the main focus of my request).


ShareX image uploading gives 403 forbidden on new Apache Server

I have figured out the base of the problem, but I have no idea how to fix it. I have a user configured named files, which has write permissions to /var/www/html/files/ and can write and read fine to it. However, when uploading a file, my apache server gets a 403 forbidden error upon viewing it. To fix it, I have to SSH into my server and chown the directory to the www-data user to see the file. Obviously, I don't want to do this every time I upload an image, since this is very frequently. How to fix?


String comparison: InvariantCultureIgnoreCase vs OrdinalIgnoreCase?

Which would be better code:  int index = fileName.LastIndexOf(".", StringComparison.InvariantCultureIgnoreCase);   or  int index = fileName.LastIndexOf(".", StringComparison.OrdinalIgnoreCase);


System.ArgumentOutOfRangeException when running list of tasks

I have a method being run on ~20 objects in a for loop. I want each iteration of the loop to perform the method with a new task to prevent the GUI from stalling while the work is happening. However, I noticed right after a task is created I get a System.ArgumentOutOfRangeException error in the output. Eventually, the entire app crashes with System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index'.  My first thought was it was a simple error in the loop with the current iteration index not matching up, but that isn't the case.  Here's my loop:  Collection<string> tableNames = GetTableNames(path); //just gets a collection of strings var tasks = new List<Task>(); for (int i = 0; i < tableNames.Count; i++) {     var addTask = Task.Run(() => { AddLayer(tableNames[i]); });     tasks.Add(addTask); } await Task.WhenAll(tasks); ResumeRefresh(); //I want this to be called after all the tasks complete   Not sure if this is important but at the end of the AddLayer method in the for loop is a function call that acts on a GUI control, so I do this at the function call:  private void AddLayer(string tableName) {     //some work done here     Application.Current.Dispatcher.BeginInvoke((Action)(() => Map.Layers.Add(layer))) }


Using induction to prove a question based on Hermite polynomials

I am practising for  a test that I have next week on proofs. I have tried to do this question using induction, but it is quite different to other induction questions I have done. Any guidance/walkthrough would be appreciated.


I read it as a child, a sci-fi book. It started with a government program that discovered an alternate universe, and every person save one went crazy, and could not speak about it. She got pregnant, and took her son into it. He was raised being able to swap between worlds.   After a while, he became employed by the government to use the abilities and he discovered there were other people in this dimension. They started transporting goods, but the shipments sometimes ended in the wrong place. It was because they lacked the mathematics to transport correctly.


Math.pow() is returning an unexpected result for some inputs.  for ex - below is my code to find the nth root of m      public class FindRoot {     static int m,n;      public static void main(String[] args) {          findRoot(m,n);      }          private static void findRoot(int m, int n) {          double tempDouble = Math.pow(m, 1.0/n);          System.out.println(tempDouble);       }     }   Now, when i pass m = 9 & n = 2, it is giving expected result  i.e. 3.0 but if i pass m = 1000 & n = 3 then i am expected 10.0 but it is giving 9.999999999999998 i.e. unexpected result.


Count if two criteria match while ignoring duplicates

I have a simple Sheet with 2 cells that I need to countif 2 conditions match and treat  duplicates as 1.  Column A    Column B Male        closed Female      invalid # Male        exception Male        closed Male        closed Female      new   I would like a formula that counts Male closed and return 1 result (ignoring duplicates)


Graphic designer/illustrator about to buy my first display drawing tablet

I really want a drawing tablet with a display. So far I've looked at the iPad Pro and Cintiq models. But I keep getting caught up in reading reviews, articles, blogs, etc., about each product that I keep forgetting to think back to core of what I'm looking for. I wish there was a person who knew everything about every product I could chat with, but a design forum is probably the closest I will get. I would be using the tablet for mainly sketching, illustrating, graphic design, and MAYBE animation. Here is a list of capabilities I'm looking for in a tablet (having no experience. Some of them might not even exist). (Features of high importance to me **)   ** Display tablet (visual screen built in) ** Accurate touch point with virtually no lag ** Wide scope of pressure sensitivity ** Wireless capabilities (Wi-Fi, Bluetooth, power. For sending files to my computer, working remotely without a power source, etc.) ** High definition, retina display, etc. ** Work directly in my Adobe programs (Photoshop and Illustrator at the LEAST. I also use InDesign, After Effects, and Flash) * Use the tablet for other things, browsing web, games, Netflix, etc. (probably only iPad, huh?) * Hook up with keyboard (I'm just thinking about shortcuts while using Adobe) * Touch capabilities (I like the idea that I could move around the screen with my fingers, zoom, in, etc. I watched some videos on Cintiq and iPad Pro, and this would be amazing. But since I've never used a drawing tablet, I'm not sure how much of a pain not having it would be) Ability to use as a mouse (I love using the Wacom Intuos. It would be nice to have the choice of working solely within my tablet, or on my MacBook while using my tablet as a mouse) Screen protector that fits? For protection and maybe give it that rougher paper texture Save files directly to the device   I know that this list is kind of insane, but I know I'm going to spend a pretty penny on this device and I want to make sure all (or most) of my needs are met. I'll probably go to Best Buy to try some tablets out and talk to someone who knows a little bit about what I need, but I'd rather here opinions from people in my field or any design-related field who has experience using tablets.


How can I swap Ctrl and Fn keys on a corporate computer?

Our computers have been upgraded to HP EliteBook 8570p machines and while they're very nice machines, they are also very large -- so large that the left Ctrl key is too far away, making Ctrl+V really difficult to do with one hand.  I'm sure there are ways to re-map the keys so that their signal is swapped. But add the factor of corporate security, is there still a reasonably simple approach to this?  I'm sure you'd like more information before you can answer -- I'll try to add updates based on comments and answers.


Travelling at a relative speed greater than the speed of light

I've wondered about this since I was a kid. I've been told the speed of light is a constant ($c$), which would mean that light always travels at the same velocity. Now, here's what interests me: if I'm the source of light for a given observer, light would travel away from me and towards the observer at the speed of light when measured from our absolute positions at that time. Because of this, my velocity at the time of "emission" seems to be irrelevant to the absolute velocity of the light I'm sending.  However, for the calculation of time it takes for the light to reach the observer, its velocity seems in fact to be relevant, because its velocity determines when the light would reach the observer. I hope I still make sense.  Question 1  Say me and the observer are a light-minute apart and the observer is travelling towards my absolute position at the time of emission at a speed of $c/2$. Would I be correct to assume that the light would reach the observer (or the other way around) in 40 seconds?  Question 2  My absolute position would be quite hard to calculate. However, my position relative to the observer is relatively easy to calculate during the experiment, so let's say I'm also travelling at $c/2$ in the exact same direction as the observer. The observer would still meet my light after 40 seconds, even though from where I'm standing it looks like the observer is not moving at all. Am I still correct so far?  Question 3  Let's say I turn around and move towards the observer at a speed of $c/2$. The observer would still meet the light I emitted after 40 seconds, but our relative speed towards each other would be exactly the speed of light. So, relative to another moving object, I can move at the speed of light or even approximate a speed of $2c$. Does that make sense?  Why I'm asking this  In space travel, distances are often measured in light years. Because one would not be able to travel at the speed of light, travelling at almost the speed of light would mean that you would need just over 30 years to reach another star system that is located 30 light-years from Earth. But as our galaxy is expanding, it could be that all these star systems are moving away from the center at a certain speed (say $c/2$). Assume that the center of our galaxy does not have an absolute velocity. Moving to a star system that is located between Earth and the center of our galaxy at almost the speed of light would mean that I'm moving away from Earth and towards the other star system at a speed of almost $1.5c$, meaning I would reach the other star system in approximately 18 years, even though it's 30 light-years away.


Keep error/crash notifications, but stop Ubuntu from “calling home”?

Is there a way (in Ubuntu 16.x, 18.x) to disable all error reporting?  I want to keep being notified but disable any and all „calling home“.  I do not want to disable being personally notified, just the "calling home part". Not sure, if  might fit the bill.


Intel i9-9960x Processor with MSI X299 SLI plus motherboard support Ubuntu 16.04 or   Intel® Core™ i9-9960X Processor with ASUS TUF X299 MARK 2 DUAL LAN support ubuntu 16.04  need 16 core /32 threade processor with dual lan supported board with os Ubuntu 16.04


Let $f$ be a function from $\Bbb R$ to $\Bbb R$ such that $f(x)$ is rational when $x$ is irrational, and $f(x)$ is irrational when $x$ is rational. Can $f$ be continuous?   Thanks for your help.


Can the character limit error boxes tell us how many characters we are over the limit?

I was editting a complex problem after discovering more details, and I added some details to the title. Turns out my title was too long:    Fair enough, 150 characters is a reasonable limit.  But I had no idea how far over the limit I was. I had to guess and go through trial and error - delete some words, try again, delete some more, try again - which got a little frustrating.  Normally, feedback boxes like this indicate by how much you've exceeded the limit. Could this box say, for example:     Title cannot be longer than 150 characters. Please reduce by N characters.   Small change, but presumably quite an easy one. I've seen various other questions about having character counts while you type; that seems excessive, but info in the error box would presumably be no problem performance-wise since the character count has just been done.  Right now we can't see if we're a couple of characters over or many words over the limit.


Tikzpicture in tabularx - Center horizontally and vertically

I have the following example. How do I the get the tikzpicture to center correctly both horizontally and vertically.  \documentclass[10pt,a4paper]{report} \usepackage{tikz} \usepackage{tabularx} \usetikzlibrary{graphs, graphdrawing, graphs.standard} \usegdlibrary{circular}  \begin{document} \begin{center} \begin{tabularx}{\textwidth}{|X|X|X|} \hline \begin{tikzpicture}[simple necklace layout]  \graph[nodes={circle, n=4, inner sep=0pt, minimum size=2mm, fill, as=, grow'=up}] {     subgraph I_n[V={0,1,2,3}];     0 -- 2,     1 -- 2,     0 -- 3,     1 -- 3, }; \end{tikzpicture}  &  \begin{tikzpicture}[simple necklace layout]  \graph[nodes={circle, n=4, inner sep=0pt, minimum size=2mm, fill, as=, grow'=up}] {     subgraph I_n[V={0,1,2,3}];     0 -- 1,     1 -- 2,     0 -- 3,     2 -- 3, }; \end{tikzpicture}  &  \begin{tikzpicture}[simple necklace layout]  \graph[nodes={circle, n=4, inner sep=0pt, minimum size=2mm, fill, as=, grow'=up}] {     subgraph I_n[V={0,1,2,3}];     0 -- 1,     0 -- 2,     1 -- 3,     2 -- 3, }; \end{tikzpicture}  \\ \hline \end{tabularx} \end{center} \end{document}


Why does this code not reverse the name given as a value of a variable?

string myName = "Angel Hadzhiev";         char[] CharName = myName.ToCharArray();         Array.Reverse(CharName);         foreach (char name in myName)         {             Console.WriteLine(name);         }          Console.ReadLine();   The problem is that the given name(Angel Hadzhiev) is not reversed when I run the Console Application. The output is this -


Install Ubuntu 16.04 in another partition on HP Laptop with Windows 10?

I need to install Ubuntu on my Laptop which had windows 8 pre-installed when I bought it. After an update now it is running windows 10.  I tried following a lot of guides, and used several tools but none of them have worked for me.  These are the steps I followed so far: -I used RUFUS, unetbootin, and universal-USB-installer to make a live USB disc with an image of a 64 bit AMD installer for Ubuntu Desktop 16.04LTS. I used default recommended settings (Fat32 file system, GPT partition, UEFI settings). -I made a partition of 50 GB of my main hard drive (Though I think this is irrelevant to my problem). -My Win10 specs say it was installed in UEFI mode. Therefore I disabled Secure Boot, Fast Boot, and enabled Legacy Mode/BIOS compatibility.  So when the system starts I choose to boot the USB and then GRUB 2.0 starts. When I choose install Ubuntu or try Ubuntu, it loads the splash screen which says Ubuntu, and some dots flashing in order. The system freezes in this screen and i'm forced to hard restart my laptop.  My specs are: -Laptop: HP Pavillion Notebook 15 ab-114la -BIOS:F.13-08/06/2015 -RAM: 12GB -Processor: AMD A10-8700P Radeon R6, 10Cores 4C+6G.  By the way. I am able to run Ubuntu 16.04 64 bit on a virtual machine inside windows.


Why do creases appear when I turn on subdivision divider?

So I'm mid-way through modelling a head, and so I decided to turn on subdivision surface modifier to see what it would look like with smoother geometry, but it created some weird creasing effects (not sure what else to call it) on the head, and I have no clue why.    This is without the modifier on:    Does anyone know how I can fix this?


Story about robots that keep serving extinct humans

I feel like in the past I've come across a (sci-fi?) story where robots/AI are serving extinct humans while being completely oblivious to the fact that the humanity is extinct. It may or may not have taken place in a bunker and/or on another planet. I think there could have been a scene where the AI makes a toast or breakfast in the morning and there is no one to eat it. I don't remember any other detail and whether it was a book or a movie or something else. I could just be a poster for all I know.


Here is some data and a logarithmic model: df <- data.frame(   x = 1:8,   y = c(7.5,6,5.2,4.3,3.9,3.4,3.1,2.9) )  model <- lm(y ~ log(x), data = df)  I am able to use this model to predict y for any given x e.g. predict(model, newdata = data.frame(x = 10)) # 2.3  My question is, if I want to find y when x is known, can I do that? 'Reverse prediction' or what's the correct term? e.g. If I want to know the value of x when the function output is 8, how would I do that?


Is there a way to "apply" a Mirrored object, such that both sides of the object can act independently?

The title says it all. But to further describe my scenario. I've created a poly that has the right side of a human. Now that the right side of the face, arms, legs, feet, etc are all the same size and shape, I'd like to "apply" the mirror such that the left side keeps the point in time shape from when I apply the mirror - but I can then move the left side around independently of the right (and vice versa). Am I doing this wrong? I'm new, so pointing to documentation that I've missed could help me. I found this, but unfortunately, it looks like the UI of Blender has been updated in 2.8 to not have the "Apply" button in the same place:  So far I've read these documentation articles, but they don't describe this functionality:


Blank Screen after trying to install nvidia proprietary drivers

I tried to install the nvidia-331 drivers but as usual it doesn't want to work... I get a blank screen when I boot up.  I tried the instructions here  but that didn't help  I was actually able to load the driver with jockey-text and startx worked, but obviously no unity or any windowing... I started it from recovery mode.  Hopefully someone can help before I have to reinstall the OS again.. sigh


How to determine beta parameters in r given 2 percentiles without knowing the upper and lower bounds

I have a sample which I assume has a beta prior. Now I have to find the parameters of the beta distributions given two percentiles, the median and the 90th percentile. Both percentiles have values , say (x1,x2) on the same cdf. I tried different r codes like findBeta, but 3 percentiles are needed for this, I mean I only have the median and the 90th percentile as specified and sure data, and I find the results of the r code findBeta unreliable because I have to choose a third percentile, and I don't know if I am choosing right. I found other questions similar to mine but the person assumed that he knew the upper and lower bound which isn't the same in my case, so the r codes won't be good to use.


If I want the user to revert their operation of selecting an item, should I say: "Unselect the option" or "Deselect the option"?


Python returns wrong result for float addition

Probabilities = \     [0.27,      0.33,      0.35,      0.03,      0.01,      0.007,      0.002,      0.0007,      0.0002,      0.0001] result = 0 for probability in Probabilities:     result += probability print(result)   The output is:     1.0000000000000002   Why?  I also tried the sum() function but the result is the same.


How to read ANSI encoded files in the right way?

I have some files that Ubuntu can't read it ( ANSI encoding ) but Windows can read it well.  When I open it in gedit or notepad++ it seems like this :     Êã ÇáÊÍæíá áÜÜ   How can I make Ubuntu read ANSI encoded files well?


Migrating from Ubuntu repository TeX to TeX Live?

I installed TeX Live 2013 from CTAN by following the instructions here:   And it's all working very nicely.  However, what I didn't do was purge the original TeX from my Ubuntu 12.04 system.  The command   dpkg --get-selections | grep tex   shows a vast panoply of installed TeX packages.  Now, suppose I entered:  apt-get purge tex*   Would that remove just the original TeX packages installed from the Ubuntu repositories, or would it, since my fiddling with equiv, kill the new TeXlive as well?  I don't want to experiment, as I now have TeX and friends up and running as I like, and I don't want to have to do it all over again!


Images rendered in visualforce page but can't be rendered in pdf

I have an image from an external url and I want to use it my visualforce page and render the page as pdf. However when I add the keyword renderAs="pdf" to the top of the page I showed below. The image looks perfectly fine in the visual force page. The images are only broken in pdf. I have whitelisted the url I am getting the image from and using the images as statis resources is not an option for me. Any help is appreciated. <apex:page standardStylesheets="false" standardController="Quote" renderAs="pdf" applyHtmlTag="false" showHeader="false" title="Teklif Çıktısı" language="TR" extensions="KsQuoteDomesticPdfController">


Switching caps lock and escape doesn't survive suspend on external keyboard

On Ubuntu 20.04, I use the gnome tweaks tool to switch caps and escape for improved efficiency with vim-like editing. I am running on a laptop with external keyboard connected. What bugs me is that this works when I just change it but only until I suspend. It is ignored after resuming from suspend. So the caps lock button on the laptop keyboard after resume acts like ESC, as I want, but the caps lock button on the external USB keyboard does not behave the same. The same keyboard and setting with Ubuntu 18.04 on my 2nd laptop work fine. Any ideas how to investigate/fix this? It sounds like a bug!


"pros and cons", "black and white", "ups and downs". Always in a fixed sequence, is there a word or phrase for these?

Is there a word or phrase for two nouns or adjectives joined by a conjunction (usually "and") in a fixed sequence?        alive and well           fast and furious   hat and gloves   pen and pencil   law and order   wit and wisdom   salt and pepper   bacon and eggs   horse and carriage   Adam and Eve   ladies and gentlemen   loud and clear   heads or tails   yes or no   dead or alive


This is a problem from a practice prelim exam I found online.   Show that there cannot exist a polynomial of the form $p(x) = z^n +a_{n-1}z^{n-1} + \dots + a_1 z + a_0$ such that $|p(z)| < 1$ for all $z$ such that $|z| = 1$.  Here is what I know so far. By Rouche's theorem, if $f(z) =  a_{n-1}z^{n-1} + \dots + a_1 z + a_0$ then $f(z)$ has n zeros in the unit circle  If you plug in $z=1$ you get that the sum of $a_i$ has to be less than zero and more than negative two (I think).   I was told to consider $p(1/z)$ but I can't figure out how that helps.   Also perhaps we could use the fact that $p'(0) = a_1$  Also: I am not sure how to show that $p$ does not have a root on the unit circle...   Note: this question was in a section on "Rouche's theorem" in case that helps.


How do I solve $$3\sin t=18(1-\sin ^2t)$$  Because, $$3\sin t=18(1-\sin ^2t)$$ is like quadratic, but using ABC I get not special angles.


Let $(x_n)$ be a sequence in $\mathbb R$. We call $y$ a cluster point of $(x_n)$ iff for every neighborhood $N$ of $y$ there are infinitely many $n$ such that $x_n \in N$. Let $C$ denote the set of cluster points of $(x_n)$.   By definition, $\limsup_{n \to \infty} x_n = \inf_n \sup_{k \geq n} x_k$.  Can you show me how to prove $\limsup_n x_n = \sup C$? Thanks.


What is the current status of submitted manuscript?

I submitted a manuscript to ASME journal. Now the different status is showing as in the figure below: in the general screen, the status is associate editor assigned. However, in the detail screen, the status is under review. I wonder that the manuscript now has been sent to the reviewer and is under review, or still with the associate editor?


What's the reason for the minus sign in energy operator and momentum operator?

We have learned the following fundamental correspondence relations from basic quantum mechanics: $$E\rightarrow i\hbar\dfrac{\partial}{\partial t} \tag{1}$$  $$\vec{p}\rightarrow-i\hbar \nabla \tag{2}$$  My question is why we take a minus sign in formula $(2)$? I mean we should not take the minus sign from the viewpoint of space-time symmetry.  Is there any relationship with special relativity? If we don't take the minus sign in the replacement for momentum, what will happen in quantum mechanics?


I want to watch the unreleased Clone Wars, but I'm not sure of a specific order there may be to watch it in. I am fully aware that the released ones are out of order and I'm afraid these may be too.


I installed Ubuntu 16.04 LTS, and I would really like to download stuff like Unity Tweaks to customize everything. Every tutorial shows you to just go on Ubuntu Software, and search for Unity Tweaks and tadaa. Done.  But when I go in there (and yes, in on the All tabs) I just see a few Apps previewed, like Skype, subsurface, slip, sublime text and 3 others. In the list "Editors Picks". I don't have anything else.  And the biggest problem is when I type in Unity Tweaks to find it, it just tells me "No Application Found". When I only search Unity it finds some other Apps called Unity, but it's all not what I want. It looks like the Ubuntu Software contains like 10 Apps and that's it??


Traveling to the US on the VWP before entering with a J1 visa

I am an international student studying in Canada, and have an EU citizenship, which makes me eligible to enter the US via the visa waiver program (VWP). In the fall I will be a research fellow in an American institute, to which end I will apply for a J-1 exchange visitor visa.  Prior to that, I am planning to attend a conference in the US, after which I will return back to Canada before entering the US again as an exchange visitor.     Will I be able to enter the US on the visa waiver program after starting the J-1 application process but prior to my program start date?   Regarding the J-1 visa, it is clearly stated on official websites that one is not allowed to enter the US more than 30 days prior to the program start date. However, my conference is more than two months prior to that date.


I am a stats rookie and have a relatively basic question regarding the  normal distribution of data.  If I measure a continuous variable under several different conditions/treatments, I look at the distribution of data points separately under each condition and not the whole data set. What if individual treatments are not normally distributed, but others are? Can I, for instance, transform the values of individual treatments to reach a normal distribution in those or would I have to transform the variable for all treatments? I assume the latter, if I want to do more than a pairwise-comparison with a control group or similar. Thank you very much in advance and sorry in case there is an already existing question that goes in the same direction.