How can I convince hyperref and xindy to play together nicely?

I'm using xindy to generate indexes for a manual that gets translated into multiple languages.  Unfortunately, hyperref and xindy don't like to play nicely together. I found some older mailing list threads that suggest that fixing this in xindy would require too much effort.  My question is: how can I get xindy and hyperref to play nicely together. What is the best workaround for this incompatibility?  An example document will demonstrate the problem:  \documentclass{article}  \usepackage{lipsum} \usepackage{makeidx} \usepackage{hyperref}  \makeindex  \begin{document}  \index{single} \index{range|(} \lipsum \index{range|)}  \printindex  \end{document}   I compile this document (named x.tex) using xelatex and xindy:  xelatex x xindy -C utf8 -M texindy -L english x.idx xelatex x xelatex x   Page numbers that are part of a range are missing from the index:    The xindy output makes a few complaints:  WARNING: Found no :close-range matching an already opened one!          Location-reference is 1 in keyword (range).          Maybe I lost some of the regular location-references.  WARNING: Found a :close-range in the index that wasn't opened before!          Location-reference is 2 in keyword (range)          I'll continue and ignore this.   These errors make sense when we look at the x.idx file:  \indexentry{single|hyperpage}{1} \indexentry{range|(hyperpage}{1} \indexentry{range|)}{2}   The hyperpage command isn't used in the close-range entry.  In order of preference, here are my desired outcomes:   xindy and hyperref work perfectly together and generate indexes with hyperlinked page numbers without any external processing. xindy and hyperref can generate indexes with hyperlinked page numbers with the aid of an external script to pre- or post-process the index files before/after passing them through xindy.  (I'm not currently using any special formatting for page numbers if that simplifies things.) xindy can be pacified by removing hyperlinks from the page numbers (with or without the use of an external script).   Alternatively, is there a different indexing program that can work with UTF-8-encoded files, hyperref, and knows to collate various languages?


Visit UK 2 Years Visa - Investment Complication

I am a Nigerian, I intend to apply for 2 years visa.  My concerns are these.   I don't leave cash in my salary account but I have maintained a minimum balance of 350k (750 Pounds)  and have been using my salary account for my investments. In July, when I got my first 6months Visa, I started running 2 mutual fund accounts (ARM and Stanbic) which I transfer 60k (128 Pounds) and 80k (170 Pounds) to the mutual accounts respectively, I do this same day I get my salary. The worth of both Mutual Funds is about 400k (854 Pounds) and 450k(960 Pounds) individually. In August, I did a Treasury-Bills (Just like Fixed Deposit) investment of 1,000,000 (2,135 Pounds) for 91 days tenor which dropped in my account in November and in the same month of November I did another one for 91 days and it dropped on Jan 31, 2019.   Since I will be applying for 2 years visa this month, I decided to let the money rest in my account. The balance of my salary account is about 1,400,000 (3,100 Pounds)  Questions? 1. Do I need to get a letter for both mutual funds accounts and statements?   Do I have to provide the Treasury-bills certificate for the already matured investments so that it won't be termed as Lodgement? Hope its qualifies / eligible for 2 years visa, and not make my application complicated.   Basic info. - My salary is 260,000 Naira (555 Pounds) - Im single - Family invitation (Uncle) - Travel History: Israel, UAE, UK, Ireland  Thank you for your assistance.


Stuck in an infinite loop at login on Ubuntu 16.04

I tried to fix a login loop on Ubuntu 16.04 by running  mv .Xauthority .Xauthority.bak   But this still did not fix my issue, and the log in page got really slow.  It seems like my graphics card is not working properly either   How should I fix this issue?  I already checked   Ubuntu gets stuck in a login loop


How did Luke know where to land on Dagobah?

In The Empire Strikes Back, Luke crashes his X-Wing on Dagobah after scanning the planet for technology and lifeforms.  LUKE (into comlink) I'm not picking up any cities or technology.  Massive life-form       readings, though.  There's something alive down there...  Followed by:  EXT. SPACE - DAGOBAH -  LUKE'S X-WING The X-wing continues its flight through the twilight above the cloud- covered planet. INT.  LUKE'S X-WING - COCKPIT Luke sees the cloud race by as he takes his craft closer to the planet.   He must operate his controls carefully since the cloud cover has  completely obscured his vision.  An alarm buzzes in the background,  Artoo beeps and whistles frantically. LUKE (into comlink) I know, I know!  All the scopes are dead.  I can't see a thing! Just hang on, I'm going to start the landing cycle...   According to , Dagobah has a diameter of 8,900 km, which means that it has approximately 50% of the surface area of Earth. Landing randomly on the planet, it's unlikely he would land within walking distance of Yoda's hut. How did Luke know where to land his X-Wing? From the script, it does not sound like he intentionally landed anywhere. Was he guided by the Force? Did Kenobi's Force ghost tell him where to land off-screen? Something else?


Ok here is the situation, there are few pc in my house, so I want to share files from one file to others. Samba is not an option, it finally broke on host ubuntu pc. before today only windows 10 pc couldn't connect to this pc now it is fully broken.  So i want an open-source app (some other way) that will allow me sharing files from one pc to another


Is personal pronoun followed with "verb+ing" grammatically correct?

Is the sentence below correct? What type of pronoun is "You" in this case? You staring won’t make me walk faster Below is the result from an online grammar check on the sentence as shown:  Explanation and example sentences:  Your comments?


How many servers are used to host Stack Overflow?

How many servers are used to host a commercial website like StackOverflow?  Are there caching appliances involved?


Symmetry of distribution function is defined as $f(x-a)=f(-(x-a))$, then expectation is $'a'$. i.e $E(X)=a$

I came across this statement in a book. While I know, how to prove  $E(X) = a$ is using $f(x+a)=f(x-a)$. I cannot seem to prove it using $f(x-a)=f(-(x-a))$. I keep going on in a loop, no matter what I do. Any help will be very appreciated.


Should the "home" button in my app stay there even when the user is on the home page?

I'm developing a web app to be used on mobile devices.  I use a home button in our status bar to return to our "home" page.  When on this page however, the button will have no function.  My question then is what is the best way to handle this now unusable home button?  A few options I've considered:    making the home button invisible or removing it on this screen, though I don't like the idea of something that's there 95% of the time magically disappearing on users. Changing the appearance of the button to have some sort of indication that it's disabled, perhaps an X through it or have it greyed out. Just leaving it there, and letting users realize that when they are already on the home screen, this button has no function.   EDIT: I'm aware that the common convention now is to use the site/company logo as a "home" button.  Without diving into specifics, this simply doesn't make sense for my application.  Thanks for all of the input so far.


Is there an equivalent one-liner to '#'*number, which if number was 4 the output of that expression would be "####", in C++? If there isn't an equivalent one-liner, I would like to know if there are any quick ways to do this that don't include a for loop.  Note: I am using C++ 14, on the program I'm working with I can't use C++1z (17), so no C++1z suggestions.


Was the Sorcerer's (Philosopher's) Stone really that well protected?

The Sorcerer's (Philosopher's) stone was moved from Gringotts to Hogwarts  Dumbledore wanted the stone to be better protected.  In Harry Potter and the Sorcerer's Stone however, Harry, Ron, and Hermione, three 11 year-olds, manage to get through seven magical obstacles designed to protect the Sorcerer's (Philosopher's) Stone.   If it was possible for three first year kids to get through the obstacles, then how was the Stone well protected at at all. Did Dumbledore really expect that the teachers' defenses would work against Voldemort?


How Do I Use A Do-While Loop In This Specific Instance (Program completes before y/n) Java

I'm doing a lab that requires a continuation question, but no matter what I do, the program always stops before accepting an answer. Here is my main method:  import java.util.Scanner; import static java.lang.System.*;  public class Lab03b { public static void main( String args[] ) {     Scanner scan = new Scanner(in);      boolean ans = true;     do{         out.println("Enter the word to display:: ");         String word = scan.nextLine();         out.println("Enter the number of times to display:: ");         int times = scan.nextInt();          out.println("Do you wish to continue? (y/n):: ");         String choice = scan.nextLine();          WordPrinter.printWord(word,times);            if (choice == "y" || choice == "Y")         { ans = true;         }         else         {             ans = false;         }     } while(ans == true);  } }   It references another class that goes through a basic loop to print out a word x amount of times. Any help is appreciated.


Can we load a assembly in reflection-only context into a new app domain?  I could not find anything related to this.


Will keeping my new MacBook continously in charge damage the batteries?

I just bought a new MacBook, which I'm primary gonna use as a "desktop pc" (in office). Not always, but for large period of time (~ a month without moving it from my desk).   I would like to understand what is the best policy to adopt for battery care.   I read the specific, official, page in the Apple site, but it hasn't been written this much throughout: it just points out how to use battery more efficiently, but not how to preserve it.   Before the Mac, I had a Dell. The batteries stopped to work something like 1 year later (yeah, scandalous). That's because I use the laptop keeping it always in charge.   However, I read that Apple prevents this possibility. When a MacBook is in charge, but the battery is fully charged, then it's like you're not charging it at all. Is it right? Can I safely assume that I just have to make a full cycle from time to time?


Use 'import module' or 'from module import'?

I've tried to find a comprehensive guide on whether it is best to use import module or from module import. I've just started with Python and I'm trying to start off with best practices in mind. Basically, I was hoping if anyone could share their experiences, what preferences other developers have and what's the best way to avoid any gotchas down the road?


I faced the problem when terminal do not start. I have look at related issue when locale do not supported. I have tried to update it, regenerate it - nothing help. Finally I have found next error message in /var/log/syslog  Dec 31 00:45:43 kes-X751SA console-kit-daemon[2215]: (process:3545): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Dec 31 00:45:48 kes-X751SA org.gnome.Terminal[2464]: Locale not supported. Dec 31 00:45:57 kes-X751SA console-kit-daemon[2215]: (process:3562): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed   Here is not clear. If I have wrong locale which locale is not supported?? How to check which locales are supported? How to apply supported locale?


How to manage literature when writing a dissertation/paper

How do you manage (workflow) writing the literature review for a paper or a dissertation? Unfortunately my current method of going on binge reading stretches while scribbling notes on random bits of paper inevitably lead to a situation where I dread trying to write a coherent literature review because everything is disorganized. The one time I did try to be more organized by using a template to capture and summarize info for each paper such as sampling, methodology, results, papers I want to read, etc., I ended up with so much information I became overwhelmed trying to synthesize it all. I also developed this nasty habit of trawling through the citations of every paper I read and downloading like 80% of them. I then soon end up in a situation where I have hundreds upon hundreds of pdf's, most of which I literally don't have time to read. I'm basically a paper hoarder. Any tips on how I can streamline my search, processing and writing up of literature?


How can I support a desk without legs or brackets

I plan to build a floating desk with the following dimensions: 75"-79" long and 22"-24" deep. I plan to mount it to concrete wall(see Image). My Preferred material is MDF.    The desk intended for use as computer desk and writing-reading desk. The load on the desk will be mainly consists of: monitor screen, books, laptop and so on.  My goal is to create a strong and stable desk that can support not only the load described above, but also beyond that(specifically: adult leaning on the desk with his arms).  My question is: How can I support the desk without any legs or bracket?   EDIT: There is a similar question to my question on the site() but I think the solution proposed does not fit my question. Since to my opinion the proposed support in  solution is too weak for my purposes. I'm pretty sure that if I will lean down on the edge of the desk with time not only it will created a 'belly' but it will damage the Alum angle stability (maximum torque). I think the proposed solution is better suited for shelf that functions as a desk, and I want a strong desk that can support for example a person sitting over it.   Note: I do not care if the most of the entire thickness of the desk(based on the design offered) would be a hollow, as long as it's does not exceed 5''.


we have a script that sources in a bunch of utilities including a custom sort function in a script called function.sh. Later in my parent script I want to use the bash sort. Is there anyway to unsource or dereference the custom sort? I can't rename the custom sort function because it is used in so many other scripts.


Words for movie/book/etc series with more than four items?

As discussed in this , dilogy/duology/etc. can be used to describe a series of two items, and trilogy and tetralogy exist for three- and four-item series, but I couldn't find any words for series with more than four items.  Specifically, I'd like to see words for up to eight-length series. (The thought came about when trying to find a word other than saga/series/etc. to describe the Harry Potter book and movie series.)


The specific find command I am trying to kill is running inside of a user created script?  I created a script that inside of it, it contains a find command that runs for up to 10 minutes, before I run that same script again, it needs to kill that find command.


let $X$ and $Y$ be two independent RV with the same distribution. Prove that: $$P\left(|X-Y|\le 2\right)\le 3P\left(|X-Y|\le 1\right)$$ I was wondering if you help me.


After creating some hi-poly model, i'm always creating low-poly model by approximating that hi-poly mesh with triangle-by-triangle LP mesh - with snap to face mode turned on.   So the process looks like CTRL + RMB (x times), and hitting F on keyboard, so the new face was made.  Then I'm using this low poly model to texture baking, mainly for gamedev purposes.  This method is very time consuming, so how to make retopology process easier and quicker?


Find a closed form of the series $\sum_{n=0}^{\infty} n^2x^n$

The question I've been given is this:  Using both sides of this equation:  $$\frac{1}{1-x} = \sum_{n=0}^{\infty}x^n$$  Find an expression for $$\sum_{n=0}^{\infty} n^2x^n$$ Then use that to find an expression for $$\sum_{n=0}^{\infty}\frac{n^2}{2^n}$$  This is as close as I've gotten:  \begin{align*} \frac{1}{1-x} & = \sum_{n=0}^{\infty} x^n \\ \frac{-2}{(x-1)^3} & = \frac{d^2}{dx^2} \sum_{n=0}^{\infty} x^n \\ \frac{-2}{(x-1)^3} & = \sum_{n=2}^{\infty} n(n-1)x^{n-2} \\ \frac{-2x(x+1)}{(x-1)^3} & = \sum_{n=0}^{\infty} n(n-1)\frac{x^n}{x}(x+1) \\ \frac{-2x(x+1)}{(x-1)^3} & = \sum_{n=0}^{\infty} (n^2x + n^2 - nx - n)\frac{x^n}{x} \\ \frac{-2x(x+1)}{(x-1)^3} & = \sum_{n=0}^{\infty} n^2x^n + n^2\frac{x^n}{x} - nx^n - n\frac{x^n}{x} \\ \end{align*}  Any help is appreciated, thanks :)


Performing Legendre transformation when conjugate momentum is independent of time derivative of generalised co-ordinates

Suppose there is a Lagrangean $L = \frac{1}{2}  m  c  \dot x - \frac{1}{2}kx^2$ where $c$ is a constant to keep the  dimensions right.   The conjugate momentum is then $ p_x = \frac{\partial L} {\partial \dot x} = \frac{1}{2}mc$ which is independent of $\dot x$. So, apparently there is a difficulty of writing $\dot x = \dot x (p_x, x)$. Then how do I use the Legendre transformation $ H = p_x \dot x - L$ to get the Hamiltonian?  This might seem like a unphysical situation. But on chapter 13,vproblem 4 on Classical Mechanics, 3rd edition, Goldstein, Poole, Safko there is a similar example. Given the Lagrangean density  $$\mathcal{L} = \frac{h^2}{8 \pi^2 m} \nabla\psi \cdot \nabla\psi^* + V \psi^* \psi + \frac{h}{4 \pi i} (\psi^* \dot \psi - \psi \dot \psi ^*)$$   When you try to calculate the conjugate momenta for $\psi$, you get $\pi_{\psi} = \frac{\partial \mathcal{L}} {\partial \dot \psi} = \frac{h}{4 \pi i} \psi^*$ which is independent of $\dot \psi $ or $\dot \psi^*$. So, apparently there is a difficulty of writing $\dot \psi = \dot \psi(\pi_\psi, \pi_{\psi^*}, \psi, \psi^*)$.  Then how do I perform the Legendre transformation from Lagrangean density $\mathcal{L}$ to Hamiltonian density $\mathcal{H}$?


Export mosaic of ppt monthly from GPM, gets error

I want to export a raster that shows the mean values of ppt/monthly. I have this script and it shows the values, but the problem is that I can't export to drive, because it shows this error:  Exported bands must have compatible data types; found inconsistent types: Float32 and Float64.  Here is the script:


Given the matrix $A∈M_3(Z_9)$  $$     \begin{matrix}     1 & 2 & 3 \\     2 & 3 & 0 \\     0 & 3 & 6 \\     \end{matrix} $$  The determinant is:  $\det(A)=18+18-24=3$  So the matrix is invertible because the determinant is different from zero.  The transposed matrix is:  $$     \begin{matrix}     1 & 2 & 0 \\     2 & 3 & 3 \\     3 & 0 & 6 \\     \end{matrix} $$  The matrix $A'$ is:  $$     \begin{matrix}     0 & 6 & 0 \\     6 & 6 & 6 \\     6 & 6 & 8 \\     \end{matrix} $$  So the inverse matrix is:  $$     \begin{matrix}     0 & 2 & 0 \\     2 & 2 & 2 \\     2 & 2 & 8/3 \\     \end{matrix} $$  Please tell me if my attempt is correct.


Can a finite group act freely (as homeomorphisms) on $\mathbb R^n$

I am asking if whether or not a finite group acts freely (as homeomorphisms) on $\mathbb R^n$.  To answer in the negative, it suffices to show: for any homeomorphism $f$ such that $f^d=\text{id}_{\mathbb R^n}$, then $f$ has a fixed point.  I am looking for a complete self-contained answer.


AMD/Intel hybrid graphic with AMD HD 8730M

it seems ubuntu doesn't support hybrid technology for graphics card. Is there any solution to install AMD/Intel and active AMD graphics card?


In Cambridge dictionary， the pronunciation of responsibility is /rɪˌspɑːn.səˈbɪl.ə.t̬i/， but I am pretty sure p is not pronounced /p/, at least not the same way as /p/ in peach. So what is happening here?


Can “whose” refer to an inanimate object?

We lit a fire whose fuel was old timber wood.   Is the word whose referring to fire, an inanimate object, correct in this sentence? Or is there a more appropriate word?


I have an Acer Chromebook C7. Intel processor. I am somewhat familiar with basic coding in the terminal and all that. I am not thrilled with Chrome OS, so I'd like a nice linux desktop/OS that I can run on it instead. A full OS would be great, but it would be nice if I could test out different options first. Regardless, I have looked everywhere and tried downloading a ton of different links and codes, installing to usb boot, etc. But I can't seem to get a recent Ubuntu with applications, internet, etc. Permissions or not being able to find the source or something always stops me from getting any release. How can I do it?


WPF Custom Control with Item/Data Templates

I know how to create a custom user control in WPF but how can I make it so that someone can provide an ItemTemplate?  I have a user control that is a mixture of several other WPF controls, one of them being a ListBox. I'd like to let the user of the control specify the content of the list box but I'm not sure how to pass that information through.  EDIT: The accepted answer works with the following correction:  <UserControl x:Class="WpfApplication6.MyControl"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     xmlns:src="clr-namespace:WpfApplication6">     <ListBox ItemTemplate="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type src:MyControl}}, Path=ItemsSource}" /> </UserControl>


Python regex to convert sentence into list of words and punctuation

Here is the python code   import re  x = "'hey! hii. How are You? This is sAM'"  d = re.findall(r"[\w']+|[.,!?;]", x)   and the output is   ["'hey", '!', 'hii', '.', 'How', 'are', 'You', '?', 'This', 'is', "sAM'"]   what I want is   [ " ' ", "hey", '!', 'hii', '.', 'How', 'are', 'You', '?', 'This', 'is', "sAM", " ' " ]   i.e i want this ( ' ) to be separated too.  Can you help me figure it out? how can we do this in the same regex


When the Cosmic Microwave Background radiation cools, where does the energy go?

I understand how photons can change wavelength via gravitational redshifting, but that doesn't  seem to be what's going on with the CMB radiation. I've heard it explained as happening because of the expanding universe, but I'm thinking that would have to imply that as the universe expands, lower wavelengths have higher energy, so to conserve energy, the CMB would have to redshift. Is that the case, or is something else going on?


How do I prove that $\operatorname{Rank}(A)=\operatorname{Rank}(A^TA)$?  I know that $\operatorname{Rank}(A)=\operatorname{Rank}(A^T)$ but how do I prove it?  Would somebody explain it to me please?


Let $x>0$ be a constant. Show that $\lim_{z \rightarrow \infty} -z^xe^{-z} = 0$.  Do I apply L'hopital's rule here? It doesn't seem to help, for example, after one round of differentiating the numerator and denominator, I get $\frac{d}{dz} z^x = xz^{x-1}$ and $\frac{d}{dz}e^z = e^z$. I am unsure on how to proceed.


Issue to download Libreoffice Base bibliography tool

Good evening!  I want to create a bibliography for a thesis but I can't download the related Libreoffice tool because the necessary package is untrusted for my computer. Each time I try I get the following error message:  libreoffice-base libreoffice-base-drivers libreoffice-sdbc-firebird libreoffice-sdbc-hsqldb    Here is a pic of the situation:    Can you help me download it or find an alternative solution?


Show that $y_1$ and $y_2$ are not Linearly Independent

Suppose that $y_1(x)$ and $y_2(x)$ are solutions of the differential equation $y''+py'+qy=0$ on $I$. How can I show that if $y_1$ and $y_2$ vanish at the same point then they are not linearly independent?   Here is my attempt to prove the problem. Since $y_1(x)$ and $y_2(x)$ are solutions of the differential equation $y''+py'+qy=0$ on $I$, it is enough for me to show that the Wronskian of $y_1$ and $y_2$ denoted by $W(y_1,y_2)$ is zero. Now since $y_1$ and $y_2$ vanish at the same point say $p$ we have $y_1(p)=0$ and also $y_2(p)=0$.   Solving for $W(y_1,y_2)(p)$ we have: $y_1(p)y_2'(p)-y_2(p)y_1'(p)=0$ since $y_1(p)=0$ and also $y_2(p)=0$.   Am I correct? Thanks


Apply SP3 on SQL Server 2012 AlwaysOn AAGs

If Always-On is configured, while applying Service Pack, should I:   Directly move SQL Server Instance (Secondary Replica) to make it passive and apply Service Pack  Or First move Availability Group and then move SQL Server Instance (Secondary Replica) and finally apply patch and restart the Server.   Can you please let me know?


Tool to view video/audio file information

What is the best tool to obtain the media/codec details of any video/audio file?  I use Windows, but feel free to suggest for your favorite OS too.


Why does add-apt-repository now fail to retrieve keys behind my proxy server, but I can update package lists and manually receive the keys?

I am using Ubuntu 14.04 and 12.04 with the latest updates behind a proxy server at my school. I had no problem a few months ago. However, over the past two months when I try to add a repository with add-apt-repository there is no key retrieved. I can then use sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys KEY with success, but this is annoying. I have created scripts that add PPAs, install software, and more that are now failing because of this issue.   Should I be filing a bug report? If so, could someone please direct me to where to file.   Here is what my terminal output looks like when trying to add the PPA for my-weather-indicator:   $ sudo add-apt-repository ppa:atareao/atareao  Applications from atareao  More info: https://launchpad.net/~atareao/+archive/ubuntu/atareao Press [ENTER] to continue or ctrl-c to cancel adding it  gpg: keyring `/tmp/tmp16ytp9px/secring.gpg' created gpg: keyring `/tmp/tmp16ytp9px/pubring.gpg' created gpg: requesting key 36FD5529 from hkp server keyserver.ubuntu.com gpgkeys: key A3D8A366869FE2DC5FFD79C36A9653F936FD5529 can't be retrieved gpg: no valid OpenPGP data found. gpg: Total number processed: 0  $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36FD5529 Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.fla11h2USs --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/steam.gpg --keyserver keyserver.ubuntu.com --recv-keys 36FD5529 gpg: requesting key 36FD5529 from hkp server keyserver.ubuntu.com gpg: key 36FD5529: public key "Launchpad PPA for atareao" imported gpg: Total number processed: 1 gpg:               imported: 1  (RSA: 1)   Update: I was able to get it working with the -E parameter for sudo, so the command that works is sudo -E add-apt-repository ppa:atareao/atareao. However, I don't understand why things worked without that before and now it does not. Also, this does not seem to explain why other commands with sudo work without the -E parameter. This solution comes from Ubuntu 10.10.


Combinatorial proof that $2^{n+1}-1=1+2+4+\dots+2^n$

Let $S_k$ be a set with $k$ elements. Then $S_k$ has $2^k$ subsets. So the formula $2^{n+1}-1 = \sum_{k=0}^n 2^k$ can be translated to $$\text{number of *nonempty* subsets of $S_{n+1}$} = \sum_{k=0}^n\text{number of subsets of $S_{k}$}.$$ Is there a combinatorial way of seeing that this formula must hold?     (I'm not looking for non-combinatorial proofs like $(2-1)\sum_{k=0}^n 2^k = 2^{n+1}-1$)


bank websites using AES_256_CBC vs AES_128_GCM/CBC

Hello i have just recently started learning about cryptography, so i was doing some little research on what kind of encryption techniques and modes that were used in bank web pages. I have noticed that some bank uses the AES_256_CBC with HMAC SHA1 and banks that uses AES_128_GCM...I have seen more banks using AES_128_GCM or AES_128_CBC over AES_256_CBC... So i would like to ask if there are any major advantages of using AES_128_GCM/CBC over AES_256_CBC or they are more or less the same and it is just a preferential


Is there a best time of day and day of the week to book affordable flight tickets?

I think it is safe to say that flying on the weekend is probably going to be more expensive than during the week. Releated:   I am also not asking about  which talks about getting the first available tickets.  I am curious about booking, specifically, about tickets which were already available. Is there a specific time and day of the week which is the cheapest to book during?  I only ask because I saw an interview once where it was implied that the bookings held for the week which were not actually booked are released at a certain point. This person had said theirs were released Tuesday at noon EST and that the resulting increase in available bookings dropped prices compared to the previous day.  Is there any truth to this? Is there a best time of the week to book (as in actually purchase the tickets, not as in the arrival time/date)?


extract text from a webpage file using C/C++

How to extract text from a specific area of a webpage (in Arabic not English) given the url using C/C++?  For example: given the url of  I want to extract the body of the article (highlighted in the image below) and throw away the other parts of the webpage like the heading, the menus on the right and on the left, etc. I only need the body to be parsed into a string.


I want to replace Windows 10 with Ubuntu 16.04 on my Dell computer.  What should I do?


How can I change Python version in Sublime Text 3?

I am using Sublime Text 3 in Ubuntu. The default Python is python2 which Sublime uses when I build program using Ctrl+B. I am trying to run code as, print(f"Player {row[0]} Vertically =")  but it gives error as follows because code is run with default Python File "/home/gd/Desktop/python/python-revision/pp_13_iterators_iterables.py", line 41   print(f"Player {row[0]} Vertically =")                                       ^ SyntaxError: invalid syntax [Finished in 0.0s with exit code 1] [shell_cmd: python -u "/home/gd/Desktop/python/python-revision/pp_13_iterators_iterables.py"] [dir: /home/gd/Desktop/python/python-revision]  However, when I run same program from terminal, using python3 it works as expected. $ python3 pp_13_iterators_iterables.py [1, 2, 1] [2, 0, 1] [1, 2, 1] Vertically Player 1 Vertically =  How can I change default build environment of Sublime Text to Python 3 and build it using shortcut as Ctrl+B? I tried using alias as alias python="/usr/bin/python3.6"  but it didn't work and gave same error as previous.


Industry standard file format deliverables for logos?

During an academic discussion regarding file formats I received from a most excellent designer, I thought I was correct in writing (based on my experience with hired work):     ...the industry standard for logos is vector...   I received the following response:     Industry standards are interesting things, in that they are more often talked about than actually followed...   We can find all sorts of references to push one point or another, I only talk from experience, and my experience is that even large corporations ala Microsoft are fine with raster.   My question then is perhaps not as simple as I thought:  When hiring a designer to create a logo for an organization (corporate, non-profit, etc.), what is the industry standard deliverable file format (vis-à-vis vector versus raster)?  (Of course, hiring a designer should come with a contract that explicitly states the file format, but most people aren't aware [or don't care] about various file formats and might therefore neglect such a clause.)  This is different than asking what should go into the deliverable package. This question is about an authoritative source that describes what is expected of professional-level deliverables from designers. Some people agree that vector graphics should be included, but is that a de facto standard, or is there an official (or semi-official) body that dictates what people should expect as deliverables from graphic design?


How to include survey weights into a random intercept model?

I'm trying to run a random intercept model in R on an adolescent dataset with >100 schools (the school being the intercept).  The data include a survey weight value for each observation, however lme and lmer seem to only take frequency weights, not survey weights.  Anyone know how to incorporate survey weights with lme or lmer?


How do I prevent the Welcome Screen / Lock Screen from appearing after idling in Windows 8?

I'm running Windows 8 Enterprise x64 (RTM), and I cannot figure out how to disable to the lock screen that appears after the computer has been idle for 10-15 minutes.  I've tried the following, and none of them work:  1) Disabling Screen Saver "display logon screen" option.    2) Disabling the Power Plan "require a password" setting.     3) Changing the lock screen policy:      None of these disable the lock screen, it still appears after 10-15 minutes. The only setting that has any affect at all is changing the policy (#3 above), but it merely disables the Welcome Screen image (the one that you click/drag/type on to get to the lock screen). But you still end up at the lock screen and have to re-enter your password.  Short of disabling the user login completely, is there any way to disable the lock-on-idle setting in Windows 8?


The category Set has the property that any morphism f can be decomposed into an epimorphism $e$ and a monomorphism $m$ with $f$ = $m\circ e$. (The intermediary set object is the image of $f$.)  Is there a name for this construction?  Is there a name for this property of categories?  In Set, the intermediary object is unique up to isomorphism. Is this the case for all categories with the property?


Resizing videos with ffmpeg/avconv to fit into static sized player

I have a html 5 video player which is 700px wide, 400px high. I'm trying to use avconv to use ffmpeg to resize (while retaining the aspect ratio) and making sure it fits into my player.  Input can be a file of any size, so I need to resize the larger ones but center the smaller ones with black bars. So far I've tried: -s and -aspect, I've seen pad being used with the -vf switch but don't understand how it works enough to get what I need.    This is a rough idea of what I need. I'm not sure if it's even possible. It's almost like CSS's max-width/max-height. I realise this may just be a jumble of words but if anyone happens to understand what I'm talking about, I'd appreciate help, Thanks.  avconv command:  avconv -y -i control.avi -vcodec libx264 -b 2000k -bufsize 20M -acodec aac -strict experimental -ar 44100 -ab 256k bigbuck_out.mp4


How to center horizontally divs inside another div

I'm trying to center div's inside one outter div, but I can't.  My html is something like this :

       Inner Div

       Inner Div

       Inner Div

   And my css is something like this :   .outterDiv{  width: 600px;  border: 1px solid #f00;  text-align: center; }  .innerDivBig{   margin: 0 auto;   display:table; }   Here is .


I Tried The Ocean Modifier to make an ocean with depth like the one on the image:    but I Get A Flat Ocean. Please I Need Help


Can I use "She" and "her" for an animal?

Can I use "She" or "her" for an animal? For example, Suppose I have a dog that is of the female gender.  How do I refer to it? "It" or "She"?   Also when I am talking with someone about an animal (for example Animal Doctor) and we both don't know the gender of the animal. How do we refer to it? "He" or "It"?


"Will you be at home tomorrow?" and "Are you going to be at home tomorrow?". What is the difference?

Can't undrestand what is the real difference between "Will you be at home tomorrow?" and "Are you going to be at home tomorrow?". Both variants are grammatically correct. Maybe it is some meaning difference? Help me please to find out.


How to install Virtual box in Ubuntu 16.04?


I have recently a new USB modem, named DLink DWM-156. But I am not able to connect internet via this on Ubuntu. I have read and applied various solutions available online, but none works.  I'll explain things as much as I can so a solution can be figured out.  This modem do have its Linux drivers. First I tried to connect it without installing them,  with the help of Sakis3g. But Sakis failed in locating device. lsusb showed device with 2001:a706 ids. But it was not being shown anywhere in devices.  Then I mounted it, extracted .deb drivers and installed it. One thing to note is that after installing it, gdebi was not showing options for reinstall or remove, though when I checked it in Synaptics, it was showing there as installed.  Anyhow, after installing drivers, when I replug modem, it gets detected in devices but as CD-ROM. lsusb showed 2001:7001 as ids, which mean modem has switched.  Now the question is, if it has switched then why its not show showing up as a modem? I tried usbserial-driver-bind.sh in terminal but of no use.  Sakis3g detects it now but while connecting it shows error like ttyusb0 is presently occupied by PID xxxx cat.  I have tested modem on windows and it works like charm there. What should I do??


Packages catoptions and tikzcircuit warning: how to remove it?

I have to use a format that uses catoptions package; when I use it in conjunction with tikzcircuit I have a (mostly harmless, I think, but annoying in IDEs) warning ---  \documentclass[border=10pt, 12pt]{standalone}% adequate for simple figures \usepackage{catoptions}  %% the above packages is loaded in the class format --- suppose I can edit only  %% below here (or use some class option, obviously). Baically, I have  %% \documentclass{mycompanyclass}  %% ...and the package catoptions is loaded before I can load any other package  \usepackage[siunitx]{circuitikz}% Loading circuitikz with siunitx option \usetikzlibrary{arrows} \begin{document} \null \end{document}   which outputs (excerpt):   ... (/usr/share/texmf/tex/generic/pgf/libraries/pgflibraryarrows.code.tex)  Package catoptions Warning: Option 'europeanvoltages' multiply defined (catoptions)                in family 'circuitikz.sty' (catoptions)                (in package 'circuitikz').   Package catoptions Warning: Option 'europeanvoltage' multiply defined (catoptions)                in family 'circuitikz.sty' (catoptions)                (in package 'circuitikz').   Package catoptions Warning: Option 'europeanport' multiply defined (catoptions)                in family 'circuitikz.sty' (catoptions)                (in package 'circuitikz').  (/usr/share/texlive/texmf-dist/tex/latex/circuitikz/circuitikz.code.tex ...   Is it possible to get rid of the warning?


How to use non-square roots on the Default Calculator in advanced mode without exponents?

I can't seem to figure out how to input a root that isn't square in Ubuntu's default calculator. I know I can input 4^(1 / 3) but I'd prefer to input them in a more.. "natural" way.  (I can't think of a good way to put it.)  Is there a  way to work with non-square roots in the advanced mode of the calculator without using exponents?


Why is ellipsoidal distance greater than cartesian distance?

I created some linestring features in EPSG:32632 (WGS 84 / UTM zone 32N) exactly 10 000 m long.  QGIS calculates all line lengths (horizontal, vertical, diagonal) as 10 001.9 m. The measure tool explains "Project CRS transformation is turned on and ellipsoidal calculation is selected. The coordinates are transformed to the chosen ellipsoid (WGS84), and the distance is calculated in meters."  When I set the ellipsoid to "None / Planimetric" in project properties, I get the expected results (10 000 m).  I don't understand the phrase "coordinates are transformed to the chosen ellipsoid (WGS84)", is it a transformation to unprojected degrees (4326?)? Since 32632 already is based on WGS84, is there anything to transform? If there is a kind of "great circle" calculation involved, I would have expected lengths can only get smaller.  Is QGIS's calculation correct/meaningful, is it plain wrong or do I see rounding errors?  This are the geometries I tested:  LineString (370000 5615000, 370000 5625000) LineString (366464.46609406732022762 5616464.46609406732022762, 373535.53390593267977238 5623535.53390593267977238) LineString (365000 5620000, 375000 5620000) LineString (373535.53390593267977238 5616464.46609406638890505, 366464.46609406638890505 5623535.5339059317484498)   Edit as addition to MappaGnosis's answer: I forgot that in UTM , this seems to be the simple answer for the title question.


I recently attended a test which ask me two question based on perfect squares; here they are:  $1.$ How many even perfect squares between $1000$ and $5000$ are divisible by both $5$ and $9$?  $2.$ Can there be a perfect square whose digits consists of exactly $4$ ones, $4$ twos and $4$ zeroes in any order?  I haven't done anything much on perfect squares so I was reluctant to attempt them during exams, although as I had some spare time after finishing the other questions, I tried thinking about the first problem and I noticed that only $3600$ seems to satisfy the conditions, which is correct, but I don't know how to get this mathematically? And for the second problem, I don't have any clue till now.  Unfortunately they haven't given me any solutions for the questions, nor any ideas as to how to solve them (mathematically)?


Prove that if $|f(x)| \leq x^2$, then the function is continuous and differentiable at $x=0$.

Let $f:\mathbb{R} \to \mathbb{R}$ be a function such that $|f(x)| \leq x^2$ . Prove whether or not the function is continuous and differentiable at $x=0$.  Please tell me where am i wrong  i have used the sandwich theorem :  $-x^2 \leq f(x) \leq x^2$, so $\lim_{x \to 0} f(x) = \lim_{x \to 0} x^2 = \lim_{x \to 0}(-x^2) = 0 $  also , $f(0)=0$  hence the function is continuous and differentiable


Remove all packages installed from a PPA?

I have installed LibreOffice 4 using PPA. I was using LibreOffice 3, then  I had upgraded to LibreOffice 4, because I was somewhat eager to try a new version.   Now since I found that LibreOffice 4 has some issues, including handling my native language, I want to move back to LibreOffice 3.  This question  has already some answers which has some similarity with my above mentioned issue, but it does not solve my problem. This question talks about downgrading from a specific version of LibreOffice, namely from 4.0 to 3.6. The solutions mentioned are not the ones I am looking for. They will work, but the  solutions suggest either downloading .deb files for LibreOffice 3.6 or adding PPA for them. Furthermore, some of the answers put out-of-proportion~(applicable for the solution, however) stress on use of , not general command-line-solution.     I want a general solution without using PPA or downloading .deb files. All I want is to move back from the (higher) PPA version to the (lower) official version.  Anyway, in order to accomplish this, I removed the LibreOffice config directory from my home and then purged LibreOffice from my machine.  sudo apt-get purge libreoffice-*   Then I removed the relevant PPA's using the sudo apt-add-repository --remove command. And then ran sudo apt-get update.  Now, when I try to install LibreOffice using the command  sudo apt-get install libreoffice   I get an avalanche of output about unmet dependencies, something like,   The following packages have unmet dependencies:  libreoffice : Depends: libreoffice-core (= 1:3.5.7-0ubuntu4) but it is not going to be installed (snipped)    If I dig the issue further, by using the command,  sudo apt-get install libreoffice-core   I get    The following packages have unmet dependencies:  libreoffice-core : Depends: libreoffice-common (> 1:3.5.7) but it is not going to be installed                 Depends: libexttextcat0 (>= 2.2-8) but it is not going to be installed                 Depends: ure (>= 3.5.7~) but it is not going to be installed E: Unable to correct problems, you have held broken packages.    Could you please tell me how do I install LibreOffice 3 in my machine?  I am using Ubuntu 12.04 LTS.    EDIT  Before receiving , I was wondering, at this very moment, if I take a fresh computer, and install Ubuntu 12.04, LibreOffice installation will work without a hitch. Then why I can not install LibreOffice in my 12.04 machine today from simple command line?  Then the accepted answer clarified everything. I need to use ppa-purge so that this resets all packages from a PPA to the standard versions released for my distribution.  Basically it is like a way to restore my system back to the way it was before my installed packages from a PPA.  further elaborates the idea.    worked perfectly for me. Actually, this was an education for me since it taught me how do downgrade a package that was added via PPA. And I realized that the answer actually teaches us to "move from PPA installation  of a package to official lower version package."


I want to implement an autocomplete EditText in my application.  I prepared my activity_add_customer.xml for my AutoCompleteTextView as follows  <AutoCompleteTextView             android:id="@+id/monthAuto"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_centerHorizontal="true"             android:layout_marginTop="20dp"             android:hint="Select a Month"             android:completionThreshold="1"             android:completionHint="Select a Month"             android:textAlignment="center"/>   and my java class as  public class AddCustomer extends AppCompatActivity {  private static final String[] MONTHS = new String[] {         "January", "February", "March", "April", "May","June","July","August","September","October","November","December" };  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_add_customer);      AutoCompleteTextView textView = findViewById(R.id.monthAuto);     ArrayAdapter<String> adapter= new ArrayAdapter<String>(this,android.R.layout.simple_expandable_list_item_1,MONTHS);     textView.setAdapter(adapter); } }   I removed the code and checked. At that time its perfectly working.Its keep crashing. How I can solve this issue.  LogCat  06-02 21:35:40.580 32207-32207/com.artistdipin.business E/AndroidRuntime: FATAL EXCEPTION: main Process: com.artistdipin.business, PID: 32207 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.artistdipin.business/com.artistdipin.business.AddCustomer}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.AutoCompleteTextView.setAdapter(android.widget.ListAdapter)' on a null object reference     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2762)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2823)     at android.app.ActivityThread.-wrap12(ActivityThread.java)     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545)     at android.os.Handler.dispatchMessage(Handler.java:102)     at android.os.Looper.loop(Looper.java:154)     at android.app.ActivityThread.main(ActivityThread.java:6349)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:893)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.AutoCompleteTextView.setAdapter(android.widget.ListAdapter)' on a null object reference     at com.artistdipin.business.AddCustomer.onCreate(AddCustomer.java:22)     at android.app.Activity.performCreate(Activity.java:6772)     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2715)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2823)      at android.app.ActivityThread.-wrap12(ActivityThread.java)      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545)      at android.os.Handler.dispatchMessage(Handler.java:102)      at android.os.Looper.loop(Looper.java:154)      at android.app.ActivityThread.main(ActivityThread.java:6349)      at java.lang.reflect.Method.invoke(Native Method)      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:893)      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)


Was Kyle Reese the original father of John Conner

There was an episode of The Twilight Zone involving time travel and as it turned out some things can be changed but other events can't and it seems to me it's possible to avoid the time paradox.  For example, at first someone else was the father and Sarah raised him by herself. At some point Skynet is created starts the war and after losing sends the terminator back in time to kill her. Kyle goes back in time and becomes the father of John creating the time loop.


Why holes in a semiconductor are associated with a net positive charge?

I am clear with the idea that holes move in direction of electric field because of motion of bound electrons that get just some energy to jump into next hole.But i am confused with giving holes a positive charge.  I understood that in intrinsic semiconductor removal of electron is associated with less screening of some protons so their is a positive charge effect that can be made associated with location where electron left i.e hole ,so some people and textbook say hole has a net positive charge.like this shown in my book and answered to question      But my question is if we apply this positive charge to hole in p type semiconductor then semiconductor is no more neutral that is a contradiction to property given in my textbook.Please consider explaning how in this case we can assiciate the hole with a positive charge.  In this above picture we can see how neutral charge of semiconductor is affected when we associate postive charge with holes.(Note in picture already 10 protons are screened with 10 electrons so it shows +4)  picture of textbook that says semiconductor should be neutral.


How come the Federation did not routinely use projectile weapons against the Borg?

In "First Contact" Picard kills a couple of Borg drones in the Holodeck with a holographic Tommy gun.  It would appear that while the Borg are able to adapt to become impervious to energy weapons, they are vulnerable to bullets.  This looks like a gaping logical hole: why couldn't Star Fleet replicate "primitive" assault rifles to fight the Borg, if they knew that phasers were useless against them?  Has this ever been addressed?


Einstein said that gravity can be looked at as curvature in space- time and not as a force that is acting between bodies. (Actually what Einstein said was that gravity was curvature in space-time and not a force, but the question what gravity really is, is a philosophic question, not a physical one)


How was US government able to collect Vibranium out of Wakanda given Wakanda was so protective about it?

Captain America's shield is made of Vibranium which came from Wakanda. Given Wakandan tech was so advanced and Wakanda was so protective about Vibranium, how could US government collect a chunk of Vibranium from Wakanda?


Show Regulation Messages on Stack Exchange App

Questions like  are locked (or closed, or on hold, etc.) which is clearly stated when using the website version of Stack Exchange.  This message does not appear on the app.  I think it would be awesome if it were added to the app.  (In order to prevent foolish questions like  for example.)


Verifying a large directory after copy from one hard drive to another

I have a home file server that I use Ubuntu on.  Recently, one of my drives filled up so I got another and threw it in there.  I have a very large folder, the directory is about 1.7 T in size and contains a decent amount of files.  I used  to COPY the files from the old drive to the new one and it seems to have worked fine.  I want to now validate the new directory on the new drive against the original directory on the old drive before I delete the data from the old drive to free up space. I understand that I can do a CRC check to do this.  How, specifically, can I do this?


Flag queue counter is not getting refreshed after handling a post

Ok so  is successfully solved. Now it is not displaying the duplicate posts but the counter of the post is not getting decreased. Meaning when I am handing a NAA flag and if it is showing me there 10 remaining NAA post, after handling 3 posts, it should show me 7 NAA flags remaining, but as per new changes applied, it is still showing the old counter as 10  NAA posts, here is the screen shot,    As we can see that there is only three posts left for me out of 8 NAA post, but at the right side it is still showing me 8 instead of 3. Edit: From the below image we can see that there is only one post left for me, but the counter is showing total 5 NAA posts left,    Can we fix this counter as well ?


Is there a way to set a *global* key value using `pgfkeys`?

The simple answer to this question appears to be "No"; quoting from the pgf manual:     The setting of a key is always local to the current TeX group.   However, this is very annoying because it means that you can't do something like:  \foreach \mykey/\myvalue in {   long/list,   of/keys% } {   \pgfkeyssetvalue{\mykey}{\myvalue} }   So my next best shot is:  \makeatletter \pgfkeys{/applicant/.code 2 args={\expandafter\global\expandafter\def\csname applicant@#1\expandafter\endcsname\expandafter{#2}}} \foreach \mykey/\myvalue in {   long/list,   of/keys% } {   \pgfkeys{/applicant={\mykey}{\myvalue}} } \makeatletter   but that's not very transparent since to get at the "value", I have to use the macro \csname applicant@whatever the key name was\endcsname.  (Also, I'm not very au fait with pgfkeys, this being my first foray, so I should probably have used something like /.expand once or /.store in, but that's by the by.)  Is there a better way to circumvent this restriction?  I'd be happy with a new macro for defining the key, so \pgfglobalkeys would be okay (though in the spirit of \pgfkeys it feels more like it ought to be \pgfkeys{key name/.global=...} but let's not quibble), but when using the key's value then it ought be be accessible via the traditional means, say pgfkeysgetvalue.


Can someone give me information about conway base 13 function and give me a graph of the function?

I have encountered this function while trying to construct a function that is discontinuous everywhere but has IVP.But the function is not clear to me.I need a proper explanation about the definition and graph of the function


Need to develop iphone App on Windows Development Meachine

This might be repeated question, but i am not able understand those answers or it old post?  I am having a windows meachine, how to develop a iphone app and test that in simulator?  Is there any IDE or tools which can be install/work in Windows?


Why did this \heightof and \widthof stop working?

The following has worked for me for quite some time.  \documentclass[11pt]{book} \usepackage[margin=1in]{geometry}             \geometry{letterpaper}                  \usepackage[parfill]{parskip}     \usepackage{tikz, pgf, calc} \usetikzlibrary{matrix, shapes, positioning, calc, decorations.pathreplacing, shapes.geometric, arrows}  \newcounter{Day}  \newcounter{pt}[Day]    % CORRECTNESS POINTS FOR HW RUBRICS \newcommand{\pt}[2]     % NUMBER OF POINTS, ITEM IN STARBURST     {#2\begin{tikzpicture}[remember picture, overlay]         \node (A) [starburst,              draw = red, opacity = .8,              fill = red!20, fill opacity = .2,              xshift = -.5*\widthof{#2},             yshift = .5*\heightof{#2}             ]             {\phantom{#2}};         \node (B) at (current page.west) {};         \path let \p1 = (A), \p2 = (B) in node [draw = red,              color = red] at (\x2+.625in,\y1) {#1 pt(s)};     \end{tikzpicture}     \addtocounter{pt}{#1}     }  \begin{document}  \pt{1}{lorem}  \end{document}   Recently, I updated several packages with MikTeX 2.9.  Below is a screenshot of the packages that were updated.    Since the updates, the \widthof and \heightof commands are causing errors.  If I change the xshift and yshift to something else, everything compiles just fine (but isn't the way I want my command to work).  I have two questions:   Why did this work before and not now? How can I change my code to make it work correctly again?   Thanks in advance for any help!


Which keyword should I use: colors or colours or a combination of both?

Well this might sound weird but yeah that's exactly what I want to know!  Now as per US-English colors is the right word and as per British-English colours is the right word. Here in India we follow British English and also the local trend on Google Trends suggests that colours is more searched for in the market that my site is gonna target.   Also when I went through my competitors site they are mixing both keywords colors and colours.  As we all know Google returns separate results for colors and colours.  So I am kinda confused. Should I go for mixing of both the keywords which I feel is wrong or should stick with one keyword?


Prove using the binomial theorem that alternately adding and subtracting elements across a row of Pascal’s triangle always results in zero.   I need help constituting a proof. I am able to show this works for specific cases and by substituting numbers into the binomial theorem but how will I go about a general proof that illustrates this works for every case?


Who was Did Paul Maud-Dib's Jihad conducted against and why did it happen?

Between Dune and Dune Messiah, Paul Maud-Dib's Fremen armies swept across the galaxy in a bloody Jihad.  What I don't understand is who this Jihad was raged against.  The key Harkonnen leaders were all dead, House Atreides was aligned with House Corrino through the wedding of Paul to Irulan.  So who was it that the Jihad was raged against, and why did the Fremen commit such a bloody atrocity?  What about their religion and culture demanded such a war (as I understand it the Lisan-al-Gaib prophesy and Liet's vision for Arakkis did not necessitate galactic war)?  I am not interested in answers from the Dune movie.


Can a creature with deathtouch be killed by a creature that it is killing?

If I attack with a  (2/3 deathtouch and lifelink) and my opponent blocks with a creature that's a 3/3 (no abilities), does my Gifted Aetherborn die?   Without deathtouch it would, but since the Gifted Aetherborn only needs to deal 1 damage to kill the other creature, he should live, correct?


Why feature selection using `L1` and not using `L2` norm?

I read a tutorial . In which, I came across the below plots  I read an explanation quoted Fig 8(a) shows the area of L1 and L2 Norms together. For same amount of Bias term generated, the area occupied by L1 Norm is small. But L1 Norm doesn’t concede any space close to the axes. This is what causes the point of intersection between the L1 Norm and Gradient Descent Contour to converge near the axes leading to feature selection. From the above graphs and explanation, I can understand the below a) Area occupied by L1 norm is small when compared to L2 norm But I didn't understand what the author means as But L1 Norm doesn’t concede any space close to the axes. and how this leads to feature selection? can help me understand this, please?


I can only open terminal on ubuntu 18.04 in a specific way

A while ago my terminal stopped coming up when I pressed ctrl-alt-T. Then today the terminal stopped coming up when I click on the terminanl app on the dock. I use ubuntu 18.04, a lot of python and jupyter-lab.  The only way that I know of to open terminal anymore is going to Files, and right clicking somewhere and choosing 'open in terminal'. For some reason this still works.  Why is this and how can i recover all the other ways to open terminal?   On a side note, I get an error when trying to do sudo apt-get update.  [sudo] password for user:  Ign:1 http://ppa.launchpad.net/mc3man/trusty-media/ubuntu bionic InRelease      Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease               Err:3 http://ppa.launchpad.net/mc3man/trusty-media/ubuntu bionic Release          404  Not Found [IP: 91.189.95.83 80] Hit:4 http://au.archive.ubuntu.com/ubuntu bionic InRelease                      Hit:5 http://au.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:6 http://au.archive.ubuntu.com/ubuntu bionic-backports InRelease Get:7 http://au.archive.ubuntu.com/ubuntu bionic/main Translation-en_CA [430 kB] Get:8 http://au.archive.ubuntu.com/ubuntu bionic/universe Translation-en_CA [4,118 kB] Reading package lists... Done                                                   E: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   Theres a red error bar on the top right hand side of screen that always says "A problem occurred when checking for the updates".  I don't know if this is related.


Is it possible to animate which characters of a text object are assigned to a material?

Is it possible to animate which materials are assigned to specific characters in a text object? It is quite easy to assign the materials how I want using , but I do not know of a way to animate it. Is this possible at this point? And if not, is there a workaround using different techniques that I could use?  This question is similar to  and , I just want to know if there are other methods that could be used for text objects.


Running terminal command on all files in folder?

I need to convert 500+ .xlsx files to .txt (or .csv). To do this I found . It works well if I write the command like this:  xlsx2csv fileA.xlsx fileA.txt   I have however been unable to run the command on all files (500+ files) in the current folder. Could you please help me with that?     I Know I had figured out how to do this some time ago (via google) and I have tried again today but I did not have any luck for the last hour. So please forgive me asking such a likely simple question.  Thanks for your Help.


Subscript size for formulas in beamer presentation

I am creating a beamer presentation where I have a lot of formulas. Between the packages used I have \usepackage{amsmath} and the theme for the presentation is \usetheme{Warsaw}.  As it can be seen in the attached picture, the size of the sub(super)script is bigger than the normal writting.   Anyone knows a set of basic packages in order to get the classical formulas, without these size changes?


How can we solve $\lim\limits_{n \to \infty} \left (1 + \frac{1}{n} \right)^n$?

Taken from :     The number $e$ is the limit $$e = \lim_{n \to \infty} \left (1 + \frac{1}{n} \right)^n$$   Graph of $f(x) = \left (1 + \dfrac{1}{x} \right)^x$     Its evident from the graph that the limit actually approaches $e$ as $x$ approaches $\infty$. So I tried approaching the value algebraically. My attempt:  $$\lim_{n \to \infty} \left (1 + \frac{1}{n} \right)^n$$ $$= \lim_{n \to \infty} \left(\frac{n + 1}{n}\right)^n$$ $$= \left(\lim_{n \to \infty} \left(\frac{n + 1}{n}\right) \right)^n$$ $$= 1^\infty$$  which is an indeterminate form. I cannot think of any other algebraic manipulation. My question is that how can I solve this limit algebraically?


Is there a term I can use for a boss's favorite employee?

Over dinner tonight, one of the guests was describing herself as her boss's favorite employee, and asked for a term to describe this.  As the only guest who spoke English as a first language, the question fell on me, but I could not think of any such term.  Is there one?  It would be similar to "teacher's pet" to describe a teacher's favorite student, but in the professional realm.  "Boss's pet" just doesn't seem to fit.


So I started out with a 250GB HDD, the stock drive from an EeePC 1015pem that I am trying to turn into a MintBook. The drive is physically operable, but all data has been nuked, including the old OS. Given this, I attached the HDD to my desktop and installed Linux Mint 16 Xfce from a live USB created through Unetbootin-585. Set aside 10GB for swap and 240GB for ext4 and /.  The drive now refuses to boot for either the desktop or netbook. Both motherboards are sounding the correct sequence of beeps, so they seem healthy, and I can successfully access the BIOS on both systems. However, the only thing that comes up after starting the computer is a nonresponsive command-line. There is no error message, no grub or grub-rescue, nothing.  Is there anything I can try besides reformatting and starting over? How would I go about installing a boot loader that can boot my OS?


Recovering Stack Overflow for forgotten associated e-mail

I forgot my stack overflow account, so i create new account just to ask how i can recover or merge my old account..   I have tried this:  but there are no response from the admins..  My old account is:  which i forgot which openid or email did i have used to logged in  My new account is:  which I have associate all my gmail account to it  any suggestion? on how i can merge or recover my old account?  so.. can stackoverflow create a better account recovery by not make user inputting their e-mail, but using a button on users page that sends an e-mail to it's associated account instead?


How can I make Chrome open bookmarked pages in new tab by default?

Current situation:  I am currently browsing a page (say, www.google.com). I want to open a bookmarked page (say, www.bing.com), but I want to keep the current page (Google) opened. I need to click on new tab, then click on the bookmark for Bing. Alternatively, I can right click and open Bing in new tab.  But I want none of those because why click twice when one is enough?    What I want:  I am currently on Google. I want to open Bing, so I click on the bookmark and Bing opens in a new tab. Google remains open.    I am aware of a duplicate question linked . However it didn't really provide a satisfactory answer. Changing every link to javascript breaks the icon and is a pain to do; middle clicking doesn't really work because I'm on a laptop and the touchpad does not support middle clicking. I hope there is an extension for Chrome that can redefine this behavior to the way I want. A hidden setting in Chrome would be even better but I doubt Chrome offers that.


I had a code review recently and a debate began. Much of my code looks like this:  for (i = 1; i <= 3; i++)         {             DoubleValue = tODBCX->getDouble(KeyFieldCount + i, IsNULL, IsSuccess);             if (IsNULL)             {                 LoggerDrillHole::LogToDB(LOG_ERROR, L"Survey depth, dip and azimuth values can not be NULL.", __FUNCTIONW__);                 IsSuccess = false;                 goto EXIT;             }             else             {                 if (i == 1)                     Depth = DoubleValue;                 else if(i == 2)                     DipDegrees = DoubleValue;                 else if (i == 3)                     AzimuthDegrees = DoubleValue;             }         }   The contentious goto statement sparked debate. This code is contained within a function that begins life by initializing a local boolean variable IsSuccess = true and the function finally returns IsSuccess. The EXIT strategy looks after essential tidy up code;  EXIT:      tODBCX->Close();     if (Key != 0) free(Key);     Key = 0;     if (PriorKey != 0) free(PriorKey);     PriorKey = 0;     return IsSuccess;   There were several such goto EXIT statements adjacent to setting IsSuccess = false and logging to database and so on. The comment was made that this is disruptive to the flow of the code. One should instead use a do loop (infinite loop) and break out of that loop and then process all of the required instead of using the goto statement.  I intensely disliked the infinite loop strategy, but I could get used to it if it truly improves the readability. Is there a better way?


How do I get Blender to import a Collada file?

Collada is not among the import options, and not among the addons for import options.  So is there a way to import a Collada file to Blender?


Deleting iTunes App Store purchases from my account

So... Over the period of 2 years owning my beloved iPhone 3GS, I have found many useful apps that I use very frequently. However, in the process of finding these apps, I have also downloaded much, much more crappy apps.  With the introduction of the "Purchased" section on the App Store, many of the hundreds of apps I downloaded (mostly crappy) have popped up again. The apps are an eyesore and clutter up the whole space. Is there a way for me to delete them (from my account) forever, or at least hide them?


Can a camera affect the Quantum Entanglement?

'Spooky action at a distance' is how Albert Einstein famously derided the concept of quantum entanglement, wherein objects can become linked and instantaneously influence one another. Entanglement is broken when the entangled particles de-cohere through interaction with the environment, for example, when a measurement is made. My question is as follows. If we place camera in a room, does connection with that object in this room get broken? If not, then how we can vanquish Quantum Entanglement from a room?


Can't update using system updater, 404 Not Found error for sevenmachines PPA

This is the message it gives me:  W:Failed to fetch http://ppa.launchpad.net/sevenmachines/flash/ubuntu/dists/quantal/main/source/Sources  404  Not Found W:Failed to fetch http://ppa.launchpad.net/sevenmachines/flash/ubuntu/dists/quantal/main/binary-i386/Packages  404  Not Found E:Some index files failed to download. They have been ignored, or old ones used instead.


How do I get indices of manually created vertex group via python?

I manually created a vertex group with needed vertices in blender. How do I get indices of its vertices to then create a vertex group with this vertices via python?


I hope this is a valid question to ask. I wondered about the different expressions one can use for heavy or unstable breathing. Rather than being heavy breathing from exercising, it's heavy, laboured breathing due to negative emotions.   Would these work ? :   "uneven breath/breathing" "quickening breath"   Is there also an expression or phrasing to implement a "breathing that's growing... [rasp/laboured/winded] ?  Are there other expressions to describe the following statement "her pulse quickened". I assume it depends on context, but does this expression implies a positive source or a negative one ?  In terms of regular breathing, can one qualify someone's breath of "steady", or "quite steady" ?  Essentially, how does one breathe in English ?


Suggest edits without actually making them

At 2000 reputation, users are given the ability to "edit anything in the system without it going through the peer review system", which is undoubtedly useful when it comes to correcting poor grammar and making a question more intelligible in general.  However, I often find myself thinking I know what a question means without actually being sure, and consequently I am reluctant to make an edit clarifying said question, as I don't want to change what it is really asking. For this reason, it may prove useful to have a mechanism through which 2000+ reputation users can still suggest edits to an OP without actually making them.


I regularly receive files from a service authority in DWF format, which shows the location of their assets in there area.  I note that there is no option to have the data in an alternate format as it is automatically generated.  I can't seem to convert this file into an alternate format for import into QGIS (for example DXF).  I note that it can be opened in Autodesk Design Review but this cannot convert the data (other than printing to a PDF).  How do others incorporate this data format into their work?


What is the theoretical limit for farthest we can see back in time and distance?

13.2 billion years ago the universe was rather small, having started only half a billion years ago. Today, with the help of Hubble Space Telescope, we are able to capture the light of galaxies emitted at that time.  The point at which Earth exists now must have been quite close to those galaxies back then. If so, why is it that it is only now, after 13.2 billion years later the light from those galaxies has reached us? Or in other words, are we sure that the light we are seeing from those galaxies indeed travelled for 13.2 billion years?  It looks like as if there was a race between our point running away from those galaxies (with the expansion of universe and space) and the light that was emitted at that time. And only now that light has reached and overtaken us. But if that is so, then wouldn't it put a limit on the oldest light we can see, no matter how powerful the telescope is (even it is more powerful than the James Webb Space Telescope)? This should be expected, because at the time just after the Big Bang, the light emitted by all objects must have already overtaken all other objects, including the location of earth. Therefore we will never see the light that old (close to the time of Big Bang) no matter how powerful the telescope. If this is so, what is the theoretical limit we can see far back in the past?


14.04.5 to 16.04 Update failed - xenial.tar.gz.gpg missing

The update from Trusty to Xenial is officially available via the software updater. After updating all packages, upgrading through the software updater yields:  Fetching the upgrade failed. There may be a network problem.   Doing a sudo do-release-upgrade yields:      Checking for a new Ubuntu release Err Upgrade tool signature                                                        403  Sorry, not allowed to fetch that type of file: xenial.tar.gz.gpg         Err Upgrade tool                                                                  403  Sorry, not allowed to fetch that type of file: xenial.tar.gz             Fetched 0 B in 0s (0 B/s)                                                       WARNING:root:file 'xenial.tar.gz.gpg' missing Failed to fetch Fetching the upgrade failed. There may be a network problem.


initramfs unable to find a medium containing a live file system

I have a R100 Toshiba external CD-Rom using pci card and usb floppy.  I have tried to install XP to see if it works any different and to do that I have to use recovery disks for the Toshiba to make a X: drive and then use winnt to put files on hard drive and install from there other wise if it tries from the cd I get a blue screen. So is there anyway to do something similar to ubuntu?  I have tried older versions and slow burns of the image.


What exactly are genes, DNA and chromosomes. How do they relate to each other and what is their function?

So I am new to biology and I have been reading, and searching the web, but I couldn't understand the whole framework of a cell. So as I understood:    A DNA, is a double chain of Nucleotides (A,T,G,C and a sugar) and a phosphate residue. Some parts of a DNA code a gene and some do not, exons and introns accordingly. As I understand it these the sequences of exons hold genes and the whole sequence is called genome. Now I read in the book Introduction to Computational Molecular Biology by J. C. Setubal and J. Meidanis. that I cite Each cell of an organism has a few very long DNA molecules. Each such molecule is called a chromosome. So each X shaped thing called a chromosome holds one DNA molecule?   Or is each "hand" of the chromosome one complete double helix of DNA so we have 23 pairs of such chromosomes? or is it that each we 23 pairs Xs?   Shouldn't we have just one uniquely identifiable DNA sequence? I am asking this, because I have also read that each chromosome encodes a different part of one's genome. Does this mean we have several DNA sequences?   This is really bothering me, since I can't figure out the correct structure of a cell.   EDIT: Now if each chromosome contains a pair of DNA helices. We have 46 chromosomes so overall within the cell there are 92 DNA sequences? All of which are the same? Or are they different? If they are different how do they code for different aspects of one's genome?


Prove that $2^\mathbb{N}$ is equinumerous to $\mathbb{R}$

I was thinking using the fact that $[0,1]$ is equinumerous with $\mathbb{R}$, but i cant think of a bijection from there to $2^\mathbb{N}$.


The power set of the intersection of two sets equals the intersection of the power sets of each set

It would be great if someone could verify this proof.  Theorem:  $\mathcal{P}(A \cap B) = \mathcal{P}(A) \cap \mathcal{P}(B)$  Proof:  First I prove that $\mathcal{P}(A \cap B) \subseteq \mathcal{P}(A) \cap \mathcal{P}(B)$. Take any subset $X \subseteq A \cap B$. Then $X \in \mathcal{P}(A \cap B)$. Also, $X \subseteq A \wedge X \subseteq B$, meaning that $X \in \mathcal{P}(A) \wedge X \in \mathcal{P}(B)$. This, again, means that $X \in \mathcal{P}(A) \cap \mathcal{P}(B)$, and this proves the statement.  Then I prove that $\mathcal{P}(A) \cap \mathcal{P}(B) \subseteq \mathcal{P}(A \cap B)$. Again,  take any subset $X \subseteq A \cap B$. Using just the same arguments as above, this is also a truth.  The theorem follows.


Random Function generating the same value every time in a loop

I have a function that has a random aspect to it. The function takes an array which contains 10 integers and depending on how many non-zero integers are in the array, it randomly changes their value. My function works as I want it to and whenever I run it normally, it provides a different output. However I would like to run the function in a loop and store all my random outputs. When I try this, all my outputs end up being the same. I dont know why that is seeing as the function works when it is outside of the loop. How can I get the function to return a different value for every iteration of the loop so that I can store them. My function code is below in case its needed (sorry if its not clean): def stochastic(array):     count = np.count_nonzero(array)     n = 0     m = 0     p = 0     q = 0     r = 0     counter = 0          if count == 3:          while n+m+p != 100:             n = random.randint(28,36)             m = random.randint(28,36)             p = 100 - (n+m)          if count == 4:                          while n+m+p+q != 100:             n = random.randint(20,41)             m = random.randint(20,41)             p = random.randint(20,41)             q = 100 - (n+m+p)                  if count == 5:                      while n+m+p+q+r != 100:             n = random.randint(5,41)             m = random.randint(5,41)             p = random.randint(5,41)             q = random.randint(5,41)             r = 100 - (n+m+p+r)              for j in range(len(array)):                  if array[j] != 0:                                  counter += 1                                  if counter == 1:                                          array[j] = n                 elif counter == 2:                     array[j] = m                 elif counter == 3:                     array[j] = p                 elif counter == 4:                     array[j] == q                 elif counter == 5:                     array[j] == r                          if count == counter:             counter = 0     return array  print(stochastic(my2))  my1 = [33,33,34,0,0,0,0,0,0,0] store = []  for i in range(1000):     store.append(stochastic(my1))  Edit: Sorry I realised my function was atrocious and had lots of repetition. I changed my function to remove repetition of code (i also added a counter == 5 case). I also added my loop. The error I get is that my when I print the storage variable, every element inside it is the same.


Unmount a rbind mount without affecting the original mount

Asked on  but didn't get enough attention, so reposted here, with the hope some people here know the answer.  There is another  discussing about umounting rbind mounts, but the solution has unwanted effect.  Consider the following directory layout:  . ├── A_dir │   └── mount_b ├── B_dir │   └── mount_c └── C_dir   Now I bind C_dir to B_dir/mount_c and rbind B_dir to A_dir/mount_b:  [hidden]$ sudo mount --bind C_dir B_dir/mount_c [hidden]$ sudo mount --rbind B_dir A_dir/mount_b [hidden]$ mount | grep _dir | wc -l 3   Now umount A_dir/mount_b will fail, which is not surprising.  According to the answers everywhere on the web, we need to umount A_dir/mount_b/mount_c first then umount A_dir/mount_b. However, umount A_dir/mount_b/mount_c will also unmount B_dir/mount_c, which is unwanted:  [hidden]$ sudo umount A_dir/mount_b/mount_c [hidden]$ mount | grep _dir | wc -l 1   Now my question is, how do I unmount A_dir/mount_b but leaving B_dir unaffected, i.e. there is still a bind B_dir/mount_c to C_dir?  EDIT: this problem doesn't seem to appear in Ubuntu. More specifically, it works fine on my Ubuntu 14.04 but not working on Fedora 23 and CentOS 7. Why there is the difference and what's the work around for Fedora and CentOS?  EDIT: some more information on the actual problem that I am trying to solve.  I tried to create a sandbox and used --rbind to mount the /dev and /proc to the sandbox.  When destroying the sandbox, it seems I can't cleanly destroy it because unmounting <sandbox-root>/dev/pts in FC23 and CentOS7 will unmount /dev/pts, after which my shell and SSH connections hang and I have to reboot the machine. That's why I am asking if there is a way to unmount the --rbind mounts without affecting submounts.


I'm using .Net framework 2.0 to try and do the following:  I've an external service which returns a list of int.  In turn I use each int to find a corresponding Type which has an Attribute with a property, key; the value of that property matches the search parameter.  Using the Type t I'd like to call a generic method, but I'm unable to do this.  As I will only know the Type at runtime, I suspect I may have to use reflection to invoke the generic method GetResultsForType - is this the correct way to go about this?  [MyAttribute(key1 = 1)] class A{     //some properties }  [MyAttribute(key1 = 2)] class B{     //some properties }  //and so on (for hundreds of classes).  The key is unique for every class.  public class Foo{     public void DoSomething(){          IList<int> keys = QuerySomeExternalService();           Assembly asm = LoadAssemblyFromSomewhere();          Type[] types = asm.GetTypes();          foreach(int key in keys){              Type t = SearchTypesForAttributeWithMatchingKey(types, key);  //I omitted caching of all the keys and Types into a Dictionary on first iteration for brevity.              IList<t> results = GetResultsForType<t>(); //won't work!              //do something with the results          }     }      Type SearchTypesForAttributeWithMatchingKey(Type[] types, int key){         foreach(Type t in types){             object[] attributes = t.GetCustomAttributes(typeof(MyAttribute),false);             MyAttribute myAtt = attributes[0] as MyAttribute;             if(myAtt.Key == key) return t;         }     }      IList<T> GetResultsForType<T>(){         IList<T> results = new List<T>();         bool querySuccess = true;         while(querySuccess){             T result;             querySuccess = QueryExternalService<T>(out result);             results.Add(result);         }         return results;     } }


Whenever I install steam it won't run, nothing happens when opened. I had Lubuntu but couldn't get steam working to save my life, so I installed Ubuntu that has the exact same problem....  I've been looking all over the place for answers. The most common answer i've found and tried is:  mv ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1{,.disable} mv ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libs   or along those lines (a few variations). However whenever I do this and try to run steam it says: Updating Steam, and reinstalls what I've just removed and then does nothing again. And stopping the update doesn't seem to help.


How can I install Realtek Wifi Driver in Ubuntu 20.04 LTS?

I have plugged in USB 2.0 Wireless 802.11N Adapter in my Ubuntu 20.04LTS Desktop. I have got a driver disk with my purchased Adapter. It has a folder of Linux driver. I can't install it. So it is showing - No Wi-fi Adapter Found! I have read their Release note: Check it here  It is showing it supports only Linux (kernel 2.6.18 ~ 3.6.6)  But I have checked with uname -a command and found the following result: Linux elliyaspc 5.4.0-38-generic #42-Ubuntu SMP Mon Jun 8 14:14:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux  From lsusb command - lsusb Bus 002 Device 004: ID 046d:c077 Logitech, Inc. M105 Optical Mouse Bus 002 Device 005: ID 046d:c31c Logitech, Inc. Keyboard K120 Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 007: ID 2e04:c022   Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  After executing install.sh file, I am getting this errors:  I need to know - is it possible to install this Adapter in my PC? If yes, how? Please help me.


I wanted to link to an answer to a Stack Overflow question, but couldn't find a way to do it. I couldn't get the ID of the answer in order to create the link.  How can you get the permalink for an answer to a question?


There's suppose any application installed in c:\program files\program.exe  How do I run this program by simply going to Start --> Run --> program.exe  I tried setting environment variable but that didn't help  I know programs like notepad and cmd run from Start --> Run cause they are there in the system32 folder. But how do I run an app which is not there?   EDIT:  This is what I did on windows xp:  Right click My Computer --> Properties --> advanced -->environment variables-->user variables for administrator-->new-->"variable name"&"variable value"`. In variable value I put the path and in variable name I put an alias for the program Is what I did correct?


Install guest CentOS 7 on KVM also on CentOS7 without GUI

I'm a bit stuck with virtualization on CentOS 7 using KVM. Whenever I try to create a virtual machine it keeps telling me to connect to the machine via console and finish the installation. Whenever I connect, I can't enter enything, I can only escape from the console.  The way I create the machine:     virt-install --name vm1 --network bridge:br0 --ram=1024 --vcpus=1   --disk path=/var/lib/libvirt/imagesw.img,size=10 --graphics none --location=/mnt/iso   The machine is running, at least that is what      virsh list --all   telling me. How can I finish the installation and begin to use the guest OS from within the server? I have no GUI to access it, I use only terminal.  Thank you in advance!  B.R.: Bert


Let $Y = \ln(X)$, where $Y$ follows a normal distribution with mean $μ$ and variance $σ^2$. What is the mean and variance of $X$? I know that if $Z$ follows a normal distribution with mean $μ$ and variance $σ^2$ , then $M_z(t) = e^{μt+ \tfrac{1}{2}σ^2 t^2}$


python print inside vs outside function?

the below code had previously printed the fibonnacci using for loop at end.  I moved the print inside the function and then called it but no fibonacci nubers were printed out in spite of the print within the function.  Shouldnt they be?     def fibon(n):        a = b = 1        for i in range(n):            yield a            a, b = b, a + b            print(a)  # move here inside function but doesnt print?     fibon(20)   old code works as:     for x in fibon(100):         print(x)


Is this phrase "2- or 4-person" correct?

When listing a numerical hyphenation...,for example "2- or 4-person", does the first number have a unconnected hyphen? What is the general rule?


What is the Killing form of $\mathfrak{gl}_{m}$?

Consider the Killing form of the Lie algebra $\mathfrak{gl}_{m}$. Then $\{e_{ij}\}$ is a basis for this Lie algebra where $e_{ij}$ is a matrix with 1 in the $i$th row, $j$th column and 0 everywhere else. Then every $A = (a_{ij}) \in \mathfrak{gl}_{m}$ can be written as $A = \sum_{i, j = 1}^{m}a_{ij}e_{ij}$. Since $[e_{ij}, e_{kl}] = \delta_{jk}e_{il}-\delta_{li}e_{kj}$, we have $ad(a)e_{ij} = \sum_{kl}(a_{ki}\delta_{lj} -a_{jl}\delta_{ki})e_{kl}$. From this we have $$ad(a)ad(b)e_{ij} = \sum_{k, r, s}(a_{rk}b_{ki}\delta_{sj} + a_{ks}b_{jk}\delta_{ri} - a_{ri}b_{jk}\delta_{sk} - a_{js}b_{ki}\delta_{rk})e_{rs}.$$ From this how can I see that the Killing form is $2m tr(ab) - 2tr(a)tr(b)$. I know that the Killing form is just the trace of the above centered equation, but I seem to be getting confused with all the indices.


No Ubuntu partitions on installed dual boot system

I have both Ubuntu 12.04 and Windows 7 and dual booting. Ubuntu has 10GB of space and I'm running out of space. I want to increase this to 100GB, so I went to the Windows disk manager, it shows 100MB FAT16, 14GB recovery NTFS, 540GB OS NTFS. There are no partitions shown for Ubuntu/Linux in either the Windows disk manager or gparted. I used Windows disk manager to free up 100GB of space on my hard drive, is there a way to transfer my installed Ubuntu onto the new partition? Apparently, my existing install must be on Wubi, though I don't recall installing it there.


I believe this is a well known problem of Euler, but I was unable to find its solution anywhere. If $2^{2^m}+1$ is divisible by some prime $p$, then $p\equiv 1\pmod{2^{m+2}}$. Thanks in advance.


Can Alchemist's Fire be used as a permanent torch?

Very much related:   An answer on the linked post leads to suggest that Alchemist's Fire burns as long as it is not actively extinguished by somebody.  However, a comment on the same answer indicated that Alchemist's Fire doesn't release light, because light isn't mentioned with the description of the item.  I'm looking for any RAW material that indicates whether or not Alchemist's Fire produces light, and how long it can burn for on an inflammable object.    If there is no such material, then I am even willing to accept information from prior versions that cover this same information.  If there is no information on Alchemist's Fire itself, then a RAI answer can be acceptable if it includes the process with how Alchemist's Fire is made (to draw a conclusion about what kind of light/duration could be expected).  Alchemist's Fire in 5e, per :     This sticky, adhesive fluid ignites when exposed to air. As an action, you can throw this flask up to 20 feet, shattering it on impact. [...] The target takes 1d4 fire damage at the start of each of its turns. A creature can end this damage by using its action to make a DC 10 Dexterity check to extinguish the flames.


For any sets $A$ and $B$, show that $(B\smallsetminus  A)\cup A=B \iff A\subseteq B$.    I know I have to do the following:   1)  Assume  $(B\smallsetminus  A) \cup A=B$, prove $A\subseteq B$.   2) Assume $A\subseteq B$, prove $(B\setminus A)\cup A=B$.   This is what I have done so far:   1) Let $(B\smallsetminus  A)\cup A=B$ and $x\in A$. Then $x\in(B\smallsetminus  A)\cup A$.  Since $(B\smallsetminus  A)\cup A=B$, then $x\in B\smallsetminus  A$.  Therefore, $x\in B$ by definition of difference.  Thus, $A\subseteq B$.   2) Let $A\subseteq B$ and $x\in(B\smallsetminus  A)\cup A$.  Then $x\in B\smallsetminus  A$ or $x\in A$ by definition of union.  Then we have couple cases here:   a) If $x\in B\smallsetminus  A$, then we have proved the statement.   b) Show that $x\in A$ and $x\in B$.   I have no idea if I am doing this correctly or not. Thus, any help is appreciated.


What can a non-mathematician do if he discovers something ground breaking?

This is more of a curiosity that I've been asking myself lately, and I thought to ask it here. So, what can someone there's not a mathematician do, if he has discovered something ground breaking. I assume, that he wouldn't be taken seriously by the mathematical community, if he found a way to publish his discoveries.


Why do some people post comments that are actually answers to the question? Wouldn't posting an answer be better?


Difference between Ubuntu and Linux Mint

Can someone please tell me the differences between Ubuntu and Linux Mint ?   I thought they were almost the same thing until I downloaded Ubuntu 13.10 versions of softwares for my Linux mint 16 system, and half of them didn't work. (I did that as those are the links I got when I searched for Linux mint versions)


I'm working on a site in which I'd like anon users to be able to create nodes of a certain type, but I only want them to be able to see/edit some of the fields on that content type.   I can't go into details just yet, but the goal of the site is to crowd-source the collection of information and then have a few administrators who will approve and groom the data. That's why I want anon users to be able to create nodes and only access a few fields. Then admins will be able to supplement that data by adding values into the other fields and then publish that node.  How do I restrict access to fields basing on the roles the users have?


I'm trying to automount a USB device upon plugin but it refuses to mount. I set a rule to execute the following script :   #!/bin/bash mkdir /media/mnt echo AFTER MKDIR > /home/output sleep 5 echo AFTER SLEEP >> /home/output mount /dev/sdb1 /media/mnt echo $? >> /home/output echo AFTER MOUNT >> /home/output   The script gets executed nicely, lsblk shows that /dev/sdb1 is present, output contain all the echoes, yet sdb1 won't be mounted in /media/mnt. The mount command exit code is 0  When I execute the mount command in that script manually after the USB device is plugged in it mounts it without problem.


When does the equality hold in the triangle inequality?

Hi guys could you please help me on this question I'm confused.  question: when does the equality hold in the triangle inequality:  my attempt :  $|x + y| \leq |x| + |y|$ this implies   $(|x+y|)^2 = (|x| + |y|)^2 \Rightarrow (x+y)^2 = (|x| + |y|)^2 \Rightarrow x^2 + 2xy + y^2 = |x|^2 + 2|x||y| + |y| ^2 $   since $x^2 = |x|^2$  $\Rightarrow 2xy = 2|x||y| \Rightarrow xy = |x||y| $  and $|x \cdot y| = |x| \cdot |y| \text{ iff } x = y$  therefore $xy = |xy| \Rightarrow xx = |xx| \Rightarrow x^2 = |x|^2 \Rightarrow x=x $  that is what I did so far, I wanted to know if I did this write or if there is a better way in showing this inequality and also what conditions does it hold? I am really confused on that one. This question was on our past quizzes we have a quiz coming up so I wanted to do all the questions and be prepared.  Thank you in advance


How $\int_{0}^{\infty}\left(\frac{1}{x}\right)^{\log x}dx=e^{\frac14} \sqrt{\pi}$?

I have tried to evaluate $$\displaystyle\int_{0}^{\infty}\left(\dfrac{1}{x}\right)^{\log x}\,dx$$ using variable change $z=\frac{1}{x}$ yield to integrate $\frac{-z^{-\log z}}{z^2}$ from $0 \to \infty $ but the obtained quantite is not standard for me for integration ,Probably this is well known integral ? Any simple way for integration?. Note:The result using  is $e^{\frac14} \sqrt{\pi}$


Netflix error code F7355-1204 and F7363-1260

Netflix quit and displayed error codes F7355-1204 and F7363-1260. It will go to the point where the movie is downloading but stops and displays the error codes. My os is Ubuntu 12.04 on a 32 bit machine. Netflix was working fine on the pipelight approach. Reinstalled firefox 52.0.2. Fixed libavcodec. Have yet to reinstall pipelight.  What are these error codes, and how do I fix them.


Is “attempt” a durative or a punctual verb?

I think it’s punctual because an attempt in my view is a specific action and not a process, but I’d appreciate your thoughts on it.


How can I use \ref to refer to a \label that's in another document?

I am writing a math textbook, and hope to have a separate solutions manual.  I'd like for the manual to be able to refer to problems in the original book so that LaTeX, or I, can catch when the exercise numbers change since I am always revising them.  Also I may wish to skip some in the solutions manual.  It occurs to me that another solution would be to have one big, happy document but "turn off" the table of contents generation after the main text and then restart the page numbering for the manual.  Perhaps someone has a better solution than either of these.  Thanks in advance.


Plural or Singular After a List of Items

Given the sentence:     The password must be at least 8 characters long, contain at least one lower-case and one upper-case case letter(s) and a digit.   Should the word "letter(s)" be in singular or plural? Why?  EDIT: To avoid discussion on the password policies, please consider another example:     Today I've seen one yellow, one blue and one green bird(s).


Verb Tense: Talking about Events in fictional work

I was referred to this sub-forum from . My question is why do some people on the comic message boards that I frequent use present + past tense to discuss about the current storyline or the actions leading up to it instead of the present tense + present prefect. Summaries of the events: Chapter 4, released last week:  Sara shaves her head after she breaks up with her boyfriend.  Chapter 5, released this week:  Sara grows her hair back.  I used the present tense (following Purdue grammar guide) to summarize the events in chapter 4 and 5 so you guys would have an idea of the storyline.  recommends using "present tense to describe action in a literary work, movie, or other fictional narrative." The 3 examples below are what they would post after knowing what happened in chapter 4 and 5 which I summarized above. They use present + past tense, or just past tense to talk about the events :  Sara is growing her hair back, after she foolishly shaved her head when her boyfriend broke up with her. She grew her hair back. I was not surprised that she grew her hair back.  Thank you for informing me that my question didn't make sense. Please let me know if there are further problems with my question =)