I made up some integrals to do for fun, and I had a real problem with this one. I've since found out that there's no solution in terms of elementary functions, but when I attempt to integrate it, I end up with infinite values. Could somebody point out where I go wrong?  So, I'm trying to determine: $$ \int{\frac{e^x}{x}} \, dx $$  Integrate by parts, where $u = 1/x$, and $v \, ' = e^x$. Then $u \, ' = - 1/x^2$, and $v=e^x$. So,  $$\int{\frac{e^x}{x}} \, dx = \frac{e^x}{x} + \int{\frac{e^x}{x^2}} \, dx$$  Integrate by parts again, $u = 1/x^2$, $v \, ' = e^x$, so that $u \, ' = -2/x^3$ and $v=e^x$. So,  $$\int{\frac{e^x}{x}} \, dx = \frac{e^x}{x} + \frac{e^x}{x^2} + 2\int{\frac{e^x}{x^3}} \, dx$$  Repeat this process ad infinitum to get,  $$\int{\frac{e^x}{x}} \, dx = \frac{e^x}{x} + \frac{e^x}{x^2} + 2 \left( \frac{e^x}{x^3} + 3 \left( \frac{e^x}{x^4} + 4 \left( \frac{e^x}{x^5} + \, \cdots \right) \right) \right) $$  Expanding this gives,  $$\int{\frac{e^x}{x}} \, dx = \frac{e^x}{x} + \frac{e^x}{x^2} + \frac{2e^x}{x^3} + \frac{6 e^x}{x^4} + \frac{24 e^x}{x^5} + \cdots $$  And factoring that gives,  $$\int{\frac{e^x}{x}} \, dx = \frac{e^x}{x} \left(  1 + \frac{1}{x} + \frac{2}{x^2} + \frac{6}{x^3} + \frac{24}{x^4} + \cdots \right) $$  Now, considering the series itself, the ratio between the $n^{th}$ term and the $(n-1)^{th}$ term = $\Large \frac{n}{x}$. Eventually, $n$ will be larger than $x$, so the ratio between successive terms will be positive, so (assuming $x$ is positive), the series diverges, meaning (and I'm sure everybody will cringe upon seeing notation used like this), that:  $$\int{\frac{e^x}{x}} \, dx = \frac{e^x}{x} \left( \infty \right) = \infty $$


There are a number of questions about election polls and margin of error that have been covered in CrossValidated over the years, including one regarding the 2016 US election polls. That one however only addresses validity based on members of a particular poll knowing each other.   In so many cases the state polls showed Clinton beating Trump above the margin of error.  Yet states like Wisconsin, Pennsylvania, Florida and Michigan were predicted to be won by Clinton but subject to recount all went to Trump. Of course there are many factors that could affect the accuracy of the polls and the validity/lack of validity of the margin of error.  Among those that I can think of are:   difficulty selecting a random sample of likely voters the election was volatile and hence present opinion may not reflect future opinion selection bias could exist   Which of these possibilities do you think caused the inaccuracy of the polls or do you have another explanation?  What assumptions about statistical surveys are most commonly violated.


How to find which application is creating a particular file in a path?

The issue is that, one particular flat file is getting created in a directory. I'm not sure which application is creating that flat file.  I am using Unix environment.  Is there any possibility to identify which script/binary/application is creating that flat file.


UPDATE with subquery LIMIT 1 returns multiple rows

I am struggling with a query which is randomly returning multiple rows instead of one. I am using PostgreSQL 9.4.12   The query is the following :  UPDATE folder as f set locked = 'locked', date_locked = current_timestamp  from (     SELECT * from folder as f2      WHERE f2.locked = 'available'     LIMIT 1 FOR UPDATE ) as folderToUpdate  WHERE f.id = folderToUpdate.id returning f.*   The id is the primary key.  It is executed through a bunch of integration tests. When I am executing only the test doing the query above, I don't have any issue. But, when I am executing all the tests, I randomly get multiple rows. Do you have any suggestions?


Possible pitfalls of using this (extension method based) shorthand

C#6 Update  In :  // C#1-5 propertyValue1 = myObject != null ? myObject.StringProperty : null;   // C#6 propertyValue1 = myObject?.StringProperty;   The question below still applies to older versions, but if developing a new application using the new ?. operator is far better practice.  Original Question:  I regularly want to access properties on possibly null objects:  string propertyValue1 = null; if( myObject1 != null )     propertyValue1 = myObject1.StringProperty;  int propertyValue2 = 0; if( myObject2 != null )     propertyValue2 = myObject2.IntProperty;   And so on...  I use this so often that I have a snippet for it.  You can shorten this to some extent with an inline if:  propertyValue1 = myObject != null ? myObject.StringProperty : null;   However this is a little clunky, especially if setting lots of properties or if more than one level can be null, for instance:  propertyValue1 = myObject != null ?      (myObject.ObjectProp != null ? myObject.ObjectProp.StringProperty) : null : null;   What I really want is ?? style syntax, which works great for directly null types:  int? i = SomeFunctionWhichMightReturnNull(); propertyValue2 = i ?? 0;   So I came up with the following:  public static TResult IfNotNull<T, TResult>( this T input, Func<T, TResult> action, TResult valueIfNull )     where T : class {     if ( input != null ) return action( input );     else return valueIfNull; }  //lets us have a null default if the type is nullable public static TResult IfNotNull<T, TResult>( this T input, Func<T, TResult> action )     where T : class     where TResult : class { return input.IfNotNull( action, null ); }   This lets me us this syntax:  propertyValue1 = myObject1.IfNotNull( x => x.StringProperty ); propertyValue2 = myObject2.IfNotNull( x => x.IntProperty, 0);  //or one with multiple levels propertyValue1 = myObject.IfNotNull(      o => o.ObjectProp.IfNotNull( p => p.StringProperty ) );   This simplifies these calls, but I'm not sure about checking this sort of extension method in - it does make the code a little easier to read, but at the cost of extending object. This would appear on everything, although I could put it in a specifically referenced namespace.  This example is a rather simple one, a slightly more complex one would be comparing two nullable object properties:  if( ( obj1 == null && obj2 == null ) ||      ( obj1 != null && obj2 != null && obj1.Property == obj2.Property ) )     ...  //becomes if( obj1.NullCompare( obj2, (x,y) => x.Property == y.Property )      ...   What are the pitfalls of using extensions in this way? Are other coders likely to be confused? Is this just abuse of extensions?    I guess what I really want here is a compiler/language extension:  propertyValue1 = myObject != null ? myObject.StringProperty : null;  //becomes propertyValue1 = myObject?StringProperty;   This would make the complex case far easier:  propertyValue1 = myObject != null ?      (myObject.ObjectProp != null ? myObject.ObjectProp.StringProperty) : null  //becomes propertyValue1 = myObject?ObjectProp?StringProperty;   This would only work for value types, but you could return nullable equivalents:  int? propertyValue2 = myObject?ObjectProp?IntProperty;  //or  int propertyValue3 = myObject?ObjectProp?IntProperty ?? 0;


How to convert Distance, Azimuth, Dip to XYZ?

I have an excel spreadsheet with header and survey drill data. Header data contains hole ID, and location coordinates, and the survey data contains related downhole survey with Distance, Azimuth and Dip values.   Since I know the hole location and surface elevation, I would like to be able to convert the survey table to XYZ coordinates as well.  Does anyone has a function / procedure / example?  (VB & ArcObjects)  Header Data:    Survey Data:


Hello everyone I am a high school student and I need help with the proof that $$C(n , 0) + C(n+1 , 1) + C(n+2 , 2) + ... + C(n +  k , k) =C(n+k+1 , k).$$


Windows Media Feature Pack not working correctly

I'm running Windows 10 Pro N on my desktop PC and I've installed the media feature pack (  ) because it is apparently needed to connect to android devices via usb.  But when I open the Control Panel and browse to Programs->Enable/Disable Windows Features, media player features are missing entirely from the list.  Furthermore, when I open  (the new) Settings->Updates and browse to see the installed updates the Feature Pack for Windows (KB3010081) is shown. However, when I click on deinstall updates I see a new update list (in the old Control Panel) und the Feature Pack is again missing...    Do you know any way to install the Media Feature Pack properly?  Edit: To make it a little easier I've added an image related that shows the discrepancy between Settings and the Control Panel. Keep in mind that it is german though (I've installed the german version of the feature pack, but in order to make it simpler for english speaking users I've postet the link to the english version above)


I followed , which was subsequently . I am now seeing the CV question in my "Following" tab on my profile, with an "unfollow" link. If I click that link, a popup informs me that "This post has been locked; locked posts can't be voted on." Looks like a bug to me. Please allow me to unfollow migrated questions.  is related. (I also followed a deleted question, but for that, clicking "unfollow" worked.)  has been proposed as a duplicate. It isn't: it states that "I can only unfollow it by going through the profile." I can not unfollow a migrated question in my profile.  describes the exact behavior I am having, just for deleted-as-spam questions instead of migrated ones. It may be that both questions can be addressed through the same underlying fix.


Is it bad for SEO to forward multiple top level domains to just one domain?

For example, I registered myName.com and I also registered the .net, .info, and .org extensions for myName. I'm wondering if it will hurt my SEO to forward these other TLDs to myName.com?


How to fix "dmesg: klogctl: Permission denied" for normal user on Android?

I have a rooted Samsung device(system-as-root). When I open adb shell and run the dmesg  then it behaves differently for su and normal user. It throws      dmesg: klogctl: Permission denied   error when I run it without su shell.  Please suggest how can I fix this?


I often want to do some variant of this idiom:  $ mkdir 2010 $ svn mv * 2010   Of course, I get an error because the glob matches 2010 as well:  svn: Cannot copy path '2010' into its own child '2010/2010'   Is there a way to replace "svn mv * 2010" with a different one-liner that does the right thing?


Is there any Ubuntu command video course?

I would like to learn how to use Ubuntu command line, so I decided to google a little bit. In my search I only find tons of books, but any video course that explains how to use the terminal.  Is there any video course that explain how to use the terminal?


Meaning of " ‘Western’ world" and alternative terms

The  got me thinking along similar lines on the usage of 'Western' world or 'the West' to denote North America and Europe. I find it interesting how in many situations Africa and Latin America aren't considered belonging to the 'West', even though in a strictly longitudinal sense they are to the west of 'the East' / 'Orient'.  Has anyone come across situations where using 'the West' is considered pejorative, and, if yes, what alternative terms are / can be used?


what if I + what, past tense or present tense?

what's the correct tense here: Is it "the past tense" or "the present tense"? "What if I miss the bus?" "What if I were late to dinner?" "What if I called her tomorrow?" "What if I don't understand?"


In the Harry Potter series, why do they select Muggleborns to also learn magic at the Hogwarts School of Witchcraft and Wizardry and other schools in the wizard world?


Distribution of $\frac{1}{1+Y}$ if $Y$ is Normally Distributed

Suppose $Y\sim N(\mu,\sigma)$ I would like to investigate the distribution of: $$\frac{1}{1+Y}$$ Does the distribution exist and is it well defined? Does it have analytically computable moments? Googling hasn't lead to any concrete results, so I have attempted to derive its PDF using the method of derived distributions (I believe I have succeeded), and I have tried to compute it's mean (I haven't succeeded). My work is as follows: let $X:=\frac{1}{1+Y}$, then: $$F_X(x)=\mathbb{P}\left(X\leq x\right)=\mathbb{P}\left(\frac{1}{1+Y}\leq x\right)=\mathbb{P}\left(\frac{1}{x}-1\leq Y\right)=1-\mathbb{P}\left(Y\leq \frac{1}{x}-1\right)=1-F_Y\left(\frac{1-x}{x}\right)$$ Now (setting $d:=\frac{1-x}{x}$) $$f_X(x):=\frac{\partial}{\partial x}\left(F_X\left(x\right)\right)=\frac{\partial}{\partial x}\left(1-F_Y\left(d\right)\right)=-\frac{\partial}{\partial d}F_Y(d)\frac{\partial d}{\partial x}=-f_Y(d)\left(\frac{-1}{x^2}\right)$$ So we finally have the PDF of $X$ as: $$\frac{1}{x^2}\frac{1}{\sigma \sqrt{t2 \pi}}\exp\left\{-\frac{(d-\mu)^2}{2t\sigma^2}\right\}=\frac{1}{x^2}\frac{1}{\sigma \sqrt{t2 \pi}}\exp\left\{-\frac{(\frac{1-x}{x}-\mu)^2}{2t\sigma^2}\right\}$$ To simplify the above, I will do the following: $$\left(\frac{1-x}{x}-\mu\right)^2=\left(\frac{1}{x}-1-\mu\right)^2=\frac{1}{x^2}-2(1-\mu)\frac{1}{x}+(1-\mu)^2+4\mu=\left(\frac{1}{x}-(1-\mu)\right)^2+4\mu$$ So that: $$f_X(x)=\frac{1}{x^2}\frac{1}{\sigma \sqrt{t2 \pi}}\exp\left\{-\frac{\left(\frac{1}{x}-(1-\mu)\right)^2}{2t\sigma^2}\right\}e^{-\left(\frac{4\mu}{2t\sigma^2}\right)}$$ Now attempting to compute the expectation: $$\mathbb{E}\left[X\right]=\int_{h=-\infty}^{h=\infty}hf_X(h)dh=e^{-\left(\frac{4\mu}{2t\sigma^2}\right)}\int_{h=-\infty}^{h=\infty}\frac{1}{h}\frac{1}{\sigma \sqrt{t2 \pi}}\exp\left\{-\frac{\left(\frac{1}{h}-(1-\mu)\right)^2}{2t\sigma^2}\right\}dh$$ I will use the substitution $v=\frac{1}{h}$, with $dh=\frac{-1}{v^2}dv$: $$\mathbb{E}\left[X\right]=e^{-\left(\frac{4\mu}{2t\sigma^2}\right)}\int_{v=0}^{v=0}\frac{-1}{v}\frac{1}{\sigma \sqrt{t2 \pi}}\exp\left\{-\frac{\left(v-(1-\mu)\right)^2}{2t\sigma^2}\right\}dv$$ The above is where I get stuck, and the fact that the integral limit is from zero to zero makes me think the expectation might no be well defined, in the sense that it is not analytically computable? Any further tips and hints would be greatly appreciated.


Remove last 5 characters with Field Calculator in ArcGIS Desktop?

I wonder how to delete a word (or the last 5 characters) using the field calculator in ArcGIS 10.2. I have a column such as:  Paris City; London City; Berlin City  I need to remove "City", to be left with Paris, London, Berlin.  Any tips on doing this automatically?


For someone not native to English, can you give your simplest guide on how to choose when to use between "in", "on", and "at" (prepositions)?

I mean, I do read some articles about how to distinguish between those three, but I found that when I wrote stories or blog entries, the rules that I've read is impractical to remember. I found myself going over all the articles over again to decide which one to use, almost for every single sentence.  Can you give a very simple principal rule of thumb, which may cover a large portion of their usage rules? I understand that there's no single "one rule over them all", but at least "one rule over most of them", which I can remember while I write sentences, is already fine by me. :)


Why does implicit differentiation work on non-functions?

I've been reading Keisler's Calculus book, and there's an example where he does implicit differentiation on the equation: $$x^2+y^2=1$$ which yields:$$\frac{dy}{dx}=-\frac{x}{y}$$ I understand the technique of implicit differentiation, and I understand that it's just an application of the chain rule when $y$ is a function of $x$, or $x$ and $y$ are both functions of some third variable.   What I don't understand is how you can get the derivative of a non-function. In the case above, $y$ is not a function of $x$, and as far as I know, looking at the definition of the derivative, derivatives only seem to be defined for functions.   Sorry for the noob question, but what am I missing here?


How to limit available virtual memory per process

Occasionally some processes on my GNU/Linux desktop (such as gv and gnash) use up the physical memory and cause thrashing.  Since these processes aren't important, I want them to be automatically killed if they use too much memory.  I think the /etc/security/limits.conf file and the -v option could be used for this.  The question is whether it limits the amount of available memory per process of a particular user, or the sum for all the processes of a user.  Also I would like to ask how to make change to that file in effect without rebooting.


Float positioning with pdflscape package

I'm using the  to create a document with several sections that need to be in landscape. I am seeing strange behavior with figure floats. I would like to use htp for figure positioning, but I'm noticing that:  At a certain size (I'm guessing where the float algorithm chooses p), the float gets rotated in a strange location when it probably should fit fine in the page.   If we force t!, the float seems to fit fine, but gets placed on its own page at the end of the section (like I would expect p to do).    I want the appearance of #2 (landscaped image), but in the location of #1 (on the next page in the text). Is this possible? Example code: \documentclass{article}  \usepackage{graphicx} \usepackage{blindtext} \usepackage{pdflscape}  \begin{document}  \section{Initial content}  \blindtext[2]   \begin{landscape}  \section{Landscape content}  \begin{figure}[htp] \centering \includegraphics[scale=0.9]{example-image} \caption{The Universe} \end{figure}  \blindtext[5]  \begin{figure}[htp] \centering \includegraphics[scale=1.3]{example-image} \caption{The Universe} \end{figure}  \blindtext[4]  \begin{figure}[t!] \centering \includegraphics[scale=1.3]{example-image} \caption{The Universe} \end{figure}  \blindtext[4]  \blindtext[4]  \end{landscape}  \end{document}


Is there a way in Java to determine if a path is valid without attempting to create a file?

I need to determine if a user-supplied string is a valid file path (i.e., if createNewFile() will succeed or throw an Exception) but I don't want to bloat the file system with useless files, created just for validation purposes.  Is there a way to determine if the string I have is a valid file path without attempting to create the file?  I know the definition of "valid file path" varies depending on the OS, but I was wondering if there was any quick way of accepting C:/foo or /foo and rejecting banana.  A possible approach may be attempting to create the file and eventually deleting it if the creation succeeded, but I hope there is a more elegant way of achieving the same result.


My /boot is too small for upgrade: Increase /boot size? Temporarily empty /boot?

I'm using a no-longer-supported Ubuntu 13.10 and want to upgrade it to 14.04. However, possibly because my predecessor set the boot partition with too small a size, when running do-release-upgrade I get the following error:   The upgrade has aborted. The upgrade needs a total of 56.8 M free space on disk '/boot'. Please free at least an additional 8,059 k of disk space on '/boot'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.   My current disk usage with df -h /boot is:  Filesystem      Size  Used Avail Use% Mounted on /dev/sda1        88M   34M   47M  43% /boot   Files in /boot are:   e9t@/$ ls -al /boot drwxr-xr-x 5 root root 1.0K Sep 13  2014 [1]  grub drwx------ 2 root root  12K Mar  5  2014 [2]  lost+found -rw------- 1 root root 3.2M Oct 10  2013 [3]  System.map-3.11.0-12-generic -rw-r--r-- 1 root root 983K Oct 10  2013 [4]  abi-3.11.0-12-generic -rw-r--r-- 1 root root 160K Oct 10  2013 [5]  config-3.11.0-12-generic -rw-r--r-- 1 root root  17M Apr  8  2014 [6]  initrd.img-3.11.0-12-generic -rw-r--r-- 1 root root 173K Jun 17  2013 [7]  memtest86+.bin -rw-r--r-- 1 root root 175K Jun 17  2013 [8]  memtest86+_multiboot.bin -rw------- 1 root root 5.4M Oct 10  2013 [9]  vmlinuz-3.11.0-12-generic    is NOT an option because my /boot is just big enough to fit the necessary files - grub, vmlinuz, and initrd.  So I'm left with the following options:    (But I have to use command line and have cannot use live CD/USB because I'm working remote.) Temporarily empty /boot (or move a big file, e.g., initrd), upgrade the OS, then restore /boot (or move the big file back)   Which is the safer or preferred way? Is there a better way to fix my problem than the two options I've mentioned?


Suppose that $X_k$ are iid $\mathrm{Bernoulli}(1/2)$for $k=1, \ldots, n$ and  $$Y_n = \sum_{k=1}^n \frac{X_k}{2^k} $$ Given $U\sim \mathrm{Unif}(0,1)$ then the mgf of $U$ is $$m_U(-s) = \mathbb{E}(\exp(-sU)) = \frac{1-\exp(s)}{s} $$ (they gave it like this).    Show that $Y_n$ converges in distribution to $U$ by showing $$\lim_{n\to\infty}\mathbb{E}(-sY_n) = \frac{1-\exp(s)}{s}.$$    I computed the left hand side to be $$\mathbb{E}(-sY_n) = \frac{1}{2^n}\prod_{k=1}^n (1+\exp(-\frac{s}{2^k}))   $$ and am now stuck on how to take the limit. Also, how does showing the limit converging of the MGF imply they converge in distribution?    (I'd like to do it by finding the limit of the MGF).


How to remove white flash before page loading?

I have dark them extensions but it still flashes before page loads, when i google something for example, it flashes before loading. I'm looking for a way to remove it.


Truncate Post title to a number of characters without cutting word

Please review this!  I used the solution on the suggested/solved topic you guys marked as double but it didn't work.  I want to shorten my WordPress article/post titles to a max nr of characters of 65.   i'm using this code:      function custom_trim_my_title( $title ) {      if ( strlen( $title ) >= 65 && ! is_singular() ) {     $title = substr( $title, 0, 65 ) . '...';     return $title;     }     return $title;     }     add_filter( 'the_title', 'custom_trim_my_title' );   The idea is that this code cuts the words in half and i don't want that.  What can i do?  ps: i know you this is kinda of a duplicate but, i've tried everything and it didn't work.  Thanks in Advance!  Regards.


So im playing a necromancer wizard and was wondering is there any way to heal my undead after battle?


There are numerous examples in all levels of canon of Jedi being pretty well funded. They run the Order; own starfighters; they send out intergalactic expeditions; they own some prime real estate; etc...  So how do they get funded to afford all that? They are warrior monks, and don't have access to the typical funding sources of religious orders (tithes from population, grants from nobles, selling things that monks produce, looting their enemies like Tampliers).  Is the Republic funding them?


Addition of two floats in javascript producing strange anomalies

The problem occurs in the forEach loop in the checkCashRegister function.   let values = {   "PENNY": 0,   "NICKEL": 0,   "DIME": 0,   "QUARTER": 0,   "ONE": 0,   "FIVE": 0,   "TEN": 0,   "TWENTY": 0,   "ONE HUNDRED": 0,   "TOTAL": 0, }  function checkCashRegister(price, cash, cid) {   cid.forEach((arr) => {     values[arr[0]] = arr[1];     console.log(`${values["TOTAL"]} + ${arr[1]} = ${values["TOTAL"] + arr[1]}`);     values["TOTAL"] += arr[1];    });    let change = cash - price;    console.log(values);   return change; }  checkCashRegister(19.50, 20.00, [["PENNY", 1.01], ["NICKEL", 2.05], ["DIME", 3.10], ["QUARTER", 4.25], ["ONE", 90.00], ["FIVE", 55.00], ["TEN", 20.00], ["TWENTY", 60.00], ["ONE HUNDRED", 100.00]]);   This should simply convert the array to an object and calculate the total of all the object fields in values.total but for some reason the output is this:  0 + 1.01 = 1.01 1.01 + 2.05 = 3.0599999999999996 3.0599999999999996 + 3.1 = 6.16 6.16 + 4.25 = 10.41 10.41 + 90 = 100.41 100.41 + 55 = 155.41 155.41 + 20 = 175.41 175.41 + 60 = 235.41 235.41 + 100 = 335.40999999999997 { PENNY: 1.01,   NICKEL: 2.05,   DIME: 3.1,   QUARTER: 4.25,   ONE: 90,   FIVE: 55,   TEN: 20,   TWENTY: 60,   'ONE HUNDRED': 100,   TOTAL: 335.40999999999997 }   Why does 1.01 + 2.05 = 3.0599999999999996 instead of 3.06? It wouldn't be hard to simply round the number to the nearest second decimal point but i'd prefer to know why this problem is occurring at all.   Thanks.


How to stop Excel from formating the 16-digit account number in a way to avoid making the last digit zero?

I have large numbers of bank account numbers of different banks. Some bank account numbers start with zero and some have 16 digits. When I paste the data in Excel the leading zeros will be removed and the last digit of 16-digit account number will be zero.  How can I avoid this problem? I tried to put a special character before every account number to make it as text and paste to Excel but when I remove the special character the problem appears again.


One confusion over conditional expectation

Suppose for two random variables $X_1$ and $X_2$ $\sigma(X_1) = \sigma(X_2)$. Why $E[Y | X_1] = E[Y | X_2]$ a.e. ?  the set where $X_1= X_1(\omega)$ can be different from the set $X_2= X_2(\omega) $. How can then conditional expectation conditioned on the event can be equal ?


Given $\mathbb{R} \setminus \{-1\}$ with the operation $a*b=a+b+ab$, check whether is it or not a group.  My solution:   Associative  $$(a*b)*c=(a+b+ab)*c=a+b+ab+c+(a+b+ab)c=\\ =a+b+ab+c+ac+bc+abc;$$  $$a*(b*c)=a*(b+c+bc)=a+b+c+bc+a(b+c+bc)=\\ =a+b+ab+c+ac+bc+abc$$ Existence of identity el.   If $e$ is the identity, then, for each a in the set, $a*e=e*a=a \rightarrow a*e=a+e+ae=a$. Here, it seems that the identity is $0$, but if $a=1$, the equation has no solution. So there is no identity element and therefore the set is not a group.  Is that right?


Why were Allspark-created small robots offensive by default?

In the first Transformers movie, it was shown that Allspark energy converted a Nokia phone into a small robot. And, this robot was offensive by default. Why?


WSL and VHDX file size discrepency (Hyper-V not VBox)

On my Windows system, I have WSL2 with Ubuntu installed. I found the ubuntu vhdx file is about 64 GB in size. However, when I try to compact it, the size does not shrink. df -h shows: Filesystem      Size  Used Avail Use% Mounted on /dev/sdd        251G  215G   24G  91% /  sudo du / -x -d 1 -h shows: 346M    /home 4.0K    /srv 7.1M    /etc 4.0K    /opt 20K     /root 4.0K    /mnt 2.4G    /usr 4.0K    /media 4.0K    /boot 4.0K    /snap 220M    /tmp 586M    /var 16K     /lost+found 3.6G    /  I suspect something is holding those space in the VM so Windows cannot compact the VHDX file. I am pretty sure that VBox answer is not related.


Unable to upgrade from 17.04 to 17.10. Could not calculate the upgrade. An unresolvable problem occurred while calculating the upgrade

I'm trying sudo do-release-upgrade and it fails with the following error:  Calculating the changes Could not calculate the upgrade An unresolvable problem occurred while calculating the upgrade.    grep Broken /var/log/dist-upgrade/apt.log returns 41 lines indicating problem packages:  Broken gnome-control-center-faces:amd64 Conflicts on unity-control-center-faces:amd64 < 15.04.0+17.04.20170402.6-0ubuntu1 @ii mK > Broken kerneloops:amd64 Breaks on kerneloops-daemon:amd64 < 0.12+git20140509-2ubuntu1 @ii mK > (< 0.12+git20140509-6ubuntu1) Broken linux-tools-4.10.0-35-generic:amd64 Depends on linux-tools-4.10.0-35:amd64 < 4.10.0-35.39 @ii mR > Broken xserver-xorg-video-nouveau:amd64 Depends on xorg-video-abi-20:amd64 < none @un H > ...   I think that a solution is to delete these packages, but I'm afraid that I can accidentally break something (and Linux won't boot).  How to solve this issue in a safe way?


Proving $f$ is $L^1$ implies convergence of $\sum_{k \in \mathbb{Z}}{ 2^k*m(|f| > 2^k)}$

I need help proving that if f is Lebesgue integrable then $$\sum_{k \in \mathbb{Z}}{ 2^k*m(|f| > 2^k)}$$  converges.   I proved the opposite direction but I don't know how to put any bounds on each term, I would appreciate hints/suggestions.


For each of the eight subsets of {reflexive, symmetric, transitive}, find a relation on $\{1, 2, 3\}$ that has the properties in that subset, but not the properties that are not in the subset.  What I have done This is the same question asked . I have found the same possible subsets. But for each of them instead of establishing the relationship via ordered pairs, I have defined them with an operation. The possible subsets of {reflexive, symmetric, transitive} are $T_0=\{\varnothing \}, T_1=\{\text{Reflexive}\}, T_2=\{\text{Symmetric}\}, T_3=\{\text{Transitive}\}, T_4=\{\text{Reflexive, Symmetric}\},  T_5=\{\text{Reflexive, Transitive}\}, T_6=\{\text{Symmetric, Transitive}\}, T_7=\{\text{Reflexive, Symmetric, Transitive}\}$. For $T_{0}$, define the relation $\rho$ on $\{1, 2, 3\}$ via  $a\rho b$ iff $a-b=1$. For $T_{1}$? For $T_{2}$, define the relation $\rho$ on $\{1, 2, 3\}$ via  $a\rho b$ iff $ab$ is even. For $T_{3}$, define the relation $\rho$ on $\{1, 2, 3\}$ via  $a\rho b$ iff $a<b$. For $T_{4}$, define the relation $\rho$ on $\{1, 2, 3\}$ via  $a\rho b$ iff $|a-b|\leq 1$. For $T_{5}$, define the relation $\rho$ on $\{1, 2, 3\}$ via  $a\rho b$ iff $a\leq b$. For $T_{6}$? For $T_{7}$, define the relation $\rho$ on $\{1, 2, 3\}$ via  $a\rho b$ iff $a= b$. For $T_1$ and for $T_6$ it is easy to find the relation via ordered pairs, but defining the relation by means of an operation has not been possible for me, could you please help me? If I completed the list using ordered pairs, I think it would be inelegant.


Why does applying 56-bit DES twice only give 57 bits of security?

Given two 56-bit keys, $k_1$ and $k_2$, why does $E_{k_1}(E_{k_2}(M))$ only give 57 bits of security?  So basically I'm unsure why it only gives 57 bits of security; I understand that one key will provide 56 bits. Only thing I can think of is that when adding another 56 bit it will cycle through all the bits and realize they are the same so it just adds 1 extra bit, for the second keyblock instead of another 56 bits?  If I'm wrong, could someone please explain it simply and step-by-step?


Distance function is continuous in topology induced by the metric

The question is (from Topology without tears) that: Let $(X,d)$ be a metric space and $\tau$ the corresponding topology on $X$. Fix $a \in X$. Prove that the map $f:(X,\tau) \rightarrow \mathbb{R}$ defined by $f(x) = d(a,x)$ is continuous.  My first attempt was that let an open ball, $B_{\epsilon}(a)\subset \mathbb{R}$ and show that $f^{-1}(B_{\epsilon}(a)) \subset \tau$. Since $f(x) = d(a,x)$, $f^{-1}(B_{\epsilon}(a))=B_{\epsilon}(a) \in \tau$.   I am pretty sure the last sentence is wrong. I am not sure if every open ball is an open set in topology induced by metric space.  Please give me some hint and direction. Thanks


How to compare performance of probability estimating model

Suppose I have a model that estimates a discrete probability distribution over a set of classes/factors c1, c2, c3.  What are the options and appropriate use cases of measuring performance given a test set of feature vectors and their labels?  Few options that come to mind   Maximum likelihood: measure probability of observing the class labels in the test set under the given model; Assume that, for example, a test vector with a class label of c1 represents a collapsed probability distribution $(1, 0, 0)$. Then use a similarity measure (or a loss function) to compare these probability distributions with the predicted probability; Use a derived measure of expected utility $\mathbb{E}(U)$ based on application. Suppose further that we are modeling a game where the classes are possible outcomes of playing and there is an utility $U(c_i)$ associated with each class. Assume we would play whenever $\mathbb{E}(U) > 0$ in the model and our pay-off would be the utility of the actual class label or $0$ if we chose not to play. Then use pay-off over test set as a performance measure.


Is there such a thing as a deposit-only bank account?

My employer wants me to give my routing-numbers, social-security numbers, and basically everything else required to take money out of my account, to several third-party direct-deposit websites (one for weekly paychecks, one for mileage reimbursements, etc.).  I am not comfortable giving my identity information away to all these places.  I'd like to give them access to an account which they can only deposit into, never withdraw (either a separate account, or, even better, a deposit-only alias to my real account).  Does such a thing exist?    [Edit] I'm not worried about the companies so much as I am worried about bad guys who inevitably hack those companies' databases, or get hired to work there.  This type of account would also be handy for giving read-only access to sites like mint.com or quicken.com, easing my mind about their hackers/unscrupulous employees.


If $AR=I$ ($R$ is the right inverse) and $LA=I$ (L is the left inverse), how can we show that $L=R$? I am a bit skeptic about the statement but stuck at the moment in terms of showing that $L=R$. Any help would be great!


Instead of swelling as a whole loaf, my loaf will often expand in the oven off to the side or the bottom - looking 'blown out', a big tear.  This results in a loaf that leans to one side, doesn't rise well, or generally doesn't look good.    Why is this happening and what can I do about it?


I have to estimate a model forecasting the sales (as stock units) for AXE deoderants.I want to apply the multiplier specification on this model. The model should look like this:     log(Sales) = b0 + b1*log(Price) +b2*log(Adertising) + log(b3)*Summer   The last variable is causing the trouble.  It is a dummy variable that is set equal to 1 for sales during the summer and 0 elsewhere. I have no idea how a logarithm of a parameter can be taken in R.  Can somebody please help me to model this?  Many thanks in advance!


All countable ordinals are embeddable in $\mathbb{Q}$.  For "small" countable ordinals, it is simple to do this explicitly.  $\omega$ is trivial, $\omega+1$ can be e.g. done as $\{\frac{n}{n+1}:n\in \mathbb{N}\} \cup \{1\}$.   $\omega*2$ can be done as $\{\frac{n}{n+1}:n\in \mathbb{N}\} \cup \{1+\frac{n}{n+1}:n\in \mathbb{N}\}$, and $\omega*n$ as $\bigcup_{i\le n} \{i+\frac{n}{n+1}:n\in \mathbb{N}\}$  That immediately also gives $\omega^2$ as  $\bigcup_{i \in \mathbb{N}} \{i+\frac{n}{n+1}:n\in \mathbb{N}\}$  And going further is still relatively easy: We can biject the above embedding of $\omega^2$ onto a single interval $(0,1)$, e.g. through $f(x)=1-\frac{1}{x+1}$ since this is an order preserving bijection from $\mathbb{Q}^+$ to $(0,1)$, allowing us to get $\omega^2+n$, $\omega^2*n$ etc. And by iterating that process, we can get any ordinal below $\omega^\omega$.   But this sort of embedding fails at $\omega^\omega$ as the iteration of $f$ doesn't seem compatible with taking the infinite union - figuratively speaking, we'd squish things to $0$. So what would an explicit embedding of $\omega^\omega$ look like? And the question, then, is if it is possible to give an explicit embedding of $\epsilon_0$? Is the fact that Peano arithmetic cannot prove well-foundedness of $\epsilon_0$ an indication that it cannot be embedded by such elementary functions and their iterations?  And what about even bigger countable ordinals such as the Veblen ordinals, Feferman-Schütte, Bachmann-Howard? From its definition, even if the above all are possible, I assume that the definitive bound of where one can define an effective procedure for the embedding must be Church–Kleene - is that a correct conclusion?  Lastly, does the situation change when we use $\mathbb{R}$ instead of $\mathbb{Q}$, which would allow us to use, perhaps, more easily understood yet inherently complex functions?  Edited because $\omega^2 \neq \omega^\omega$


How to go and watch complete game replays?

I'm looking to see some full game replays in League of Legends (that are not my friends' game)  Those "Featured games" in the starter slider are always in progress, and what I'm looking for is to get in a random game that is still on the character select screen. (or at least still in the 3 minutes buffer)  Is there any way to do this?


Looking for solo (one person) RPGs - do they exist?

I am looking to find out if solo RPGs exist, and which you'd recommend.  I do not mean "one-on-one" 1 player + 1 GM games. I really mean "1 person."  Update: After receiving two (fine, up-voted) answers that indicate Choose Your Own Adventure solutions (which rocks with nostalgia), I should add that I'm not looking for simple linear decision tree gaming. A counterexample: I've got my own little creative-writing mini-game where I write out a story, but once every 5 sentences a series of dice-rolls forces my written sentence into something else, and I have to adapt as writer. Not really an RPG, but also non-linear.


I have a text file that contains entries shown below.    tag1start text1 text2 text3 text4 tag1end .. .. tag1start text5 text6 text7 text8 tag1end   I need to change entries only in the first set of tag1start tag1end  I have attempted using "range" but it affects both the sets. How do I limit it only to the first set ?   /tag1start/,/tag1end/c\ Some other text1\ Some other text2\ Some other text3\ Some other text4\ Some other text5\ Some other text6\ tag1end


Show badge count instead of just a tick on badges page

When going on the "/badges" page on a StackExchange website.  All you are presented with a tick next to badges you have achieved.    In my opinion is perfect for badges that can only be achieved once, but for those you can unlock more than once, e.g. Enlightened.    Instead of just showing a tick on these types of badges, instead show a number in the green circle (or whatever design is applicable for the website).  I understand that this could cause problems if say the badge was earned #### times.  In this case it could just show a +.  Then if the number was shown on mouse-over it could say ("Earned badge 1643 times.")  Leaving the UI nice and compact.


Decomposition of semisimple Lie algebra via its roots

Exercise 14.33 in Fulton and Harris's Representation Theory claims that  If the roots of a semisimple Lie algebra lie in a collection of mutually orthogonal subsets, one sees that the Lie algebra decomposes into a direct sum accordingly.  Although intuitively I can see why this is true, could anybody direct me to a proof of this assertion, or outline how I should go about doing it?


Which sort algorithm works best on mostly sorted data?

Which sorting algorithm works best on mostly sorted data?


When using some other editors, when you type two spaces with your space bar, two spaces are effectively displayed. This is not the case in LaTeX (btw, that's not the case on these websites ;) ).  My question is barely simple I guess, but I didn't found some information about it on Google.  How to display two consecutive spaces in LaTeX (I mean two spaces horizontally, with the space bar).


Outlook 2013 / Windows 8.1: Delete e-mail from notification toast

I've got Microsoft Office 2013 Service Pack 1 running on my Windows 8.1 (with Update 1) laptop, which is a Dell Latitude E6430.  In previous versions of Windows + Office, you could delete an e-mail when the semi-transparent "new e-mail" notification popped up, in the lower right-hand corner of the screen. With Microsoft Office  2013 on Winodws 8.1, this does not appear to be possible.  Does anyone know if there's a way to delete an e-mail from the notification toast that pops up on Windows 8.1?


Resources on writing grammatically and clearly

The first part of this question is about how I should ask this question.  I am a bit confused about all the terms used to describe books written about English.  For example, "usage", "style", "reference", "reference grammars", etc.  So I don't know what the proper term is for the type of book I want to ask about.  So I've seen the thread on English reference grammars (english.stackexchange.com/questions/183/what-are-some-of-the-better-english-reference-grammars), and my question is similar.  That thread asks about texts that describe English grammar, but I'm wondering about more practical books.  For example, when I'm writing, I often come up with a myriad of questions like:   When should one use "that" vs. "which"? How do you deal with multiple descriptive clause modifiers, or whatever they're called, that both end with nouns, leading to ambiguity.  For example: "I looked at the bucket at the bottom of the barrel that contained my money."  Let's say that the bucket is the object that contains the money, not the barrel.  Well if you say "the bucket that contained my money at the bottom of the barrel" that could still be ambiguous, because now maybe "at the bottom of the barrel" could refer to the money.  This is a bad example, but you get the gist of it; how do you deal with these double-bind ambiguities? Is it grammatical to do a comma then a gerund phrase like I just did in that last bullet point?  For example: "This drug is fatal, causing death within seconds." Is that grammatical? When should one put hyphens between nouns? Is it grammatical to use nouns as adjectives?  E.g. "double-bind ambiguities".  There's probably a better way to say that, right?   And so on and so on.  Now, one could ask/search for every single question that pops into your head on this stack exchange, but that seems infeasible for a large volume.  So there must be some reference book that would give one the background to know the answer to these types of questions.  After all, the people on this stack exchange had to learn it somewhere, right?


Arcmap 10.3 addin is not working on 10.2.1

I have made an add-in using Visual Studio 2013 and ArcObjects 10.3 .Net SDK. It is running fine on 10.3. I want to run this on 10.2.1.  I have change the following settings:  <Targets> <Target name="Desktop" version="10.2" /> </Targets>   It is installed but when I click on it ArcMap crashes without any error. I have tried on two different systems also. I have also tried by creating a blank form on button click to check but it didn't work and crashes.


Is it possible to trade Pokemon with other trainers?

Is there a way to send or trade Pokemon from one account / trainer to another?


Q) Prove or disprove : Every bounded sequence converges. (Make sure to fully justify your answer. That is provide a proof if true otherwise provide a counterexample and justify why your counterexample satisfy the desired criteria.  Solution  My counter example is $a_n = (-1)^n $, I know I could just leave it as this but I want to prove that this diverges but I've never worked with a proof like that so could someone check it?  Firstly: {-1,1,-1,...} Therefore the sequence is bounded above by 1 and bounded below by -1. Therefore this sequence is bounded.   Proof that this sequence diverges:  Assuming the contradiction that $\{a_n\}$ converges.  WTS: $\exists L \in \mathbb R, \forall \epsilon > 0, \exists N > 0$, such that for all $n \in \mathbb N$, if $n > N$, then $|(-1)^n - L| < \epsilon$  Let $\epsilon = 1$  n is odd: if $n > N$, then $$|L+1| < 1$$  $$ \Leftrightarrow -2 < L < 0$$  n is even: if $n > N$, then $$|L-1| < 1$$  $$\Leftrightarrow 0 < L < 2$$  Thus $L \in (-2,0)$ and $L \in (0,2)$. Therefore this is a contradiction and $(-1)^n$ diverges. Therefore not all bounded sequences converge.  If this is correct I dont get why this actually proves it diverges, mainly this part: "$L \in (-2,0)$ and $L \in (0,2)$."  Could someone explain that? I was looking at a similar proof when writing this.  EDIT: Not a duplicate because I'm asking my additional proof is correct.


how to prove that from every city in this country we can go to every another cities in this country?

imagine we have a country that has 15 cities . every city is connected to at least 7 other cities by directed road. how to prove that from every city in this country we can go  to every  another cities in this country ? actually i tried to draw a graph for that but i could not reach to a strong formula or proof that is suitable for this problem please help me solve it in every way you think is true.


Are there copyrights for board game Risk and can I make the game, or similar, for mobile?

are there copyrights for board game Risk? It's popular and with lots of versions floating around, so I don't know if someone has rights or just for specific version. I'm not planning to make money with it, it would be a free game. If not, can I make something similar to that, and how much do I need to change it? I like the game a lot, it's for fun and learning purpose. Thx in advance :)


Do thermostat-controlled, auto-adjust HVAC vents exist?

The residential forced-air HVAC systems I have seen are controlled by a single thermostat in one room.  One has to manually adjust the vents in order to adjust the temperature in other rooms.  Is there such a think as thermostat-controlled, automatically-adjustable vents so that one can have multiple heating/cooling zones without having multiple furnaces and air-conditioners?


How to call gdal_translate from Python code?

Is it possible to use some gdal API to call gdal_translate from Python code? I do not mean simply executing the gdal_translate.exe from the file system, but rather call it somehow in code so I do not need to know the exact directory the gdal_translate executable is in?


Why can't I login to any Stack Exchange site?

This evening I had cause to log in to , a site I hadn't visited before, and I found myself unable to login.  After clicking on log in with Stack Exchange I wait and wait and the username and password boxes never appear.    Thinking it was my browser, I cleared out my cache, and tried again, with the same result. The browser itself is Chrome 23.0.1271.95 m, on Windows 8, which claims to be up to date.  I then visited a few other SE sites. On sites I've logged in to before, I was logged back in automatically, click here to refresh the page. On sites I haven't logged in to before, such as , I got the same result as Cross Validated.  At that point I did a global logout and then cleared any remaining cookies I could find. When I went back to attempt to log in again, I could no longer log in to any Stack Exchange site.  On the computer which is failing to log in, I hit F12 and looked at the Network tab. When I click log in with Stack Exchange a number of requests fly by; the last one being POST /users/login/global, which returns a 404 Not Found.  I also see the following additional error in the console:  Port error: Could not establish connection. Receiving end does not exist. chromeHidden.Port.dispatchOnDisconnect   I suspect these may be related to my problem.  (I am posting this from a different browser from which I was already logged in; I'm quite afraid to attempt logging out... And I'm just a sysadmin, not that much of a developer anymore, so if I forgot anything important, please let me know.)


I want to create an XML file with the files of a directory, creating an element with "File name" and "File path" elements for each of the files in that directory. I have already done that, the problem is I that all the files on that directory have the .lnk extension, and I want to get the real path of the file that .lnk is pointing to.               foreach (var file in dir.GetFiles())             {                 xmlInfo.Add(new XElement("file", new XAttribute("name", file.Name), new XAttribute("path", file.FullName)));             }   So the file.FullName gets the full path to that .lnk file, i want to change it to get the path to the original file.  Is there any way to do this?


This is an update of my earlier question today. That title ("user rights to /usr/share") was unfortunately misleading.  I have a single user system, so I'm a sysadmin by default. Translation: I do not know Linux well enough to do a TeX Live install safely.  I've used TeX Live for several years, but always installed it as sudo. My OS is Ubuntu 19.04. I'd now like to do the TeX Live install as a regular user, because that's what the TeX Live documentation recommends. Let's call that user Bob.  After downloading install-tl-unx.tar.gz and extracting the install-tl script, I start the installation as user, by running: perl install-tl -gui. I get a permissions error saying that Bob cannot install to /usr/local/texlive/2019.  Here's my question. What is the Linux statement, I need to execute as sudo to give me the rights needed to complete this installation?


How do I get my wallpaper to stop moving?

I just changed my background on my home screen on my Galaxy S4 and every time I scroll to a different page the picture moves. How do I get this to stop?


What happens in a regression setting if you code n dummy variables for a categorical variable with n categories?

I understand the usual procedure to code categorical variables is to convert n categories into n-1 coded variables. For example, the categorical variable colour with levels red/green/blue could be coded as            V1  V2  red   -> 1   0 blue  -> 0   1 green -> 0   0   which in a regression setting means that the effect of green on the response is factored into the intercept.  I know that if we created an additional binary variable V3 such that green is coded           V1  V2  V3  red   -> 1   0   0 blue  -> 0   1   0 green -> 0   0   1   then we should fit a regression model with no intercept.   What happens if I take the latter coding (i.e. 3 variables V1, V2, V3 for 3 levels of colour) and fit a regression model with an intercept? I can't figure out why we shouldn't do this.


How to mark designated initializers of super class "invalid" in Objective-C?

From the :  If a class provides one or more designated initializers, it must implement all of the designated initializers of its superclass.  That means if I have a subclass of NSObject that has its own designated initializer, say - (instancetype)initWithImage:(UIImage*)image NS_DESIGNATED_INITALIZER;  then I also need to provide an implementation of NSObjects -init. What should I do to mark the -init initializer as "invalid", i.e., nobody should call it but use -initWithImage: instead? What's best practice here? Edit I tried the techniques described . However, when I mark the superclass -init method as unavailable in the interface, the compiler still tells me that I need to overwrite the initializer of the superclass. When I try the other techniques, i.e., raising an exception or calling -doesNotRecognizeSelector: inside of -init, I get an error stating that I need to call one of my designated initializers.


Why is SO letting me enter edit mode if the edit queue is full?

This is happening quite frequently and this is so annoying  While I'm reviewing First Posts, I see some posts that require better formatting and corrections. So, I press the edit button to enter the edit mode. Sometimes it will not let me edit because of the number of edit suggestions, but sometimes it lets me in and I start making improvements such as correcting spelling, fixing grammar, and improving formatting. If the post is of low quality it takes quite a normal amount of time and effort to edit it. In the end, when I press the Save edits button, it "scolds" me saying The edit queue is full at the moment - try again in a few minutes:  This is so annoying when you devoted your time to editing and cannot submit it. In other words, you have just wasted your time. Congratulations! The only option is to wait some time and try again, which usually not works. It just keeps saying "try again", and you have no option to cancel your edits.  Here is the question: Why did the system not say it before letting me in to edit mode if the queue is full? I know that someone is submitting an edit suggestion before me, so the queue is filling up when I try to submit my edit. But this is bad and should be fixed! I think the system should work like this: when someone enters edit mode, it counts it and puts them in the edit queue, and will not let others enter if the queue is full. Is this a bug in the system? Or is it done deliberately?  Of course, I read other posts related to this topic, but my question is different and mostly it is a request that this issue be fixed


Is eating one meal a day healthier for the body?

I'm not going to try doing this, as I eat 6 meals a day, about 4000 Kcal in total. But since dinner for me is about 2000 Kcal and that's about what normal people eat during the whole day, it should be possible for most. Not only that, it  :     Breakfast as we know it didn't exist for large parts of history. The Romans didn't really eat it, usually consuming only one meal a day around noon, says food historian Caroline Yeldham. In fact, breakfast was actively frowned upon.   "The Romans believed it was healthier to eat only one meal a day," she says. "They were obsessed with digestion and eating more than one meal was considered a form of gluttony. This thinking impacted on the way people ate for a very long time."      From the Roman times to the Middle Ages everyone ate in the middle of the day, but it was called dinner and was the main meal of the day. Lunch as we know it didn't exist - not even the word.   So, is it then healthier to eat one meal a day or are modern eating habits healthier?


Usage of minted inside newenvironment in minted 2.0a³

As a followup question to , I kind of want to do the same thing for minted as well, but I'm held back by the following:  I used the code from  but that doesn't seem to work so well for the latest version of minted (version 2.0 alpha 3). \mintinline works nicely in the latest version. Preferrably I wouldn't want to choose between the two.  Any known workaround to this?  \documentclass[10pt]{article} \makeatletter \IfFileExists{minted.sty}{% \usepackage{minted} \usemintedstyle{euryris} \usepackage{lineno} \def\gobble##1{} \renewcommand\DeleteFile[1]{} \newenvironment{MyEnvironment}{% works fine in v1.7 ?   \VerbatimEnvironment   \minted@resetoptions   \setkeys{minted@opt}{}   \begin{center}     \begin{minipage}{\linewidth}           \begin{VerbatimOut}{\jobname.pyg}} {%       \end{VerbatimOut}       \minted@pygmentize{python}       \DeleteFile{\jobname.pyg}     \end{minipage}     \end{center}} }{} \makeatother \begin{document}  \section{Environment} Have some python code: \begin{MyEnvironment} print(x**2) \end{MyEnvironment} ...as the pleasure is all mine.  \section{Inline code} Some serious inline code right here:~\mintinline{python}{print(x**2)}. Some seriously ugly \jobname.pyg to the right % works fine in v2.0 ? \end{document}   I'm also looking to embed \mintinline inside another macro. Not sure if the same recipe as lstinline applies?


How to open or list all files whose name matches two patterns in Bash

Suppose that I have a directory with thousands of files; how could I open all files whose name contains both the strings "red" and "green"?


The ability to Buy Rep Only for Use as a Bounty

I would like to offer a bounty (incentive) and would like to purchase it instead of offering my own reputation as the bounty.   I see that Careers.SO already has a system to accept transactions for posting a job listing so it shouldn't be far fetched to hook bounties up to the transaction system.  I'll think of some responses and provide my own:   This can/will be gamed. - Probably. But unfortunately I make money faster than I make reputation. If you really want to pay for help, hire someone. - I would like to make the question & answer available while also involving the community; not just a company who I'd have to spend time searching for anyways. Setting a price for bounty-rep will disrupt the economy. - I suppose. But $350 for a job posting was decided on. I assume something can be done for a bounty too. You'll utterly destroy the community by involving money. It'll become greed and mayhem. For the love of man, it'll turn into 4chan! - Although very possible, I do have my doubts this will actually happen.


Why do zoom lenses and compact cameras have varied maximum aperture across the zoom range?

Why does a camera's maximum (allowed) aperture get smaller when you increase its zoom?


I have a folder with osme images. Each of them has a different name but some of them are duplicate.  What is the best way to delete the duplicates? I have to do it sistematically so I need some shell command/script to invoke.  No limitation of used software, just no strange software..  I'd like to do it both in a Mac and in a Ubuntu systems


how can i make the marginpar note have a number like footnote command does? just like this picture show,


I'm a little bit confused with the whole spell system and additions to them. If I pick for instance Tempest Domain Spell, are the spells additional to the other ones? (2 at level 1) So do that make it 3 spells? Does the domain add slots too?  And also, I've read about people choosing multiple domains, is that possible?


Do we have a simpler ternary operator in JavaScript?

I just saw this syntax in PHP:  // Fetches the value of $_GET['user'] and returns 'nobody' // if it does not exist. $username = $_GET['user'] ?? 'nobody';   Why don't we have the same in JavaScript?  I am tired of doing:    var name = obj['name'] ? obj['name'] : 'GOD';


Can relative permittivity be less than 1?

Relative permittivity shows that force of interaction in some media is 3 times less than in vacuum ($\varepsilon = 3$) for example. When looking tables of permittivity I never saw a value less than 1.  Russian wikipedia says that $\varepsilon > 1$ is typical for low frequency. So I guess that under some conditions it is possible that $\varepsilon < 1$.   For a static (electrostatic) electrical field is it ever possible (and for what material) that $\varepsilon < 1$? For the electric component of EMF field - when is it possible that $\varepsilon < 1$?


Recently  on a database I enabled trace for event 12842 using the below statement in order to trace Oracle error ORA-12842 : Invalidated cursor.  alter system set events '12848 trace name ERRORSTACK level 3';   After sometime the error did occur but we could not find any trace file for that event.  I am suspecting the tracing got disabled after instance restart.  Is there any way to list out all the events for which tracing is enabled ?


I often run Java .jar files, but in order to do so, I must invoke it with the command java -jar myJar.jar.  Simply making the .jar executable will not allow it to be run, since it is not fully compiled.  The .jar must also be in my current directory to do so.  What I am asking is is there any way to make it so that I can run a .jar by simply invoking it with myJar, provided it is in somewhere defined by $PATH?  Is there any way to specify that it must be run with the Java interpreter?    I am using the Oracle JDK.


I'm  new to Ubuntu and installed  16.04 LTS but in software center all application is not showing only showing those software which is already  install to my system


I would like to draw the following picture. I have tried my best but nothing work. My document class memoir. thanks.


Allow suggested edits on beta site metas

There is a long standing ban on allowing suggested edits on per-site meta:      I would like this relaxed on beta sites to allow broader participation to help shape beta site meta posts.    I just ran into this on  where I wanted to correct the list of sites that allow software recommendations. Wouldn't it make sense to allow edit suggestions on beta sites since restricting edits to +1k users on beta sites means an extremely limited group of people can even suggest a change to a post?  Here is the problem:   Undocumented behavior. The about page says "Any user can propose edits, but not all edits are publicly visible immediately." Confusing behavior. Why are meta edits harder to moderate than site edits? Where else on SE does a control show dimmed out when you cannot even exercise that control? Shouldn't the edit text be hidden if no suggested edits are allowed? Reduces input. Anyone who reviews edits knows that some absolute gems come from anonymous and new editors. How is preventing edits making the meta site better for the users or the moderators? Restricting diversity is bad, especially if it's not for a clear and convincing reason. The only  characterizes the edit review queue as needing a 10k user to process (which isn't applicable anymore since 2k users review edits now site wide - 1k on beta sites). The argument that "yet another queue" seems out of place with the current design and this doesn't have to be another queue. Causes more work. If someone wants to edit a post on a beta meta, they have to:   (ab)use the comments like I did. (Which does discuss the question, but causes more work and noise for someone to do the edit rather than approve or deny the edit). Flag it for a moderator to help. (Which presumably would be the last flag a moderator should be handling, but really - how many flags happen on beta meta sites?) Go away and not edit a post on a site meta where you wanted to edit a post.    Proposed solution.   Document the current behavior in the help pages site wide. If meta are special, say so clearly. This is subjective, but I believe we should strive for "making things as simple as possible but not simpler" What we have may have been good when the kinks were being worked out, but it's not simple enough IMO. Roll per site meta edits for beta sites into the main edit queue :      the ideal solution would be to just add the suggested edits on the meta to the queue on the main site. That way there would be no additional queue, and the meta sites would be editable by anyone like all the main sites


Fastest way to search a 500 thousand part array in BASH?

Really need help trying to find the fastest way to display the number of times each part of a 500000 part unidimensional array occurs inside the DATA file. So its a word count of every element in the huge array.  I need all of the lines in the ArrayDataFile searched for at the DATA file. I generate the array with declare array and then proceed to readarray a DATA file in my Documents folder with a for loop. Is this the best code for this job? The arrayelements in the array are searched for at the DATA file, however its a 500000 part list of items. The following code is an exact replica of the DATA file contents until line number 40 or something. The real file to be used is 600000 lines long. I need to optimized this search so as to be able to search the DATA file as fast as possible on my outdated hardware:  DATA file is  1321064615465465465465465446513213321378787542119 #### the actual real life string is a lot longer than this space provides!!   The ArrayDataFile (they are all unique string elements) is  1212121 11 2 00 215 0 5845 88 1 6 5 133 86 ##### . . . etc etc on to 500 000 items   BASH Script code that I have been able to put together to accomplish this:  #!/bin/bash declare -a Array readarray Array < ArrayDataFile    for each in "${Array[@]}" do LC_ALL=C fgrep -o "$each" '/home/USER/Documents/DATA' | wc -l >> GrepResultsOutputFile done   In order to  quickly search a  500,000 part unidimensional array taken from the lines of the ArrayDataFile. what is the absolute best way to optimize code for speed in the search? I need to display the output in a per line basis in the GrepResultsOutputFile.  Does not have to be the same code, any method that is the fastest, be it SED, AWK, GREP or any other method?  BASH the best way at all? Heard its slow.  The data file is just a huge string of numbers 21313541321 etc etc as I have now clarified. Also the ArrayDataFile is the one that has 500000 items. These are taken into an array by readarray in order to search the DATA file one by one and then get results in a per line basis into a new file. My specific question is regarding a search against a LARGE STRING, not an INDEXED file or a per line sorted file, nor do I want the lines in which my array elements from ArrayDataFile were found or anything like that. What I want is to search a large string of data for every time that every array element (taken from the ArrayDataFile) happened and print the results in the same line as they are located in the Array Data File so that I can keep everything together and do further operations. The only operation that really takes long is the actual Searching of the DATA file by utilizing the code provided in this post. I could not utilize those solutions for my query and my issue is not resolved with those answers. At least I have not been able to extrapolate a working solution for my sample code from those specific posts.


Is there a better and more efficient way to do this:  I am inputting 2 values then checking them of on a list, as if current = three then it returns true for checking for one, two and three  NOTE: these values (one, two, three) are just placeholders for the example in my use there is no relation between them except that they have a different priority.  enum Foo {     ONE(1), TWO(2), THREE(3)      private final int priority;      public Foo(int priority) {this.priority = priority;}      public int getPriority() {return priority;} }  public boolean checker(Foo current, Foo check) {     if (check == ONE) {         if (current == ONE || current == TWO                 || current == THREE) {             return true;         }     }     if (check == TWO) {         if (current == TWO || current == THREE) {             return true;         }     }     if (check == THREE) {         if (current == THREE) {             return true;         }     }     return false; }


How to install node 10.13.0 LTS in Ubuntu 18.10?

On the official Node.js site they have a tar.xz file. I've extracted the file to my Downloads folder, but I am not sure what to do next. In one YouTube video I saw something like this:  sudo cp -r node/{bin,include,lib,share}/ /usr/   However, I think it's a bit outdated, in my opinion the node folder should go somewhere else than the /usr/ folder, perhaps to /usr/shared?!   Thanks in advance!


I am new to java... If I am missing something, please advise me.  I try to access the private method like below:  public class PublicClassPrivateMethodAndVariableAccess {     private int a=23;      private void show()     {         System.out.println("a = "+a);     }      public static void main(String... arg)     {         PublicClassPrivateMethodAndVariableAccess pr = new PublicClassPrivateMethodAndVariableAccess();         System.out.println("using method showing  pr.show() ");         pr.show();         System.out.println("pr.a = "+pr.a);     } }   This will show output as:  using method showing  pr.show()  a = 23  pr.a = 23   But when I’m using a similar code with a different way to access the private method...:   class Testclass {     private int a=23;      private void show()     {         System.out.println("a = "+a);     }    }  public class NoModifierClassPrivateMethodAndVariableAccess {     public static void main(String... arg)     {         Testclass pr = new Testclass();         System.out.println("using method showing  pr.show() ");         pr.show();         System.out.println("pr.a = "+pr.a);     } }   ... it shows error as below:  NoModifierClassPrivateMethodAndVariableAccess.java:19: error: show() has private  access in Testclass                 pr.show();                   ^ NoModifierClassPrivateMethodAndVariableAccess.java:20: error: a has private access in Testclass                 System.out.println("pr.a = "+pr.a);                                                ^ 2 errors   I am asking why this second code is failing to access the private method?


Do I make money in the stock market from other people losing money?

Basically I am new to stock trading and neglect to see the differences between trading stocks and betting on sports. Basically I am "betting" on which company will do well, and this can change due to "upsets" just like in sports, but my main question is this: Is new money actually created in the stock market, or am I just gaining money that someone else has lost? The answer must be money is being created or "destroyed" because how would the stock market ever be down overall or up overall, but I just can't seem to wrap my head around it. Like stocks have no inherent value, unlike say something like gold which I could wear as a chain or jewelry. But the only reasons to own a stock that doesn't pay dividends is to sell again at a later point, unless you manage to get 51% of them which I doubt most traders try to do. So am I missing something or what? Any help would be greatly appreciated thanks!


how can I use applescript to type in a specified area on the screen? I've tried the 'keystroke' command, but it doesn't seem to work. also, how can I use applescript to display an image? thanks a lot if you answer. here's the code I have so far:  set theText to text returned of (display dialog "Put what you want to autotype here." default answer "" buttons {"OK", "cancel"} default button 1) display dialog "select where you want me to type " & theText & " Your text will be typed in the area selected. you have 10 seconds to select once you click 'OK'" buttons {"OK"} delay 10 say "typing" --command for typing here end end end


A question on sequences using squeeze theorem.

$a_n=(1+\frac{1}{n})^n$ ,  $b_n=\sum_{k=0}^n \frac{1}{k!}$.  Given that  $\lim_{n\to \infty}b_n=e$.  (i) Show that $b_n-\frac{3}{2n} < a_n < b_n$ for all positive integer $n$.  (ii) Using Squeeze theorem deduce that $\lim_{n\to \infty}a_n=e$.  (i) I have proved the R.H.S of the inequality as follows.   $$\begin{align} \left(1+\frac1n \right)^n &=\sum_{k=0}^n \binom{n}{k}\frac{1}{n^k}\\\\ &=\sum_{k=0}^n \frac{n(n-1)(n-2)\cdots (n-k+1)}{n^k}\frac{1}{k!}\\\\ &=\sum_{k=0}^n \left(\left(1-\frac{1}{n}\right)\left(1-\frac{2}{n}\right)\left(1-\frac{3}{n}\right)\cdots \left(1-\frac{k-1}{n}\right)\right)\frac{1}{k!}\\\\ &\le \sum_{k=0}^n\frac{1}{k!}\\\\ \end{align}$$  I am unable to get the L.H.S of the inequality using algebraic method.   (ii) From the inequality i got the answer easily by applying squeeze therem.  It is easy to prove $\lim_{n\to \infty}b_n-\frac{3}{2n}=\lim_{n\to \infty}b_n=e$, hence by squeeze theorem the result $\lim_{n\to \infty}a_n=e$  Please Help me to get the L.H.S of the inequality.


How to enlarge thickbox media library iframe?

The iframe in thickbox media library is not big enough to display my custom tab. I tried to add "width=900&height=600" at the end of the link that pointing to the library, but no luck. How can I modify the inframe size?


Proof explanation: Prove that $\Vert f(b)-f(a)-f'(a)(b-a) \Vert\leq \sup_{x\in [a,b]} \Vert f''(x)\Vert\Vert b-a\Vert^2$

Two days ago, I asked a question  but was answered just once. However, I am finding it hard to understand the proof provided.  Please, I'll need thorough explanation or another proof. As to the proof, I don't understand   why triple sum was used and not double. If we differentiate $g(x)=f(b)-f(x)-f'(x)(b-x)$, what do we get?   I am asking because I find it hard to comprehend the proof. Please, can anyone explain these to me? Alternative proofs are welcome.  Thanks.


Finding latex class name using python regex

I want to use python regex to find the document class in a latex document.  A latex file contains \documentclass{myclass} somewhere near the top. I want to find myclass using regex.  This is what I've tried so far:  latex_text = "blank  /documentclass{myclass} words, more text /documentclassdoc{11} more words" s=re.search(r'/documentclass{(?P<class_name>.*)}', latex_text)   It matches: myclass} words, more text /documentclassdoc{11  How can I change it to only match myclass. It should also stop searching after it finds a match, as the document can get quite long.  I know the file should only have one documentclass, but I want to handle the case where there is more than 1 as well.


Raw data outperforms Z-score transformed data in SVM classification

I've been trying to perform a binary classification using an SVM classifier (scikit-learn's SVC with RBF kernel). I have a sample size of about 100, with about 70 features each. The features are of approximately the same order of magnitude in their raw form, and the values tend to be already distributed around the 0 (not always though). The distribution of two such features is shown in the histograms below.   I performed a Z-score transformation on all features, as I know this to be considered a good practice when working with multiple features in machine learning. The problem is that when I use the raw data, I always manage to get better accuracy than with the Z-scores (about 2-3%). Bear in mind that the parameters of the SVMs in each case are optimized using a grid-search, so I'm not using exactly identical classifiers.  Does this make sense, getting worse results with Z-scores? I would expect to get the same or better results. What could be the mathematical logic behind this?  Edit  To answer two frequent questions from comments and answers:   My classes are indeed distributed equally (exactly 50%/50%) I also use measures other than accuracy (AUC, F1, etc.), but having worked on this project for some time, accuracy correlates well with what I need.


Add remote host to known_hosts file without prompt

I wrote some scripts and wish to add a remote host to my known_hosts file without any interaction. I can run a command like ssh -o "StrictHostKeyChecking no" root@10.x.x.x which will add the remote host key to my known hosts, but it will be followed by a ssh password prompt. Any way to do this without the password prompt?


MathJax doesn't work in comments and title of questions in the Stack Exchange Android app

I use my smartphone to access this site through the Stack Exchange Android app. As the title of question suggests, I am unable to see mathematical expressions in comments and the title of questions rendered in .


Accused of Cheating during an online exam

Today, I got accused of cheating on an exam I took yesterday. It was a lockdown browser exam, my exam as well as several other students exams were also flagged because of the following reasons.  This was a 20 multiple choice question exam, and here is the response I was given,   the answers were identical the time the answers were submitted is identical    The vice chair for my university emailed me stating “there is absolutely no way this can happen by chance  The odds are 1 in 10^1000 or something to that order”   The vice chair also explained this will go through due process so I will have a chance to explain my side.   I don’t know how to feel about this, I feel as if there is nothing I can do and all my hard work put into this class is going to waste.  What action should I take? How can I respond to this claim?   Note from comments: I did not cheat.


How to get rid of extra confusing subdomain redirection?

I've finished building my site just recently and I notice that when I open anything the url adds a nasty top subdomain to the top like in this example:  (Referring to the "/?v=88588bacf0da" part) Why does this happen and how do you get rid of it to see a cleaner domain?


I need a virus scanner to scan files for windows that i am going to send/receive from other users who will also be using windows as their os

I am running Ubuntu 16.04 LTS on My system and i want to scan the files on my external storage devices before passing them to others. I read the page at  and tried   Bitdefender Antivirus Scanner for Unices which gave me an error during automatic updating which an error code, so i tied to manually update Bitdefender Scanner for Unices by downloading the cumulative zip archive from there site but that failed too.So i gave up on it. Avast was the brand i trust the most, But it looks like Avast! Linux Home Edition appears to be old and no longer maintained,more like dropped by the dev team. Comodo Anti-Virus for Linux - I have had a really bad experience with Comodo Anti-Virus for Windows a few years ago So I prefer not to use this now,I maybe wrong now because i dont know how its now like.So correct me if i am wrong. AVG Antivirus- similar story as Comodo Anti-Virus. Avira Antivirus and Panda Antivirus - no longer maintained/terminated F-PROT Antivirus for Workstations (home users) - Looks outdated too,Correct me if i am wrong. and Finally the Open Source Antivirus ClamAV Antivirus- First i installed ClamAV( from terminal because i could not find it on the ubuntu software center(Why?) then ClamTK from the ubuntu software center But ClamTK was freezing/Failing while it was running.   So I am asking the community here for an appropriate solution for this issue of mine. Thank you.


I'm trying to apply for a US visa from Singapore. When I get to the last step of the DS 160, where I'm required to upload my photo, I get an error saying 'An error occurred while processing your photo, please try again later'. To be clear, the photo passed all the checks in the previous stage and it says in green that the photo is ok, but on the next page it shows this error    I've been trying for about 20 hours now on several computers and mobiles and different browsers. None of it seems to work. Is anyone else facing this problem now and/or has figured out a proper solution to this? I tried calling the embassy, but we were told that they could not help.


Can a non-Euclidean space be descripted through an Euclidean space of higher dimension? So why use non-Euclidean?

If you draw a big triangle in Earth 2D surface you will have an approximated spherical triangle, this will be a non euclidean geometry.  but from a 3D perspective, for example the same triangle from space, it could be depicted as euclidean in 3D.  Then why we talk about non-Euclidean instead of adding 1 dimension?  It is easier the non-Euclidean approach? I don't see how!  Sorry if the question is perhaps naive, but this is a long time doubt for me, so I will be grateful for an answer.


Creating polygons from points in Mapinfo

I have a huge number of points(co-ordinates), from which I am required to draw a polygon in Mapinfo.  This required polygon is a square of 200m size. All I have now is the left side lower end of the polygon.   Is there anyway that I can draw a square of 200m from this point automatically using MapInfo MBX files?


jQuery click function doesn't work after ajax call?

The jQuery click function works fine here
delete
      $('.deletelanguage').click(function(){     alert("success"); });   but if I set some  by ajax, $('.deletelanguage').click doesn't work.  for example  function CreateRow(jdata) {      $('#LangTable').append('delete'); }  $.ajax({             url: "/jobseeker/profile/",     success: CreateRow });   Now the $('.deletelanguage').click for the last  is not working.  jsfiddle example :  Note: the CSS works fine here.  I want to make these newly appended  working with jQuery click.


Number of semi direct products: Right answer but unsure of reason

The question is to work out the number of semi-direct products for from Q to H, where   $$ H = C_{42} , Q = C_{3} $$  I did:  $Aut(C_{42}) = C_2 \times C_6 = C_{12}$  3 divides 12 telling us that they're are some semidirect products.   If we let Q = (1, 2, 3). We can see that they're are 3 elements in Q (1, 2 and 3) that divide 12, thus there are 3 semi direct products.  Is this correct reasoning?


Display sheet name in Google Spreadsheets

Is there any way to display a sheet name as the result of a function in a Google Spreadsheets (exactly like , except in Google Sheets)?


Getting the key with max value in a portion of a python dictionary

I have a python dictionary, its keys are datetime.datetime objects, such as:  a = {datetime(2018,1,1):1, datetime(2018,1,2):2, datetime(2018,1,3):3, ...}   I would like to get the key (date) with max value in a portion of this dictionary, such as between dates 2018-03-27 and 2018-04-17.  What is the mosy pythonic way of achieving this?


How to find the integration factor and solve $(x^3+xy^2-y) dx$ $+$ $(y^3+x^2y+x) dy$ $=$ $0$?

$(x^3+xy^2-y)dx+(y^3+x^2y+x)dy=0$ I tried to find on Wolfram Alpha but it showed only the solution not in step-by-step, I know that the factor is $\frac{1}{x^2+y^2}$ but how to find it?


Why is Windows constantly spinning up my secondary HDD?

I'm having a problem with windows constantly spinning up my secondary HDD. My main OS is on the C: partition of my SSD and on my HDD I have a D: partition for storage and an E: partition for recovery. Indexing is disabled for E: and D: and currently paused for all locations.  Setting the Windows power settings to turn off my HDD after 1 min of inactivity makes the drive spin down, but then wake up after around 20 s. When I set it to turn off after 2 min of inactivity it spins down very rarely, suggesting that there is something that is accessing the HDD at irregular intervals between 1:20 ~ 2:00 min. I have identified a peak in the resource manager that corresponds to the HDD activity.   This peak is high if the HDD did have time to spin down and then was woken up by the process causing the peak. The peak is tiny (but still there) if the HDD never had time to go to idle. Under the bar "Disk Activity", there is no image that has "D:" or "E:" in its path, so all I can do is to watch the peaks in the graphics to the right, not identify the cause in the list.   Using Sysinternals Process Monitor, I filter for any process that includes "D:" or "E:" in its path, and this made me able to identify and disable the QueryFullSizeInformationVolume via the registry key NoLowDiskSpaceChecks. However, this process did not correspond perfectly to my HDD wakes and disabling it did not help. As of now, Process Monitor reports that zero processes are accessing my HDD.  After reading another thread, I also tried disabling my page file (even though it's located on C:), just to see if this would make any difference, but it did not. I also tried to disable the controller for the HDD in the Device Manager, but this just made my drive remain spinning constantly. When I installed Win 7 a few months ago, my drive stayed quiet until I clicked it in Explorer, so I there is something that has changed within the last few months either with Windows or with some third party software. However, the same behavior is present when starting Windows with all non-Microsoft services disabled, suggesting that third party software probably isn't the culprit.  As of now I'm pretty lost and searching the web isn't helping me. I might try to boot another OS from a USB, but If anyone has any advice that can point me to a solution of my problem I would be very grateful.


Name nodes of addplot from the third column

I have the following code  \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{dateplot}  \begin{figure} \begin{tikzpicture} \begin{axis}[     height=9cm, width=10cm,     title={title},     date coordinates in=x,     xticklabel=\month, ] \addplot[blue] table[x=x1,y=y1] { x1    y1   name 2009-01-01  40  name1 2010-01-01  50  name2 2011-01-01  70  name3 2012-06-01  70  name4 2013-06-01  100 name5 }; \end{axis} \end{tikzpicture} \end{figure}   What I want is to label every point on the plot with labels from 'name' column. I would appreciate any help.


show that $C([0, 1])$ is not a Banach space with the given norm

Let $C([0, 1])$ be the space of all continuous real-valued functions on the interval $[0, 1]$, with norm  $\displaystyle\lVert f\rVert_2 = \sqrt{\int_0^1 \lvert f(x)\rvert^2 \,dx}$.  I need to show that $C([0, 1])$ is not a complete space (i.e. a Banach space) with respect to this norm.


What is a suitable book to learn general relativity for high school students?

I know all of special relativity but I also know it is not enough to study GR. The mathematics is very complex. I have “Spacetime and Geometry” by S. Caroll. He has described it GR well enough but I do not know some of the maths signs and symbols he uses. So what are the prerequisites I need to have in maths. Is there a book that covers those math topics? Or is ther a book on GR that is simple enough for me to understand? Please help.


Please add the ability to filter [Closed] questions out of my results

I understand the desire to keep a closed question around for Google or SO Search purposes, or when a question is a dupe, or has been moved to "(sister site)" and therefore I don't want the to be deleted.  However as a user of the site, logged in, looking to help someone out (or just gain some rep) answering questions, the [Closed] questions just become noise.     Would you consider an option (for logged in users) to not show Closed questions,   unless running a search?   e.g. if I search for "IE getElementById error" then please show the closed questions as they may be helpful.  However when just going to the Questions page... p2, p3, p4, p5 etc. I'd rather not see those questions as typically they are the "Spam, Not a real question, or Belongs on Sister site" questions... all of which I'm not interested in.  Alternatively any chance they could be styled similar to "ignored tag" questions where they are almost faded out?


I would like to remove the headline and footline from a single frame define in my .sty with:  \newcommand{\frontcover}{    \beamer@MyStyle@covertrue    {       \usebackgroundtemplate{\pgfuseimage{frontcover}}       \setbeamertemplate{headline}{}       \setbeamertemplate{navigation symbols}{}       \frame{}     }  \beamer@cMyStyle@coverfalse  }   and called in my .tex with \frontcover. The problem is that the headline is removed but a blank space remains. How can I remove both headline and space ? I tried to add \vspace*{-2.65ex} but doesn't seem to change anything.  Thanks


Do airplane wings use difference in pressure to generate lift or conservation of momentum?

I hope this is a physics topic.  I thought it may be appropriate because of conservation of momentum.  I was under the impression that lift in an airplane wing ( an airfoil ) was due to difference in pressure. However a physics video on Youtube said that it was conservation of momentum that generates lift , which did not make sense to me, I am now wondering about the validity of the video. The video author is a physicist so maybe I thought the physics section of stackexchange may be appropriate to ask.  Is there some underlying physics I am not aware of? Thank you


What's it called when a compound word can be split up in diff ways to present alt meanings?

For instance, is the pet store PETSMART meant to be Pets Mart, or Pet Smart? That's not actually my question, as I'm pretty sure it's Pet Smart. I'm just asking what it's called when a word either CAN be split into multiple ways to present alternative meanings, or WAS MEANT TO be able to be interpreted two or more different ways through this method.  If you're wondering the source of the question, there is a game on Kickstarter right now called PooPride featuring human waste as protagonists. And given that it's a racing game, I imagine the name is meant to have a second meaning as Poop Ride.


Let $(X,d)$ be a metric space. We say that $X$ is separable if $X$ contains a countable dense subset. We say that $X$ is second countable if $X$ has a countable base. The following .  Fact: If $X$ is a separable metric space, then any subset $Y$ of $X$ is also separable.  One main idea to prove above fact is that subset of a second countable space is again second countable.  Question: Let $X=\mathbb{R}$ and $d$ be euclidean norm(that is, absolute value $|\cdot|$). Is $\mathbb{R}\setminus\mathbb{Q}$ separable?  If we use the above fact, then $\mathbb{R}\setminus\mathbb{Q}$ should be separable as $\mathbb{R}$ contains $\mathbb{Q},$ which is a countable dense subset of $\mathbb{R},$ and $\mathbb{R}\setminus\mathbb{Q}$ is a subset of $\mathbb{R}.$ However, I do not see immediately a countable dense subset of $\mathbb{R}\setminus \mathbb{Q},$ as $\mathbb{R}\setminus\mathbb{Q}$ is uncountable, though it is dense in $\mathbb{R}.$ Any hint would be appreciated.


I have a scenario where i want to calculate the sum of below data set   V1|V2|V3   "1.1"|"1.2"|"A" "1.1"|"1.2"|"B" "1.1"|"1.2"|"C"   sum of V1 V2 ?  how to that   output :  3.3 3.6


I run the next:   find . -type f -printf '%T@ %p\n' | sort -n | tail -1   this return me the next:  1376221215.000000000 ./Rev.12345/run.exe   I want to get only the 12345 number. Which command I should use (I try to use cut command, without success)?


Q: Let $f$ be a continuous function on [0, 1] and its derivative $f'$ is continuous on [0, 1]. Show that$$|\frac{1}{n}\sum_{k=0}^{n-1}f(\frac{k}{n})-\int_0^1f(x)dx|\leq\frac{M}{2n}$$ where M is the maximum value of $|f'|$ on [0, 1].  I find this inequality very tricky to understand. Because the max $|f'|$ just came out of nowhere... I tried to draw a graph of $\frac{1}{n}\sum_{k=0}^{n-1}f(\frac{k}{n})$ but didn't get much information. Could somebody give me a hint or the direction of the solution?


Prereqs for The Geometry of Physics by Frankel

I'm interested in giving The Geometry of Physics a read, and I was wondering what the mathematical and (more importantly) physical prerequisites are.  My background is a bit stronger on the mathematical side, and I'm worried that if heavy (or even moderate) exposure to physics is required that I'll miss out on a lot.  If someone has read it and has a good sense of this sort of thing, I'd very much appreciate the input!  A link to the .


Six feet/foot five: Does adding "inches" affect the grammatical form of "foot"?

Is it possible to say "six feet five" (inches are left out here)?  Or is "six foot five" the only correct variant? Does incluing "inches" affect the grammatical form of "foot"?


How can I figure out why my washing machine is tripping the GFCI receptacle?

I have a Kenmore 80 Series (Model No. 110.24872300) washing machine which up to this point has been working fine. Since it is near a sink, the outlet it is plugged into is a GFCI outlet. On the last load I came back after letting it run for some time to find that it had tripped the GFCI in the middle of the wash cycle - the washer was still full of soapy water. I reset the outlet and let it run again, only to come down the next morning and find it full of water still (it had tripped during the rinse cycle this time). I reset the outlet again and this time it finished the rest of the cycle.  My guess is that water is somehow getting onto the internal components of the washer and causing it to short - is there any way I can test this theory or fix the problem myself?


private string? typeOfContract {   get { return (string?)ViewState["typeOfContract"]; }   set { ViewState["typeOfContract"] = value; } }   Later in the code I use it like this:  typeOfContract = Request.QueryString["type"];   I am getting the following error at the declaration of typeOfContract line stating:     The type 'string' must be a non-nullable value type in order to use   it as parameter 'T' in the generic type or method   'System.Nullable<T>'   Any ideas? Basically, I want to make sure that "type" exists in the QueryString before performing an action.


Will it take 3 years to recover 1TB data?

I can not access my 1 TB HDD in any system ubuntu or windows after I recently tried to backup my ubuntu system on the external HDD using inbuilt applications (Backups, Deja Dup) . Backup was taking place smoothly in the middle of that it stopped working and I force quit all operations and restarted my laptop but now the hard disk can not be accessed and making my laptop hang whenever trying to access it.  As the data is important to me I tried using Photorec running it on a live usb stick. I went through  tutorial step by step, want to mention, each step was taking more than half an hour sometimes a whole hour but as they said, to be patient I was following each step carefully, now at the recovery step most of the sectors are showing reading error and estimated time is 133895h54m25 and keeps on increasing. Right now it is     > Photorec 7.0 Data Recovery Utility, April 2015Christophe GRENIER <grenier@cgsecurity.org>http://www.cgsecurity.orgDisk /dev/sdd - 1000 GB / 931 GiB (RO) - Seagate BUP Slim BK   Partition            Start         End        Size in sectorsP unknown          0     0      1    953869      45    15   1953525167    Pass 0 - Reading sector     20631/1953525167, 0/10 headers found Elapsed time 1h27m30s -Estimated time to completion 132332h45m05 Error reading sector      21528 >   What should I do in this situation? thanks.


How can I programmatically reset a user's password

I have a native mobile application communicate with my drupal 7 site via services module.  I'd like to give users the ability to reset their password from the app.  Is there a way to initiate this process programmatically, so a an email is generated with a one time use token that expires in 24 hours?  Thanks


How to display numbers in reverse order using seq(1)?

I have iterate over numbers in various order. I am able to display them in increasing order, even with steps like:  $ seq --separator="," 1 10 1,2,3,4,5,6,7,8,9,10 $ seq --separator="," 1 2 10 1,3,5,7,9   I am also able to display them in reverse order, neither continuous nor step wise.  $ seq --separator="," 10 1    $ seq --separator="," 10 2 1   No output for above commands.   My shell details:  $ bash --version GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2005 Free Software Foundation, Inc.   Let me know how I would be able to display the numbers in descending order?


Ward identity derived from global symmetry and SDE, different from that derived from gauge symmetry?

In QED, according to Schwinger-Dyson equation $^{[1]}$, $$\left(\eta^{\mu\nu}(\partial ^2)-(1-\frac{1}{\xi})\partial^{\mu}\partial^{\nu}\right)\langle 0|\mathcal{T}A_{\nu}(x)...|0\rangle = e\,\langle 0|\mathcal{T}j^{\mu}(x)...|0\rangle + \text{contact terms}.$$ And the term $\left(\eta^{\mu\nu}(\partial ^2)-(1-\frac{1}{\xi})\partial^{\mu}\partial^{\nu}\right)$ is just the inverse bare photon propagator$^{[5]}$, so if we put the photon on shell, then the l.h.s will yield the complete $n$-point Green function with the complete photon propagator removed and also multiplied by a factor $Z_3$, the vector field renormalization constant. But the r.h.s gives, according to the Ward Identity associated with global symmetry of the Lagrangian, $$\partial_{\mu}\, \langle 0|\mathcal{T}j^{\mu}(x)...|0\rangle = \text{contact terms}^{[2]}$$ which is the sum of complete $(n-1)$-point complete Green functions each multiplied by a certain $\delta$ function.  So if we truncate all the $n-1$ external complete propagators, then we are left with the proper vertex Ward identity.    The problem is, now the constant $Z_3$ appeared.    For, example, if we apply this to $j^\mu=\bar\psi\gamma^\mu\psi$, $$\partial_{\mu}\, \langle 0|\mathcal{T}j^{\mu}(x)\psi(x_1)\bar\psi(x_2)|0\rangle = -ie[\delta(x-x_1)\langle 0|\psi(x_1)\bar\psi(x_2)|0\rangle-\delta(x-x_2)\langle 0|\psi(x_1)\bar\psi(x_2)|0\rangle]^{[3]},$$ we will get an identity containing $Z_3$ RATHER THAN the well known proper vertex Ward identity (which is derived from the gauge or local symmetry of the Lagrangian), e.g.   $$q_\mu\Gamma^\mu_P(p,q,p+q)=S^{-1}(p+q)-S^{-1}(p)^{[4]}$$ which doesn't contain $Z_3$.    Where went wrong? Please help.  [1]. Peskin&Schroeder, An Introduction to Quantum Field Theory, page308, eq.(9.88) [2]. Peskin&Schroeder, An Introduction to Quantum Field Theory, page310, eq.(9.97) [3]. Peskin&Schroeder, An Introduction to Quantum Field Theory, page311, eq.(9.103) [4]. Lewis H.Ryder, Quantum Field Theory, page 263-266, eq.(7.112) [5]. Peskin&Schroeder, An Introduction to Quantum Field Theory, page297, eq.(9.58)


Is there a way to see that $ \nabla_\mu g_{\nu \rho} = 0 $ without explicit computation, where $\nabla_\mu$ refers to the covariant derivative?

In books, it is usually said that this is a consequence of the fact that parallel transport preserves dot product. How ?


Matter beyond the event horizon should time travel?

when anything passes the event horizon of a blackhole, it must be moving faster than light as even light cannot escape. So then, shoundnt it time travel?


While I was writing one of my first papers in LaTeX, I used the reference/citing style that was used in the example provided by the professor. For referencing or citing, he uses ~\ref{} or ~\cite{}, but I noticed that in my document \ref{} and \cite{} gave the same result. Can anyone explain me difference and notation and when to use which if there is a difference?


SharePoint 2010 platform giving error like "errors were found when compiling the workflow. the workflow files were saved but cannot be run "

i am working SharePoint designer 2013. i have selected SP2010 platform. if i am create simple workflow like Log "test", it is giving me eroor like "errors were found when compiling the workflow. the workflow files were saved but cannot be run ".  and if i am select SP2013 platform then it is working fine. user have full control site collection admin access. i have tried in multiple laptops with different user. and even production and development also but it is giving me same error.


Electrostatic Pummeler with Animation Module

If you use 's ability to turn him into a 2/2 and then you use  to add an additional +1/+1 counter. Would both of those +1/+1 counters be removed at the end of turn or only one?