I have Acer Aspire One A521 with brand new SSD disk, on which I've just installed brand new Windows 7 HE 64. After installing system I installed all drivers, including Conexant audio driver. Starting from that moment, after each system restart I see Windows prompt asking me, if I really want to run application C:\Program Files\CONEXANT\cAudioFilterAgent\cAudioFilterAgent64.exe.  Situation like that is quite normal to me, and I always use some "startup scanner" to find such software and purge system out of it. I have very, very old Startup Control Panel 2.8 by Mike Lin. It can have even ten years, but it has never disappointed me, so I continue using it. It scans Startup folders for current user and common one, HKLM Run, HKCU Run and Run Once sections of Windows Registry. For past ten years I thought that these are all locations where application, that is being autorun during system startup can coexist. Turns out, I was wrong.  Since this is brand new Windows, just installed, its autorun locations are empty. The only entry I do have is ATI graphic card driver manager startup string in HKLM Run. I have checked that fact ten times (but only with above mentioned program and manually) and I'm 100% sure, that in none of known to me autorun locations there are no traces of Conexant program startup string.  What do I miss? Does Windows 7 introduces some new startup location or a new method of autorunning programs, that is beyond, what I know and what Startup Control Panel scans?  Solving this problem is a snap for me. I can use brute-force method of removing manually that file or renaming it or I can uninstall Conexant audio driver at all (for the very, very limited use of audio in my laptop, that I have, Windows driver will for sure be enough, I've installed Conexant one "just in case"). But I'm really, really curious, how Windows is possible to run this program each time I restart it? Where autorun string for it can exists?


What is an example of a non-zero "ring pseudo-homomorphism"?

By "pseudo ring homomorphism", I mean a map $f: R \to S$ satisfying all ring homomorphism axioms except for $f(1_R)=f(1_S)$.  Even if we let this last condition drop, there are only two ring pseudo-homomorphisms from $\Bbb Z$ to $\Bbb Z[\omega]$ where $\omega$ is any root of unity, for example. They are the identity homomorphism and the "$0$ pseudo-homomorphism".  I couldn't find a non-zero example. It is easy to conclude that $0=f(a)(1_S-f(1_R))$, so I know that the counterexample will have to be some $S$ with zero-divisors.


Searching for record LIKE against all columns in a table

I want to be able to search through entire table without specifying each column. I want to be able to look for a record where each column may look LIKE '%QASHQAI%'. This table has about 100 different columns. Naming all of them like   SELECT * FROM vehicle WHERE ... LIKE '%QASHQAI%' OR ... LIKE '%QASHQAI%' OR ... LIKE '%QASHQAI%';  Is there a quicker way of searching through the table?


Evaluate $$\frac{1}{1}+\frac{1}{2}-\frac{2}{3}+\frac{1}{4}+\frac{1}{5}-\frac{2}{6}+\frac{1}{7}+\frac{1}{8}-\frac{2}{9}+\cdots+\frac{1}{3n+1}+\frac{1}{3n+2}-\frac{2}{3n+3}+\cdots$$  answer choices:  a) $\ln 2$  b) $\ln 3$  c) $e^2$  d) $\dfrac 9 {25}$  Looking at the answer choices, I am almost certain that we need to rearrange the sum into a Riemann sum, but I am stuck on how to do so. Also are there any general techniques to recognize/rearrange summations such as these into Riemann sums? This problem is from a competition, so I would need to solve these problems quickly. Thanks!


Damage reduction and damage resistance: how to calculate?

Assume a character has both damage reduction and damage resistance vs an incoming attack.  One example of damage reduction is the Heavy Armor Master feat:     While you are wearing heavy armor, bludgeoning, piercing, and slashing damage that you take from non magical weapons is reduced by 3.   One example of damage resistance is the blade ward cantrip:     You extend your hand and trace a sigil of warding in the air. Until the end of your next turn, you have resistance against bludgeoning, piercing, and slashing damage dealt by weapon attacks.    Let's assume a character with both effects above is hit by a nonmagical weapon attack dealing slashing damage. The attack deals 10 damage. What happens:   Damage reduction applies reducing damage to 7, then damage resistance (rounds down). Character takes 3 damage. Damage resistance applies, halving to 5, then damage reduction takes it to 2 damage.


As in the title,  Labcoat, lab-coat or lab coat?  Which is the correct version? And is there a convention I can use for other similar combinations of words.


The  says that public class SomeObject {   public void SomeOperation()   {     lock(this)     {       //Access instance variables     }   } }  is "a problem if the instance can be accessed publicly". I'm wondering why? Is it because the lock will be held longer than necessary? Or is there some more insidious reason?


I'm struggling to decide whether to jettison use of the word fact, because the definition appears to be not solid enough to support continued usage. What do I mean by that? Look at one "meaning ladder" (taken from Random House via ) among several on the same page:  fact  something that actually exists: Your fears have no basis in fact. something known to exist or to have happened. a truth known by actual experience or observation; something known to be true. something said to be true or supposed to have happened. an actual or alleged event or circumstance, as distinguished from its legal effect or consequence.   This definition marches us from something that exists to something that is merely supposed to be true to something that may be "actual or alleged." (And yes, I am aware that dictionaries don't dictate the meanings of words; they record meanings from usages. And the meanings of this word as it is used and recorded in English seem to be antagonistic toward each other.) What are we to do with all this? Does a fact require the modifier true to be judged genuine? When we preface a statement with "in fact" don't we mean What follows is the truth? The aforementioned dictionary certainly thinks so:  in fact, in truth; really; indeed: They are, in fact, great patriots.  Here fact and truth are equated absolutely. So I'm wondering: how do we distinguish between what is a fact in the sense of absolute truth and what is a fact of a lesser order? Other words can have many shades of meaning, but this one seems somehow like it shouldn't. So if I hear the word fact without hearing true before it, does it even deserve the term? A cautionary note I'm not really looking for a discussion of truth in the philosophical sense. The scope of this question is limited to the meaning of a word in English, not the meaning of an absolute concept as rational beings can or should understand it. What I'm really after, as I mentioned in a comment, is whether the adulteration of this particular word renders it, ultimately, meaningless, and therefore something to be avoided. In conclusion, I offer this quote from Howard K. Zinn, from his Afterword to A People's History of the United States:  But there is no such thing as a pure fact, innocent of interpretation. Behind every fact presented to the world—by a teacher, a writer, anyone—is a judgment. The judgment that has been made is that this fact is important, and that other facts, omitted, are not important


How to use the conformal property of bilinear transform to show that the left half plane is mapped to the unit circle?

Intuitively, conformal means angle preserving. How can I see that the left half plane is mapped to the unit disc with the angle of each element of the left half plane preserved?


Random Sampling of Beta Distribution using direct method

I have been reading about generating random samples using direct methods. I have come across a definition that if, $X_i ~ Unif(0,1)$ and are i.i.d., then: \begin{align}   Y = \frac{\sum_{i=1}^m logX_i}{\sum_{j=1}^{m+n} logX_j} \end{align} will be a Beta distribution B(m,n). Why is it so and how would i be able to prove the same?


Is the Uncertainty Principle a mathematical consequence or a physical consequence or both?

I am currently exploring the mathematical structure of Quantum Mechanics on an introductory level. A couple of books and online sources (including this website) stated how the Uncertainty Principle is a consequence of two non-commuting operators like position-momentum or the spin operators. But in some books including Stephen Hawking's - "A Brief History of Time", the Uncertainty Principle is interpreted as a limitation imposed due to an inevitable tradeoff between wavelength and energy. For e.g. in the book "A Brief History of Time" on Page 60 the author writes -  In order to predict the future position and velocity of a particle, one has to be able to measure its present position and velocity accurately. The obvious way to do this is to shine light on the particle. Some of the waves of light will be scattered by the particle and this will indicate its position. However, one will not be able to determine the position of the particle more accurately than the distance between the wave crests of light, one needs to use light of a short wavelength in order to measure the position of the particle precisely. Now, by Planck's quantum hypothesis, one cannot use an arbitrarily small amount of light; one has to use at least one quantum. This quantum will disturb the particle and change its velocity in a way that cannot be predicted. Moreover, the more accurately one measures the position, the shorter the wavelength of the light that one needs and hence the higher the energy of a single quantum. So the velocity of the particle will be disturbed by a larger amount. In other words, the more accurately you try to measure the position of the particle, the less accurately you can measure its speed, and vice versa.  Hawking clearly stated it as a physical consequence, which is more intuitive than the mathematical one. Finally, my question is which one of the interpretation is correct? Or is it possible that both interpretations are equally plausible and that the mathematical derivation just happens to explain the physical cause through a different approach.


If x is an odd number, how to prove $x^2=8y+1$?

I tried to let $x=2k+1$ but it ended up proving $k^2+k=2y$ for some $k$ and $y$. What is the correct solution?


What is a comma splice without a verb called?

Take as an example the sentence: "The monk is skinny, his arms lean from years of cardiovascular exercise." I've seen similar sentences and am curious about the grammar, since a similar sentence (with a comma splice) would be: "The monk is skinny, his arms are lean from years of cardiovascular exercise." Is this wrong (the first example - I know the comma splice is often frowned upon though controversial)? I've seen some serious authors do this so I assume it's not but I don't know how it works.


How should my game characters store their abilities/spells?

I'm new to game development and a bit confused about how to effectively store an object's access to certain spells/abilities.  The player and mob objects are all generated from the same class. However, each object may have access to different abilities and spells. How do I keep track of a specific object's access to these?  Example: My player object might have access to Fireball and Haste, while a goblin might have access to Confusion.  I followed , and I understand how to attach a spell function to scroll use. I'm just not sure how to emulate a character memorizing a spell and using it as an ability.


Let $\sum_i a_i$ be a convergent sum with positive $a_i$. Does $\sum_i \frac{a_i}{a_i+a_{i+1}+a_{i+2}+\cdots}$ always diverge?

Let $\sum_i a_i$ be a convergent sum, with all $a_i$ positive.  Let $s_n=\sum_{i=n}^{\infty}a_i$.      Does $\sum_i  \frac{a_i}{s_i}$ always diverge?   I've tried a few examples such as $a_i= r^i$ (geometric series) and $a_i=1/i^2$ and it seems to always diverge.


Bootstrap 2.3.2 Tooltip Doesn't Work On Ajax-Loaded Content

I've a WordPress blog where I'm using the Infinite Scroll plugin to load posts infinitely. I developed the theme for the blog using Twitter Bootstrap 2.3.2 and I'm using the Bootstrap Tooltip plugin to show post meta (date, etc.) in a Twitter Bootstrap tooltip that fires on hover. My problem is that with the default set of posts that load when the site first loads, the tooltips work just fine using the following code:  $(document).ready(function() {     $('.post-info a').tooltip(); })   But when the ".content" DIV is dynamically updated with the new sets of posts pulled by an AJAX request, the same code stops working on newly inserted posts and the code provided above no longer shows the Bootstrap tooltip on mouse hover. Here is the HTML markup of the link that's supposed to show up the tooltip on hover:  Dynamically inserted text with the help of PHP   Could you please help me solve this issue?  Thanks a lot!


Alternative file format to ESRI Shapefile?

ESRI Shapefile requires multiple file, such as .shp, .prj and etc.  and it's not preferable for me. So I'm looking for substitute to it.  Are there good file formats which meet the follows ?   Results in a single file Can be loaded by both of QGIS and ArcGIS without any conversions Keep the same kind of information as the ESRI Shapefile (eg. Don't lose info on projection) Don't seem to be deprecated soon Don't get larger size than ESRI Shapefile


I am currently studying for an exam about academic writing and I have some issues grasping the difference between hedging and tentativeness. I know for a fact that there must be a difference because my professor marked it in a text of mine. What I can say is that tentativeness aims to avoid making false claims, thus texts written tentatively are more restrained. Hedging on the other hand is a politeness tool that also happens to express hesitation. But as of now, I still cannot see a major difference between those attributes, they are fairly similar to me and I tend to use those terms synonymously. I am thankful for everyone who wants to bring light into this darkend room. Troy


How to achieve a huge number of for loop in python?

I would like to write a program to get every sum from a list. For example:  L = [['7'], ['3', '8'], ['8', '1', '0']]  I would like to get:  8 + 3 + 7  8 + 8 + 7  1 + 3 + 7  1 + 8 + 7  0 + 3 + 7  0 + 8 + 7  So, I wrote my program in this way:   for x1 in L[-1]:      for x2 in L[-2]:          for x3 in L[-3]:              print (int(x1) + int(x2) + int(x3))   However, there may be a huge number lists. In this way, I have to write a huge number of for loop. Is there any other way that I can use to write my program?  itertools.product works well for this question, but is there any way to do not import anything to solve this question?


120V between chassis grounds of two different devices

After experiencing a notable shocking type sensation after  coming into skin contact with my laptop and phone (both metal and plugged into their chargers), I decided to probe the chassis of both devices to discover a 50Hz 120V transient...   To investigate this further, I directly recorded the voltage from the grounds of the charger connectors to find the same transient. Swapping  between two different laptop and two different phone chargers, all permutations yield the a large AC signal from their grounds. That said, swapping between a 10W to a 5W usb charger did drop the difference to 60V between laptop and usb charger grounds.  I’ve even checked the sockets to ensure that its not a wiring problem, and sure enough the earth, live and neutral are all where they should be and connected properly. N.B. I’m in the UK, so 240V outlets.  This is quite baffling to me since not only are the voltages produced by the charging circuits direct current, but neither voltage exceeds 19.5V! Any explanations/diagrams to explain this would be fantastic!   Cheers!


solving a third-order nonlinear ordinary differential

I would like to solve:  $$\left (\frac{d^{2}y}{dx^{2}} \right)^{2}+\frac{d^{3}y}{dy^{3}} \frac{dy}{dx}=0$$      Thanks in advance.


Exercise 5.10 from Richard Bass Real analysis

Suppose, $f:\mathbb{R} \to \mathbb{R}$ is Borel-measurable. Define $A$ to be the smallest $\sigma-$algebra containing the sets $ \{\ x: f(x)> a \}\ $ for every $a\in \mathbb{R}$. Suppose $g:\mathbb{R}\to \mathbb{R}$ is measurable with respect to this $\sigma-$ algebra $A$. Prove that there exists a Borel-measurable function $h:\mathbb{R} \to \mathbb{R}$ such that $g=h\circ f$.  Now, what I understand is the the new $\sigma-$algebra is contained in the Borel-sigma algebra. Hence g is Borel-measurable. But how do we construuct such an h?  Thanks in advance!!


Issues with HP BL460c Gen8 - wrong processor(s) and memory showing?

I have searched all the posts possible (dip switch resets 1,5,6 etc) and reset via removal of Battery for days, still no good solution.  I bought a matched pair of Xeon E5-2650V2 2.60 GHz for each blade, They turn on with the red bar blinking along the front I am trying the minimum configuration now with only processor 1 installed per HP documentation, and when I look in the bladecenter under information one says it has two 2570v2 processors and 64GB memory (it has one 2650 v2 and 16gb) And the other says The CPU information could not be retrieved.  The memory information could not be retrieved.   Another one says it has two 2570v2 processors and 128gb memory.  How do I clear these blades back to factory default so they'll accept the new processors? The dip switches and removing the battery have not seemed to help.  The blades themselves are running the latest firmware from 01/22/2018.  Help!


Hide the relationship between blog articles but still get listed on AdSense

Not sure if this is the right place to ask this, but ...  I have a small website where I showcase my work in design/art/photography/etc, and I have developed an article template which I would like to use as a promotional tool - local events, other artists work, personal blog posts, etc, etc.  As there is no set theme for what I write about, I was planning on simply placing the articles in a folder on the domain, giving each one a unique ID so that those featured in the article can link it from their social media accounts or websites. Like:  http://example.com/articles/id/40294092 ... A local business profile http://example.com/articles/id/53904930 ... A music event article   But, I have 2 problems.  First ... As all articles are placed withing the same articles/id path, it's quite easy for people to type in a code ( 24209429 ) to see any other article that I have written, which may mean they see material that is sensetive, as I plan on writng a lot about horror films and macabre art. However, as the code is randomly generated it's unlikely that people would find content in this way, but possible - Especially if they search for example.com/article in Google.  Second ... I plan on having adverts on these articles, and as there is no set homepage I was wondering how I could get verified on things like AdSense, as they would not be able to link to example.com/articles and see all of my content.  Any advice on a good way to both get verified by AdSense, AND keep my articles as private as possible?


Is it possible to retrieve posts depending on meta_key LIKE condition?

I'm currently facing a little problem. I'm using ACF plugin which generate complex meta_key names when creating hierarchical fields.  I found in my database meta_key named modules_1_content_0_module.  I want to be able to retrieve all the posts which have a meta_key which finish with _module and where meta_value is a given id.  Is it possible to do that directly with the WP_Query API ?  Thanks


Automatically upvote questions you answer - Unless you say otherwise

A good question will receive many answers, and much more views than normal.    This level of activity is not reflected in the upvoting of said question. I recently encountered several such questions, which until I pointed this in the comments () stayed in the lower 0-2 upvotes.    My two suggestions:   Automatically upvote any question you answer, with the ability to cancel this up-vote. This makes sense to me, as I answer only questions I like/are good (and I suppose others too). Display popup message similar to:       Have you considered upvoting this question?    Addressing comments given so far: Answers do not mean a question is good, but it does imply you have an opinion on it. So why not prompt any one who answers to express their opinion by voting? (Similar to what happens when you upvote an answer to your own question).


Most Important Stat Theory Concepts -- Interview

I have an interview with a top company for a data scientist position.   I was made aware that they will be testing probability/statistical theory concepts.    So the question:  If you had 1 hour tops to do an all-inclusive interview about a range of topics, and wanted to test someone's knowledge of probability/statistical theory as well.... what concepts would you test?  Another way of phrasing the question:  What are the most important concepts to know from probability/statistical theory?  (I can't study everything!)


How to find average and median age from an aggregated frequency table

I am using excel and I am trying to find both the average age and median age.  I have two columns. 1 for the category and the other for the number of people in each category.  Under 5       6,360 5-9           6,360 10-14        10,986 15-17         5,204 18-24         7,886 25-34         9,463 35-44        17,349 45-54        18,926 55-64        13,406 65-74         6,309 75 and over   5,520       total 107,769


I found some articles talking about transformerless power supplies, and I have uploaded the schematic of such a circuit. Does anybody have an idea about the pros and cons of such a power supply? Also how to calculate the value of this capacitor "C1" ?


Airline policy when a passenger is refused entry in both departure and arrival countries

Before departure the airline staff may check your passport stats to ensure you wont be rejected to enter the arrival country.  However, in some case Immigration office of arrival country will reject your entry even you have vaild visa. And normally you will be sent to the country where you come from by the airway you travel to there.  The question is, you are not the resident of the departure country, and the Immigration office also reject your entry, what will the airline do?  PS: I am talking those who have vaild passport and national identity, but not talking about the case of  who was stateless, nor those in Yarl's Wood Or Toulouse-Cornebarrieu.


How fast would someone have to run to run over water?

I was thinking about Flash, the superhero, or the little boy in the Incredibles.   There is  that doesn't answer a lot. Especially, I don't think surface tension would help a lot for a human to run over water, I think one would have to build on the inertial effect of the water.  There is one empirical approach based on figuring out the speed at which bare-footed water skiing is done, but I wasn't able to find a decent number. Still the difference may be that a hypothetical runner would have to propulse herself over the water, which may or may not make the thing more difficult.  Hence, I raise the question here.


What can cause "System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out"?

What else, other than insert/update/upsert/delete, can cause "System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out"?  I've search the debug logs multiple times, and there absolutely is not a DML statement executed between the startTest and the failing callout.  Are there any other commands, or perhaps another callout (even though it's only an inquiry), that can cause this?  Does anyone know how to get around this problem?


I am looking to replace the \qed or \qedsymbol with a Christmas tree or a Christmas tree inside a box. I've done this already with a smiley by using \renewcommand{\qedsymbol}{\smiley}, but I don't know how one would go about this using a Christmas tree (since there is no Christmas tree character)


High impact PhD thesis? Or just incremental improvement?

As a PhD candidate, I finally got my first conference paper published in a good reputation conference. My professor said that, even though the paper contained good theory and analysis, the results were only of incremental improvement over the state of the art techniques. He told me that I need to come up with another idea that is big (i.e., has substantial improvement over competing techniques) to be able to graduate. Even though I felt disappointed, I tried to accepted his comment as a challenge to make myself feel better.  Do you think my professor is right? Don't you think that a PhD should be centered around well defining/formulating your problem and proposing/evaluating feasible solution(s), regardless wether incremental or not, as long as originality is preserved. I tend to -respectfully- disagree with my supervisor, and hope that someone else can convince me otherwise. Any thoughts?


Could you use the Help action outside of combat?

My DM's saying that since the Help action is found in the actions in Combat in the PHB, he's disallowing use of it outside of combat. It's true that it's found in that part, but I thought you could use it even when there's no fighting happening. Is there a particular ruling for this?


Is this function i wrote to find prime numbers efficient

def is_prime(x):     '''     Function to check if a number is prime     '''     if x == 2:          return True     if x%2 != 0: #Check if number is even since all primes are odd except 2         a = [x % i for i in range(2,x+1)]          b = [i for i in a if i == 0] # Checks to make sure there's only one modulus of 0         if len(b) == 1:             return True         else:             return False     else:         return False   So like yeah please what is the time complexity (all those 0/n things) and how do i find that, a good resource link would be helpful (:


How to create a specific menu for specific users?

I'd like to know how can I create a menu like so:   Menu X which appears when a Member X performs a login, for example when a simple user login, a Menu with 4 sections appears but when a Member Y (for example a user as manager) performs a login, instead of Menu X (= simple user menu), this time a Menu Y (menu manager with 7 sections) appears.   any suggestions?


For hypothetical situations, I've read that mostly, it is safer to use "were" for ifs.     If the world were peaceful, there would be no wars.   But, I've also read that for some unhypothetical/past situations, it is correct to use "was".      If he was here, he would have gotten perfect.   That's indicating the past, not the future. "If he were here" conveys a slightly different meaning I believe.  Though it is understandable, it is still quite a blurry line, especially when "as if" comes into place, which is my original question:  For "as if" circumstances, like the one below, is "was" or "were" more appropriate?     He gazed upon the massacre before him with tranquil eyes, as if he was/were a spectator unrelated to it all.   The above does seem to be somewhat hypothetical, so "were" would seem to be the correct answer. However, it also seems like a comparison, as it is comparing a spectator to him.  So, question: For "as if" cases, should you always use "were", and if not, in what situations should "was" be used?


How to include all plugin files with the wordpress theme so that when i distribute the theme , the theme must ask the user to install recommended plugins. how do we achieve that??! for example. i am lets assume i am using WP Bakery Page builder ive paid for it and have got the license,, i build a theme using wp bakery page builder when the user downloads it and installs the theme, theme must ask him to install recommended plugin(i.e WP Bakery Page builder) and when he installs the plugin,, plugin shouldnt ask him to get license or get premium key?


How can I see how many votes I have left for the day?

Stack Overflow updated the view (the header link).   In the past, I have seen my total votes for the day, week and remaining votes by clicking the arrow nearest to my username. But in the new look I'm unable to see my daily, weekly and monthly votes. How can see those things in the new look?


The Unanswered section contains buckets of answered questions.  Especially if you start at the end (hunting for interesting ones).  Further, i've found one question which it appears had answered, but which were merged with another, duplicate/similiar question.   My bug bear = all of this stuff is stuff I would not expect to see in the Unanswered section.   Unanswered might as well not be there!!!


How to make the third vertical bar disappear in the third row of my table?


The question is simple, to prove that  $\sum_{n=1}^\infty{\frac{2}{2n}-\frac{2}{2n+1}}=2-2\ln(2)$. I did it by wirtting down some terms of the series, rearranging as follows: $$\sum_{n=1}^\infty \frac{2}{2n}-\frac{2}{2n+1}$$ $$2\sum_{n=1}^\infty \frac{1}{2n}-\frac{1}{2n+1}$$ $$2\left[\frac 12 - \frac 13 + \frac 14 - \frac 15+ \frac 16- \frac 17+ \frac 18- \frac 19+ \ldots\right]$$ $$2\left[1-\left(1-\frac 12 + \frac 13 -\frac 14 +\frac 15-\frac 16+\frac 17-\frac 18+\frac 19-\ldots\right)\right]$$ and noticing that the series inside the round parenthesis corresponds to $$1-\frac 12 + \frac 13 -\frac 14 +\frac 15-\frac 16+\frac 17-\frac 18+\frac 19-\ldots=\ln(2)$$ follows that: $$2[1-\ln(2)]=2-2\ln(2)$$ So what I'm wanting to clarify is if is there any other way to improve this answer, a more "elegant" way to come up to the infinite sum of the series.


I'm currently trying to run some assembly in macOS 10.13.6.  What I'm trying to achieve is get two inputs and subtracting the first one from the second one and print the result. So... I'm trying to do something like: print -input() + input() in python. I'm relying the input and printing to the libc, by linking with another C object file.  What I cannot understand is that when I change the stack reserving size from 8 to 4, the program crashes.  Below is the working assembly code:  .section __TEXT,__text .globl _main _main:         push %ebp         mov %esp, %ebp         subl $8, %esp         call _input         neg %eax         mov %eax, -4(%ebp)         call _input         add -4(%ebp), %eax         push %eax         call _print_int_nl         add $4, %esp         mov $0, %eax         leave         ret    And below is the code that does not work.  .section __TEXT,__text .globl _main _main:         push %ebp         mov %esp, %ebp         subl $4, %esp         call _input         neg %eax         mov %eax, -4(%ebp)         call _input         add -4(%ebp), %eax         push %eax         call _print_int_nl         add $4, %esp         mov $0, %eax         leave         ret    As you can see, there is no modification except the stack reservation size.  This is the C file I'm linking with:  #include <stdio.h>  void print_int_nl(int x) { printf("%d\n", x); }  int input() {     printf("In input...\n");     int i;     scanf("%d", &i);     return i; }   I'm currently compiling/assembling/linking by:  $ clang -c -arch i386 runtime.c $ as -arch i386 example.s -o example.c $ ld example.o runtime.o -lc -arch i386 $ ./a.out


What is the best way to iterate through an array in Classic Asp VBScript?

In the code below  For i = LBound(arr) To UBound(arr)   What is the point in asking using LBound? Surely that is always 0.


If I have an equation, say $x^2 + 9x-93=0$, why can't I just take the derivative on both sides to get $2x = -9$ and therefore $x = -\dfrac{9}{2}$. What is the reason behind why what I did is wrong?


Why can't I accept two answers for the same question?

Possible Duplicate:          I got two answers for the same question from different users and both of them correct and working perfectly, but I am unable to accept both of them. Why? There may be some questions that can be answered in several ways, but I can't here in Stack Overflow. Why?


Let $\tau$ be a transposition (2-cycle) in $S_n$. Prove that for all permutations $\sigma$ in $S_n$, that $\sigma\tau\sigma^{-1}$ is a transposition.  It is clear to me that the order is 2, but it is not necessarily clear that $\tau$ is a transposition.


Is it possible to copy a set of files, but automatically skip if file already exists?

I know that the copy command has an option to automatically replace a file if it already exists, but I want to know if it is a way to copy the files only if they not already exist (/Y). I do not know the actual file names in the batch code, as I copy from the source using wildcards in the copy command:  copy *.zip c:\destination   The reason I want this instead of automatic overwrite is that the files are large, and to skip existing would save a lot of execution time. It is done over a network share, so copying this amount of data can take a while...  Additional info: This is a batch job that runs a backup thing to copy zip files from my computer to a shared server, and in case the batch job didn't finish for some reason (only some of the zip files copied), I need to run the batch again, but only for those zip files that wasn't copied before.


How does keyboard mapping work in Linux?

I have always had trouble with understanding the way keyboard mapping and related things are put together in Linux.  When things break, it makes my blood boil if I have to sift through endless outdated mailing list and forum posts to find THAT one command or inputrc line that fixes my problem.  There are classic problems like backspace not working in vim, or Ctrl + arrows in bash until you switch terminal type. Or a problem I've encountered recently, where in fresh Debian install @ key actually prints ", and " prints @ (wrong keyboard layout?)  Just looking at files and tools doesn't help too much. inputrc? xmodmap? setxkbmap? console-setup? Where do I get started to actually understand how it works so I don't have to resort to trying someone's dubious commands to fix my keyboard problems?


Repairing Windows 8 Installation via Ubuntu

My HDD is on its verge of death and I have Windows 8 installed on it. I have some pretty important files there that I need to take to the Ubuntu side. My Ubuntu installation is on its separate physical hard drive.  When I click one of my Windows 8 partitions via Ubuntu (there are two), I get this error message:  Error mounting /dev/sdb1 at /media/dugi/Store: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb1" "/media/dugi/Store"' exited with non-zero exit status 14:    The disk contains an unclean file system (0, 0). Metadata kept in   Windows cache, refused to mount. Failed to mount '/dev/sdb1':   Operation not permitted The NTFS partition is in an unsafe state.   Please resume and shutdown Windows fully (no hibernation or fast   restarting), or mount the volume read-only with the 'ro' mount option.   Is there a way I can fix or backup my important data from this HDD via Ubuntu? It's the only way I have direct access to these HDDs - the Windows 8 system wont boot anymore.  Help would be appreciated.


Restore previously open windows in Nemo at startup on Cinnamon

Is there a way to have Ubuntu automatically open the windows (in the file manager) which were open when it was shut down?  I am using the Cinnamon desktop environment with Nemo as file manager.


Integral using gamma function $\int_0^1 x^a(1-x)^b dx = \frac{\Gamma(1 + a) \Gamma(1 + b)}{\Gamma(2 + a + b)} $

Does anyone knows how to show $$\int_0^1 x^a(1-x)^b dx = \frac{\Gamma(a+b-2)}{\Gamma( a -1)\Gamma(b-1)} $$ for $a,b \gt -1?$ Also why it doesn't work for $a$ or $b\lt -1$ ?


Let $A \in M_3(\mathbb Z)$ be such that $\det(A)=1$ ; then what is the maximum possible number of entries of $A$ that are even ?


Let's suppose Mary is a directory. Is the following path ~/Mary relative?


Can I get cheaper plane tickets by using a VPN?

In a Youtube video by ADVChina, the speaker is recommending using a VPN in China for various reasons, and to sign up using his referral code.  He says there are various practical uses including "You could also go and get cheaper plane tickets by hopping around different countries." and shows a screenshot of a flight website called KAYAK, with the VPN software changing his country to Italy.  Is it possible to get cheaper plane tickets by using a VPN in this way? I've never heard of KAYAK, but if I use something like Skyscanner, is it common for tickets to be priced differently depending on which country the user's IP is from?  Is it because of different taxes in different countries? So could it be illegal to get discounts like this? Or is there some pricing strategy from airlines to charge different amounts depending on the country of purchase?


At the end of The Time of the Doctor, it is shown that Matt Smith has received an entire new regeneration cycle and using it he regenerates into Peter Capaldi. Capaldi's first question to Clara is about how to fly the TARDIS. Does this mean there has been a memory reset for the Doctor?  If so, has he forgotten his true name?  If he has forgotten his true name, then he can't bring back the Time Lords now can he?


Numbered paragraphs without using \paragraph

I would like to get numbered paragraphs. However, I'm in the process of "retro-fitting" quite a long document and inserting \paragraph (or any other command) every time would be very painstaking.  The topic has already been addressed multiple times here, but they all seem to rely on using the explicit \paragraph command (or another command that I would have to insert manually). See for instance this  case, marked as duplicate to my issue by other users; I don't think this works in my case, since the suggested solution relies on manually inserting a command at the beginning of every paragraph.  Is there way to make this happen without the use of an explicit command at the beginning of every paragraph?  I'd like this:  \documentclass{article} \begin{document} \title{My Title} \author{Author's name} \maketitle  First paragraph.  Another paragraph.  \section{Section}  And yet another paragraph after the section! \end{document}   To render more or less as :  My Title  Author's name   First paragraph. Another paragraph.   1. Section   And yet another paragraph after the section!   I've seen  but the problem is that it numbers a bit too much... Like any solution that would redefine the \par internal command, which is used in many places (eg section titles). For instance, it also numbers the title, etc. while i'd like to get only "proper" paragraphs to be numbered (but I don't know how to tell LaTeX what constitutes a proper paragraph without the \paragraph command).    Thanks!


How can I get this Poisson Confidence Interval in R?

These are given conditions. n(=the number of observations) = 60 . Sample mean is 2.1 Then I want to calculate 95% Confidence Interval of lamda, which is a mean of Poisson distribution. I Know that Central limit Theorem must be used. But I want to solve this question conveniently by using R. Is there a method to make my feeling cool?


Recently, I have random occurence where I can't reach my server. When this occurs, about 1 ping on each 10 manage to ping back. The ping that do get through are within normal response time (about 42ms in my case).  The only information I could gather so far is my network usage graph. When those timeouts occur, my server recieves unusually HIGH traffic from the internet.   (today graph)  (this week graph)  If this may help, my server is supposed to be under a 100 mbits internet connection.  Am I right to think those spikes are related to my ping's timeout? Also, do anyone have any idea of what this traffic might be? It started about a week ago, nothing has drastically changed in my infrastructure for over a year.  Thank you for your help.


Why couldn't Moody use dittany on his nose?

In The Deathly Hallows, Hermione uses dittany to mend Ron's arm after it got Splinched and part of it was scooped out: (emphasis mine)     “Harry, quickly, in my bag, there’s a small bottle labeled ‘Essence of Dittany’–" [...] The wound now looked several   days old; new skin stretched over what had just been open flesh.   In The Goblet of Fire, we find out that Moody has a piece of his nose missing, similar to what Ron had with his arm: (emphasis mine)     The mouth looked like a diagonal gash,   and a large chunk of the nose was missing.   Since this is similar to what happened with Ron, it should make sense that someone as skilled as Moody would think to apply Dittany immediately after... but he didn't. Why is this?


I've seen the proof of $\lim_{x\rightarrow0} \frac{\sin(x)}{x}=1$ but it uses the fact that $\tan(x)>x$ which in all places says it is obvious but this is maths and a I'd like to see a purely rigorous proof. If anyone knows about please comment and thanks in advance.


Legality and feasibility of digitizing old text books and course notes for private use

I have finished university already some years ago, and am now working in the field of my previous studies. I was always very careful, diligent and organized when it came to collecting and archiving my course notes and course text books.   Well, in the current situation, I have all these notes and books stored at my parents' attic. However, quite often at work, I remember some of the content I studied and think "well, that would be quite useful now to know" or "I did a case study at school that was very similar to my current project - what did we do back in the days?". I can even point to the specific book or course, where the topic was covered. However, I cannot look up anything because they are physically stored somewhere in a geographically remote place.  So I have been asking myself repeatedly: "why don't you digitize your course notes, text books, hand-outs, etc.?"   Has anyone of you similar issues? How did you handle it? Is it even legal to scan full text books for private use? I would store them in my Dropbox and do not intend to share with anyone. Of course, there is always the risk that my account gets hacked and files leaked, but I definitely do not have the intention to share any of these files (also, I do not know how probable this threat scenario is, given that I use two-factor-authentication). It is only and exclusively intended for my private use. Is it even feasible to scan dozens of books and folders full of notes and print-outs?   I am really curious to hear your opinions!


Can we have an isdeleted:1 search option/operator?

It would make looking for the answers we have deleted so much easier...


Does a sequence of equicontinuous functions have a pointwise convergent subsequence?

Let $f_k : \mathbb R \to \mathbb R$ be an equicontinuous function sequence. If for every $k$, $f_k(0)=0$ then the sequence $\langle f_k \rangle$ has a convergent subsequence.  $\langle f_k \rangle$ may not necessarily have a uniformly convergent subsequence (consider the counterexample $f_k(x)= \frac x k$) so the question is whether even in this case there is a pointwise convergent subsequence.


Alignment of equals sign in multiple align environments

I have multiple align environments in my document, separated by a small paragraph of text:  \begin{align*}   foo &= something very very long compared to the other align \end{align*} explanation what I shall do now \begin{align*}   foo' &= foo + short \end{align*}   As the text in the second align is considerably shorter, the = signs don't line up, which is to be expected.  Is there some way to make the two equals signs line up with eachother?


Make the text center of its frame (above, below, left, right) in Photoshop

i have searched all the web but nothing change. They usually show text center in picture not its frame. The frame of text i use to with other layer. Like my demo.    I would make the text center of its frame both horizontal and vertical. So how can I do it?


Can I use binary variables in logistic glm in R?

Can I use binary variables in R's glm function with a binomial outcome (logistic regression)?


Universal will to exist? Why something instead of nothing?

My question is why is there something instead of nothing, and is this indicative of a universal will, not god as such...possibly not even sentient, just a Will to be/exist/create?  Because I may be wrong but existing requires energy (stars/planets/universes/people/big bang) and nothingness requires nothing, so surely it's easier for nothing to exist?  Surely it takes more 'effort' for a star to exist than not, and everything returns to entropy/nothing eventually, if I'm not mistaken...so why bother?


SSH session through OpenVPN cuts off / locks up after a few lines

I have a large number of identical fanless PCs running debian 6 (ARM). Most of these are connected via comcast and work ok. There are some that are connected to 'WiMax' modems and are having communication issues.  Specifically: if I ssh to one of these and try a command like 'ps -ax' I'll get about 3 lines back and then the session is locked up. If I let it sit, eventually it will close with a 'session closed by peer'.  What I've tried:   ssh -vvv   → no error messages  ssh <user@host> 'command' → this will sometimes return the full output of the command. Sometimes it won't connect at all.   Suggestions on other things to try?  I've found that I can execute some commands successfully: e.g. hitting return a dozen times or more is ok. cd ~ and then lf works as does df -h. I can run df many times successfully but as soon as I try something with more output (e.g. ls /etc) it locks up.  Does it make a difference that I'm trying to communicate between these two hosts using OpenVPN?


How to measure correlation between categorical variable?

I know that we can use Spearman rho to measure the correlation between numerical variables. But how to measure correlation between categorical variables?


I have a Bosch power drill, the same as in   I checked it carefully and it doesn't seem to have a capacitor or any other electronic components.      Does it mean the universal motor in it runs directly with the 240VAC?  Does it also mean that the rotational speed of the drill is 60Hz? Can someone explain to me how that is possible? (I am new to electronics.)


Where do the X-Men get all their money/funding?

Charles Xavier's father was a "wealthy nuclear scientist". In the beginning, Charles personally bankrolled the Xavier Institute/X-Men using his family's money.   This included, but was not limited to things like upgrading the mansion to house the training levels, providing a helicopter (the predecessor to the Blackbird jet), providing and replacing uniforms, providing health care for injured students, and rebuilding/repairing the mansion and parts of the Danger Room  repeatedly.  These have all been recurring costs. The mansion has been damaged or outright destroyed a ridiculous number of times. X-Men can't get into a fight without someone's uniform getting damaged.   In one of the more recent stories (I believe it was an early issue of Wolverine & The X-Men), a comment is made about how the X-Men are pretty much bankrupt.  Where has all this money come from over all these years?   Xavier may have had a large war chest to start with, but no other income has ever been mentioned to my knowledge. Student's tuition could account for some of it, but there's no way that's going to fund everything.


When starting the blender, there is always a cube on the floor. The floor is actually a grid. My question is how to make this grid bigger so that we can measure big stuff?


Show that $M=\frac{\mathbb{Z}^3}{\langle (3,3,1),(2,2,2)\rangle}$ is isomorphic to $\mathbb{Z} \oplus \mathbb{Z}_4$ as $\mathbb{Z}$-modules

Consider the quotient $\mathbb{Z}-\text{module}$ $$M=\frac{\mathbb{Z}^3}{\langle (3,3,1),(2,2,2)\rangle}$$ Prove that $M$ is isomorphic to $\mathbb{Z} \oplus \mathbb{Z}_4$.  I think the first step is to find a basis of $M$. Clearly $(1,0,0)$ and $(0,0,1)$ are in a basis of $M$. I don't know how to find the third element in that basis. Also the basis in $\mathbb{Z} \oplus \mathbb{Z}_4$ are $(1,0)$ and $(0,1)$.


Desktop Link will be broken after restart

I'm on Ubuntu 12.04 LTS.  I want to create a link from the WorkSpace folder on my desktop.  I did right click on that folder and choose Make Link option from the menu. And did move/paste or copy/past that link on the desktop, but...  When I perform system restart, the link is broken.  So, is it possible to create a link from a folder that is in E:\, on the desktop, without creating a helper link as known from windows "send to" functionality?


Move (mv) file that starts with a hyphen (-)

I have a file called -my-file-name.txt. I'm trying to move it using the mv command, however it fails because the hyphen in the name is acting like an option.  mv -my-file-name.txt /some/new/folder      mv: invalid option -- 'm'      try 'mv --help' for more information.   How can I work around this?  I've tried the obvious, wrapping in single quotes (''), double quotes ("") and square brackets ([]), but none of these work.


SFDX: Create a Default Scratch Org... failed to run

ERROR:  The signup request failed because this organization has reached its active scratch org limit. 11:13:42.653 sfdx force:org:create -f config\project-scratch-def.json --setalias treailhead --durationdays 30 --setdefaultusername ended with exit code 1  above the error are occured every time . please help me any one out there


I'm really struggling with some exercise my professor left me about fundamental group so I think I need some clarification. During one of them I found that any loop $\omega$, where $\omega$ belongs to the fundamental group of a connected space, it is homotopic to its inverse $\omega^{-1}$, but what does that means? In my opinion the only way that could happen is that they are both contractible. Am I missing any other possibility?


I am looking for direction in my question. The question is to prove, by long polynomial division, that: \begin{equation}  2^{2^{n+1}}-1\ |\ 2^{F_n-1}-1 \end{equation} I have tried a lot of things, like calling:\begin{equation}  t=2^{2^n} \end{equation} and trying long polynomial division right away, but none of this worked successfully.


I am trying to make a glossary list using xindy in TexStudio. I have already installed Perl but it does not work. Here is my MWE  \documentclass[a4paper,openright,12pt]{book} \usepackage{vmargin} \usepackage{fancyhdr} \usepackage{emptypage} \usepackage{xpatch} \usepackage{float} \fancypagestyle{plain}{\renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0.5pt}} \pagestyle{fancy}  \usepackage{afterpage} \usepackage{blindtext} \fancypagestyle{chapterfirstpage}{% \renewcommand{\headrulewidth}{0pt}% \renewcommand{\footrulewidth}{0.5pt}% \fancyhf{}% \rfoot{\thepage}% } \xpatchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{chapterfirstpage}}{\typeout{Success}}{\typeout{Failed}}   \usepackage{epigraph}  \newcommand\blankpage{% \null \thispagestyle{empty}% \addtocounter{page}{-1}% \newpage} \usepackage[utf8]{inputenc} \setcounter{secnumdepth}{3}  \setcounter{tocdepth}{3}  \usepackage[spanish, es-tabla]{babel}  \usepackage{graphicx}  \graphicspath{{./figuras/}} \usepackage{setspace} \usepackage[backend=bibtex,bibencoding=ascii,style=chem-angew,citestyle=numeric-comp,sorting=none,]{biblatex}  \addbibresource{biblio}   \usepackage{csquotes}  \usepackage{titlesec}  \usepackage{tocloft}  \usepackage{tabu}  \usepackage{color}  \usepackage{epsfig}\usepackage{multirow}  \usepackage{colortbl}  \usepackage[table]{xcolor}  \titleformat{\chapter}{\normalfont\huge\sffamily}{\thechapter.}{0.1em}{\Huge}  \renewcommand\cftchapaftersnum{.}  \makeindex  \usepackage[labelfont=bf]{caption}  \usepackage{bm}  \usepackage{textcomp}  \usepackage{upgreek}  \usepackage[xindy]{glossaries}  \GlsSetXdyCodePage{duden-utf8}  \usepackage{translator}  \setacronymstyle{long-sc-short} \makeglossaries  \newacronym{DRX}{DRX}{Difracción de Rayos X}  \raggedbottom  \definecolor{lightgray}{gray}{0.9}  \begin{document}  \printglossary[letter]  \end{document}   I get the following error:  Warning: File 'acronyms prueba.glo' is empty. Have you used any entries defined in glossary 'main'? Remember to use package option 'nomain' if you don't want to use the main glossary.   Thanks!


Arrays and if Statements: Array object not passable into if statement

Please consider the following code:  public JButton math_button[] = new JButton[5];     for (int h = 0; h <math_button.length; h++) {         if(event.getSource()==math_button[h]) {             String button_press = math_button[h].getText();                  if(math_button[h].getText().equals("Equals")) {                 secondn = Integer.parseInt(math_input.getText());                 System.out.println(firstn + " math operator " + secondn + " and "+ math_button[h].getText());                 System.out.println(calc.Math(button_press, firstn, secondn));             } else {                 firstn = Integer.parseInt(math_input.getText());                 //math_input.setText("");                 //placeholder = calc.Math(math_button[h].getText(), firstn, secondn);                 //int secondn = Integer.parseInt(math_input.getText());                 //int result = calc.Math(math_button[h].getText(), firstn, secondn);                 //math_input.setText(Integer.toString(firstn));                 //math_input.setText(Integer.toString(placeholder));             }         }     }   What is the reason that despite the variable button_press being set to the name of an array object outside of the second IF (nested) loop, the test condition variable math_button[h].getText()is always passed to the calc.Math method?  Is the variable of the button_press string being overridden by the nested IF statement?


Impossibility of time travel due to energy conservation?

I just watched the movie  and started pondering time travel.  While pontificating and stretching my limited remembrance of AP Physics, science documentaries, and YouTube videos I remembered the laws of Conservation of Energy and Mass.  Would that not make time travel impossible?  You can't send something elsewhere in time as you would be destroying energy and/or mass, by removing it from the current time.  And it would be impossible to arrive elsewhere in time, as you would be creating energy and/or mass.  I know this is theoretical and a real answer can't be found till someone invents a time machine.  I'm just curious as to what people think of that.


What do all these fields really mean in an Ubuntu package version?

For example, in Ubuntu 14.04, dpkg -l bind9 outputs:  ||/ Name            Version                      Architecture                 Description +++-===============-============================-================================================ ii  bind9           1:9.9.5.dfsg-3ubuntu0.15     amd64                        Internet Domain Name Server   The version, 1:9.9.5.dfsg-3ubuntu0.15, looks like it is comprised of many pieces of information. How many sections are there in this Version field, and what are the meanings of them?  From some vague webpage, some conclusions which also needed further confirmation:   1 in 1:9.9.5.dfsg-3ubuntu0.15 - epoch 9.9.5.dfsg - upstream-version,  dfsg in 9.9.5.dfsg--- see  3ubuntu0.15 - debian-revision 3 in 3ubuntu0.15 - see  #debian-revision (thanks to @Rinzwind)   To be solved:   ubuntu0.15 in 3ubuntu0.15? 0.15 in 3ubuntu0.15?


Terminal not opening up after upgrading python to 3.7

I have upgraded python to version 3.7 and now my terminal is not opening up.  I followed this post   Commands I ran are as follows,  sudo apt-get install python3.7 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2 sudo update-alternatives --config python3   Entered 2 for python3.7  I can't open terminal and run commands.  My ubuntu version is, Ubuntu 18.04.2 LTS


I just installed 14.04 today, found seems the system still have Shellshock issue:  dli@srv:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 14.04.1 LTS Release:    14.04 Codename:   trusty dli@srv:~$ env x='() { :;}; echo vulnerable' bash -c "echo this is a test" vulnerable this is a test   I think might be better to get it fixed from the installation image?


How do academics come up with new ideas all the time?

I don't quite understand. How can some academics after hundreds of years of research on, say, Plato, still come up with novel, publishable interpretations, ideas, readings, solutions to these texts?  Plato is a good example for this, I think. But i am generally confused how this works, and how people can still come up with new ideas all the time.  Doesn't it get more difficult after some time?


Is it always true, that $s(G) \geq \tau(|G|)$?

Suppose $\tau(n)$ is the number of divisors of a natural number $n$ and $s(G)$ is the number of subgroups of a finite group $G$. Is it always true, that $s(G) \geq \tau(|G|)$ for any finite group $G$?   This statement is true for finite abelian groups (follows from the classification of finite abelian groups and the fact, that $s(G \times H) \geq s(G)s(H)$). But is it true in general?


A small grammatical question, I’m confused!

Which sentence is correct? “Why did you go and told mom about us?” “Why did you go and tell mom about us?”  I know that after “did”, the verb has to come as “simple form”, but when the sentence is long and follows with “and”, what happens to the second verb (after and) ? Does it have to come as “past tense” or “present tense”?


Cantor's Intersection Theorem with closed sets

Cantor's Intersection Theorem states that "if $\{C_k\}$ is a sequence of non-empty, closed and bounded sets satisfying $C_1 \supset C_2 \supset C_3 \dots$, then $\bigcap_{n \ge 1} C_n$ is nonempty.  If the term "compact sets" is replaced by "closed sets", the statement is not true. It makes sense to me, but couldn't find such a counterexample for it.


Modified photo , and how to see original photo

Sorry , i have one question , how to see original photo if I download a modified photo (.jpg) from enthernet . something like this :    How to see original photo without blue font  ? Can somebody explain me how to do it ?


I utterly forget the plot of this tale, but it includes a vivid description of a nuclear bomb going off deep inside a large, underground lunar city of many levels. The explosion, set off in secret, is deep enough that it does not emerge onto the surface immediately. The death toll is catastrophic.   The story may date to the 80s. In an English-language collection of short stories.


How should I structure my python project to resolve an import error?

My project structure is organized as follows:  My requirement is such that I need to create multiple 'apps' that utilize some common code contained within common\util.py and service\writer.py (for the sake of this example, those files contain print statements). The contents of app01\main.py is: from ...common.util import print_text print_text("Hello World!")  When I execute app01/main.py (python.exe C:/ProjectX/code/apps/app01/main.py), I receive the following exception: File "C:/ProjectX/code/apps/app01/main.py", line 1, in <module> from ...common.util import print_text ValueError: attempted relative import beyond top-level package  I tried moving files/directories around but cannot resolve this issue. Would appreciate it if someone can let me know as to how to fix this problem.


Let's assume I run putty on windows and connect to Debian Jessie remotely. I run Midnight commander, and run long term task. Than got power loss on Windows, so putty connection is lost.  Of course I should use screen, but i forgot.  After reconnection I can see mc in ps ax.   1864 pts/3    S+     0:10 mc   Is there a way to reconnect to this process? (And is it running?)


Show that $\int _0^x\left[\int _0^tf\left(u\right)du\:\right]dt\:=\:\int _0^x\:\:f\left(u\right)\left(x-u\right)du$ Notation confusion

Show that $\int _0^x\left[\int _0^tf\left(u\right)du\:\right]dt\:=\:\int _0^x\:\:f\left(u\right)\left(x-u\right)du$ EDIT: (USING integration by parts) Okay I think I have few ideas how to do this. I am confident that I need to use integration by parts. So $\int \:uv'=uv-\int \:u'v$ Let $u = [\int _0^tf\left(u\right)du \space]$  and $v'$ = 1 Now problem is with the notation and how everything is setup. There are so many variables, the $x$, the $u$ and the $t$.  Now I am very confused how to find $u'$ and $v$. Would $u'$ be $f(t)$ or $f(u)$ or $f(x)$? and same goes with $v$, would this be $t$, $u$ or $x$ and how can you tell and differentiate?? Otherwise I can I can do the question.


Let $x$, $y$ and $z$ be natural numbers satisfying $x^2 + y^2 + 1 = xyz$. Prove that $z = 3$.   I have managed to show that $z$ is a multiple of $3$ by looking at it modulo $3$ but not sure how to show $z=3$. Any tips?


Variance of an integral of Brownian Motion

Let $W(u)$ $(u \geq 0)$ be a Brownian motion on a probability space $(\Omega, \mathscr{F}, \mathbb{P})$. Let $I(T) = \int_0^T W(u) du$.  One can use integration by parts to show that $I(T) = \int_{0}^T (T-u) dW(u)$.  Since the Ito integral of a deterministic integrand is normally distributed, one can use Ito's isometry to show that the variance of $I(T)$ is $\frac{1}{3}T^3$.  Page 112 of Monte Carlo Methods in Finance by Glasserman states that the variance of $I(T)$ is given by  $\mbox{Var}(I(T)) = 2\int_{0}^T \int_{0}^t \mbox{Cov}(W(u),W(t)) du dt = 2 \int_{0}^T \int_{0}^t  u du dt = \frac{1}{3}T^3$.  I do not understand the first part of the equality - is it a consequence of Fubini's theorem?


How to check which hypervisor is used from my VM?

So I'm running a VM somewhere and want to know what hypervisor the host is running. Any way to check whether it's running KVM or in a container?  The vm is running Ubuntu


How to create very customized "numbered" environments

I want to have an environment alike or identical to the itemize or enumerate environments in such a way that I be able to fully customize each item. For example, I want to use my very own defined "numberings" and every time I use the environment, my defined items to be placed automatically with respect to the corresponding index. Also, to make a little difference, I want to add something similar to the bullets in the "itemize" environment, but this time using some custom graphical shapes next to each item; the shapes may be diagrams of LaTeX or a piece of artwork imported using \includegraphics. I want to have a final output for the items similar to the following figure:    For example, by entering the following:  \begin{itemize} \itemRectangle[itme 1] \itemDiamond[item 2] \itemRectangle[item 4] \itemCustom[item 5] \end{itemize}   I want an output alike the figure above in which the custom "numberings" to be automated are A, B, C and D which were perhaps previously defined using some LaTeX codes for a counter, and for the graphical shapes, for convenience, to be defined through a command like \includegraphics to insert the shape before the defined counter and the final part of the proposed command to be the name of the item. Appreciating in advance, I'm asking the qualified people to help me on this. Thank you.


Why issuing credit cards is profitable for banks?

I don't have much knowledge about financial markets but I was wondering how banks offering credit cards make profit? One possible way is interests on late payments but let's say if most of the people who own credit cards pay on time, will these banks still make lots of money? Or is there any other financial instrument built on credit cards?


Does float type coercion always yield the same result as static_cast?

Dear fellow stackoverflowers,  Is there some kind of guarantee that coercing a float type to a "wider" one, always yields the same result as performing the according static_cast?  Here an example:  float f = <any float>; double a = f; double b = static_cast<double>(f);  // does this always hold? EXPECT_TRUE(a==b);   Thank you for the information.


Lemma for a question based on Greatest Integer function

I was trying to solve the following question. For a positive real number x, prove that $$[x]+\frac{[2x]}{2}+\frac{[3x]}{3}+\cdots+\frac{[nx]}{n}\leq [nx]$$where [] represent the Greatest Integer Function.  Here is my approach. I used Hermite's Identity to reduce $[nx]$ to $[x]+[x+\frac{1}{n}]+[x+\frac{2}{n}]+\cdots+[x+\frac{n-1}{n}]$ and came across the following lemma.   Lemma: For positive real x and $k=1,2,\cdots,n$, prove that $$\left[x+\frac{k-1}{n}\right]\geq \frac{[kx]}{k}$$which solves the question directly  Could anyone please verify this equation. If true, please provide a proof for it as well. I tried using induction but fell short  Thanks a lot for the help!!:)


Lubuntu 12.10 PPC-Can't Login after install

I installed Lubuntu 12.10 PPC alt. Install on my ibook g4, yaboot failed to install so I used the advice given in the PPC FAQ, , and I was able to boot to a black screen with and move the arrow but that's all, when trying to login by pressing ctrl+alt+f1 I kept getting "invalid" login. I reinstalled and yaboot failed again, except this time I am unable to boot even to a black screen and trying to login via pressing ctrl+alt+f1 still gives me an invalid login message despite the fact I know 100% I am correctly typing in my username and password.  EDIT: For some reason, another reinstall went smoothly despite using the disc. I was able to login but had to use single user mode to reset my password as the invalid login error occurred again.


Story ID for dark urban fantasy novel from late 1990s

I read a fantasy novel in the 1998 or 1999 that I'm trying to identify.   The most specific thing I remember was a scene where the main character was sneaking through a building and he saw a naked armless troll writhing around on the floor and there was a very specific description of the troll's penis as being worn raw. Pretty gross, but that's why it stuck with me.  The book was in English and was probably American. It was a dark urban fantasy novel with lots of explicit sex and violence, probably over the top to the point of cheesiness. It had all the standard fantasy creature like elves and trolls and I'm pretty sure it was set in a fantasy world not in a variant of our world.   I can't confirm when it was written, but it was on the new books shelf at my library so it was likely written in the late 90s. I don't recall the cover image as the book didn't have a jacket. I'm pretty sure it was hardcover.  I don't think it was written by a major fantasy author like Michael Moorcock or Terry Brooks, as I was reading those authors and probably would have remembered. I also don't think it was explicitly part of a series of books, but it could have been the first book in something that became a series. It also wasn't part of a some larger franchise, like a Dungeons and Dragons or Magic: The Gathering novel.  I wish I remembered more, but that one scene was all that really stuck with me.


What is the set of numbers which satisfy equation $a^2 + b^2 = c^2$ and $d^3$ also?

I started with $a^2 + b^2 = c^2$  Then I got a problem when I thought what about having  Ann number or set of numbers which will satisfy $a^2 + b^2 = c^2$ And also $a^2 + b^2 = d^3$  Both the equation simultaneously for example  $3^2 + 4^2 = 25$ But $25$ is not a cubic number  I want to know that sum of two square numbers can be equal to a square and a cubic number for $n^6$? I am not asking about Pythagorean triplets I am asking which satisfies $d^3$?


What does it mean for a particle to have volume?

As far as I understand, we do not know whether an electron is a point particle or not, but we have a very low upper bound for its potential volume. If it turns out that electrons do have volume, what exactly does that mean? What constitutes this volume and how does it compare with the classical notion of volume?


I want to create a simple program to demonstrate GridLayout, but for some reason the string from the JTextField doesn't seem to ever match the password, even if I type it right. I tried a bunch of things like get the substring in case the textfield included the spaces but the label keeps saying "incorrect".   // test gridlayout import java.awt.*; import java.awt.event.*; import javax.swing.*;  public class GaoGridLayout implements ActionListener {      public static void main(String[] args) {         // TODO Auto-generated method stub         GaoGridLayout pwChecker = new GaoGridLayout();     }     // declare variables     private final String correctPW = "lol";      private JFrame frame;     private JTextField pwField;     private JLabel pwLabel;     private JButton attemptPW;      public GaoGridLayout() {         // initialize variables         pwField = new JTextField(8);         pwLabel = new JLabel("Enter the password");         attemptPW = new JButton("Confirm Attempt");          // attach GUI as event listener to attemptPW button         attemptPW.addActionListener(this);          // ~~~~~~~~~~ create the layout ~~~~~~~~~~         JPanel north = new JPanel(new GridLayout(1,2));         north.add(new JLabel("Password"));         north.add(pwField);          // entire window         frame = new JFrame("Password Checker");         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         frame.setLayout(new BorderLayout());         frame.add(north, BorderLayout.NORTH);         frame.add(pwLabel, BorderLayout.CENTER);         frame.add(attemptPW, BorderLayout.SOUTH);         frame.pack();         frame.setVisible(true);      }     // what to do when user clicks the button     @Override     public void actionPerformed(ActionEvent event) {         // if password is correct or not         String userAttempt = pwField.getText().substring(0, 3);          System.out.println(userAttempt);         System.out.println(userAttempt.charAt(2));          if(userAttempt == correctPW) {             pwLabel.setText("Correct!");         }          else {             pwLabel.setText("Incorrect!");         }     }  }


I am drawing some color-filled polygons in Adobe Illustrator using the pen tool. When I export it in a PNG file, the image looks just like I made it. But when I save it as an SVG image and open it in a browser, I see thin outlines around those polygons. Here is an example:   The first one is the PNG image, the second one is the SVG. I tried with different browsers and it looks the same in all of them. Is this normal behaviour of SVG image? If not, then how can I remove those outlines and make it look like the PNG image?


Why is my stackoverflow reputation missing 2200+?

Why is my  suddenly missing 2200+? What's going on here??? I have about 2250+ reputation earlier today, but now only 16 left. Also my user name has been changed...  Hope it's not my new year gift... :(


I recently downloaded Ubuntu and now I am trying to start to use the new OS. However to do pretty much anything I want to do I need to "authenticate" things. I am the administrator and I have put into place my password to log into the computer. I assumed that this is the password to be used to authenticate things. As I have looked around the web this is what seems to be true. However it will not accept that as the correct password and does not allow me to do what I want after three tries. It keeps saying that "your authentication attempt was unsuccessful. please try again." Is there a different password that I am supposed to use. If not is there a way to change that password or at least figure out what that password is.


Nim-Like Game: Subtracting powers of 2 from 1000.

A professor of one of my courses introduced us to a game to play during down-time, we start with 1000, then we take turns subtracting the powers of 2 (1 to 512), from 1000, we can use the same power of 2 multiple times, but you cannot end up with a negative difference, or a difference of zero. That is, the winner reaches a difference of 1, from which the next player has no moves (cannot subtract 1 from 1 to leave a difference of zero).  He asked us if we could have any strategies and if it matters what player goes first. Now, I have simulated many games and come to conclusion that it might not matter who goes first, but any strategy I seem to come up with seems flawed.  Has anyone else heard of this game? Is there a winning strategy, and does it matter who goes first or not? Furthermore, is there any generalized version of this game, say maybe with powers of n, or starting with an integer total m?


User in sudoers doesn't have write permissions

I added a user tomcat in the sudoers file like this :  tomcat ALL=(ALL)        NOPASSWD:ALL   Then I noticed a problem. When I type :  sudo vim /etc/hosts   I can make my changes without any problem. But when I try this I get an error:  sudo echo "address host" >> /etc/hosts -bash: /etc/hosts: Permission denied   Can someone explain to me why?


Which engine in Blender should i start with?

I just started learning Blender and I noticed that there are two engines "Blender render" and "cycles render". I'd like to know what is the difference between them in term of Tools, interface (not really rendering time)? I wonder can i first learn Blender Rendering and then switch to Cycles render and use it as easy as trained Blender render? If they do differ so much, please list main advantages and disadvantages. Thanks.


Is there any smart way to dynamically define lines in listing?

I'm using lstinputlisting to include code examples in my thesis, but as I'm working on the text and the code simultaneously, the code is not yet fixed in length. Is there any way that I can define a range of lines in my code dynamically so that the imported lines will be updated if I change the code (somehow as I'd do in iPython)?  At the moment I'm only using  as in this script example:  \lstinputlisting[language=Python, firstline=135, lastline=145]{code/inv1.py}   But when I add a line to my script, the range is out-of-phase with some funny results.   A dream scenario would be something like this pseudo code:  \lstinputlisting[language=Python, firstline=label{#loop2}, lastline=label{#end_loop2}]{code/inv1.py}   Can minted or another listing package be the solution? My code and scripts are in C# and Python.


How does combining special relativity with quantum mechanics produce spin?

I have read and heard that the intrinsic property of spin that elementary particles have comes from combining special relativity with quantum mechanics.  How does combining special relativity with quantum mechanics produce spin and how does it relate to the fact that spin can either be integer or half integer and the Pauli Exclusion Principle?


Proving $\mid \parallel x \parallel - \parallel y \parallel \mid$ $\leqq$ $\parallel x-y \parallel$?

Let $V$ be a normed vector space and I need to prove the follwing inequality $\mid \parallel x \parallel - \parallel y \parallel \mid$ $\leqq$ $\parallel x-y \parallel$ containing the norm and the absolute value of the real numbers. However things just get twisted and I cannot see how to prove it.... Could anyone please tell me how to prove it?


Now that I can answer my own question before I even ask it, how about reminding me to accept my own answer?

That's Awesome! The problem is, a lot of the time, when I answer my own question, if it doesn't get any comments or a competing answer, I can... well, I can kind of forget about it. Often, I don't even realize that I haven't accepted my own answer until I see my accept rate starting to dwindle and start digging through old questions in search of a fix.   It allows a chance for someone else to see the question as 'unsolved' for a few days, and sometimes, a competing answer can be better than the one I'd written myself. The waiting period helps to encourage those competing answers to be contributed, as answering a question with an Accepted Answer already can be intimidating and feel pointless.  Instead, how about reminding me, say... a week after asking/answering a question using this shiny new button that I haven't accepted my own answer yet? A simple inbox alert similar to the Badge Award/Bounty Expiration notifications seems appropriate here, and it would help to encourage me to check in on my 'solved problem'.


SMBus/ BIOS error while booting Ubuntu in VirtualBox

I am trying to boot Ubuntu 13.04 in VirtualBox, but every time I boot, I get an error that says:  SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr   This happens right after I start the virtual machine, and the operating system does not even start properly. I see the error, then the screen just goes black and gives me a blinking cursor. The solutions I have found online tell me to open up a terminal only after the OS boots correctly. Sadly, I cannot even get to that stage, so I can't use that solution.  Help?  By the way, I am VERY new to Virtual Box and creating virtual machines, so excuse me if I'm not familiar with some of the terminology. Another thing, if it helps, is that I'm running Windows 7 as my host OS.


I’m newbie in photography. I’ve been trying to catch the Milky Way it stars trials.   But I always end up with dark noisy picture with blurred stars and even faint ones. Unlike the second picture I’m trying to achieve.   I had entry level canon eos. ISO set at max. Maximum shutter speed was 60 seconds. And lens was I think f1/8  What am I doing wrong? What do I need to adjust?


I have a question regarding my specific case and how long I may stay in Europe on my American passport. I am a student and am currently finish a term in London. During the term, I have spent a total of 17 days in the Schengen area (not sure if it's relevant to figuring out the calculation, but the first day I entered was 11th February). On 24th May, I will be entering again and staying until 11th July (49 days). From there I will be traveling to Ireland for about a week, but return to the Schengen area from 19th-28th July (10 days). I will then be spending another week in England. These dates are set in stone due to a variety of reasons that have to do with meeting friends and family in various places. I will be beginning another term in Spain on 30th August, but will of course be able to enter Spain at that time with the visa that I will have obtained.   The question is this: how much of the period from 4th-30th August will I legally be allowed to spend inside the Schengen area? Again, between 11th February and 27th July I will have spent a total of 76 days there. Any help you can give would be extremely helpful. To be clear, I've done a lot of reading here and on other sites to try to find my answer without posing a question myself, but most other Schengen questions seem to be from people who have had to obtain Schengen visas prior to travel, and I'm not sure whether this alters things. Thanks in advance!


Is it possible to shoot moving water in HDR?

Static scenes are simple in HDr, but can we use it for scenes that contain moving water? (e.g. waterfall)


Why does the Moon not rotate about its axis, relative to Earth's rotation

One of the common features of the Moon is the fact that only one face of the Moon is ever visible from Earth, regardless of how much of its orbit the moon has made about the Earth.  This would imply that the rotation of the moon about its axis relative to Earth's rotation is zero/very small. This seems like a very unlikely phenomenon that would arise randomly.  So, how did this lack of rotation arise? Is it the result of the means that the Moon was formed, or could it perhaps be caused by tidal effects due to the Earth's gravity?


I mostly use stack exchange to ask questions. I always strive to be very specific and to carve out questions that have a specific answer. Why are my questions always downvoted? what am I doing wrong?   It is very personal, but I only ask questions in SO when I've run out of resources.


sizeof(struct)... gives wrong result , VS 2010

struct test{     int year;     char text;     double num; };  int main () {   test t;  cout<<sizeof(t);   return 0; }   The result is 16, while I was expecting 13. Since sizeof(char) is 1. What am I missing here?


Minimal polynomial for an invertible matrix and its determinant

So here's one that I can't quite crack:     Let $A\in M_n(\mathbb{F})$ be an invertible matrix with integer eigenvalues. Its minimal   polynomial is $m_A(\lambda)=\lambda^k+b_{k-1}\lambda^{k-1}+...+b_0$. Prove that $detA$ is divisible by $b_0$.   I'm afraid I don't quite see the connection between the minimal polynomial and the determinant. All I know is that for an invertible matrix $b_0 \neq 0$, but I can't find a way to relate that to the determinant.  Any tips and guidance would be much appreciated! Thanks in advance.


My case here is that I was writing something for school, and my teacher explained an error which I really can't see. She referred to articles about "dangling participles", which was previously unknown to me. I find it hard to relate the examples I've found about it to my situation. So this is a text I've written and the bold part is where the problem arises: (You could read only the bold part if you please)  Wandering, and lost in his thoughts, there is a deep despair occupying the mind of this man. He is barely aware of his surroundings, except for those few moments when the loud blissful voices break through the protective barriers, developed by his immense sadness and grave frustration, into his mind. ”How can they all possibly be so happy?” he thinks to himself. Staring blindly, with his head low, as he walks in a slow pace, whispering ”Mary, Mary, my Mary,” over and over again. Yesterday was her funeral. She had passed away from a severe type of cancer, at a relatively young age. It was his wife. They had been together since high school and were greatly attached to each other. Having spent nearly half his life by her side, we cannot but imagine his grief. Indeed, he could hardly picture a life without her. So, alone he roams in the midst of all the seemingly incessant cheering and noises, drowned by his sorrow.  Her comments on that part was:  we is slightly out of place here – see my comment below These few sentences are about him and his emotions, so ‘we’ seems out of place. If the sentence starts: ‘Having spent nearly half his life by her side’, the reader expects it to continue: ‘he’. After all we have not spent half our lives by her side.  Is she right? If so, could anyone try to explain why?


From Edit Profile & Settings, we have below information  Hide Communities  Choose which communities will appear in the Communities and Top Network Posts sections of your profile Hiding a community means other users will not see it in your Communities list or Top Network Posts. It does not, however, mean your activity is private.   So it is clearly mentioned  Hiding a community means other users will not see it in your Communities list or Top Network Posts.  But, I could see the top network posts are taken from hidden communities for ex: I have marked 'Christianity' as a hidden community in . But, the top posts has a question taken from Christianity community ""


The new Win+0..9 shortcut seems good, but it only seems useful for the first few apps in the taskbar. Is it possible to make Windows prefix the icon with a number 1 to 9 ?


How do I add eclipse to my gnome shell favorites?

I run gnome shell 3.6 and Eclipse 4.2.  I installed Eclipse manually, in my /opt directory, because the Ubuntu package for Eclipse is very outdated.  I've created a .desktop file for it, and placed in in ~/.local/share/applications.  It looks like this:  [Desktop Entry] Type=Application Name=Eclipse Comment=Eclipse Integrated Development Environment Icon=/opt/eclipse-4.2.1/icon.xpm Exec=/opt/eclipse-4.2.1/eclipse Terminal=false Categories=Development;IDE;Java;   I can run Eclipse from the Activities menu; if I hit the super menu and type in "Eclipse" and run it, it starts just fine, and shows up in my launcher/sidebar/dock/whatever it's called.  But if I right-click on its icon, there is no "Add to favorites" option.  (I notice this is also the case if I run some very old programs, like xeyes and xcalc.  it's amazing these are still distributed!)    So what is it about a program that determines whether or not the "Add to favorites" option is available?  if I knew and understood that, maybe it'd set me on the right path to fixing this Eclipse problem.


Proof that $\sum_{i=1}^{\infty} \frac{1}{1+z^n}$ converges if $|z|\gt 1$ with $z$ complex.

The hint given is to compare it to a geometric series with $r=\frac{1}{|z|}$.  I'm trying to show that for some value of $N$ $$\frac{1}{|1+z^n|} \le \frac{1}{|z|^n}$$ whenever $n \ge N$.


We have a config file which consists of more than 24000 lines.  I am stuck in one task. I need to segregate the lines starting as below (service definition of specific host in icinga2)       Object Service "<host_name>"{   And ending with        }   Files consists multiple other entries as well  I need to filter specific hosts definition  alone.


Determine if all $n \times n$ matrices such that $AB = BA$ for a fixed $n \times n$ matrix $B$ form a subspace of $M_{nn}$

I don't know how to start this one. Can I show that $A$ is closed under addition and scalar multiplication by saying for following:  If $a, b \in \mathbb R$ and $A$ and $B$ are $n \times n$ matrices such that $AB = BA$ then $(aA + bB)B = aAB + bBB$  I'm not even sure this is legitimate what I have done so far. Some help starting would be appreciated.  Why in the duplicate question in the accepted answer does @Arturo say that you also need to show that there is at least one matrix such that $AB = BA$? I thought you only have to show closure under addition and scalar multiplication? As has @Samuel noted below also.


Is there any way that still works to run OS X apps on Ubuntu 14.04? If Darling still works, please tell me how to install it.  Thanks. :)


Clustering time-shifted sales time-series

I need to perform clustering and classification of time series of weekly sales of different products. My data are weekly sales of different products in differest areas (stores). The challenges on this problem are:  - Time-series are usually short: 10-52points(weeks).  - Time-series may have a lot of zeros - sparce data. Products do not sell every week.   - Not all products start to sell on the same date. This can result in time-shifted time-series. Even the same typical lifecycle of a product can be time-shifted in calendar along different stores.   - Sales may have noise such as random events, promotions etc.  A sample of data is like this:  20140105,prod1,store1,5 20140119,prod1,store1,10 20140126,prod1,store1,2 .... 20140105,prod1,store2,2 20140112,prod1,store2,3 .... 20140112,prod2,store3,4 20140126,prod2,store3,7  Can somebody share any insight on how to do this? Is it good to use a method such as DTW to compare time-series?If so, how am I going to handle the timeshifts? As for the implementation R seems a good way to go. Which packages would you recommend?


Is it possible to show two or more labels for one layer? For example - one label will show the name of a school and the 2nd label will show the number of students? They should be completely different labels. Editing one label (its buffer, font, background etc.) will not affect the other labels


Which is the most efficient way to level up my TI5 compendium?

I have bought my TI5 compendium, is there a way I can level up my compendium by playing games and still be able to reach 250+ levels?


we have 'apt-get', 'apt', and 'aptitude'. How can I know which/when to use?

I've checked reliable sources (i.e. man pages, --help, even apropos, which gives best command per the situation, but wound up eventually just confusing me further. So, I've tried other methods first, as suggested. So, when is it best to use 'apt-get', 'apt', or 'aptitude' and why/why not for this versus for that?  P.S.~ I listed no Distro because of the fact that this is, so far as I have seen, universal in *buntu, from 18.04 on, including 19.04 (disco) Kubuntu, Ubuntu, Ubuntu MATE, LXDE/LXQt&Lubuntu, and you get the point.


Is $\rm\det (A+B) = \det (A) + \det (B)$?

Is there a general rule for the determinant of the sum if we know the determinants? For example:  If $\rm \det A = 1$ and $\rm\det B = 2$ and there is $ \rm A+B$, is $\rm\det (A+B) = \det (A) + \det (B) = 3$ ? Thank you.


Show the fate of the suggested edit in the history tab

When going to , you see a list of suggested edits, like this (if you have 10k rep/a diamond, otherwise you only see what you reviewed):    It says 'suggested edit on XXXXX'. But it would be more useful if you could see the fate of the suggested edit there, instead, like it shows when you look at what someone suggested:    So then the /history tab would show something like this:    This would make it easier to see what the fate of the edit was, instead of counting reviews.   "Okay, this got... hmm.. one approve, one reject - where's the other review? - ah, here it is. Okay, that was rejected."


Proving that $x^2 + 4$ is not divisible by $3$

I need to show the following:  For any integer $x$, $x^2 + 4$ is not divisible by $3$.    I was trying proof by contraposition, but I do not believe that is the most efficient way to go about this.  Can anybody point me in the right direction, please?


Baking in electric oven with only top heating element and no fan

I've just moved in a house with an older electric oven. It only has a top heating element and doesn't have a fan. Every time I try to bake something it turns out burnt on the outside and under-cooked on the inside. I always put my cakes on the lowest rack and put a sheet of foil paper on a rack higher up to prevent the direct heat onto the cake, but I'm still having issues. Should I bake cakes at a lower temperature for longer? Should I wrap the cake in foil? Should I put a pizza stone at the bottom of the oven to try to generate heat from there? I'm not sure what to do, please help!


Projection, rotation and skew-symetry in N-dimensional space

Is it a true proposition that composition of a projection onto any $2$-dimensional plane $\epsilon_2$ and rotation by angle $\dfrac{\pi}{2}$ in this plane gives always skew-symmetric matrix independently from dimension of a space where projection is executed ? In the other words: if $ S = Proj_{\epsilon_2}Rot_{\epsilon_2}(\dfrac{\pi}{2})$,   then $S=-S^T$. How to prove it ? It is also equivalent to the statement that matrix made from vectors of the basis ${e_1 ~ e_2~ e_3~  ... e_n} $ projected onto 2-dimensional plane and rotated by $\dfrac{\pi}{2}$ is skew-symmetric. It is possible, I suppose, to use property of commutativity of projection and rotation proved earlier, but it might be only one step (probably decisive) towards  skew-symmetry. After 4 hours It seems I have worked out the proof. $Proj_{\epsilon_2}$ can be written as $aa^T+bb^T$ where $a$ , $b$ are defining orthogonal unit vectors for 2-dimensional plane. We have $ S^T = (Proj_{\epsilon_2}Rot_{\epsilon_2}(\dfrac{\pi}{2}))^T=(Rot_{\epsilon_2}(\dfrac{\pi}{2}))^TProj_{\epsilon_2}^T= (Rot_{\epsilon_2}(\dfrac{\pi}{2}))^{-1}(aa^T+bb^T)^T=(Rot_{\epsilon_2}(-\dfrac{\pi}{2}))(aa^T+bb^T)= -Rot_{\epsilon_2}(\dfrac{\pi}{2})Proj_{\epsilon_2}=-S$ As we see projection and rotation (simple rotation by ${\dfrac{\pi}{2}}$) give always skew-symmetric matrix. Opened NEW question is whether any skew-symmetric matrix (N-dimensional) can be decomposed to a projection matrix (up to the scale) and rotation (maybe not always simple one) in N-dimensional space. In 2-d and 3-d space it seems it is always possible. After 2  months  I still don't have an answer for the question above: is n-dimensional skew-symmetric matrix always decomposable into some rotation matrix and other, maybe projection or not ? (or maybe this property is limited only to 2 and 3 D?)


I am trying to make in LaTeX this probability tree:    I tried using the tikz package but I keep having some issues. This is the best I got so far (link: ):      \documentclass{article}      \usepackage{tikz}     \usetikzlibrary{trees}      \begin{document}     \pagestyle{empty}      \tikzstyle{level 1}=[level distance=3cm, sibling distance=3cm]     \tikzstyle{level 2}=[level distance=3.5cm, sibling distance=2cm]      \tikzstyle{bag} = [circle, minimum width=10pt, inner sep=2pt]     \tikzstyle{end} = [circle, minimum width=3pt, fill, inner sep=0pt]      \begin{tikzpicture}[grow=right, sloped]      \node[bag]{}     child {             node[bag] {O}                         child {                     node[end, label=right:{O}] {}                     edge from parent                     node[above] {}                     node[below]  {$1-\lambda$}                     child {                     node[end, label=right: {O ...}] {}                     edge from parent                     node[above] {}                     node[below]  {$1-\lambda$}                 }                 child {                     node[end, label=right: {S ...}] {}                     edge from parent                     node[above] {$\lambda$}                     node[below]  {}                 }                 }                 child {                     node[end, label=right: {S}] {}                     edge from parent                     node[above] {$\lambda$}                     node[below]  {}                 }                 edge from parent                  node[above] {}                 node[below]  {$1-\lambda$}         }         child {             node[bag] {S}                     child {                  edge from parent                     node[above] {1}                     node[below]  {}                     node[bag] {O'}                                child {                                     edge from parent                                     node[above] {$1$}                                     node[below] {$$}                                     edge from parent                     }                     }             edge from parent                          node[above] {$\lambda$}                 node[below]  {}         };       \end{tikzpicture}     \end{document}   As you can see, they are quite different, but I can't seem to be able to progress any further, would you be able to help me? I can't seem to realize what are the errors.  Best.


I made my published post as draft post. It is not showing it in the website blog, but, when i use its URL it is showing "Error 404 - Not Found". but what i want is to show the content of draft post when the URL is given in the browser.


Why are logarithms not defined for negatives bases?

Why isn't the operation $\log_{-2}( -8)$ defined if $(-2)^3 =-8$?


Side-effect on upgrading kernel from generic to low-latency?

I am using Ubuntu 14.04 in embedded  And I want to change Linux generic-kernel to Linux low-latency-kernel. But i think if i change the kernel, some programs already installed and devices(for example touch pad) may not work, and i have to build and re-install.  Current My Linux version is 3.10.17, So  How about changing to low-latency-kernel which is same version(3.10).  It could also have some side effect?    And additionally, is there any command to upgrade kernel to low-latency-kernel, like apt-get....  Actually i found 'deb' file to upgrade kernel to low-latency for version 3.16 but i couldn't find 3.10.


Installing a strong-tie post anchor on unlevel concrete

I'm building a short (3.5 ft) fence in my front yard. I have most of the posts sunk in dirt holes, but two of them will need to be mounted on a concrete slab. The problem is that the slab has a slight slope to it and the post brackets I have will cause the posts to not be completely vertical. These are  I bought. Is there something I can put under this bracket/anchor to make it sit level?


Can a website tell what device you're using?

If I were to visit a website on different occasions and from different IP addresses but from the same device, could a website potentially tell?  If so, would deleting cookies prevent this?


Probability the three points on a circle will be on the same semi-circle

Three points are chosen at random on a circle. What is the probability that they are on the same semi circle?  If I have two portions $x$ and $y$, then $x+y= \pi r$...if the projected angles are $c_1$ and $c_2$. then it will imply that $c_1+c_2=\pi$...I have assumed uniform distribtuion so that $f(c_1)=\frac{\pi}{2}$...to calculate $P(c_1+c_2= \pi)$ I have integrated $c_2$ from $0$ to $\pi-c_1$ and $c_1$ from $0$ to $\pi$..but not arriving at the answer of $\frac 3 4$


If Limit of function and derivative exist, then limit of derivative is 0

Any hints for this question ,  My attempt; Say $f(x):0$$\rightarrow$$\mathbb{R}$ The by MVT, there exists a $c$$\in$$(0,\infty)$ , such that; $f'(c)=$$\frac{f(x)-f(0)}{x-0}$ but im not sure about this step.. $\lim_{c \to +\infty}$$f'(c)$=$\lim_{x \to +\infty}$$\frac{f(x)-f(0)}{x-0}$ I am quite sure there is a mistake, any hints would be appreciated.         If $\lim_{x \to +\infty}$$f(x)$ exists and is finite and $\lim_{x \to +\infty}$$f'(x)=b$ then $b=0$.


Cannot use gedit on multiple remote machines using ssh

After setting up the last of my 5 remote machines, I decided to test that the network was working well by connecting to each and opening gedit.   To my dismay, when I tried to open gedit on the second machine, I was greeted with:  ** (gedit:1862): WARNING **; Could not connect: Connection refused  ** (gedit:1862): WARNING **; Could not connect to session bus   Closing gedit didn't help, but when I closed my ssh connection to the first remote machine, I was able to open gedit on the second. I decided to check if this was a problem with all X programs, but I was able to open xeyes on multiple remote machines.  My question is, why does remotely opening gedit on one machine prevent me from opening it on another until the first ssh session is closed? And is there a way to fix this or a workaround? I don't need to have multiple gedits open at once, but I'd least like to be able to not have to close the connection to one of the machines before I can open it on another.  My ssh_config is set up with 'ForwardX11' and 'ForwardX11Trusted' both set to yes, in case this is pertinent.  Update: I decided to try a few more programs, and found that while I can have nautilus open through ssh on multiple machines, I get a number of the connection refused warnings before it opens.