Best way to CSV output a vertical list in a horizontal list

Python newbie here. I've used XPath to extract some data from a website which gives me a list in a list that looks like this: [['1','2','3'],['4','','6'],['7','8','9']] Currently, when I export this to CSV, each of the 'inner' lists is displayed in a single cell like: Cell A1 ['1', '2', '3']) Cell B1 ['4', '', '6'] Cell C1 ['7', '8', '9'] which means I would have to remove the unwanted brackets and quotes, Text-to-Columns and transpose to get what I want, which is this: 1,4,7 2,,8 3,6,9  What can I do/use to do this?


PHP regex match method usage in source code

I'm trying to parse code and swap out the usage of a method for a helper function. There's more processing that I need to do with the actual parameters passed to the method, so I plan on using preg_replace_callback.  Right now the code that I am trying to parse looks like this   <?= $this->Languages_model->trans( "Text Here!", $this->language->lid ); ?>  more <?= $this->Languages_model->trans( "Additional Text (C)", $this->language->lid ); ?>   What I'd like to match is the method calls:  $this->Languages_model->trans( "Text Here!", $this->language->lid ); $this->Languages_model->trans( "Additional Text (C)", $this->language->lid );   I'm currently using the following regex, but it's not working for me.  $regex = '|\$this\->Languages_model\->trans\(.*\);|sm';   Using the regex without the flags, returns what I want, provided that the methods are used on separate lines, but this can't be guaranteed. Otherwise it matches from the start of the first method to the end of the second.  There also may be new lines within the first parameter and between the first and second.  Thanks for any help you can provide!


Proof of "For each integer m, the set S = {i ∈ Z : i ≥ m} is well-ordered."

This is question 6.17 from Mathematical Proofs by Chartrand/Polimeni/Zhang.   Prove: For each integer $m$, the set $S = \{i ∈ Z : i ≥ m\}$ is well-ordered.  The given proof in the back of the book states:  Proof: We need only show that every nonempty subset of $S$ has a least element. So let $T$ be a nonempty subset of $S$. If $T$ is a subset of $N$, then, by the Well-Ordering Principle, $T$ has a least element. Hence we may assume that $T$ is not a subset of $N$. Thus $T − N$ is a finite nonempty set and so contains a least element $t$. Since $t ≤ 0$, it follows that $t ≤ x, \forall x ∈ T$ ; so $t$ is a least element of $T$.  Here's where I get lost: I get that $T - N$ is a finite, nonempty set. I do not get why this implies it must contain a least element $t$. Is it because of the fact it is finite? Are we using the knowledge that, while $Z$ does not contain a least element, any finite subset of $Z$ does contain a least element?  Also: I get why this $t \in T - N \leq 0$, but I don't get why we then know $t \leq x, \forall x \in T$. Is it because we've have concluded that this element $t$ is the least element of $T - N$? I feel like I'm on the verge of getting it, but it isn't quite all adding up.


How to show $\mathbb{E}(X) = \int_0^{\infty} (1-F_X(x)) \, dx$ for a continuous random variable $X \geq 0$ without assuming $f_X$ exists?

If $X$ is a continuous random variable taking non-negative values only, how do I show that $$\mathbb{E}(X)=\int_0^{\infty}[1-F_X(x)]dx$$   It's easy to give a proof if we assume the density function $f_X$ exists (use Fubini's Theorem to interchange the integrations). However, I got stuck in the general case. What if $X$ does not have a density function?


Uploading video to youtube in right format

I have a Sony CX115 and I have a little footage I'd like to put on youtube. I've downloaded Arista from the Ubuntu Software Center and then I've downloaded its Youtube HD plugin. I've converted my video and uploaded it to youtube... The result is a flashy video with a lot of grey in it:    What could I do to publish it in high quality so it'll be viewable?


'sudo apt-get -f install' produces error with overwriting

I am new to Ubuntu and Linux in general. I installed Ubuntu 16.04 but I can not install any applications in it. The error messages tell me there are unmet dependencies and tell me to run 'sudo apt-get -f install'. But running it produces the following errors:  Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 178237 files and directories currently installed.) Preparing to unpack .../libasyncns0_0.8-5build1_i386.deb ... Unpacking libasyncns0:i386 (0.8-5build1) over (0.8-4) ... dpkg: error processing archive /var/cache/apt/archives/libasyncns0_0.8-5build1_i386.deb (--unpack):  trying to overwrite shared '/usr/share/doc/libasyncns0/changelog.Debian.gz', which is different from other instances of package libasyncns0:i386 Preparing to unpack .../liblcms2-2_2.6-3ubuntu2_i386.deb ... Unpacking liblcms2-2:i386 (2.6-3ubuntu2) over (2.2+git20110628-2ubuntu3.1) ... dpkg: error processing archive /var/cache/apt/archives/liblcms2-2_2.6-3ubuntu2_i386.deb (--unpack):  trying to overwrite shared '/usr/share/doc/liblcms2-2/copyright', which is different from other instances of package liblcms2-2:i386 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../libogg0_1.3.2-1_i386.deb ... Unpacking libogg0:i386 (1.3.2-1) over (1.2.2~dfsg-1ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/libogg0_1.3.2-1_i386.deb (--unpack):  trying to overwrite shared '/usr/share/doc/libogg0/copyright', which is different from other instances of package libogg0:i386 Preparing to unpack .../libsamplerate0_0.1.8-8_i386.deb ... Unpacking libsamplerate0:i386 (0.1.8-8) over (0.1.8-4) ... dpkg: error processing archive /var/cache/apt/archives/libsamplerate0_0.1.8-8_i386.deb (--unpack):  trying to overwrite shared '/usr/share/doc/libsamplerate0/changelog.Debian.gz', which is different from other instances of package libsamplerate0:i386 No apport report written because MaxReports is reached already                                                               Preparing to unpack .../libwrap0_7.6.q-25_i386.deb ... Unpacking libwrap0:i386 (7.6.q-25) over (7.6.q-21) ... dpkg: error processing archive /var/cache/apt/archives/libwrap0_7.6.q-25_i386.deb (--unpack):  trying to overwrite shared '/usr/share/doc/libwrap0/changelog.Debian.gz', which is different from other instances of package libwrap0:i386 No apport report written because MaxReports is reached already                                                               Processing triggers for man-db (2.7.5-1) ... Errors were encountered while processing:  /var/cache/apt/archives/libasyncns0_0.8-5build1_i386.deb  /var/cache/apt/archives/liblcms2-2_2.6-3ubuntu2_i386.deb  /var/cache/apt/archives/libogg0_1.3.2-1_i386.deb  /var/cache/apt/archives/libsamplerate0_0.1.8-8_i386.deb  /var/cache/apt/archives/libwrap0_7.6.q-25_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


Is there a way to backup and restore ACL file and folder permissions on linux the way that there is using icacls in Windows?

In Windows you can do  (backup and restore ACL permissions) can you do this in Linux?  And to clarify, I mean ACLs in Linux, I do not mean the default permissions modified with chmod / chown.


I opened my laptop today to find that my arrow keys, excluding the left arrow, and Delete key are not functioning correctly.  The down arrow brings up the notification that the trackpad was disabled, the delete key brings up the notification that the trackpad was enabled, and the up and right arrows don't seem to do anything.  I'm running Ubuntu 14.04, I have an Acer laptop, and the keyboard model is set to Generic 105 key (Intl) PC.  The keyboard language is set to English(US).  I tried changing the model to a few different ones, but it didn't solve the problem.  I noticed that a lot of people had this problem in the past, but I couldn't find a solution for myself.  If you experienced this problem recently, how did you solve it?  Or do you have any ideas on how I may fix it.  Also, I have Ubuntu installed as my operating system and am not using a VM.


As you can tell, SO has quite a huge amount of bounties.  Can we get a filter option for bounties like these? So similar to shopping sites, we can have filters for highest bounty --> lowest bounty, date expiring, activity, views, etc.


Problem installing HP Laserjet M1136 in Ubuntu 14.04.14LTS

I'm new to ubuntu and trying to install the HP printer. All setting seem to be fine and the printer shows 'ready to print', but I can't even get the test page to print. Status say 'rendering completed', but show as 'stopped' I've seen some answers that explain there may be a bug. I'm not a programmer so can't really sort this out myself.  Please help.


Motivation for the mapping cone complexes

I was reading some topics in Homological Algebra when I came across the concepts of cone of a map of complexes and cylinder.  My knowledge of Algebraic Topology is pretty basic so I only used these concepts in a pure algebraic setting. What is the motivation for this?   The shapes of a cone for example appears only in the simplicial context of Algebraic Topology or is it possible to "see" the cone in algebraic terms ?


Field of fractions of PID R with infinitely many max ideals not a f.g. R-algebra

Let $R$ be a principal ideal domain, with field of fractions $F$. Show that if $R$ has infinitely many maximal ideals then $F$ is not finitely generated as an $R$-algebra.


listing files with extension in Terminal

in a Terminal session the command   ls *.pdf -l   does not list the pdfs (or whatever other file format) as expected, as the -l option seems to be ignored. Everything works fine if I issue a simple  ls -l   How do I fix this?  I'm on Mac OS X 10.7.5 and using a bash shell.


So there is probably one feature I miss sincerely and that is being able to hit the title bar on the iPhone to essentially trigger the "Home key."  Is there a way to assign this to one of the volume switchers or maybe add a fourth button to the bar at the bottom or even double tap the home button maybe.  I use it a lot and want it to be easily accessible.    .


How to share .bashrc files between two mac user accounts

I have set up two user logins on my computer, one for home and one for work. I would like to be able to share any of my bash and vim settings between the two users. Is there anyway to do this? Thus far, I've been copying them from one account to another, but I'd like to be able to just have one file between the two so I can make changes in only one place. Is this even possible? Thanks.


I am working on a VERY simple calculator with Java and it does not seem to output an answer after selecting the operation. The code is as follows:   import java.util.Scanner; public class Calc { public static void main(String[] args) {     Scanner keyboard = new Scanner (System.in);     Double fnum;     Double snum;      Double answer;     String operation;      System.out.println("Enter a number.");     fnum = keyboard.nextDouble();     System.out.println("Enter another number.");     snum = keyboard.nextDouble();     System.out.println("What operation do you wish for? [Multiplication, Addition, Subtraction, Division]");     operation = keyboard.next();      if (operation == "Multiplication" || operation == "multiplication" || operation == "*") {          answer = fnum * snum;         System.out.print("Your answer is: " + answer);      }        else if (operation == "Division" || operation == "division" || operation == "/") {          answer = fnum / snum;         System.out.print("Your answer is: " + answer);      }        else if (operation == "Addition" || operation == "addition" || operation == "+" || operation == "add") {          answer = fnum + snum;         System.out.print("Your answer is: " + answer);      }        else if (operation == "Subtraction" || operation == "subraction" || operation == "-" || operation == "subtract"){          answer = fnum - snum;         System.out.print("Your answer is: " + answer);      }       else {         System.out.println("This is not valid.");     }   }  }   and this is the output:  Enter a number. 6 Enter another number. 6 What operation do you wish for? [Multiplication, Addition, Subtraction, Division] Multiplication  This is not valid.   Any help would be very appreciated.  P.S. there are no errors.  Thanks!


Expanding an event group shows more events than labeled when there are new events

I have six upvotes for the one question with no intervening history. They have been summarised into two groups - one with 4 events and one with 2 events. However, when you expand either, both show all 6 events. Minor I know, just letting you know.


My B1/B2 visa expires on 23 November 2018, and I have to stay in the US up to 2 December 2018. As I heard while I entered the USA they will grant me a 6 months visa.  My one off friend with the same B1/B2 visa; his will expire in two days but he got a 6 months visa on arrival in USA.  Does the same rule and law still apply now?


Solution to the functional equation $f(x^y)=f(x)^{f(y)}$

Consider the functional equation problem $$ f : \mathbb R \to \mathbb R \text , $$ $$ f \left( a ^ b \right) = f ( a) ^ { f ( b ) } \text , $$ when $ a , b \in \mathbb R $, $ a , b \ge 0 $. So far the only solution I have is the trivial $$ f ( x ) = x \text . $$ Does there exist any other possible solution? Even if the $ f $ doesn't have a closed form in terms of elementary functions, is there some way I could derive a series or an alternative expression for it? I tried to get a little more creative: $$ f ( w ) = f \left( w ^ { \frac 1 w } \right) ^ { f ( w ) } \text , $$ which nests deep into $$ f ( w ) = f \left( w ^ { \frac 1 w } \right) ^ { f \left( w ^ { \frac 1 w } \right) ^ { f \left( w ^ { \frac 1 w } \right) ^ \vdots } } \text , $$ which is equivalent to $$ \ln \big( f ( w ) \big) = \ln \bigg( f \left( w ^ { \frac 1 w } \right) \bigg) f ( w ) \text . $$ I was hoping to generate some sort of series using this.


Prove that if $d$ divides $n$, then $2^d  -1$ divides $2^n  -1$.  Use the identity $x^k  -1 = (x-1)*(x^{k-1}  +  x^{k-2}    + \cdots + x +1)$


Should a comma come before 'you' in this sentence?

I'm wondering whether a comma should precede the pronoun 'you' in the sentence examples below:   That's not how the computer works, you fool. Thanks for the assignment tips, you saviour.   Whenever I usually write, I always place a comma before the pronoun in sentences like the examples above. However, I haven't really found anything that corroborates the notion that this is 'correct practice'. It is just something I have seen and copied. It would be helpful if someone can correct or explain this to me.  Any responses are much appreciated.   P.S. As an extra piece of help, is the pronoun 'you' an object in the first sentence and a subject in the second sentence? Is it an object pronoun in both? Thanks in advance for any responses to this as well.


Python 2.7.14 on Kali Linux: AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

I was attempting to install w3af, and following their instructions, I ran the generated script to install the Python dependencies:  > sudo pip install pyClamd==0.3.15 PyGithub==1.21.0 GitPython==2.1.3 > pybloomfiltermmap==0.3.14 esmre==0.3.1 phply==0.9.1 nltk==3.0.1 > tblib==0.2.0 pdfminer==20140328 futures==2.1.5 pyOpenSSL==0.15.1 > ndg-httpsclient==0.3.3 pyasn1==0.2.3 lxml==3.4.4 scapy-real==2.2.0-dev > guess-language==0.2  >     cluster==1.1.1b3 msgpack-python==0.4.4 python-ntlm==1.0.1 halberd==0.2.4 darts.util.lru==0.5 Jinja2==2.7.3 vulndb==0.0.19 > markdown==2.6.1 psutil==2.2.1 mitmproxy==0.13 > ruamel.ordereddict==0.4.8 Flask==0.10.1 tldextract==1.7.2 > pebble==4.3.2 xdot==0.6   Now anytime I run pip, I get the following:  > Traceback (most recent call last): File "/usr/bin/pip", line 9, in > from pip import main File > "/usr/lib/python2.7/dist-packages/pip/init.py", line 21, in from > pip._vendor.requests.packages.urllib3.exceptions import > DependencyWarning File > "/usr/lib/python2.7/dist-packages/pip/_vendor/init.py", line 64, in > vendored("cachecontrol") File > "/usr/lib/python2.7/dist-packages/pip/_vendor/init.py", line 36, in > vendored import(modulename, globals(), locals(), level=0) File > "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/init.py", > line 9, in File > "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/wrapper.py", > line 1, in File > "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", > line 4, in File > "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/init.py", > line 52, in File > "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/packages/init.py", > line 59, in File > "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/packages/init.py", > line 32, in vendored File > "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py", > line 47, in File > "/usr/local/lib/python2.7/dist-packages/OpenSSL/init.py", line 8, in > from OpenSSL import rand, crypto, SSL File > "/usr/local/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in > SSL_ST_INIT = _lib.SSL_ST_INIT AttributeError: 'module' object has no > attribute 'SSL_ST_INIT   After some research, I believe it's due to the python openssl package, but all I've seen to do is reinstall it or upgrade, but I can't even run pip. At this point I'd like to just be able to use pip again, whether that means fixing the pyopenssl issue, or removing it, or reinstalling python altogether.  Thanks.


Python regex only matching at start of string

I'm having trouble with the re package in python 3.8. Any expression I create is behaving as though I used ^ to anchor to the start of the string. For I would expect this expression to match the first digit (1), but doesn't match anything at all. re.match('\d','abc123')  Similarly, searching for specific substrings only works if the substring starts with the first character re.match('a','abc123') # works re.match('b','abc123') # does not work re.match('ab','abc123') # works  Am I missing something incredibly simple? Is there some option or flag I need to change to allow it to match substrings starting at any position?


What is the most efficient way to initialize an array with values?

I need to create an int array of a specific size. The array should be initialized with a specific, non-0 value (all elements should be 1).  int[] array = createArray(12, 1);   Of course I could simply initialize the array and for-loop over it, setting all values to 1.  int[] createArray(int size, int defaultValue){    int[] arr = new int[size];    for(int i = 0; i < size; i++) {        arr[i] = defaultValue;    }    return arr; }   But I wonder, if there are better alternatives (i.e. Java out-of-the box utilities) to this in terms of speed or compactness of source code so I could potentially inline it instead of having a dedicated method for that?


What is the benefit of using elliptic curves over the standard finite field, when the cyclic subgroup we consider of the EC's  solution group is just isomorphic to some integer residue class of prime order? Is it because the group operation is more complex?


How do I get my Python program to sleep for 50 milliseconds?


How to determine windows edition without logging in?

A friend of mine gave me a computer that belonged to a relative of his that passed away.  We don't know the password to the computer and my friend would like to use it so we are trying to reinstall windows but we want to make sure that we install the correction edition (Home or Pro).  I know it is windows 10 but not sure on the edition. Is there a way to tell which edition of windows you have from the login screen or from recovery/install media usb? I've tried using the Command Prompt from the Recovery Media USB but WINVER is not recognized as a command Windows is installed on an NVMe drive and I do not have a way to read that drive so reading an offline windows installation is not possible in my scenario.


If I wanted to write about 1899, would I call it the turn of the 19th century or the turn of the 20th century? Basically: does 'turn of the century' refer to the beginning or end of a century?


When is $\sin x$ an algebraic number and when is it non-algebraic?

Show that if $x$ is rational, then $\sin x$ is algebraic number when $x$ is in degrees and $\sin x$ is non algebraic when $x$ is in radians.    Details: so we have $\sin(p/q)$ is algebraic when $p/q$ is in degrees, that is what my book says. of course $\sin (30^{\circ})$, $\sin 45^{\circ}$, $\sin 90^{\circ}$, and halves of them is algebraic. but I'm not so sure about $\sin(1^{\circ})$.  Also is this is an existence proof or is there actually a way to show the full radical solution.  One way to get this started is change degrees to radians. x deg = pi/180 * x radian.  So if x = p/q, then sin (p/q deg) = sin ( pi/180 * p/q rad). Therefore without loss of generality the question is show sin (pi*m/n rad) is algebraic. and then show sin (m/n rad) is non-algebraic.


In Harry Potter, what kind of home life do those born to a wizard and a Muggle have?

Wizarding families are all magical, spells and charms being performed by older siblings and parents on a regular basis. Families of Muggle-borns are just Muggle normality, up until the Muggle-born’s 11th birthday. Then we have those who are born to a wizard and a Muggle (those who actually LIVE with them (like Lockhart and Umbridge). Would the Wizarding parent perform spells and charms around the house, for example?


How do you solve this? What does mod mean and how will I solve it? I understand that it can be solved but how? 5 to some exponent equals the (mod of 9797) what is the answer to this?


I currently run a headless server (Ubuntu server 12.10) with various applications running on the box accessed via web interfaces (transmission, plex etc). The box sits at a site with a quick and serves the purpose of being a central file repository, torrent box.   I was wondering if there was any application I could install on it which I could access via a web interface, password protected, which allowed me to punch in a file URL and it could download that file to a predetermined folder? Something similar to the transmission client for ubuntu server but for files off the web?


I would like to calculate Cohen's d for 2x2 ANOVA interaction (nationality: Germany, France; gender: male, female).   Someone asked similar question earlier (), and got an advise to calculate Cohen's d using (a1 - b1) - (a2 - b2) as a numerator and the square root of the MSE from the ANOVA as a denominator.  Could someone please tell me a reference, where I could find more information how to calculate Cohen's d using this formula? I really cannot find any. What would a1, a2, b1 and b2 be in my case?


Sets of functions closed within composition.

I want to know all sets of single-variate functions that fulfill the following qualities: $\forall_{f:R^2 \to R^2} \forall_{g \in CAF} \forall_{h \in CAF} \exists_{k\in CAF} k(x) = f(g(x),h(x))$ where CAF is the set I am wishing to find. I know that the set of constants and the set of piece wise constants each satisfy that equation. Do any others?


I have a Red Hat Enterprise Linux server (7.5 x86_64). I have OpenSSH version 7.4. I was asked to upgrade it to a later version for security reasons: Nessus states that . However the Red Hat software and downloads does not have the latest package RPM.  I found some clues on where to get the latest package for OpenSSH. I found , however, I do not know on how to upgrade it and trust this website. I do not want the SSH and other configuration to be modified by the ugrade.  I did find links but however they are not useful, for example .  I would like to know how to upgrade OpenSSH without using yum.


from reading previous posts it seems customary to directly contact a potential supervisor. Nevertheless, the school I'm applying seems to have a central admission comittee. Still, the professor in question encourages PhD candidates to contact him. Do i have less of a chance if i do not write him prior to the application and does he potentially expect some content other than explained . Also, isnt it rude to directly address a professor with their first name at first contact?


Proving addition is associative in $\mathbb{R}$

I have to prove that $\mathbb{R}$ is a field.  One of the properties for $\mathbb{R}$ to be a field is that addition in $\mathbb{R}$ is associative. I wanted to use this property as an example for the other ones.  My question is, how can I show something so intuitive? Can I say that it is simply assumed that addition in $\mathbb{R}$ is associative? Or should I use $a+(b+c)=(a+b)+c$ for $a,b,c \in \mathbb{R}$ in some way?  I am sorry for the silly question, it has been a while since I proved something. Thank you.


Integers can be expressed as $a^3+b^3+c^3-3abc$

$$S=\{a^3+b^3+c^3-3abc|a,b,c\in\Bbb Z\}$$  Can we decide $S$? that is,  we want to find all integers of the form $a^3+b^3+c^3-3abc$.  obviously,    if $m,n\in S$, then $mn\in S$, so we only need to consider primes; if $n\in S$, then $-n\in S$.   Let $f(a,b,c)=a^3+b^3+c^3-3abc$. $f(0,0,0)=0$, $f(1,0,0)=1$, $f(1,1,0)=2$, we get that $0,1,2\in S$  p.s. I find a solution for $a,b,c \geq0$: $n=2^rp_1^{r_1}\dotsb p_s^{r_s}$, $p_1< p_2<...$ are odd primes, then a suficient and necessary condition for $n$ can be expressed as $a^3+b^3+c^3-3abc$($a,b,c \geq0$) is $p_1>3$ or $p_1=3$ with $r_1\geq2$


is it possible to import a dynamic library written in c++ into a c# program

All in the title really. I have a library, written in c++ and compiled into a dll. I would like to use this functionality in a c# program. Is it possible to use the classes/functions from the library straight from c#, would I need to write some wrapper code to use it in a managed environment? Can they be used in an unsafe context? Sorry if this is a silly question - I'm a c++ programmer trying to move over to c#.  p.s. the library is from a third party, so I cannot port it direct to c# even if I had the time.


Invariance of action $\Rightarrow$ covariance of field equations? Is this statement true?  I have only seen examples of this, like the invariance of Electromagnetic action under Lorentz transformations.  How could we prove it?  The action is a scalar, $S$, so how I can't even transform it like $U^{-1}SU$...


How to make XeLaTeX display nothing except warnings and errors?

When I run XeLaTeX  XeLaTeX --max-print-line=2048 --c-style-errors --interaction=nonstopmode "C:\Report.tex"   I get this output  This is XeTeX, Version 3.1415926-2.5-0.9999.3 (MiKTeX 2.9 64-bit) entering extended mode ("C:/Report.tex" LaTeX2e <2011/06/27> Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, arabic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, galician, german, german-x-2013-05-26, greek, gujarati, hindi, hungarian, icelandic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, ngerman-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usenglishmax, welsh, loaded. ("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls" Document Class: article 2007/10/19 v1.4h Standard LaTeX document class ("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo")) No file Report.aux.  LaTeX Warning: Citation `ref:dummy' on page 1 undefined on input line 3.  [1] ("Report.aux")  LaTeX Warning: There were undefined references.   ) Output written on Report.pdf (1 page). Transcript written on Report.log.   But I really couldn't care less what hyphenation patterns are available or what folder MiKTeX is installed in... I just want to see the warnings and errors. So instead I'd like to see something like:  C:/Report.tex:18: warning: Citation `ref:dummy' on page 1 undefined   Is there any built-in way to have it only output both warnings and errors, or do I have to write my own shell script?


I've got a little question here because I'm creating a log in and register system. A developer at my school told me to salt secure passwords. I agree on that point but he said I needed to create the salt out of a timestamp but how to do it? Currently I'm doin' this:  $password = hash('sha512', $password . $salt);   and the salt just like:  $salt = "xHkosbGhsfT77239GhsvH";   This stands litteraly in my configuration so it's not good...   Does anyone have some tips? Any idea how to do it, so if any of you do share it with me!  Thanks.


Prove that one of $2^n +1$ and $2^n-1$ must be composite for $n$ is a natural number greater than $2$

For natural numbers $n>2$ prove that at least one of $2^n-1$ and $2^n+1$ must be composite. How would one conduct this proof? I had the idea of trying to prove by contradiction since for this to be true these would have to be twin primes however this did not seem to go anywhere.  Thanks


Alrighty, I have perused the threads already in existence and am finding none of them seem to have the exact combination of variables I've got going.  I'm working on a computer using Ubuntu 12.04. Currently, it boots straight into tty1  Ubuntu 12.04.4 LTS [computer name] tty1  [computer name] login: Password:   Login leads to:  Last login: Wed Mar 19 13:47:11MDT 2014 on tty1  Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.2.0-32generic-pae i686   The owner of the computer stated that this issue happened after a recent update, if that gives anyone a hint as to the specific location of the graphics failure.   I'm capable of booting into the GUI utilizing startx, but am frankly at a loss of where to go from here. Years of Windows has molded me into a GUI heavy kinda person, so, if possible, work off the assumption that I've no idea what you're talking about and break it down to the simplest of steps.  Thanks!


Given is a 2x2 matrix. Deduce a necessary and sufficient condition that this matrix is regular

Given is the matrix $A=\begin{pmatrix} a & b\\  c & d \end{pmatrix}$.   Derive a (necessary and sufficient) condition (equation or inequation in the coefficients $a,b,c,d$) such that $A$ is regular   and determine $A^{-1}$.   I'm not quite sure how such a condition is supposed to look like with these mentioned coefficients.  So I know that $\det(A) = 0$ is a necessary and sufficient condition for a matrix to be not invertible e.g. not regular. (Wikipedia)  From this it follows that $\det(A) \neq 0$ is a necessary and sufficient condition for a matrix to be invertible e.g. regular.  How do we achieve that?   If $a=0$ and/or $d=0$, then $c,b \neq 0$ If $c=0$ and/or $b=0$, then $a,d \neq 0$ $a \cdot d \neq c \cdot b$   So this would be a necessary and sufficient condition? Not really, in my opinion.. :(  The two sentences at the beginning seemed better but I didn't use any coefficients there as mentioned in the example task.  How do you do this correctly? I'm really scared of such a task in a test..


WIFI issues with Realtek Semiconductor Co., Ltd. Device b822 Ubuntu 18.04 LTS

I cannot get WIFI working with Realtek adapter.  lshw -C network WARNING: you should run this program as super-user.   *-network UNCLAIMED        description: Network controller        product: Realtek Semiconductor Co., Ltd.        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:02:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: cap_list        configuration: latency=0        resources: ioport:d000(size=256) memory:ef100000-ef10ffff  lspci  lshw -C network WARNING: you should run this program as super-user.   *-network UNCLAIMED        description: Network controller        product: Realtek Semiconductor Co., Ltd.        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:02:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: cap_list        configuration: latency=0        resources: ioport:d000(size=256) memory:ef100000-ef10ffff


I have a simple function to display genman texts from database. I get bad output on HTML : That's the output in HTML (you can see wei� instead of weiß)   My HTML head :  <!DOCTYPE html> <html lang="de"> <head>     <meta charset="latin1">   I tried UTF-8, ISO-8859-1 didn't work as well, same bad character  The data in my PHPMyQdmin table looks fine:   This is the structure of my table (field cName):    UPDATE 1 I tried to force the encoding in the SELECT query but didn't get the right result too :  SELECT column1, CONVERT(column2 USING utf8) FROM my_table  WHERE my_condition;   UPDATE 2 this is my PDO connection :   $conn = new PDO("mysql:host=$servername;dbname=cmondo;charset=utf8", $username, $password);


(13)Permission denied django apache server

I tried to upload my django project (apache2 + Ubuntu Server). This is my config file: <VirtualHost *:80>      ServerAdmin webmaster@localhost     DocumentRoot /var/www/html       ErrorLog /var/log/apache2/error.log     CustomLog /var/log/apache2/access.log combined          <Directory /home/my_user/project_name/project_name/>         <Files wsgi.py>             Require all granted         </Files>     </Directory>      WSGIDaemonProcess django_proj python-path=/home/my_user/project_name python-home=/home/my_user/project_name/venv     WSGIProcessGroup django_proj     WSGIScriptAlias / /home/my_user/project_name/project_name/wsgi.py  </VirtualHost>  but found this error when I type sudo cat /var/log/apache2/error.log: [core:error] [pid 20884:tid 140074095675136]  (13)Permission denied: [client some number] AH00035: access to /favicon.ico denied (filesystem path '/home/my_user/project_name/project_name/wsgi.py')  because search permissions are missing on a component of the path,  referer: http://my-ip-address/  and on my browser I get this error:  Forbidden You don't have permission to access this resource.  I much appreciate your help. I searched a lot, but I didn't find a solution.


How can I fix the default orientation of a model?

I downloaded a 3d motorbike from unity asset store. But its facing forward along -x-axis. All the parts are separate as children of a main object. I would like to fix it so that its facing along z-axis by default.  How can this be achieved in blender?


I used this code to do citations for the following reference   \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel}  \usepackage[backend=biber,style=authoryear]{biblatex} \addbibresource{SMC_paper.bib}  \begin{document} Let's cite! The Einstein's journal paper \cite{al2004sliding} \printbibliography \end{document}    this reference:  @article{al2004sliding,    title = {Sliding mode control of a magnetic levitation system},    author = {Al-Muthairi, NF and Zribi, M},    journal = {Mathematical Problems in Engineering},    volume = {2004},   number = {2},   pages = {93--107},   year = {2004},   publisher = {Hindawi Publishing Corporation}  }   but it gives me this result     Let's cite! The Einstein's journal paper al2004sliding


Monopoly hotel sell to pay debt to opponent

I recently played Monopoly and was forced to sell hotels to pay my opponent. The problem was that the bank only had two houses left, so I was unable to sell hotels because there weren't enough houses to replace them with. I only wanted to sell the hotels because I didn't need any more money.  The rules state the number of houses and hotels are finite, so what can I do in this situation: when there there is no way to sell hotels and replace with houses? Assume everything else was mortgaged and I had no money.


I recently installed Oracle Virtualbox from their website on Xubuntu 15.04 64-bit. Specifically, Virtualbox 5.0.4. However, when I try to install a virtual machine, it only gives me the option to install a 32-bit OS (as seen below). Is there a way to allow 64-bit OSes?


Sci fi short story about a boy experiencing space travel out of suspended animation

I'm looking for the name of a short story about family on space flight.  The boy somehow stayed out of suspended animation, possibly out of curiosity.   At the end, with "empty eyes" he answers what it was like.


I can't figure out how to make a page horizontal.


find command with regex quantifier e.g. {1,2}

I have been trying to create a find command string that will find all files that end with a number 1-99 but exclude all others.  e.g. I want to find myfile1 myfile99 but not myfile456 and not myfilebackup  The regex I'm thinking of is myfile[1-9]{1,2} but I can't get this to work with find.  find . -regex '.*myfile[0-9]{1,2}' OR  find . -iname 'myfile[0-9]{1,2}'  From what I can see it's the {1,2} part that is not working.  (by the way can you use -name -regex interchangably?)  Any help appreciated.


"Incompatible with other applications(s) using the same shared user ID" when installing Google Play service?

I need to run Google Plus, and Google Plus needs the Google Play service.  Every time I install google play service from the Google Play store it fails to install with this error:     Incompatible with other applications(s) using the same shared user ID   What could be the issue? How can I fix this?  UPDATE: I know almost nothing about android, so I dont know what ROM is, or such thing, I get my phone from local production and I guess, yes, it uses custom system, so I just know that I'm using Android Version 4.0.4. any help would be greatly appreciated.


I've found a few magazines in the game but I've since sold them and forgotten which ones they were.  Is there any way to find out which ones I've found so far?


auto-open a question if it has a very high amount of upvotes

EDIT: i have accepted (by upvoting) the accepted answer in . That stackoverflow does not want everything is a good argument, even if it just could be hidden and even if very popular subjects do not develop further that way. END EDIT  Example:    Numbers: Friday, 2013.11.1  Question:   621 upvotes 812 times favourite question 184 upvotes for comment: 'Why is it that the most helpful questions I find on SO are always "NOT CONSTRUCTIVE"?' 64 upvotes for comment 'Amen, @kaustubh. It is a disease Stack Overflow has contracted, and it is running out of control. Sad, but I don't think it can be reversed at this point' (well i think it can)   Accepted Answer:   1073 upvotes 160 upvotes for comment 'This is a really remarkable answer. +1 seems almost mean. Thank you'   4 more answers with >= 30 upvotes  On the other Hand, the  who closed the question has Questions/Answers related to 1,057 tags, but:   0 Questions/Answers tagged 'Haskell' 7 Questions/Answers tagged 'functional programming' (2 accepted answers)   I think, this is quite a disbalance, if one guy without much experience in a subject can stop the subject, even if it interests a tousand guys (maybe more).  I suggest therefore to Auto-open a question if it has a very high amount of upvotes.  Advantage:   Admins can say: "Ok, everybody upvote this and it will reopen." it gives users another reason to be proactive and upvote stuff they like.   Disadvantage:   Admins may say: "I am not sure/I dont care, lets just close it for now, as everybody can upvote this anyway and it will reopen."   Maybe there are better solutions.  Whatever you think/decide, i think that this specific question deserves clearly to be reopened as the problem of using it in Practice is a concrete one. If you do not believe me, try to write an increment function in that language.


Set Theory Notation: What does it mean to "\" one set with another?

What does the "\" operator mean in the above context?


Is there a way to decrypt a file in gpg without passphrase poping up and without batch file?

I need to figure out how to decrypt from command line without gpg asking a popup to enter passphrase, I want to define that in the command line?  is it possible without having to create a batch file  please help


Can the stock price go up even if no one is buying?

Let's assume there's this random company (XYZ)--that few are aware of--is selling stocks and they're doing really well. If their stock price is at $50 and no one is buying, will it still go up?  Do stock prices only go up when people are buying?


Should Badges that can no longer be awarded be removed from the 'Badges' panel?

I was browsing the Stack Overflow badges tab earlier, and noticed there are some badges that can no longer be awarded.  For example;   Analytic Precognitive Beta   These are badges that, unless I'm misunderstanding what they mean, are no longer possible to be awarded, which brings me to the question, should they still be visible on the 'Badges' tab?   I'm not saying remove them from users who have earned them, just hide them on the badges page, or perhaps even better, have a separate section at the bottom for 'Retired Badges', or something similar?


I am validating my form using javascript validation as whole validation is working fine but email validation is not working. My form code is as follows  <form method="post" action="contact.php" name="myForm" onsubmit="return validateForm()">
To know more contact us today.

             Name:
                 <input id="name" name="name" type="text" />

             Contact No:
                 <input id="contact" name="contact" type="text" />

             Email:
                 <input id="email" type="text" name="email" />

             Address:
                 <textarea cols="34" id="address" name="address" type="text"></textarea>

                              <input type="submit" value="Submit" />

 </form>   and my javascript code is as follows


Where are the other schools of magic beyond the seven already named?

With the new  and the upcoming release of  film, JK Rowling has been awesome and given us new writing on the .  In the introduction it is stated that there are eleven established/registered schools. There are writings for six of them. I don't think we need a new writing for Hogwarts... so that means seven have been located and defined.   Hogwarts School of Witchcraft and Wizardry - Great Britain  - France  - Northern Europe (possibly Estonia, Latvia, or Belarus)  - Japan  - Africa (possibly Congo/DRC)  - Brazil  - United States   Do we know anything of possible location or names of the other four schools? I know Koldovstoretz was mentioned as school in Russia, but is that still canon?   Koldovstoretz - Russia (maybe depending on current canon)   The final three are my guesses based on the population and geography on the world.   Name Unknown - China (based on population) Name Unknown - India (based on population) Name Unknown - Australia (based on geography)   Related:


How can I change colors in an Illustrator file without modifying other aspects?

I purchased a stock vector design.   I want to change the preset colors used in vector art and leave everything as it is. The object is made up of bunch of shapes.   As I try to change the colors instead of it looking nice and blended as it did when I have bought it. All I see is the shapes with no gradients or blends.  Since I am new, I do not know the simplest way to change the color "theme" without messing up the way it looks right now.   Is there an easy way to change colors of an exiting Illustrator file?


How to install "Killer E2400 Gigabit Ethernet Controller" without internet connection on Ubuntu 14.04

I was finally able to get the OS installed on my MSI Ghost Pro laptop (currently the only OS on the machine) only to discover that NONE of my networking drivers were working. ifconfig only shows the lo interface and nothing more. All of the troubleshooting guides I can find assume at least some method of being able to connect to the internet in order to make any fixes.   I know this question can be dependent on the specific drivers themselves, and was hoping someone could tell me if there is a way to get this particular ethernet driver working on Ubuntu 14.04, or any any other way of connecting this machine to the internet in order to make the necessary updates.  The particular Ethernet card on the machine is the 1969 ("Qualcomm Atheros"), device: e0a1 ("Killer E2400 Gigabit Ethernet Controller")


python: split() splits quoted values too

I have a address like   line = 12345 North Drive,,"Palm Retreat, CO",CO,92261     When I split I get    line.split(",")  ['12345 North Drive', '', '"Palm Retreat', ' CO"', 'CO', '92261']     All I want is   '12345 North Drive', '', '"Palm Retreat CO"', 'CO', '92261']     What is that I am missing here?


Why is do-release-upgrade not seeing the latest release?

I'm trying to upgrade from Ubuntu 19.10 to 20.04.  I have my Software & Updates set to Notify me of a new Ubuntu version: For any new version, but I didn't see a notification.  I then ran the following commands, and got some weird output.  master@master-desktop:~$ sudo do-release-upgrade -cd Checking for a new Ubuntu release New release '20.04' available. Run 'do-release-upgrade' to upgrade to it.  master@master-desktop:~$ do-release-upgrade  Checking for a new Ubuntu release No new release found.   Why is it not capable of upgrading to 20.04 when the -cd flag clearly shows it?


How do i start the rigid body dynamic in the keyframe i want?

I’ve been trying to animate a blowing skull, but, when i try to add the active rigid body dynamic, it stars from keyframe 1, when what i want is to start it in the keyframe 267.


I've tried to make macarons eight times in a row and I failed. I used  (text version is in the description below the video).  They all cracked on top and the surface collapsed as you see in the picture. I did some research and watched youtube videos to find out what I am doing wrong. As I figured the following factor could be the reason behind ugly macaroons:   I read somewhere that the time you let the batch sit and dry before putting i the oven is an important factor. I let it rest for 45 minutes to one hour instead of 20-30 minutes, but the result was the same, if not worse. The other factor is beating egg whites to stiff peaks. There, I think this is where my problem come from. So I beat the egg whites with a pinch of salt to medium peak stage, then add in the sugar in 3 batches while mixing with hand mixer. After watching several videos I know what stiff peaks look like, or at least I think so. But trying the recipe keeping that point in mind it still had the same result:      What else is important in making macarons that avoid them crack? What am I missing?  The weird thing is, my first batch was a success without precise measurements and so on! Here is the picture:


Transfer settings to new version of Blender

I use Mac OSX 10.9.5. A year ago, I downloaded 2.75a, and today, I downloaded version 2.77a. I downloaded both via .zip file from blender.org and dragged each into the Applications folder of my Mac.  In 2.75a, I had done some painstaking remapping to accommodate my Magic Mouse and Apple Wireless Keyboard, in addition to a pretty shiny custom theme. I didn't want to redo these settings.  How could I transfer my old settings into the new version? Apparently due to my method of download, "Copy Previous Settings" did not show on the splash screen. I searched "Copy Previous Settings" in the new version via the spacebar, and it returned an error: "Users/aubrie/Library/Application Support/Blender/2.76 does not exist". From this, I figured how to copy my old preferences.


Is there a way to plug two monitors into a single laptop VGA port?

Is there some kind of reverse splitter so I can plug two monitors into my laptop's VGA port?


Combinations of different brands of drink in a cooler

You want to put 10 cokes into a cooler. There are 6 brands of coke. Each brand has more than 10 cans. How many configurations are there if positions do not matter. This is just grim


I was reviewing a problem on an old math contest and it had a problem asking for horizontal, vertical, and slant asymptotes.  The equation was this:  $y=\frac{x^{2}-3x-4}{x^{3}-x^{2}-30x+72}$  Here's a graph:    It said that $y=0$ was a horizontal asymptote. However, the graph shows that it crosses $y=0$, which led to my question: What's the definition of a horizontal asymptote?  Here's something taken from www.freemathhelp.com: "A horizontal asymptote is a y-value on a graph which a function approaches but does not actually reach. Here is a simple graphical example where the graphed function approaches, but never quite reaches, y=0."  The example never said anything about one part of the graph approaching it, but another part intersecting it. That confused me. Thanks in advance.


How does the automatic subjective filter work?

I just entered a question titled: "What’s the best way to serialize / deserialize a Dictionary<String,String> in .Net 2.0?"  And the system told me: "The question you're asking appears subjective and is likely to be closed."  How is that working currently? What are you looking for in the title to flag something as "potentially subjective"? Is it because I asked for "the best way" to do something?


I created a bootable USB for Ubuntu 17.10 (with Rufus), and when I boot on it, then select "Install" or "Try without installing", I got this error :  [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x52 (or later)   I've seen on some other posts that I could try to update my BIOS. I did this, but didn't work.  It also happens when I try to install Ubuntu, Kali or Fedora 27 on a virtual machine (host is Windows 10 professional, with VirtualBox).  I guess it could be useful to give my CPU references, which are as follows :      Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz, 2501 MHz, 4 core(s), 4 thread(s)   Thanks a lot ! Gaël


Screen Resolution not displaying properly on eee pc

After installation, everything works normally except for the very big icons on the screen. I checked the screen resolution and found out that it is very low, 1024x600.  I tried searching Ask Ubuntu and Google for answers and I found some but it doesn't work for me. I also tried running xrandr and create a modeline using cvt, but it always gets an error.  $ xrandr  Screen 0: minimum 320 x 200, current 1024 x 600, maximum 32767 x 32767 LVDS1 connected primary 1024x600+0+0 (normal left inverted right x axis y axis) 220mm x 129mm    1024x600       60.0*+   65.0      800x600        60.3     56.2      640x480        59.9   VGA1 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis)   I also followed all the possible steps that I can find here:       It's not only the icon size, but also the windows and their contents are even bigger. Relatively. Some opened windows (i.e system settings, unity tweak tool, etc) are extending to the other sides of the desktop. Making it such a pain to configure my settings or do other stuff in my desktop.


How does windows determine "no internet access"?

I've seen this several times (mainly in VMs): although the machine is connected to the local network the OS (at the moment I am talking about Win 8.1 as guest in Virtualbox) notifies me:     Network: No internet access   I just want to know how Windows draws that conclusion.


This is a followup of  that seems to find no easy answer. My goal is to achieve highlighting a sub-part of a word without breaking the ligatures and without the ligatures breaking the highlighting. I've come up with a solution using a background color.  Basically, it prints the word twice on top of each other. This is achieved with \rlap for the first print. This first print prints the first part in white on white, then the second part (the highlighted one) in gray on gray, then the third part again in white on white. After that, the second print prints the whole word in the normal foreground color on top of it, so that the middle part appears in the foreground color on top of a gray background. Because the presence or absence of ligatures changes the width of the word (parts), the alignment between the 2 versions has to be adjusted manually through a bit of kerning.  While using this in a table is fine (which is my goal anyway), there is an issue when it is called at the very beginning of a paragraph. There, \rlap seems to add a linebreak. This linebreak disappears if a command appears before, like \noindent or \rule{0pt}{0pt}. Has anyone an explanation? and a way to avoid the workaround with putting \rule{0pt}{0pt} in the macro?  \documentclass[varwidth,landscape]{standalone} \usepackage[ngerman,frenchb]{babel} \usepackage{fontspec} \setmainfont{Linux Libertine O}  \usepackage{frcursive}  \usepackage{xcolor}  \definecolor{FR}{rgb}{.2717,.4566,.2717} \definecolor{fond}{gray}{.8} \setlength{\fboxsep}{.1pt}  \newcommand{\ancfex}[4][]{#2#3#4}\let\fex\ancfex \newcommand{\fexI}[4][0pt]{%     \rlap{\textcolor{white}{#2}\kern#1\colorbox{fond}{\textcolor{fond}{#3}}\textcolor{white}{#4}}%     #2#3#4% } \newcommand{\fexII}[1]{\let\fex\fexI#1\let\fex\ancfex}  \newcommand{\mf}[1]{{\color{FR}\bfseries\textcursive{#1}}}  \begin{document}  \newcommand{\csvcoli}{\fex[-.3ex]{pa}{tt}{e}, \fex[-.2ex]{}{p}{atte}, \fex{pat}{te}{}} % in the real example, the material to highlight is collected through csvsimple, % hence the name \csvcoli It's all fine in a table:  \noindent \begin{tabular}{|l|l|l|}\hline     \csvcoli & \mf{\csvcoli} & \mf{\fexII{\csvcoli}}\\\hline \end{tabular}   It's strange at the very beginning of a paragraph:  \mf{\fexII{\csvcoli}}  \mf{\fexII{\csvcoli}} -- \mf{\fexII{\csvcoli}}  \verb|\noindent| and \verb|\rule{0pt}{0pt}| prevent this behavior:  \noindent \mf{\fexII{\csvcoli}}  \rule{0pt}{0pt}\mf{\fexII{\csvcoli}}  \renewcommand{\fexI}[4][0pt]{%     \rule{0pt}{0pt}%     \rlap{\textcolor{white}{#2}\kern#1\colorbox{fond}{\textcolor{fond}{#3}}\textcolor{white}{#4}}%     #2#3#4% }  \mf{\fexII{\csvcoli}}  \mf{\fexII{\csvcoli}} -- \mf{\fexII{\csvcoli}}  \end{document}   screenshot:


find all circles intersecting another in a table

I am using postGreSQL (9.3) and postGIS (2.1). I have a table containing names and circles (point + radius).  Given a name and a circle (point + radius), I would like to find all the database lines that contains (circles that intersect my circle) AND (share the same name). Is it possible using postGIS ?  Here is what I have so far, taken from   on this site.  Please note that I am just beginning to learn postGreSQL :  --create table  CREATE TABLE circles (     city VARCHAR(50),     geog geography );  -- insert sample values  INSERT INTO circles (city, geog) VALUES ('Lannion', geometry(ST_Buffer(geography(ST_GeomFromText('POINT(48.732084 -3.459144)')), 1000)));  INSERT INTO circles (city, geog) VALUES ('Lannion', geometry(ST_Buffer(geography(ST_GeomFromText('POINT(48.732084 -3.459144)')), 2000)));  INSERT INTO circles (city, geog) VALUES ('Lannion', geometry(ST_Buffer(geography(ST_GeomFromText('POINT(48.732084 -3.459144)')), 3000)));  INSERT INTO circles (city, geog) VALUES ('Lannion', geometry(ST_Buffer(geography(ST_GeomFromText('POINT(48.732084 -3.459144)')), 4000)));  INSERT INTO circles (city, geog) VALUES ('anotherName', geometry(ST_Buffer(geography(ST_GeomFromText('POINT(48.732084 -3.459144)')), 1000))); -- not selected because the name is different  -- search (need help for this one)  SELECT ST_Buffer(geometry(ST_MakePoint(48.732084, -3.459144)), 2500) FROM circles;   I can't make sense of the output of the SELECT query so far. Also, it doesn't have any constraint on the city name. I would like to have as output the first two inserts in this case.


Unable to install wine on Ubuntu 16.04 lts

So I've tried to install wine following the instructions on developer's site  and got an error:  Err:1 http://security.ubuntu.com/ubuntu xenial-security/main i386 libtasn1-6 i386 4.7-3ubuntu0.16.04.1   404  Not Found [IP: 213.180.204.183 80] Ign:2 http://security.ubuntu.com/ubuntu xenial-security/main i386 libgnutls30 i386 3.4.10-4ubuntu1.2 Err:3 http://ru.archive.ubuntu.com/ubuntu xenial-updates/main i386 libpulse0 i386 1:8.0-0ubuntu3.2   404  Not Found [IP: 213.180.204.183 80] Err:1 http://security.ubuntu.com/ubuntu xenial-security/main i386 libtasn1-6 i386 4.7-3ubuntu0.16.04.1   404  Not Found [IP: 213.180.204.183 80] Err:2 http://security.ubuntu.com/ubuntu xenial-security/main i386 libgnutls30 i386 3.4.10-4ubuntu1.2   404  Not Found [IP: 213.180.204.183 80]   E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libt/libtasn1-6/libtasn1-6_4.7-3ubuntu0.16.04.1_i386.deb 404  Not Found [IP: 213.180.204.183 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gnutls28/libgnutls30_3.4.10-4ubuntu1.2_i386.deb 404  Not Found [IP: 213.180.204.183 80] E: Failed to fetch http://ru.archive.ubuntu.com/ubuntu/pool/main/p/pulseaudio/libpulse0_8.0-0ubuntu3.2_i386.deb 404  Not Found [IP: 213.180.204.183 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   Tried to install with --fix-missing - same thing    ping 213.180.204.183 - 0% packet loss   Were some packages deleted from official repository? How can I fix that?  Update 1 After sudo apt update I have this:  After this operation, 278 MB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://security.ubuntu.com/ubuntu xenial-security/main i386 libtasn1-6 i386 4.7-3ubuntu0.16.04.1   Cannot initiate the connection to ru.archive.ubuntu.com:80 (2a02:6b8::183). - connect (101: Network is unreachable) [IP: 2a02:6b8::183 80] Ign:2 http://security.ubuntu.com/ubuntu xenial-security/main i386 libgnutls30 i386 3.4.10-4ubuntu1.2 Err:3 http://ru.archive.ubuntu.com/ubuntu xenial-updates/main i386 libpulse0 i386 1:8.0-0ubuntu3.2   Cannot initiate the connection to ru.archive.ubuntu.com:80 (2a02:6b8::183). - connect (101: Network is unreachable) [IP: 2a02:6b8::183 80] Err:1 http://security.ubuntu.com/ubuntu xenial-security/main i386 libtasn1-6 i386 4.7-3ubuntu0.16.04.1   Cannot initiate the connection to ru.archive.ubuntu.com:80 (2a02:6b8::183). - connect (101: Network is unreachable) [IP: 2a02:6b8::183 80] Err:2 http://security.ubuntu.com/ubuntu xenial-security/main i386 libgnutls30 i386 3.4.10-4ubuntu1.2   Cannot initiate the connection to ru.archive.ubuntu.com:80 (2a02:6b8::183). - connect (101: Network is unreachable) [IP: 2a02:6b8::183 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libt/libtasn1-6/libtasn1-6_4.7-3ubuntu0.16.04.1_i386.deb  Cannot initiate the connection to ru.archive.ubuntu.com:80 (2a02:6b8::183). - connect (101: Network is unreachable) [IP: 2a02:6b8::183 80]  E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gnutls28/libgnutls30_3.4.10-4ubuntu1.2_i386.deb  Cannot initiate the connection to ru.archive.ubuntu.com:80 (2a02:6b8::183). - connect (101: Network is unreachable) [IP: 2a02:6b8::183 80]  E: Failed to fetch http://ru.archive.ubuntu.com/ubuntu/pool/main/p/pulseaudio/libpulse0_8.0-0ubuntu3.2_i386.deb  Cannot initiate the connection to ru.archive.ubuntu.com:80 (2a02:6b8::183). - connect (101: Network is unreachable) [IP: 2a02:6b8::183 80]  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   Update 2


Root cause for "Entity is not org-accessible" for sharing object?

Not able to find Sharing object for custom object Apttus_Proposal__Proposal__Share; giving me error while   List<Apttus__APTS_Agreement__share> st = new List<Apttus__APTS_Agreement__c>();


What is the role of the outer metal connector? (the one with two square holes) Does it have a potential? Is it insulated from the 4 pins? Are the 4 pins insulated from each other?


What is mirror lockup and what is its primary function?

My SLR is equipped with the mirror lockup function. What does it do, and when would I employ such a feature?


I'm a beginner physics student only studying elementary AP-level physics and calculus, so when I came across the conceptual basis of the twins paradox I was, of course curious. People often explain the paradox away by explaining how the symmetry from each perspective is broken, without satisfactorily illustrating why. Before I ask my question I want to explain from my understanding-  So you have a twin on earth who understands that his twin is on a spaceship accelerating away arbitrarily close  to the speed of light then returning home. He accelerates away and comes back, and I understand why the twin on the spaceship believes the other is older- Because on a spacetime diagram, we recognize that the axis flips and the twin on the ship understands that the relativistic affect on him will result in a difference.  So my question is: How do both observers figure out WHO is accelerating to begin with? To illustrate my problem with the paradox, I instead imagine two twins floating in space 1 meter apart in a vacuum, until one sees the other accelerate to near light speed. If we assume that the twins will return to their initial position at 1 meter apart, only ONE of them will age. The problem is figuring out who?  This is because: If twin A assumes he is stationary, and twin B assumes he is accelerating, then  they can work out the respective maths. But what happens if both assume that they are accelerating, or that both are stationary? This is what results in the apparent paradox isn't it? So the real question should be: How do we know who is objectively accelerating?


Change the font of a document in XelaTeX

So I downloaded a template for a CV. It uses XeLaTeX. I would like to change the font but I lost hope to find myself how I am supposed to do that. My OS is Windows 7. Here is a functional code that uses the original font Fontin. I downloaded it to make it work, and I would like to use something else (and something that uses accents (I speak french) !)  \documentclass[a4paper,10pt]{article} % Default font size and paper size \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \usepackage{textpos} \usepackage{fontspec} % For loading fonts \defaultfontfeatures{Mapping=tex-text} \setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}  \usepackage{xunicode,xltxtra,url,parskip} % Formatting packages  \usepackage[usenames,dvipsnames]{xcolor} % Required for specifying custom colors  \usepackage[big]{layaureo}   \usepackage{hyperref} % Required for adding links   and customizing them \definecolor{linkcolour}{rgb}{0,0.2,0.6} % Link color \hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour} % Set link colors throughout the document  \usepackage{titlesec} % Used to customize the \section command \titleformat{\section}{\Large\raggedright}{}{0em}{} % Text formatting of sections \titlespacing{\section}{0pt}{2pt}{2pt} % Spacing around sections \usepackage{vmargin} \usepackage{fullpage}  \begin{document} \setmarginsrb{25mm}{0mm}{30mm}{0mm}{1cm}{5mm}{1mm}{10mm} \pagestyle{empty} % Removes page numbering  \font\fb=''[cmr10]'' % Change the font of the \LaTeX command under the skills section  \par{\Huge TacTac \textsc{TicToc} - OncheOnche \bigskip\par}  \par{\Huge \hspace{8mm}  huehuehue \bigskip\par}  \section{Données personnelles} \begin{textblock}{.9}(0,0) \rule{97mm}{0.09mm} \end{textblock} \begin{tabular}{rl} \textsc{Date de naissance:} & 01 brumeneige 3030 \\ \textsc{Adresse:} & Somewhere, sometimes \\ \textsc{Téléphone:} & +123456789\\ \textsc{Email:} & what about \end{tabular}   \section{Objectifs}\titlerule  I met a traveler from an antic land who said : Two vast and trunkless legs of stone stand in the desert... \\  %---------------------------------------------------------------------------------------- %   EDUCATION %-------------------------------------------------------------------------------                      ---------    \end{document}   I believe the problem comes from the lines  \defaultfontfeatures{Mapping=tex-text} \setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}   But I don't know what I must change, where does the compiler look for the fonts... I saw other questions that look like mine, but all used Linux. I also saw that there could be some problems with fonts using spaces in their name (seriously...?)... Anyway. Someone got an idea ?


why boosting method is sensitive to outliers

I found many articles that state that boosting methods are sensitive to outliers, but no article explaining why.   In my experience outliers are bad for any machine learning algorithm, but why are boosting methods singled out as particularly sensitive?  How would the following algorithms to rank in terms of sensitivity to outliers: boost-tree, random forest, neural network, SVM, and simple regression methods such as logistic regression?


I saw a curious behavior working with QList. Follows the code:  QList<int> returnListTest() {     QList<int> a;     a.append(52);     a.append(77);     if (false) {        return a;     } }   Notice, there is no return, because never enter in the "if (false)". But when I call this function:   QList<int> r = returnListTest(); foreach (int a, r) {     qDebug() << "return item" << a; }   I have:  "return item 52" "return item 77". Does anyone know why this happens?


How to show that $|P(A\cap B)−P(A)P(B)|≤\frac{1}{4}$?

I am trying to show that $$ |P(A\cap B)−P(A)P(B)|≤\frac{1}{4} $$ But I don't see how to begin... If $A$ and $B$ are independent the result is obvious. Can someone give me a hint?


Is it possible to exclude your user profile on one of SE sites from copying to "all sites"?

When editing your profile info on one site; it's possible to click "Save And Copy Profile To All Stack Exchange Accounts" button and have it copied to ALL SE sites.  Is it possible to exclude a specific SE site from such a copy?  This was  in 2012 with endorsement from SE employee; but there's no info on whether it was ever done.  I'm OK with answers that show how to achieve this even absent SE adding such a feature, aside from manual "back up every one of your non-copiable profiles to Notpad by hand".


$R$ is a subring of a field $F$ with $x\in R$ or $x^{-1}$ for all $x\in F^\times$. If $I,J$ are ideals of $R$, then $I\subseteq J$ or $J\subseteq I$.

Let $R$ be a subring of a field $F$ such that for all $x\in F^\times$, either $x\in R$ or $x^{-1}\in R$. Prove that if $I$ and $J$ are ideals of $R$, either $I\subseteq J$ or $J\subseteq I$. I am preparing for my qualifying exam and this is from one of our previous exams. I can tell that $R$ is an integral domain, but I couldn't go any further. Can anyone help? Thanks a lot. Here is the proof after reading the hints in the link below. Let $I$ and $J$ be two ideals of $R$. Suppose $I\not\subseteq J$. Then there exists $a\in I\backslash J$. Since $0\in J$, $a\neq0$. Now let $b\in J\backslash\{0\}$. Then in $F$, we have $b=(ba^{-1})a$ with $ba^{-1}\in F$. Claim: $ba^{-1}\in R$. If $b^{-1}a=(ba^{-1})^{-1}\in R$, then $a=b^{-1}ab\in J$ which is a contradiction. So by the definition of $R$, we have $ba^{-1}\in R$. Then $b=(ba^{-1})a\in I$. So all nonzero elements of $J$ are in $I$. Since $0\in I$, we have $J\subseteq I$.


I need a book on elementary topology which is good to read and easy to understand the concepts. Please give me a reference which book should I use..


What do you call dynamics in which the more you have, the more you get?

I am looking for a term for systems or dynamics in which the ability to earn a particular resource requires having a minimum of that resource available, and grows progressively or exponentially with it. I want to do some research on “you need money to make money” situations, but applied to non economic contexts as well.  I originally posted this in the Economics Stack Exchange, thinking that there must be some economic or game theory concept that describes this, but to no luck.  P.D.: no, I’m not looking for the word “capitalism”.


How to split slide in Beamer table of contents page?

I created a standard table of contents page in Beamer   \AtBeginSubsection[] {     \begin{frame}{Outline}         \tableofcontents[currentsection,currentsubsection]     \end{frame} }   I have a lot of sections and this leads to the contents being cut out.  How can I split the page in two (something like minipage) or in the worst case continue in the next slide ?


How to get list of products with category id in WordPress

I have a category id and now I want to get the list of products which have the same category id.   How to do it?


I want to show that for two commuting matrices, say $A$ and $B$, we have $e^{A+B}=e^Ae^B.$  So far I have  \begin{align*} e^{A+B}&=\sum_{k=0}^\infty \frac{1}{k!}(A+B)^k \\ &=\sum_{k=0}^\infty \frac{1}{k!}\sum_{j=0}^k \binom{k}{j} A^jB^{k-j} \\  &= \sum_{k=0}^\infty \sum_{j=0}^k\frac{A^jB^{k-j}}{(k-j)!j!} \end{align*}  I don't really know where to go now though. What do I need to do next?


At the level of rings, the Veronese map corresponds to isomorphisms like $$k[w,x,y,z]/(wz - xy, wy-x^2, xz - y^2) \cong k[a^3, a^2 b, a b^2, b^3].$$ This isomorphism is the statement that the relations satisfied by the monomials of degree 3 generate exactly the same ideal as $I = (wz - xy, wy-x^2, xz - y^2)$. One direction is obvious (corresponding to a well-defined map $\to$): the monomials of degree 3 certainly satisfy these three relations.   The other direction seems hard. It encodes the idea that we have found all the relations, which is certainly an extremely hard general problem. How would one prove such a thing explicitly?   I believe all of this can be formulated in much higher geometric language as an isomorphism of $\operatorname{Proj}$ constructions, but that language should surely encode a concrete argument.


I have used symbol levels in my current project to define the hierarchy of the different roads. I have tried to make the symbol levels the same in order to achieve the desired look, with no luck. The roads are a minor element in the map that I am making and will all be symbolized the same except for width.  Shown in this screenshot:   (Colors have been added for clarification. The green are US Routes, orange are State Routes and white are local roads.)  If they are all white, is there a way in QGIS to have them look joined at their intersections, similar to all intersections of the local roads?  This is a tough one to explain, so if clarification is needed, please let me know.


What is this word for a person more knowledgable than an aficionado?

A friend told me a new word for a person with a higher more sophisticated knowledge than an aficionado. It sounds like "koount ah shent ie". My best guess of the spelling is "countashenti", but that has not led me to the correct word. What is the correct spelling?


Do multiverse theories undermine intelligent design arguments mathematically?

It is well known that the probability of life arising in a universe of our sort is vanishingly small. Theists have used this fact to argue that life is designed by God. However, if there are an infinite number of parallel universes as part of a  such as , then even that very infinitesimal probability seems to compel the existence of life as a necessary truth. If one is justified in invoking an infinite number of parallel universes, even the most unlikely event must occur in one particular universe. This argument seems to mirror race conditions among infinities and infinitesimals. So, if conventional statistical reasoning is applied, doesn't this obviate mathematically ? What is the current state of philosophical arguments in quantum physics and natural theology in regards to the collision of these two theories?


Tracing ca 1805 immigration via Port of Charleston, SC, USA from Germany?

My 4th great grandfather came into the USA via the Port of Charleston, SC as a bound boy, according to family history.    Is there any place to find information regarding this?    He arrived about the year of 1805 or so from Germany.


how to generate tessellation cells using the Poincare disk model?

I'm a computer programmer, and while I like math, this is an area where my understanding of math falls short of what I need in order to apply it successfully.  I've been looking at M.C. , which use a Poincare disk model to illustrate tilings of the hyperbolic plane. What I want to do is generate the coordinates (in the Cartesian plane, for a graphics display) of vertices in such a tiling. But I'm not even sure where to start. It seems like I need two things:   a way to generate the coordinates in the hyperbolic plane, for each vertex of several cells (polygons) in such a tiling; and the formula to convert those coordinates to the Cartesian plane, using the Poincare Disk model.    For example, in Circle Limit I, each fish seems equivalent to a quadrilateral (four other fish touch its edges), and each vertex is surrounded by either 4 or 6 fish. I don't need to generate fish, just quadrilaterals. But I don't know how to do it.  Do you know of software to do this? Or can someone help me with an algorithm?  I want to generate a finite area of the plane (of course?). If an algorithm could help me generate $k$ rings of cells around the origin, that would be most convenient.  Thanks for any suggestions.  P.S. I'd also be interested in hyperbolic tilings besides Escher's, e.g.   P.P.S. I just found some  for drawing hyperbolic tilings (see bottom of the page), which includes generating locations of vertices. I can extract these vertex coordinates by putting in print statements. But they're grouped by line segment rather than by cell, and converting from the former to the latter does not seem easy.


Campaign Member Trigger to reference related Lead level field values

I am trying to write values to the Campaign Member fields based on values from the related Lead record. When I attempt to run this I get the error message:  addCampaignMemberValues: execution of AfterInsert caused by: System.NullPointerException: Attempt to de-reference a null object Trigger.addCampaignMemberValues: line 7, column 1  If I wanted to use dot notation to traverse from the Campaign Member down to the Lead level fields like Lead Source, etc. how can this be done?  I'm also looking to run the default assignment rules at the end of the trigger and if am only could let me know if this approach looks OK, that would be very helpful!  Thanks!  trigger addCampaignMemberValues on CampaignMember (after insert) {     List<Lead> ls = new List<Lead>();      for (CampaignMember cm: trigger.new) {          if(cm.Lead.Primary_Campaign__c == NULL && cm.Lead.LeadSource != 'Tradeshow') {             cm.Lead.Primary_Campaign__c = cm.CampaignId;             //check if Lead.System_Type__c is null and Campaign.System_Type__c is not null             if(cm.Lead.System_Type__c == NULL && cm.Campaign.System_Type__c != NULL ) {                 cm.lead.System_Type__c = cm.Campaign.System_Type__c;             }             //check if Lead.System_Group__c is null and Campaign.System_Group__c is not null             if(cm.Lead.Systems_Group__c == NULL && cm.Campaign.Systems_Group__c != NULL ) {                 cm.Lead.Systems_Group__c = cm.Campaign.Systems_Group__c;             }              ls.add(new Lead(id = cm.leadid));         }      }     //run assignment rules on leads     Database.DMLOptions dmo = new Database.DMLOptions();     dmo.assignmentRuleHeader.useDefaultRule = true;     Database.update(ls, dmo);  }


I've wrote a PHP-Script, and the execution requires sudo permission, because it executes some other system related stuff. So i've added this into the crontab -e but i can't see, that my script is running correctly.  Command:  */5 * * * * /usr/bin/php /srv/www/php/script.php && date > /srv/www/php/mylog.log   The only output is the date. No response from my script. It is executable (chmod a+x) and if i use the same command in the terminal as root, everything is okay. So it's up to crontab -e?  Also i made sure, that my cronjob is running (/var/log/syslog):  Oct 23 16:40:01 $MYMACHINE CRON[13797]: (root) CMD (/usr/bin/php /srv/www/php/script.php && date > /srv/www/php/mylog.log)   And this every 5 mins. Also my "mylog.log" always got the latest timestamp, so i guess, there's might be a problem with the script inside.  EDIT: I've created another test script to check, if the scripts getting executed or not. But the script was executed, so it's a problem inside the script.  I am trying to add dynamically IPs to an iptables chain:  #!/bin/bash value=`cat whitelist.txt` #echo "$value"  for i in $(echo $value | tr "," "\n") do   # process   /sbin/iptables -I teamspeakCommunication --src $i -j ACCEPT done   May you can see something weird?


Why are there two different close reasons for questions that aren't about the site's topic?

On both Meta Stack Exchange and Super User, I noticed that there are two close reasons to choose between when a question isn't about the topic of the site (Stack Exchange on Meta and computers on Super User). There is a "blatantly off-topic" reason and a "not about X within the scope defined in the help center" reason. These are the two close reasons on Meta Stack Exchange for questions that aren't about Stack Exchange:     This question does not appear to be about the software that powers the Stack Exchange network, within the scope defined in the .        Blatantly off-topic (this question has nothing to do with the software that powers the Stack Exchange network)   And these are the close reasons on Super User for questions that aren't about computers:     This question is not about computer hardware or software, within the scope defined .        Blatantly off-topic (this question has nothing to do with computer software or computer hardware)   According to , the "blatantly off-topic" reason is replaced with an "other" reason when the user gets the privilege to vote to close. But since there is already another close reason for questions that have nothing to do with the site's topic, I'm not sure it's really necessary to add a "blatantly off-topic" reason. I would find it more logical to simply remove that reason for users who don't have the privilege to vote to close.  I just flagged a question on Meta Stack Exchange about hair dryers as off-topic, and I was confused that there were two almost identical close reasons that worked for that question (and for any other question that is not about Stack Exchange). On Stack Overflow, where there is no "not about programming within the scope defined in the help center" reason (the reason for that is explained ), "blatantly off-topic" is useful for <3k users so that they can flag questions that are not about programming, but I don't see the use of it on sites like Meta Stack Exchange or Super User that already have a close reason for such questions.  I guess that on Super User, there is a small difference between the two close reasons, since programming questions would fit the first close reason but not necessarily the second one, but I still don't see the need to have two very similar close reasons. And on Meta Stack Exchange, there is almost no difference between the two reasons, either a question is not about Stack Exchange and is off-topic, or it is about Stack Exchange and is either on topic or fits in a different close reason (for example questions about a specific site).  My question is why have a "blatantly off-topic" close reason on sites which already have a "not about X within the scope defined in the help center" reason? Why not just remove the "blatantly off-topic" close reason on such sites for users who have less than 3k reputation? Wouldn't it be less confusing if there was only one close reason for questions that don't have anything to do with the site's topic?


Need disk utility to find folders with large amount of files

Am having trouble with an online backup service that supposedly fails because it is finding I have some folders with an excessive number (in the millions) of small files  Need a disk utility that will help me find folder with large numbers of included files.  Most utilities can easily find the largest folder but am looking more specifically to find the folders with the Largest Number of files.  Any help/advice would be appreciated.  Thank you!


How do I get margin notes to appear on the left?

I'm trying to make a left-sided margin note. As per the , I tried using \reversemarginpar but that didn't solve anything—it didn't make a margin note at all. I also tried \marginpar[left text/right text]{%my text} to no avail. I tried using two other packages, marginnote and mparhack, but again, those didn't solve my problem. Maybe there are some things I've missed (perhaps I have to further define something in the preamble?), but I would appreciate an example of how to use a margin note successfully. Here's some code I tried: \documentclass{article}  \usepackage{amssymb} \usepackage{wasysym} \usepackage[top=2cm, bottom=1.3cm, left=2.5cm, right=2.5cm]{geometry} \usepackage{tensor} \usepackage{enumitem} \usepackage{outlines} \usepackage{ulem}  \title{Chapter 13 - Chromosomal Rearrangements and Changes in Chromosome Number} \author{A. Uthor} \date{}  \pagestyle{empty}  \begin{document}   \maketitle    \section*{\Large Types:}   \begin{outline}[enumerate]   \1 Duplications   \1 Deletions   \1 Inversions   \1 Translocations   \end{outline}    \textbf{semisterility} $\rightarrow$ diminished fertility of translocation heterozygotes by at least 50\%   \reversemarginpar{Why does Mendel's 2$\mathrm{^{nd}}$ require viability of offspring?} \end{document}


I am stuck with a very simple question, but I don't really understand sampling, so please help me.  Assume that I perform Bernoulli sampling with parameter $q$ on data D, and obtain sample S1. Then on S1, I perform another Bernoulli sampling with parameter $q'$, and obtain result sample S2. Is the resulting sample S2 a random sample of the original data D?


"With hands", what is the reason why $\pi$ appears in this result :  $\lim_{\epsilon\to 0}\frac{\epsilon}{\epsilon^2+x^2}=\pi\delta(x)$


I posted this question a while ago () but got no answer I guess because the post was long so I'll try to keep it short this time.  After installing and booting with nouveau.modeset=0 I try to install the nvidia drivers usig additional drivers and only get black screen if I try to boot regardless if I use nouveau.modeset=0 or not.  during the black-screen mentioned above, when I try to access the command line all I get is      A start job is running for Hold until boot process finishes up (Xmin   Xs/no limit)   This post:   When I try to boot after using the solution in the post above with lightdm - I get a unity-like login screen, when I log in my screen shows a vert bugged version of itself for a few seconds, and which it starts correctly but then keeps spitting out      system problem detected   I wouldn't mind working with nouveau.modeset=0 but from what I understand this doesn't utilize my graphics card at all?  Any help at all would be greatly appreciated. Thanks!


"Show Applications" how to see more apps per line without using a GNOME extension? (Ubuntu 18.10)

By playing around with the settings in gnome-shell.css (under the section "App Vault/Grid") I can get more lines of icons to display on the "Show Applications" screen,  but how can I get more rows to display?  My goal is to make better use of the screen by having more app icons on the screen even if the icons are smaller.  I realize the proper way to edit gnome-shell.css is to make a custom theme, but until I get my hands around my main goal, I am editing /usr/share/gnome-session/theme/Yaru/gnome-shell.css directly and using Alt-F2-r to see the results of my changes.


Is there a way to fix a small chip in a wall's paint?

I'm not sure exactly with what I've bumped my wall and caused this this:    Is there anything that can be done to fix this without repainting the entire room?  I've been reading around a bit, and not sure exactly what to call this, hence the weird question title.  The paint is a beige-ish colour, not exactly white. The hole is about 2 x 1.5 cm in size.   I've read a bit about spackling paste, though I understand that's for small cracks and holes.  Here are some picture with a better resolution:  and   Unfortunately, I don't have much experience with this sort of thing. Help please.  Also, this is in the UK, so you can tell what stores I might have access to for materials.


How does one prove that the infinite series $\sum_{n=1}^{\infty} \frac{1}{n^2}$ converge to $\frac{\pi^2}{6}$?

$$\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}$$ I learned from one  of the MIT OpenCourseWare course 18.01 that the infinite series $\sum_{n=1}^{\infty} \frac{1}{n^2}$ converge to $\frac{\pi^2}{6}$. It shows the conclusion without a proof. How does one prove it? The lecture note teaches us of the integral test, which does not give the exact number the infinite series will converge to.


One-sided Fisher's exact test and its complement

If a one-sided Fisher's exact test testing the null hypothesis that A is not superior to B has a p-value of 0.98, is it true that the Fisher's exact test p-value for the null hypothesis that B is not superior to A is 1-0.98 = 0.02?  The question arises from the paper at  where the primary outcome had a one-sided p-value of 0.98, but when I calculated the P value with a one-sided FET, I got a p-value of 0.09. Therefore, wondering why the "other" one-sided FET wouldn't have a p-value of 1-0.09 = 0.91 (instead of 0.98). Would appreciate help in knowing where I'm going wrong.  The Stata command used to generate the p-value of 0.09 was:   csi  2  7 2850 2854 , exact                   |   Exposed   Unexposed  |      Total -----------------+------------------------+------------            Cases |         2           7  |          9         Noncases |      2850        2854  |       5704 -----------------+------------------------+------------            Total |      2852        2861  |       5713                  |                        |             Risk |  .0007013    .0024467  |   .0015754                  |                        |                  |      Point estimate    |    [95% Conf. Interval]                  |------------------------+------------------------  Risk difference |        -.0017454       |   -.0037999    .0003091        Risk ratio |         .2866159       |    .0595926    1.378504   Prev. frac. ex. |         .7133841       |   -.3785042    .9404074   Prev. frac. pop |         .3561301       |                  +-------------------------------------------------                                   1-sided Fisher's exact P = 0.0904                                   2-sided Fisher's exact P = 0.1793


Can you travel to the US prior 1 months of tourist visa expiry?

I've heard that i can travel to the US any time before my tourist visa expiry.  Is that true?  (please advise)


How to change the numbering of \part, \chapter, \section, ... to alphabetical, Roman numbers, etc

I'm fairly new to LaTeX and I want to know how to change the way sections are numbered by default. I use LyX, and there it is relatively simple to change the way an enumeration is numbered, i.e.  1 foo  a bar    i baz   But I want to know if there is a way to do this by default for sections and subsections.


Add the ability to view upvotes and downvotes count in android app

When viewing questions in android app, I've tried to see how many upvotes and downvotes the question has. Normally it is done by clicking on the score, but it didn't work in app. I have the privilege on the site.  Is that option hidden somewhere or simply not implemented?


How to delete hierarchy along with the object to which it is parented

In the Outliner, I have an object that contains a bunch of sub-objects. If I select the object and delete it, all the contained objects 'bounce out of it' and are still around. This is true whether I select just the object itself and delete it, or if I use select hierarchy and then right click on it again and delete all the selected objects. Either way, the child objects bounce out and are still present.


Pokémon Go Intermittent Mobile Data Connectivity Issue

I'm connected to Pokémon Go on mobile data, it crashes so I reboot, but now it won't connect past 1/4 of the loading bar no matter how many times I close and reboot.  However if I turn on my wireless at this point and connect on a wireless router it connects immediately. I can then switch off the wireless connection and maintain the game on my mobile data again.


'Was' or 'were' with 'period' & 'eleven years'

I was reading a letter I got from an old friend, back in 1998, and at a certain point she wrote:         "Our period of greatest prosperity were those eleven years when Thatcher was in office."       Is this correct, or just acceptable?  In speech and in writing?


Proof.   Let c = (a/d, b/d). Then c | a/d, and so cd | a. Also c | b/d, and so cd | b.  My question is, did this happen because of this simple algebra? ie.  c | a/d      So  cx = a/d  for some integer x      then  cx/d = a  Next step of proof.. Thus, cd is a common divisor of a and b. Therefore, cd <= d, which implies c = 1.  My question for this part:  how did I conclude cd <= d?


Proof by Induction with summation and inequalities

For this question, I know how to do the base case and the inductive hypothesis but I'm having trouble with the inductive step. Here is what I have so far. Can anyone please help me out?  Prove by induction that for all integers $n\ge2$   $\sqrt n < \sum_{i=1}^n \frac{1}{\sqrt n }$  Base Case:  n = 2  $\sqrt 2 < 1 + \frac{1}{\sqrt 2}$  Inductive Hypothesis:  Let k be an arbitrary integer such that $k\ge2$  $\sqrt k < \sum_{i=1}^k \frac{1}{\sqrt n }$  Inductive Step:  Show true for k+1  $\sqrt{k+1} < \sum_{i=1}^{k+1} \frac{1}{\sqrt n }$


What’s the interaction between darkvision and the Eagle Aspect of the beast?

Darkvision enables you to see in darkness as if it were dim light (within the first 60/120/180 feet, of course, depending on the quality of your darkvision).  The Eagle totem for the 6th-level Totem Barbarian's Aspect of the Beast feature enables you to ignore your disadvantage from dim light on sight-based Perception checks.  Does that mean that a character with both darkvision and the eagle aspect can make Perception checks (within his darkvision range) without disadvantage, even when in complete darkness ?


Suppose a polygon layer in QGIS with differently shaped polygons (no multi-geometries, let's keep it simple). Is there a way to calculate some kind of  characteristic of the individual polygons. I imagine a value of 1 would be a perfect circle and 0.01 would be some kind of lengthily stretched out polygon (and the edge case, 0 would be a line). In the Field Calculator, it would probably look something like this:  exterior_ring( geom ) / $area  but I don't know what to put in geom to get a useful number. Of course, if there is a more elegant solution to get some kind of measure of shape, I am open for suggestions. I need this to get rid of really thin polygons after a clip operation. I put that in bold, because I just noticed that's a really useful information! I'd need a solution I can use in Field Calculator or with some plugin.


Batch File For Loop Processing Files Over A Certain Age

Can someone help me make the following batch file only process files that are older than 365 days?  @echo off SetLocal EnableDelayedexpansion  set "Folder=C:\Test Folder" set "exclude=.dll.exe.bat.zip.jpg.bmp.pdf.mp4.vbs"  FOR /f "delims=" %%x IN ('dir /b /s "%Folder%" ') do if "!exclude:%%~Xx.=!"  equ "%exclude%" ( "7za.exe" a -sdel -stl "%%~dx%%~px%%~nx.zip" "%%x" )


Do we have to use a magnet in the compass?

In compass we use a magnet or magnetized metals to interact with the earth magnetic fields, Can't we just use iron or any unmagnetized metal?


How often should I change oil if reusing daily?

At the moment I'm frying chips and protein 3 times a day daily using a fry machine. I'm using sunflower oil though could use others if needed but right now that's easiest to use.  The oil stays in the fry machine, not sure if it's air tight but i dont think it is and it also sits near the window.  I notice food particles in the fryer and fry basket but i guess i could clean that\pull it out with a sieve every 2-3 days.  Considering my heavy usage, how often should i change the oil and how often should I be cleaning the food out, will simply removing with a sieve be enough i still imagine there would be small particles remaining.  Also,  think I read that if it smells of other food you should change it.  However if you cook chicken in it it ay quicly smell of chicken, does it have to be changed in this case or can one just livewith the smell?


Python linear search with more than one element the same

I just started python and tried to create a simple linear search program list1=[4,2,7,5,12,54,21,64,12,32] x=int(input("Please enter a number to search for :  ")) for i in list1:     if x==i:         print("We have found",x,"and it is located at index number",list1.index(i))  My problem is if I change the list to [4,2,7,5,12,54,21,64,12,2,32] it doesn't output both locations of the 2 value. Any help is much appreciated.


Should we balance the data set if the data is intrinsically unbalanced?

Say I want to predict the cancer rate(regression)/predict the whether a person has cancer or not(classification). The data intrinsically has few cancer patients/low cancer rate, say 1/200. And the data set is good and large enough, say more than 100,000.  Now the question is: should I use certain sampling strategy to balance the data before I apply any regression/classification algorithm?  From my perspective, the reason we need to balance the data is because the data we get doesn't follow the natural distribution, it's bad, like a 10/90 male/female. But right now, we have a good data which follows the natural distribution, should we balance the data?  I'm also wondering if things are different for classification versus regression. Though low cancer rate, is it still okay to do the regression without sampling?  Any high-level/detailed ideas are appreciated:)


why pandas dataframe -0.999990 to list become -0.9999899999999999,who can help me?

I have a dataframe, i want to convert it to list,but data is change i dont know why


Why exactly is reality 3 spatial dimensional?

Reality seems to be 3 dimensional. Not just as a result of our own subjective interpretation, but as a result too of what our machines sense and derive. It does appear as though, apart from in unusual circumstances such as entanglement or tunneling where connections between points in space defy the usual 3d arrangement, that reality is somehow restricted to communication between points arranged in a 3d space. Why is that?


What are the moments of a multivariate distribution?

For a random variable $X \sim f(x)$, the $n$'th moment is defined to be $E_f[X^n]$. But for a multivariate distribution, $X$ is a vector so this definition doesn't make sense since you can't raise a vector to power.  How are moments defined for distributions over vector spaces?  My suspicion is they involve Kronecker products: $$E_f\left[X \otimes X \otimes \cdots \otimes X\right]$$ since the first and second moments of a multivariate Gaussian are $\mathbf{\mu}$ and $\mathbf{\Sigma}$.


Capital names for author names in citation call-out, normal letters in bibliography

For my PhD thesis I have to typeset the author's family name in capital letters in the citation call-out but not in the bibliography itself. So, I mean:  cite: SCHULTZ, 1971 bibliography: Schultz, T. W. (1971): Book name.  In addition, for several authors I should use hyphen, like this:  JOSHI - PETERSON, 2013  Could anybody help me how one does this? Thanks. What I tried so far: (but I needed capital letters in cite) \documentclass[12pt,a4paper]{report}   \usepackage[latin1]{inputenc}   \usepackage{amsmath}   \usepackage{amsfonts}     \usepackage{amssymb}    \usepackage[authoryear]{natbib}     \bibliographystyle{apalike}    \begin{document}    blablabalbal~\citealp{aas2004modelling}    \bibliography{bibfile}      \end{document}


Integrable but not differentiable function

Suppose $f(x)$ is continuous on $[a, b]$ except at a point $c$ in $(a, b)$ at which $f(x)$ has a jump discontinuity. For $x$ in $(a,b)$, set $F(x)=\int_a^xf(t) \, dt$. Show that $F(x)$ is continuous but not differentiable at $x =c$.  Hint: first explain why $f(x)$ is integrable on $[a,b]$, then consider one-sided derivatives of $F(x)$ at $x =c$.  I don't know how to step up because it seems conflict to me. $f(x)$ is not continuous because it has a jump but I have to prove it continuous, how? Can someone guide me, please.


Reputable Preprint Servers other than Arxiv

After one of my papers was put "on hold," every single one of my new papers is being put on "on hold," many of which are ultimately rejected from Arxiv. This makes no sense to me as the same papers that are rejected are often accepted to and published in reputable, peer-reviewed journals, such as Mathematics of Computation and even the PeerJ Journal of Computer Science.  So I'm stuck; preprinting my work and making it open access is very important to me.    Because of the struggle of uploading anything at all to Arxiv, I would like to ask if there are other reputable preprinting servers (i.e. not Vixra) that cover the same subject areas: Physics, Mathematics, and Computer Science.   EDIT: Would sites such as OSF Preprints be considered reputable? My initial checking shows their papers maintain DOIs and are cited on google scholar, and the site seems fairly popular also.


I find the \exists command always looks scrunched with the following letter.  I'd like to put a little space after it.  I have tried \renewcommand{\exists}{\exists\,} \renewcommand{\exists}{\ensuremath{\exists\,}}, and \renewcommand{\exists}{\exists}   which I expect to do nothing, but replace it with the identical command. But none of these will compile. However \renewcommand{\exists}{+} works fine, replacing the exists symbol with a +. The normal \exists command works fine as well. The bit from the console that looks most relevant to me is: "TeX capacity exceeded, sorry [input  stack size=5000]. \exists ->\exists                    /,"  Ideas? Help?