Suppose you are writing an academic paper. When referring to an author of a paper whose gender is unknown, what pronoun should you use? "He", "she", "he/she", "they", etc? Maybe you think this is a trivial question if you refer to the author only a few times. But what if you have to refer to the author 10 times or more?  Remark(Nov. 14, 2015) My question is different from  with respect to the following points.  1) You are writing an academic paper.  2) You have to refer to the author of a paper whose gender is unknown 10 times or more.

When communicating with foreign cultures, the gender of the addressed person is  not always clear from the name. What would be a professional way to address someone in this situation. (Dear Mr or Ms SomeForeignName looks awkward).  A hack I generally use is to do a google image search for the name, but this isn't always accurate in all cultures. What's the solution here?


The new line character \\ doesn't seem to work in TikZ which is strange and I am not able to understand why.    \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{arrows} \usetikzlibrary{backgrounds} \usetikzlibrary{fit} \tikzset{squarenode/.style = {     shape  = rectangle,     fill   = gray!50,     draw   = black,     thick,     minimum height = 1cm,     minimum width  = 1cm }}  \tikzset{circlenode/.style = {     shape  = circle,     fill   = blue!20,     draw   = blue,     thick,     minimum size = 1cm }}  \tikzset{help lines/.style=very thin} \tikzset{My Grid/.style={help lines,color=blue!50}}  \begin{document} \begin{tikzpicture}   [>=stealth']   %\draw[My Grid] (-5,-5) grid (15,15);   \node (r1) at (-4,4) [squarenode] {r1};   \node[right=4cm of r1] (r2) [squarenode] {r2};   \node[below=3cm of r1] (r3) [squarenode] {r3};   \node[right=4cm of r3] (r4) [squarenode] {r4};   \node[right=1.5cm of r1] (s2) [circlenode] {s2};   \node[above=1cm of s2] (s1) [circlenode] {}; %s1   \node[below=1cm of s2] (s3) [circlenode] {s3}; %s3   \node[above=1ex of s3,red] {$s \leq 3$};   \node[right=1.5cm of r3] (s4) [circlenode] {s4};   \node[below=1cm of s4] (s5) [circlenode] {}; %s5   \draw[fill=black] (s1.center) circle [radius=0.1cm];   \draw[fill=black] (s5.center) circle [radius=0.1cm];   \draw[->] (r1) -- (s2);   \draw[->] (s2) -- (r2);   \draw[->] (r3) -- (s4);   \draw[->] (s4) -- (r4);   \draw[->] (s1) to [out=180,in=90] (r1);   \draw[->] (r1) to [out=-90,in=180] (s3);   \draw[->] (s3) to [out=0,in=-90] (r2);   \draw[->] (r2) to [bend right=45] node[auto,swap] {2} (s1);   \draw[->] (r3) to [out=90,in=180] (s3);   \draw[->] (s3) to [out=0,in=90] (r4);   \draw[->] (r4) to [bend left=45] node[auto] {2} (s5);   \draw[->] (s5) to [bend left=45] (r3);   \begin{scope}[on background layer]     \node [fill=gray!15,rounded corners,fit=(s1) (s3) (s5) (r1) (r2)] (R1) {};   \end{scope}   \node[right=2ex of R1,midway] {replacement of\\    the \textcolor{red}{capacity}\\    by \textcolor{red}{two places}}; \end{tikzpicture} \begin{tikzpicture}[xshift=2cm]   \node (r1) at (-4,4) [squarenode] {r1};   \node[right=4cm of r1] (r2) [squarenode] {r2};   \node[below=3cm of r1] (r3) [squarenode] {r3};   \node[right=4cm of r3] (r4) [squarenode] {r4};   \node[right=1.5cm of r1] (s2) [circlenode] {s2};   \node[above=1cm of s2] (s1) [circlenode] {}; %s1   \node[below=1cm of s2] (s3) [circlenode] {s3}; %s3   \node[above=1ex of s3,red] {$s \leq 3$};   \node[right=1.5cm of r3] (s4) [circlenode] {s4};   \node[below=1cm of s4] (s5) [circlenode] {}; %s5   \draw[fill=black] (s1.center) circle [radius=0.1cm];   \draw[fill=black] (s5.center) circle [radius=0.1cm];   \draw[->] (r1) -- (s2);   \draw[->] (s2) -- (r2);   \draw[->] (r3) -- (s4);   \draw[->] (s4) -- (r4);   \draw[->] (s1) to [out=180,in=90] (r1);   \draw[->] (r1) to [out=-90,in=180] (s3);   \draw[->] (s3) to [out=0,in=-90] (r2);   \draw[->] (r2) to [bend right=45] node[auto,swap] {2} (s1);   \draw[->] (r3) to [out=90,in=180] (s3);   \draw[->] (s3) to [out=0,in=90] (r4);   \draw[->] (r4) to [bend left=45] node[auto] {2} (s5);   \draw[->] (s5) to [bend left=45] (r3);   \begin{scope}[on background layer]     \node [fill=gray!15,rounded corners,fit=(s1) (s3) (s5) (r1) (r2)] {};   \end{scope} \end{tikzpicture} \end{document}

How can I insert a line break in a TikZ node? Simply putting \\ where I want the break doesn't work (see MWE).  Is there a way to make lines break automatically at some specified width?  And can I control the alignment of the text (left, right, centered, justified)?  \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node {First line\\second line}; \end{tikzpicture} \end{document}


I am facing a problem with Meta Description. I have given a Meta Description but Google index & showing another page's Meta Description at SERP for my example.com main domain. Meta Title is right.  I also request to Google for re-index through Fetch as Google also but for some days no changes showed.   At this time is there any perfect solution. or Will I update again Meta Tags?

When you do a Google search, there is typically a snippet of sample content from the page. I seem to recall that the Meta Tags can influence this choice of descriptive sentences. Is that correct(?) and if so, is it the Meta Description Tag?  Also, how many characters is Google's descriptive sentences limited to?


first of all, I understand that it's better to have DDoS protections on data center level. But our DC is not ready to provide good quality of protection. So we thinking about using some  external DDoS protections service.   I have googled several, like (sorry can not post many links):   http ://blockdos.net/ http ://www.armoraid.com/ http ://www.blacklotus.net/ http ://ddosprotection.com/ http ://www.level3.com/index.cfm?pageID=555   The general idea, is that you are changing DNS to point on DDoS protection service. They filter traffic for you, and then redirect it to your backend. So, it adds some small time overhead, but let you site be alive even under DDoS.  But it's really easy to write something on site. My question is: do anybody have experience with such service? Is it really helping against DDoS?

This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


For some of my programs, the icons have vanished. This applies to both the pinned Start Menu items and the programs in their program folders as well.     Inkscape and IrfanView have both had their icons disappear. SVG and image files associated with the respective programs still show the right icons -- it's just the main .exes that don't have icons any more.   How do I restore them?

I have a program pinned to the taskbar. After I upgraded the program (I think) the icon broke. What I get now is what you see below; that ugly default application icon thing.    If I unpin it, I get the correct icon. If I then right-click on it, the icon breaks again. If I pin it again, still the broken icon. Unpin again and back to good icon. Very annoying. How can I fix this?


I am looking for the name of a book I read long ago.   spoilers ahead  The story was that some humans go to Mars for some experiment. They meet spheres of light which are the only physical remains of an earlier Martian specie. They are very intelligent and don't need a body and can communicate with the humans mentally. Later it is discovered they have a malicious intent.  Update  I read it 14 years ago. It was in English.   In the story, the humans we're in their spaceship (landed on Mars) most of the time and would occasionally go out of the spaceship on to the land for experiments. The intelligent lights invaded the minds of humans when they were relaxed and empty minded. Only one of the humans was able to survive for long. I am not sure if he succeeded to escape.

A while back, I read a story in a collection, but I don't remember very much. I know that it was about some missionaries on Mars. Eventually they found a bunch of spheres that apparently have escaped sin by leaving the material world. I don't remember anything else about it. Someone told me that it was in "The Martian Chronicles" by Ray Bradbury, but I checked my copy and couldn't find. I'm pretty sure that it was by Ray Bradbury though. Help would be greatly appreciated.


im new to coding, ive been learning code for about 2 weeks now and ive made decent progress.. Ive decide to build a mock up site to put to use what im learning and its going well, except i cant seem to place an image and text side by side with the text at the bottom.  Im new so im not entirely sure how to go about asking or explaining lol sorry..  My image is inside my paragraph...   p class="text"    img class="image" src="#.jpg"   /p (had to remove tags, it wasnt showing)  My text is floated Right in CSS and my image is floated Left..  Ive tried numerous things like vertical align and different methods but nothing seems to work, is there anyone that has any ideas? tips? thanks

Why won't vertical-align: middle work?  And yet, vertical-align: top does work.   span{   vertical-align: middle; }
      Doesn't work.


I got a pump with an head like this, and I use both the presta and the schraeder opening. The problem is that the automatic switching does not seem to work as well as it once did. It is pretty random where the air comes out, and most of the time it involves a lot of shaking and cursing before I can get my tires pumped up.  Can I fix this somehow? The pump was not cheap, and I would like to avoid getting a new one, though the hassle of getting air out of the correct hole is annoyinng.  This question is about a Pump Head, where the mechanism does work (air only comes out of one hole), but switches pretty randomly.   I want to get an answer if there is a solution without replacing the head, else i would order a new pump head.

I have just replaced an inner tube on the front tire, and discovered it had a presta valve.  My old floor pump is fitted for a Schrader valve.  I learned I could buy an adapter, however, I decided to buy a new floor pump with a dual nozzle.  I opened up the valve on the presta valve by screwing open the tiny nut.  I also used the small screw ring to lock down the valve on the rim.  I pushed on the side of the nozzle for the presta valve and locked it on with the lever.  As I pumped air was escaping out of the other nozzle for a Schrader valve.  I took it off and tried again pushing the nozzle down as far as it would go – about 1.5 cm, locked it down, and again found air escaping through the other nozzle.  Thinking the lever must be in the up position to push it down, I tried again.  This time the nozzle would not push down very far, and air was escaping through the other nozzle.  I'm sure I have the correct nozzle on the presta valve (It is a smaller opening).  I'm not sure what to do next, and I would welcome any insight.  Thank you.


I have an old savings account from old Shawnee Bank in Shawnee Kansas. It shows a balance in it from 1970. How do I find out if it still exists?

I was just going through old things and found a Wachovia account opened for me by my aunt - specifically, I found the checkbook and transaction record. The transaction book is dated April xx, 1998 and has one record in it: "Happy Birthday", $50 deposit, $50 balance.  I vaguely remember having discovered this a few years ago, calling Wachovia, and confusing the operator on the phone with an account number which was not their usual format - she couldn't even type it into the computer, it was too short or something. She supposed that they changed their account number scheme some years in the past. I must have just put it away, and now I rediscovered it and want to give it another shot.  I suppose I will call Wachovia and try again, but is there anything else I can do to try and access this account? I don't know anything about the savings account (interest rate, etc.), but I have this fantastical thought that maybe the $50 has grown into a hefty chunk of money by collecting interest over these 13 years it's just been sitting there. Or maybe it was emptied and closed due to some stupid bank fees. Either way, I'd like to know what happened to it.  Is there any special course of action for this kind of thing?  Also, the address on the account is of course WAY old. I was 8 years old at the time (which is why I didn't know what to do with this, I just put it in a drawer with the rest of my stuff) and I've moved several times since then. I guess the chances of being able to get anything from this are very slim, but I want to pursue it anyway.


Can you tell me please, which variant is better:        What do you think is the most serious problem in the world?      or,        What do you think the most serious problem in the world is?

We always change subject and verb positions in whenever we want to ask a question such as "What is your name?". But when it comes to statements like the following, which form is correct?        I don't understand what are you talking about.   I don't understand what you are talking about.      Another example        Do you know what time is it?   Do you know what time it is?      Another example        Do you care how do I feel about this?   Do you care how I feel about this?


How can one expand the function $f_1(x) = x$ on $(−π, π)$in terms of the functions $\cos nx, n = 0, 1, 2, ...$ and $\sin nx, n = 1, 2, ...,$ I read the below function - $$f_2(x) = a_0 + \sum_{n=1}^{\infty}(a_n \cos nx + b_n \sin nx)$$ is the expansion of the $f_1$, how is that? Main Question: Is $f_1$ equivalent to $f_2$ in some way? If so, plz provide a detail proof which is easily comprehensible. I have attached the excerpt below -

How can one expand the function $f_1(x) = x$ on $(−π, π)$in terms of the functions $\cos nx, n = 0, 1, 2, ...$ and $\sin nx, n = 1, 2, ...,$ in a way so that $$f_2(x) = a_0 + \sum_{n=1}^{\infty}(a_n \cos nx + b_n \sin nx)$$ is the expansion of the $f_1$, how is that? I have asked  related to the same issue but didn't get full answer, I have been told that this is a standard application of Fourier series, $f_1$ and $f_2$ are equivalent in the sense that $f_1(x)=f_2(x)$ for all $x∈(−π,π)$. For any $x$ in this interval, the Fourier series will converge to $f(x)$, but I didn't get any rigorous proof  with elaborate explanation. So, plz provide rigorous proof of $f_1=f_2$ with elaborate explanation as I am new to the subject. Thanks You. I have attached the excerpt below -


Below are the screenshots for the error I see on the console

Err http://archive.canonical.com natty InRelease     Err http://security.ubuntu.com oneiric-security InRelease                Err http://extras.ubuntu.com natty InRelease                             Err http://security.ubuntu.com oneiric-security Release.gpg   Temporary failure resolving ‘security.ubuntu.com’ Err http://archive.canonical.com natty Release.gpg   Temporary failure resolving ‘archive.canonical.com’ Err http://extras.ubuntu.com natty Release.gpg   Temporary failure resolving ‘extras.ubuntu.com’ Err http://gb.archive.ubuntu.com oneiric InRelease Err http://gb.archive.ubuntu.com oneiric-updates InRelease Err http://gb.archive.ubuntu.com natty-backports InRelease Err http://gb.archive.ubuntu.com oneiric Release.gpg   Temporary failure resolving ‘gb.archive.ubuntu.com’ Err http://gb.archive.ubuntu.com oneiric-updates Release.gpg   Temporary failure resolving ‘gb.archive.ubuntu.com’ Err http://gb.archive.ubuntu.com natty-backports Release.gpg   Temporary failure resolving ‘gb.archive.ubuntu.com’  Reading package lists... Done W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/InRelease       W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/InRelease   W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/InRelease   W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/InRelease   W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/InRelease   W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/InRelease   W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/Release.gpg  Temporary failure resolving ‘archive.canonical.com’ W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/Release.gpg  Temporary failure resolving ‘security.ubuntu.com’ W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/Release.gpg  Temporary failure resolving ‘extras.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Some index files failed to download. They have been ignored, or old ones used instead.   This is what I'm seeing when I try to run sudo apt-get update. I did an update on my instance yesterday and am now experiencing this.


Suppose the $X,Y \in \mathcal L^1(\Omega,\mathcal F,\mathbf P)$ and that $\mathbf E(X|Y)=Y$ a.s. and $\mathbf E(Y|X)=X$ a.s. Prove that $\mathbf P(X=Y)=1$.  It is an exercise in Probability with Martingales. Here is the hint in that book:  Consider $\mathbf E(X-Y;X>c,Y\le c)+\mathbf E(X-Y;X\le c,Y\le c)$.  However, I have no idea what this hint means. Below is my attempt: I suppose that $\mathbf P(X=Y)< 1$, and without loss of generality I suppose $\mathbf P(X>Y)>0$. So for some $\epsilon>0$, $\mathbf P(X-Y>\epsilon)>0$. Let $S:=(X-Y>\epsilon)$ be an event. Then integrate on $S$: $\int_S(X-Y) \text{d}\mathbf{P}>0$. By $\mathbf E(X|Y)=Y$ a.s. and $\mathbf E(Y|X)=X$ a.s., we have $\int_D(X-T)\text{d}\mathbf P=0$ for any $D\in \sigma(X)\cup \sigma(Y)$. But it is not guaranteed that $S\in\sigma(X)\cup \sigma(Y)$. So I am not clear how to continue my proof... Thanks in advance.

Assume that $X$ and $Y$ are two random variables such that $Y=E[X|Y]$ almost surely and $X= E[Y|X]$ almost surely. Prove that $X=Y$ almost surely.   The hint I was given is to evaluate: $$E[X-Y;X>a,Y\leq a] + E[X-Y;X\leq a,Y\leq a]$$  which I can write as: $$\int_A(X-Y)dP +\int_B(X-Y)dP$$ where $A=\{X>a, Y\leq a\}$ and $B=\{X\leq a,Y\leq a\}$.  But I need some more hints.


Why couldn't have Dumbledore keep Harry with himself? I know about the charm that was on harry due to Lily's sacrifice. But if Harry had lived with Dumbledore :   Dumbledore was an extraordinary talented wizard as compared to other Magical families who could adopt Harry. He could provide excellent protection to Harry. Imagine what the boy could have become. He could have been trained for what was waiting out there. Dumbledore knew that Voldemort was still alive and he also knew  the prophecy that it was Harry only who can kill Voldemort. So he could have trained harry from the beginning.    The answer on the basis of which this was marked duplicate only talks about protection. But Dumbledore could easily provide that along with some other benefits as the one I mentioned above. And of Harry getting arrogant, I am sure Dumbledore would have looked after that.

As we know, whenever school ends, Harry is sent back to live with the Dursleys, where he suffers from abuse. He would much prefer to live with the Weasleys, and often visits there before returning to school. It stands to reason that they probably don't live that far from each other, since:   Both Harry and the Weasleys use Platform 9¾ to get to school Ron was able to take Harry to the Burrow in a flying car within a reasonable amount of time   It's heavily hinted at that the Weasleys are poor. However, it's not like Harry would live there permanently. Three months isn't that bad, not to mention he's pretty well-off from his parents' money. There would be little to no extra expense on the Weasleys.  The only explanation is that Dumbledore goes out of his way to ensure Harry lives with the Dursleys. If so, why is this?


I'm parsing a text file into few dictionaries so that I can write them to a CSV file. But now I have comments in the text file. How do I ignore the comment lines and work with rest of the content? I have checked few posts which recommend Pandas read_csv but it  will work after I have a dataframe. I need to ignore the comments and read the rest content before parsing.  EDIT: I'm concerned with sql comments: -- and /* ....  */    Part of my code: (form is a grammar defined by me)  with open("xyz.txt", 'r') as file:               if re.search(r'select|SELECT', file.read()):             print("hello select")             a = form.parseString(open('xyz.txt').read());             z=a.asDict()   Text file:  /*this is a multi line comment which  needs to be ignored */ select book from tab where b=100 --single line comment which should be ignored select sal from emp where job_id=101   I tried using startswith(#) for single line comment but the code kept on running and no result..and I have no idea for multi line comments.  with open("xyz.txt", 'r') as file:       for line in file:             li=line.strip()             if not li.startswith("#"):                 new=line.rstrip()       while new:                 if re.search(r'select|SELECT', file.read()):             print("hello select")             a = form.parseString(open('xyz.txt').read());             z=a.asDict()

I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C source file.)  I realize that I could .match() substrings with a Regex, but that doesn't solve nesting /*, or having a // inside a /* */.  Ideally, I would prefer a non-naive implementation that properly handles awkward cases.


I am not native English speaker. May I ask you a question. I want to make an appointment with my friend at one particular end of a street. In my language we use two words to differentiate the two ends of a street, translated into English as "the head of the street" and the "tail of the street". What words do you use? Thank you.

Is there a word for the beginning of a street? What word would be used to describe where a street begins? I have a friend who says that in Persian, it's described as the "head" of the street, but I can't think of how it would be described in English. Does anyone know?


I'm trying to print values from the database, containing countrylist. One of the fields in this database is cyrilic. My PHP script looks like this:  include_once("db.php");  $query = mysql_query ("SELECT * FROM country"); $row = mysql_fetch_array($query);  do {     $id = strtolower($row["id"]);     $value = ($row["runame"]);     echo $id . " " . $value . '<br/>'; } while ($row = mysql_fetch_array ($query));   The output from this script looks like this:  ad ??????? ae ???????????? ???????? ??????? af ?????????? ag ??????? ? ??????? ai ????????   So, apparently I need to set UTF-8 for this PHP script... somehow... Does anyone know how to do this? Thank you for your time!

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


For what values of $p$ is the series $\sum{\frac{1}{n(\log(n))^p}}$ divergent and for what values it is convergent?

We all know that $\displaystyle \sum_{n=1}^{\infty} \frac{1}{n^s}$ converges for $s>1$ and diverges for $s \leq 1$ (Assume $s \in \mathbb{R}$).  I was curious to see till what extent I can push the denominator so that it will still diverges.  So I took $\displaystyle \sum_{n=2}^{\infty} \frac{1}{n\log n}$ and found that it still diverges. (This can be checked by using the well known test that if we have a monotone decreasing sequence, then $\displaystyle \sum_{n=2}^{\infty} a_n$ converges iff $\displaystyle \sum_{n=2}^{\infty} 2^na_{2^n}$ converges).  No surprises here. I expected it to diverge since $\log n$ grows slowly than any power of $n$.   However, when I take $\displaystyle \sum_{n=2}^{\infty} \frac{1}{n(\log n)^s}$, I find that it converges $\forall s>1$.  (By the same argument as previous).   This doesn't make sense to me though.   If this were to converge, then I should be able to find a $s_1 > 1$ such that  $\displaystyle \sum_{n=2}^{\infty} \frac{1}{n^{s_1}}$ is greater than $\displaystyle \sum_{n=2}^{\infty} \frac{1}{n (\log n)^s}$  Doesn't this mean that in some sense $\log n$ grows faster than a power of $n$?   (or)  How should I make sense of (or) interpret this result?  (I am assuming that my convergence and divergence conclusions are right).


I just recently answered a question related to how much water was filled in a glass. I answered "two thirds" but the answer was wrong because in the key answer book it was "two-thirds". Please tell me if my answer is wrong and why?

Is there a difference between a written-out fraction that serves as a noun:     He gave me one half of his sandwich.   and a written-out fraction serving as an adjective:     I gave her a one-half share of my cookie.   I say a fraction serving as a modifier should be hyphenated as a phrasal adjective. A fraction serving as a noun should not. But everyone I work with hyphenates fractions no matter what their part of speech.


I am looking for an example of a metric that is topologically equivalent but not lipschitz equivalent. Can you help me? I would be very happy if you can give such an example. I thought a lot but could not find it, it is difficult to produce an example. I wish you good work. That is, $d$ and $d'$ will be topologically equivalent, but lipschitz will not meet the equivalence condition. Lipschitz equivalent metric: Let $(X,d)$,$(X,d')$ be metric spaces.$\forall x,y\in X$ ve $\exists r,s\in \mathbb{R^+}$, $r d(x,y)\leq d'(x,y)\leq s d(x,y)$

I have studied following definitions of equivalent metric spaces.  Two metrics on a set $X$ are said to be equivalent if and only if they induce the same topology on $X$.   1:  Two metrices $d_1$ and $d_2$ in metric space $X$ are equivalent if $d_1(x_n,x_0)\rightarrow 0 $ iff $d_2(x_n,x_0)\rightarrow 0 $.  2: We say that d1 and d2 are equivalent iff there exist positive constants $c$ and $C$ such that $c d_1(x, y)\leq d_2(x, y)\leq Cd_1(x, y)$ for all $x, y \in X$.  My questions are as follows:  Is there any other definition of equivalent metrics? I need a proof of how these conditions are equivalent?  Is there any connection between homeomorphism and equivalence of metric spaces?  What are the common properties shared by equivalent metric spaces?  I am very much confused with this. Quite often I found myself struggling with what definition  should I apply to show the equivalence of given metric spaces. I need help to clear my doubts.  Thanks a lot for helping me


i want find the answer and method of solve of $\int\frac{1}{1+x^4}dx$.  I know $$\int\frac{1}{a^2+x^2}dx=\frac{1}{a}\arctan\frac{x}{a}+C$$,  How I can use this to solve of that integration.

Noticed that the integral $$\int_0^\infty \frac{1}{x^n+1} dx$$ is often approached with partial fraction decomposition, but this gets increasingly ugly as $n$ gets bigger.  Is there a neat trick to do these all in one fell swoop? Or a famous name for these integrals that I can look up for more info?


This is how I get the value of the selected column in a gridview in my code behind(C#)     str += "'" + MyGridview.DataKeys[gvrow.RowIndex].Value.ToString() + "',";   This is the value of str  str='7','101','235','456'   My output here is correct.  My problem is i got error when i pass this value on stored procedure parameter.  This is the way I pass this value to my stored procedure;  : some other parameter here cmD.Parameters.AddWithValue("@Rec",str);   And on my stored procedure this is how i get this  Declare @Rec AS NVARCHAR(MAX)  Select col1,col2 where Record_no in ('' + @Rec + '')    My error is  Conversion failed when converting the nvarchar value

How do I parameterize a query containing an IN clause with a variable number of arguments, like this one?  SELECT * FROM Tags  WHERE Name IN ('ruby','rails','scruffy','rubyonrails') ORDER BY Count DESC   In this query, the number of arguments could be anywhere from 1 to 5.  I would prefer not to use a dedicated stored procedure for this (or XML), but if there is some elegant way specific to , I am open to that.


I want a batch file to open CMD and run "net stop audiosrv", then "net start audiosrv", then kill CMD. I am having problems with a bunch of things including   It's not waiting It is opening a new CMD It's not closing   Here is the code I wrote myself. I've never done any coding before and got this from what I did now/combining it with other things I've seen on here.  start cmd.exe /k "net stop audiosrv"  wait 10  start cmd.exe /k "net start audiosrv"      TASKKILL /IM cmd.exe   I don't really think it matters but I'm running Windows 7 Ultimate Service Pack 1 - 64 bit

Is there a way to restart a Windows service from the command prompt?


I can find the length of the post's HTML-converted source (len(Posts.body)) in data.SE.  Is there a way — short of copy/pasting from actual SE page — to find out the textual length of the rendered post, sans markup? Preferably via data.SE.

I was trying to find a longest answer on a site, and ran into a weird discrepancy:  shows that  has a length of 36388 (length in the query is defined as LEN(Posts.Body)) Yet, the post clearly only has ~26000 characters, as measured 2 ways:  Copy/pasting full text of the answer in my text editor gives me 26040 characters (the source of the answer with all the markdown, not the rendered text which is even smaller).  Trying to post a new answer that consists of this answer's text twice gives me an error "Body is limited to 30000 characters; you entered 52258" - meaning that the length is under 26100 (not 100% sure where the difference in counts comes from as far as two methods)   Another example from same query:  shows len(body) of 33738 whereas the text of the answer has only 29000 characters. This clearly isn't showing rendered characters, as the rendered character count is LOWER than actual answer text when editing (e.g. links add characters, as do images). How can this data.SE discrepancy be explained?


I know that there are formulas for the first n squares,cubes,..., but is there a formula for the first n powers of a single non-integer?  For example,  $$\sum_{i=0}^{n}1.1^i$$  Does a formulas to compute this sum exist or do i have to manually go in and find each power?

Why does the following hold:  \begin{equation*} \displaystyle \sum\limits_{n=0}^{\infty} 0.7^n=\frac{1}{1-0.7} = 10/3\quad ? \end{equation*}  Can we generalize the above to      $\displaystyle \sum_{n=0}^{\infty} x^n = \frac{1}{1-x}$ ?   Are there some values of $x$ for which the above formula is invalid?  What about if we take only a finite number of terms? Is there a simpler formula?     $\displaystyle \sum_{n=0}^{N} x^n$   Is there a name for such a sequence?    This is being repurposed in an effort to cut down on duplicates, see here: Coping with  duplicate questions.  and here: .


I have the following question :     Proof : $\mathbb{Z}_2 \oplus  \mathbb{Z}_6 \not \cong \mathbb{Z}_{12}$   The problem is that I think that  $\mathbb{Z}_2 \oplus  \mathbb{Z}_6 \cong \mathbb{Z}_{12}$. I don't understand why is the following not an injective and surjective function:  $$f:\mathbb{Z}_{12} \rightarrow \mathbb{Z}_2 \oplus  \mathbb{Z}_6$$ for all $a\in \mathbb{Z}_{12}$ so that $f(a)=(a \mod 2,a \mod 6)$.  I'm not really sure how to approach such questions, in general when asked proof/disproof $\mathbb{Z}_x \oplus  \mathbb{Z}_y \cong \mathbb{Z}_{xy}$, Any tips? Any ideas?  Thank you!

Let $m,n$ be positive integers bigger than $1$. Show that $\mathbb{Z}_m \times \mathbb Z_n$ is cyclic if and only if $\gcd(m,n)=1$.    I have no idea on how to start. Anyone hints are much helpful.


I am trying to set a wake/sleep cycle for my raspberry...  What I am trying to do is to wake it at ~ 6 am so that I can do some operations as I am about to wake up and to set it to hibernate once I am going to sleep at 22 pm.  While I know it's possible to hibernate at a specific hour I am not 100% sure how to wake it at a specific hour... or after x hours... does anyone know how to do this?  Edit: I am using ubuntu mate

How can I hibernate or sleep my Ubuntu 10.10 desktop and have it "wake up" the next day?  I have seen software that can do this on windows, so it can't be hard on Ubuntu!


How can I get base interface of an interface by reflection? I have tried to call BaseType propery, but value of It is null. After that I need to find generic type class of interface.  I need to find Foo type from the type of ISomeInterfaceForItem on this sample.  Type oType = typeof(ISomeInterfaceForItem);  Type oBase = oType.BaseType; // equals null  public interface ISomeInterfaceForItem: ISomeInterface<Foo> {         }  public interface ISomeInterface<T> { }

public interface IBar {}  public interface IFoo : IBar {}  typeof(IFoo).BaseType == null   How can I get IBar?


I have a set of 9000 outcomes and I wish to make an estimate (with 95% confidence interval) of the amount of 'positive' examples. After viewing 413 examples I found 13 positives (positive rate of 13/413 = 0.0315). With a cumulative binomial distribution I can make an estimate of the total positives with a 95% confidence interval.  However, the calculated positive rate is based on a small sample and addition of another single positive example can shift the 95% confidence interval by a large amount. How can I incorporate the size of my sample into the estimate so it is more robust?  My matlab code:  N_found = 14; N_excl = 400; N_tot=9000; binoinv([0.05 0.95],N_tot-N_found-N_excl,N_found/(N_found+N_excl))+N_found

I have a random sample of Bernoulli random variables $X_1 ... X_N$, where $X_i$ are i.i.d. r.v. and $P(X_i = 1) = p$, and $p$ is an unknown parameter.  Obviously, one can find an estimate for $p$: $\hat{p}:=(X_1+\dots+X_N)/N$.  My question is how can I build a confidence interval for $p$?


Recently, I'm learning about JSON, using Google's Gson. And I come across a problem. Here is code:  Type type = new TypeToken<Collection<Data>>(){}.getType();   I can't understand what {} really mean.So I read source code, and get class description like: Constructs a new type literal. Derives represented class from type parameter... Clients create an empty anonymous subclass. anonymous subclass really make me confused? Can anyone explain it concretely?

What is the use of anonymous classes in Java? Can we say that usage of anonymous class is one of the advantages of Java?


Is there a way to automatically turn on the hotspot when my samsung tab e starts up?

Is there some way to autostart the mobile hotspot once turning on the smartphone?  We have an external device relying on a mobile hotspot. We need some way to always run mobile hotspot when the phone is alive.


I am working on reviewing legacy test cases at the moment.   There is a shuffle feature,   Items are given in a default order Items are shuffled in a different order every time they are loaded into a web browser; it is possible for items to be given in the default order too.   Currently, I am testing this shuffle feature by   Remember the default order, default_order Load the items for the first time, remember the order, first_shuffled_order Load the items for the second time, remember the order, second_shuffled_order Compare default_order, first_shuffled_order and second_shuffled_order, each item should be present and at least one item order should be different.   But there is a chance for this test case to trigger a false failure, e.g. the default order is triggered twice in a row, then the test will fail.  Is there a better way to do this?    We can introduce more shuffling but it is still possible for this testing logic to trigger a false failure.

I have a program which generates random numbers. How can I test if the random number generator is generating actual random numbers?


The idea of the speed of light being as fast as something can go is pretty well accepted. I'm wondering if the top speed might be (very slightly) higher? Lemme explain.  I was reading about particle acceleration, and how accelerating a particle to the speed of light would require infinite energy.  , the LHC is getting particles up to 0.999999991 c. For someone such as myself, I might as well consider that the speed of light. I mean, it's so close, right?  So what if in a similar vein, the speed of light is very, very close to the absolute top speed? Is that possible?   If the speed of light in a vacuum was something like 0.9999999999999999999999999999999999 to the absolute top speed in the universe, would we ever know the difference? (this number is just an example to show how the speed of light could be imperceptibly close to the absolute top speed, and yet still not be the fastest speed possible).

This question has been touched tangentially by  and  but I do not think they reach the core of my question.  When I read that many other theories, e.g. the Standard Model, have been constructed to be Lorentz invariant it appears that electromagnetism has some of preponderant role in the universe compared to other theories. I suspect that the answer is that this is not the case, and that the space-time Speed of Light (with upper-case) is really more of a universal constant that is not necessarily related to the speed of the electromagnetic waves or of photons.  There are many other related questions:    would it really be devastating for relativity that we find out in the future that photons have a tiny mass and move slower than ... uhh... the speed of light? which "c" is applicable in different situations? I mean, possibly the space-time constant should be used in $E=mc^2\gamma$, it would be the  velocity of gravitational waves, etc..., but in other situations such as the Bohr radius or Compton wavelength I am not sure.   Well, any answer will be appreciated. Please tell me if you know any reference to bibliography that address this issue.


I want the first column of a table in PLSQL to be auto-increment.That column will be the primary key for that table. I heard something called serialize but i didn't get proper description about that. i was working in SQL Server. I am new to Oracle(PLSQL). Please help me to find out a proper solution.

What are the other ways of achieving auto-increment in oracle other than use of triggers?


I was studying uniform convergence of sequence and series. I encounter this problem. Trying to find an example. Any help will be appreciated. The domain of the function can be any closed interval. For example, [0,1] will suffice.  I am looking for an example to show that the conditions of the following theorems are necessary but not sufficient:  Let $f_n\colon [a,b]\rightarrow \mathbb{R}$ be a sequence of differentiable functions on $[a,b]$, and let $f_n\rightarrow f$ pointwise on $[a,b]$. If $f_n^{\prime}\rightarrow g$ uniformly on $[a,b]$, then $f$ is differentiable on $[a,b]$ and $f^{\prime} = g$.

Question:     Find a sequence of differentiable functions $f_n$ on $\mathbb{R}$ that converge uniformly to a differentiable function $f$, such that $f'_n$ converges pointwise but not uniformly to $f'$.   Attempt:  I have tried a number of possibilities, such as $f_n=x^n$ or $f_n=\frac{x^n}{n}$ but I don't know what the right approach is to construct the function. I am initially thinking that it's easiest to construct such a sequence of functions on the interval $[0,1]$ so that in the limit of $n$, part of the function goes to $0$ and the other part goes to $1$. However, this would make the resulting $f$ non-differentiable.


When I toggle x-ray in Edit mode, only the orthographic views toggle. The perspective view constantly shows xray and it is super annoying. I see face handles (the square to select them) as well as edges and vertices through the faces just as if xray was on, but it's not.  How can I turn it off so that while in Edit Mode, and with Solid display mode selected, I don't see through things as if xray mode is on? Thanks]  Left: In Edit Mode Right: In Object Mode Basically I don't want to see the edges and face handles through the faces in front of them.

I have recently started using blender and one of the models I'm working on has dark shadows along edges. I started this model from scratch. I can't remember them being there when I first started the model, but I had trouble joining areas together and think I've pressed something I shouldn't have. However, there are so many options I'm not sure what I did.  Here is an image of what I mean   The one on the left has the shadow. As a test I started a new model, which is on the right in the image, and as you can see it doesn't have any shadows.  Also, occluded vertices partially show through the model. Occlusion doesn't work properly.   In orthogonal view small darkened triangles appear along the the edges.    I don't really want to start the model again from scratch so any ideas on how to remove this shadow would be great. Thanks.


So this may sound like a weird question because it is. But I want to know if it would be possible for the Flash (Barry Allen or Wally West) could get an STD and if he does get an STD (specifically HIV) would he be able to burn it off by making his immune system run at super speed or something, I know there are different iterations and I don't really want to site a specific one, but for this question let's assume that the Flash's bodily functions are always running faster then normal. Kind of like how in some shows he needs to constantly eat since he burns through food quickly. Thanks is advance.

Can the Flash do things like build muscle faster than normal (do his muscles grow right after a work-out or meal)? Can he heal faster than normal? Does he have a faster immune system to stop all illness or at least make the flu last 2 minutes or something along those lines?


I'm looking at the following problem:  Prove that for a positive integer $n$, $$\tau(n) \leq 2 \sqrt{n}$$ where $\tau(n)$ is the number of divisors of $n$.  So my idea was to split the set of the number of divisors of $n$ into two subsets: One subset containing the divisors those less than $\sqrt{n}$ and the other subset containing the divisors larger than $\sqrt{n}$ and argue that there must be at most $\sqrt{n}$ in each subset. But I simply can't seem to find that argument! Can you help?

In Waclaw Sierpinski's book Elementary Theory of Numbers on page 168 there is the following exercise:  "Exercises. 1. Prove that for natural numbers $n$ we have $d(n) \leq 2\sqrt{n}$," where $d(n)$ is the number of divisors of n.  As a hint right below is given: "The proof follows from the fact that of two complementary divisors of a natural number $n$ one is always not greater than $\sqrt{n}$.  I understand the hint but I don't know how it can be used to prove $d(n)\leq 2\sqrt{n}$.  Complementary divisors are pairs of divisors that when multiplied gives the number that is to be divided. For example the number $120$ has the complementary divisors: \begin{align*} & 1, 120 \\ & 2, 60 \\ & 3, 40 \\ & 4, 30 \\ & 5, 24 \\ & 6, 20 \\ & 8, 15 \\ & 10, 12 \\ \end{align*} How do you prove that $d(n) \leq 2\sqrt{n}$?


I'm still new to this, I have a transparent image for this mesh, but it makes the transparent parts black, any help?   only appears transparent in texture paint though I don't get it

I added two planes in Cycles with Image Texture in png with some transparency. I covered one by the other but transparency doesn't work, I mean it is impossible to see the one which is under despite transparency in the one which is above. What could be the problem?


My issues is that I've some how managed to get duplicate icons (picture below) and some older icons. When I click on the duplicate / old icons it just takes me to the system settings. This is driving me mad, is there any way I can remove them without having to reinstall?

After upgrading to Ubuntu 14.04 from 12.04 I have duplicate entries in dash.    How can I get rid of them?


I have to Show $f:(-1,1) \to \mathbb{R} ;\quad f(x)=\frac{x}{1-|x|}$ is a homeomorphism from (-1,1) to $\mathbb{R}$   I am considering a function to be a homeomorphism if it is continuous, has an inverse and this inverse is also continuous.  So firstly I argued $f$ is continuous at $(-1,1)$ since both $(x) \quad \& \quad \ (1-|x|)$ are continuous there. Also, I should add that $(1-|x|)$ is never 0 at $(-1,1)$.  So here comes my first problem: I wanted to show that $f$ is an injection because than I could use a theorem which states:  if $f$ is a continuous injection from any interval to $\mathbb{R}$, then its inverse is also continuous.   The thing is, I can't manage to prove $f$ is an injection. I've tried to show that $\frac{x}{1-|x|}=\frac{y}{1-|y|} \Rightarrow x=y $ but I couldn't isolate things properly, I guess.  Any help would be appreciated. Also, this was the only way I could think to solve the problem. If you have any other method, feel free to share :)

let   $g(x) = \frac{x}{1-|x|}$ for all $x \in (-1,1)$  a) show that $g$ is a bijection from $(-1,1)$ to $\mathbb{R}$  Here is what I have done.  Say $g(x)=y$ so $$y = \frac{x}{1-|x|}$$ iff $$y(1-|x|)=x$$ Therefore, for each y, there exists an x such that $f(x)=y).  So $f$ is a surjection.  Suppose $g(x)= g(z)$ for some $x,z \in (-1,1)$, then  $$\frac{x}{1-|x|}=\frac{z}{1-|z|}$$ iff $$x-z=x|z|-z|x|$$  Then there are four cases, one $x,z>0$ and $x,z<0$ where obviously $x=z$, but for the other two cases, I am only concerned with figuring out one, because obviously the other one follows, but I have gotten to the point where  $$x-z=x(2z)$$ for $x>0$, $y<0$. Am I correct thus far? Where do I go next?  Thank you for any help.


Suppose $u$ and $v$ are continuous on $[a,b]$ and differentiable on $(a,b)$, and assume that for all $t\in(a,b)$, at least one of $u'(t)$ and $v'(t)$ is nonzero. Let $C$ be the curve given by $(u(t),v(t))$ for $t \in [a,b]$. Let $A = (u(a),v(a))$ and $B = (u(b),v(b))$ be the endpoints of the curve, and assume $A\ne B$. Show that there is some point $c \in (a,b)$ such that the tangent line to $C$ at $(u(c),v(c))$ is parallel to $\overline{AB}$.  I've been stuck on this question for a while now without any idea on how to get started. Any whatsoever help is appreciated!

I know and understand the mean value theorem. But at the moment I don't have the intuition to understand the generalized mean value theorem     If $f$ and $g$ are continuous on the closed interval $[a,b]$ and differentiable on the open interval $(a,b)$, then there exists a point $c\in(a,b)$ where$$[f(b)-f(a)]g'(c)=[g(b)-g(a)]f'(c).$$If $g'$ is never zero on $(a,b)$, then the conclusion can be stated as$$\frac{f'(c)}{g'(c)}=\frac{f(b)-f(a)}{g(b)-g(a)}.$$   What is the intuition? And how can you prove this (generally) ?


According to javadoc, createStatement() method creates a Statement instance for sending SQL statements to the database.  Now Statement is an interface under java.sql package and my understanding is that it is not possible to create an instance of an interface in Java.  Then how is it working? In source I found this, only I don't understand.  /**  * Creates a Statement object for sending  * SQL statements to the database.  * SQL statements without parameters are normally  * executed using Statement objects. If the same SQL statement  * is executed many times, it may be more efficient to use a  * PreparedStatement object.  *
  * Result sets created using the returned Statement  * object will by default be type TYPE_FORWARD_ONLY  * and have a concurrency level of CONCUR_READ_ONLY.  * The holdability of the created result sets can be determined by  * calling {@link #getHoldability}.  *  * @return a new default Statement object  * @exception SQLException if a database access error occurs  * or this method is called on a closed connection  */ Statement createStatement() throws SQLException;

I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this?   I know what interfaces do, but the fact I am not clear on this makes me think I am missing out on using them correctly.   Is it just so if you were to do:  IInterface classRef = new ObjectWhatever()   You could use any class that implements IInterface? When would you need to do that? The only thing I can think of is if you have a method and you are unsure of what object will be passed except for it implementing IInterface. I cannot think how often you would need to do that.   Also, how could you write a method that takes in an object that implements an interface? Is that possible?


import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement;  import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;  @WebServlet(name = "SimpleServlet", urlPatterns = { "/SimpleServlet" }) public class SimpleServlet extends HttpServlet {      private static final long serialVersionUID = 1L;      public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {          response.setContentType("text/html");         PrintWriter out = response.getWriter();          String username = request.getParameter("username").toString();         String password = request.getParameter("password").toString();         String repassword = request.getParameter("repassword").toString();         String ph = request.getParameter("phone").toString();         double phone = Double.parseDouble(ph);          String address = request.getParameter("address").toString();          int status = register(username, password, repassword, phone, address);          if (status > 0) {              RequestDispatcher rd = request.getRequestDispatcher("Register_success.jsp");             rd.include(request, response);         } else {             RequestDispatcher rd = request.getRequestDispatcher("Register_fail.jsp");             rd.include(request, response);         }          out.close();     }      static int status = 0;      @SuppressWarnings("null")     public static int register(String username, String password, String repassword, double phone, String address) {          PreparedStatement ps;         Connection con;         con = GetCon.getCon();         try {             Statement st = con.createStatement();             ResultSet rs = st.executeQuery("SELECT username FROM newuser where username='" + username + "'");              while(rs.next())             if (rs.getString("username").equalsIgnoreCase(username)) {                 System.out.println(username);                 HttpServletResponse response = null;                 response.sendRedirect("UserAlreadyExist.jsp");             } else {                  ps = con.prepareStatement("Insert into newuser values(?,?,?,?,?)");                 ps.setString(1, username);                 ps.setString(2, password);                 ps.setString(3, repassword);                 ps.setDouble(4, phone);                 ps.setString(5, address);                  status = ps.executeUpdate();             }         } catch (SQLException e) {              e.printStackTrace();         } catch (IOException e) {              e.printStackTrace();         }         return status;      } }   Hello,    I have a problem with executing above code. When we enter existing username it throw an NullPointerException. Please someone help me to find error. The code work fine with new username but not with existing.  Thank You !

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I want to know how an animated object moving on a plane could leave a mark on it. In the exact way shown in this video  from 1:37 to 1:45 I need to explain how a cleaner product cleans the floor. I want to show the area where the machine is cleaning. I want to mark the floor where the machine passed through. How I can do it? In post-production for sure, but if possible (and if it's convenient) I want to avoid other softwares. I would do it on Blender. Thanks

The question itself is really simple: How can I make the sphere draw a line?    The only idea I had was to use a particle system to create a trail of particles behind the sphere. This didn't work since I wasn't able to make the particles stay in place. I didn't find anything by using google so I hope someone can help me here.


I booked four SpiceJet tickets for my return journey Goa to Hyderabad for 15th Dec 2014.  That day at 9:45 AM I got an SMS "flight cancelled and call us for reschedule". Everybody knows that SpiceJet people never pick up and talk to customers. So I couldn't reschedule. I booked a bus and came back to Hyderabad along with my family, travelling the whole night with lots of pain with my little kids. SpiceJet spoiled our vacation joy.  Now on the SpiceJet site they don't mention anything about a refund.    Do I get my ticket money refunded? Do I need to do any thing for that? Will they automatically process a full refund to my card/account? Can I put a case in a consumer forum for the inconvenience/pain caused?

I booked a SpiceJet flight from Dubai to Ahmedabad on Dec 16 (SG-16) scheduled to depart at 7:25 PM. At noon I received an SMS from SpiceJet to advise me that my flight has been delayed by 4h 50m. Sure enough, when I checked flight status on SpiceJet's website, that was the case. But on other websites like flightstats.com and dubaiairports.ae, the status was that flight was "delayed by 2h 25m".    At 5 PM, I got an SMS that flight had been cancelled. I double checked on Spicejet's website and that too showed the flight to be cancelled. But both flightstats.com and dubaiairports.ae still showed the flight as delayed by 2h 25m.    I went to the airport and met SpiceJet officials. Sure enough, the flight was cancelled. But somehow, the flight cancellation status never made it to the system. I have a Tripit Pro account, and even that never sent me an alert for that. I contacted the travel agent through which I booked my flight (makemytrip) for a refund, and they said that their system doesn't show that flight was cancelled. Now, even the Spicejet website has removed the cancellation status from that flight.    Apart from the SMS, I now have no proof that my flight was cancelled.    Can someone tell me, how can I proceed with a refund claim?


Yesterday I posted a question on the Mathematics Stack exchange.  I received some answers to which I added a comment, trying to apply an @ tag for the user that wrote the answer.  However, when I usually do this, a popup box for auto-completion usually comes up.  This time it didn't, but I continued to type the full name out anyway and posted the comment.  But, the @ tag was removed from the published comment.  This has worked before in the past, why is it not working now?  Additional info:   I always put the tag first before writing anything else It has worked in the past I have tried multiple tests with other posts, using other names.  That is, it is persistent and reproducible I have closed down my browser, tried different browsers, indeed different devices!  Same result.

I just posted a comment beginning with @username, and my @username part of the comment disappeared (it was the first word in the comment).  Is there a lolcat inside the Stack Exchange database nomming on notifications? May I suggest you feed it?    P.S. I'm guessing this is a brand spanking new feature, but I can see this coming up a lot


I've done very little print work before and now that I'm in need of some product labels, I've come across 5-10 color printing. The local shops haven't been very helpful. How is it different from regular CMYK? Or is it a different process entirely?

When my print rep talks about five-colour printing, what does he mean? I know you have cyan, magenta, yellow and black - but what's the fifth?


Given a positive integer $n$. How to find a Galois extension $K/F$ such that $Gal(K/F)=S_n$?  With the restriction $F=\mathbb{Q}$, this is the . But if we are allowed to choose $F$ and $K$, I suspect there is a simpler example.

Given a field $F$, can you necessarily construct a field extension $E \supset F$ such that $\operatorname{Gal}(E/F) = S_n\,$?


This question is different from all the similar questions on this site. In this Question I ask for the proof or reference for proof of the following problem

The following is exercise 8 (section 2.6) in Algebra by Hungerford:     Let $p$ be an odd prime. Prove that there are at most two nonabelian groups of order $p^3$. (One has generators $a,b$ satisying $|a| = p^2; |b|=p;b^{-1}ab = a^{1+p}$ and the other has generators $a,b,c$ satisfying $|a|=|b| = |c|= p;c = a^{-1}b^{-1}ab;ca=ac;cb=bc$)   I realize that there are many links online classifying groups of order $p^3$. However, most of the solutions I have seen have required several pages of work.  Since this is just an exercise, I suspect there is a shorter solution. I have come up with the following:  We know that $Z(G) = p$ because $G$ is a $p$-group and if $|Z(G)| = p^2$ or $p^3$, then $G/Z(G)$ would be cyclic. Thus, $G$ would be abelian, contrary to hypothesis. So, let $c$ be a generator for $Z(G)$. Consider the quotient group $G/Z(G)$ which has order $p^2$. Hence, $G/Z(G) \cong \mathbb{Z}_p \times \mathbb{Z}_p$. Let $\overline{a},\overline{b}$ be generators for $G/Z(G)$ (the overlines denote passage to the quotient). Now, this means that every element in $G$ can be written as $a^ib^jc^k$ for $i,j,k \in \mathbb{Z}$. Since $c \in Z(G)$ we cannot have that $a,b$ commute (this is important later).   Notice that $\overline{a},\overline{b}$ both have order $p$ in $G/Z(G)$. Thus, $a^p,b^p \in Z(G)$. We consider cases of $a^p$ and $b^p$.  Case 1: both $a^p = b^p = 1$  Then, since $G/Z(G)$ is abelian, the commutator subgroup, $G'$, is contained in $Z(G)$ so that $|G'| = 1 $ or $p$. But, $|G'| = 1$ implies $G$ is abelian, contrary to hypothesis. So, $|G'| = p$ and consequently $G' = Z(G)$. Thus, since $a,b$ do not commute, $a^{-1}b^{-1}ab$ is nontrivial and $Z(G) = \langle a^{-1}b^{-1}ab\rangle$ (this is by the previous exercise where we showed that the commutator subgroup is generated by elements of this form). Thus, by possibly switching generators for $Z(G)$ this group satisfies the second pair of generators and relations in the question.  Case 2: $a^p \neq 1$ and $b^p = 1$ (or vice versa)  In this case $a^p$ is a nontrivial element in $Z(G)$ and since $Z(G)$ is cyclic of order $p$, $c = a^p$ and so $|a| = p^2$. This gives rise to the first pair of generators and relations.  It is here where I am stuck. These should be the only two, but I have not found a reason why we cannot have $a^p \neq 1$ and $b^p \neq 1$. How can I guarantee that this case does not occur (or gives one of the two cases above)? I assume this has something to do with the oddness of $p$, as I have not used this anywhere in the argument. Moreoever, any other suggestions or corrections on the current work would be greatly appreciated.   Thank You


Hello StackOverflow Community! I hope you're having a nice day.  I'm asking myself if I can just decrease an int obtained from a getXYZ() method of another class (the int should also be modified in the other class) or if I must use a setter?  for example:  Class: Monster  public int getHealth() {     return health; }   Class: Bullet  applyDamage(target);  private void applyDamage(Monster target) {      target.getHealth() - 1; // OR     target.setHealth(4);  }

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


Before someone calls this a duplicate, all the other answers that I've found for this issue claim the problem was fixed in one of the technical previews; however, I'm on the latest version of Windows 10 (having upgraded from Windows 7 a week or so ago) and the problem persists.  I've tried running Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} in powershell. It completed but nothing changed. I've restarted my computer many times before and after that change.  I've checked several times. I have waaay more shortcuts in the start menu folder than are visible in the start menu. If I run Get-StartApps | measure |findstr Count in powershell it reports 878 items.  This problem is horrible because typing into the start menu is my primary way of launching programs and it's broken. I've searched for ages and I don't know what else to try. Please help!

Not sure when this started happening but some time after upgrading to Windows 10 I noticed some of my search results were not showing up with what I wanted. For instance, when I searched for Word 2013 or Skype, I did not get any results. I decided to investigate and tried rebuilding the indexing file and moving it to a new location but it made no difference.  So I checked my start menu and manually tried looking for the shortcuts only to discover that they strangely weren't there. Also notice how some of my tiles have suddenly disappeared.    Strangely enough when I browse the actual location of the start menu folder, the shortcut for Word and Powerpoint are there.    I've checked that none of the folders/shortcuts are hidden or read-only and that the files/folders have sufficient permissions via the Security tab.  Any ideas how to solve this?


If there is no money being used inside the Federation, how do they distribute goods or determine how much one can own, eat, or possess?  As an example, someone who really likes food would want to consume more than the "average" person and therfore his montly spendings on food would be much higher (let's throw away really specific and weird situations and focus on general rule). Today, we'd work to get money, we get money and have it to be more or less able to buy food, more elaborate living quarters, or other essentials and luxuries.  How do they handle this in the Star Trek universe, if there is no money to mediate that distribution of goods? What prevents one person from getting much more food than an "average" one, while working much less than him?

I realize that this is a very broad question, with the stories told in the Star Trek universe spanning hundreds of years.  I sometimes hear of economists talking about a theoretical "Star Trek economy" in the future.  The central feature of this is that in the future, the fundamental things we need for survival are no longer scarce.  Therefore, I would like to know what every day economics and commerce are like for ordinary people, as opposed to Starfleet and political elites.


I am trying to create a one to one relationship between two tables. Whenever I try to do an INSERT to verify the foreign key in the child table is set up properly, the foreign key is accepting any value, instead of requiring that it match a value in the corresponding column in the parent table. For example this works without issue  MYSQL - INSERT INTO Orders(PersonID) VALUES(random INT not in parent table)   I am using PHPmyAdmin and everything looks ok from what I can tell. This is how I created the tables  CREATE TABLE Persons (     PersonID int,     LastName varchar(255),     FirstName varchar(255),     PRIMARY KEY(PersonID) );  CREATE TABLE Orders (     OrderID int NOT NULL,     OrderNumber int NOT NULL,     PersonID int,     PRIMARY KEY (OrderID),     FOREIGN KEY (PersonID) REFERENCES Persons(PersonID) );   From my understanding, this should require any row of the FOREIGN KEY in the Orders table to match the value of a pre-existing row in the Persons table. However, the INSERT INTO statement posted above works without issue. What am I not understanding correctly? I did quite a bit of searching and everything I can find seems to indicate SQL should be returning an error on such an INSERT statement. Thanks in advance for any answers.

I've created a table in MySQL:  CREATE TABLE actions ( A_id int NOT NULL AUTO_INCREMENT, type ENUM('rate','report','submit','edit','delete') NOT NULL, Q_id int NOT NULL, U_id int NOT NULL, date DATE NOT NULL, time TIME NOT NULL, rate tinyint(1), PRIMARY KEY (A_id), CONSTRAINT fk_Question FOREIGN KEY (Q_id) REFERENCES questions(P_id), CONSTRAINT fk_User FOREIGN KEY (U_id) REFERENCES users(P_id));   This created the table I wanted just fine (although a "DESCRIBE actions;" command showed me that the foreign keys were keys of type MUL, and I'm not sure what this means).  However, when I try to enter a Q_id or a U_id that does not exist in the questions or users tables, MySQL still allows these values.  What did I do wrong?  How can I prevent a table with a foreign key from accepting invalid data?  UPDATE 1  If I add TYPE=InnoDB to the end, I get an error:     ERROR 1005 (HY000): Can't create table './quotes/actions.frm' (errno: 150)   Why might that happen?  UPDATE 2  I'm told that it's important to enforce data integrity with functional foreign keys, but also that InnoDB should not be used with MySQL.  What do you recommend?


I have the following .bmp file called mapa.bmp    As you can see, from the embedded picture, my background is fully transparent. I made sure to check and my Image->Mode is set to RGB as well.    and I saved it using the default options:    All seems fine and dandy, right?  However, if I use the picture anywhere, or even re-open it with photoshop, the transparent background is lost and opened with white background.       Saving the file as .png works fine, but sadly I need to use .bmp, .ico or .jpg format   Any idea what could be the cause?

I created a bitmap with transparent background but in the Windows Picture Viewer I see the white background and even if I reopen it in Photoshop CS3. how do I make sure the white colour in bitmap is really transparent or see if contain any transparent colour?


I know GETRLIMIT(2) is used to control maximum system resource consumption.  What does 2 in GETRLIMIT(2) mean/come from?

So, for example, when I type man ls I see LS(1). But if I type man apachectl I see APACHECTL(8) and if I type man cd I end up with cd(n).  I'm wondering what the significance of the numbers in the parentheses are, if they have any.


Calling this method in my Receiver class that extend  BroadcastReceiver to cancel incoming call.There is no error in code at compile time but when this method is called the exception is thrown that is.  Exception  java.lang exception android.content.context.getsystemservice(java.lang.string)' on a null object reference  Code   private void disconnectPhoneItelephony(Context context) {     ITelephony telephonyService;     TelephonyManager telephony = (TelephonyManager)             context.getSystemService(Context.TELEPHONY_SERVICE);     try     {         Class c = Class.forName(telephony.getClass().getName());         Method m = c.getDeclaredMethod("getITelephony");         m.setAccessible(true);         telephonyService = (ITelephony) m.invoke(telephony);         telephonyService.endCall();     }     catch (Exception e)     {         e.printStackTrace();     } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have an Ubuntu 12.04 production server with 500 GB (nearly 15 GB used) HDD. I want to duplicate whole HDD including it's partitions structure, data to another HDD with 400 GB size so that changing HDD will not affect working system.  Which tool is the best solution for this task?

I've currently got an 80 GB  (yes, I know, that's why I'm changing it...)  Linux device that's about 80% free, and I want to change it to a 40 GB  partition using one of the previous RAID 0 partitions. I've got enough spare space on another large partition for all the files, and the best method I thought of doing the switch is:   cp -a all files on the filesystem to a directory under a large partition Repartition cp -a all files back to a new partition   The thing is, I'm worried about special file properties (it's a Linux root device); will cp -a keep all the necessary file properties so the new partition is bootable afterwards? Am I missing another way of doing it?


In  it is asked and answered why mysterious folders appear at the root of my D-drive periodically, named e849ad3686d570a415, 57431c392d6db70ad5bfcd1a6676a241, etc, containing folders like i386 and amd64: they're leftovers from Windows updates. It is also explained there that it is safe to delete those folders.  In fact, there are more similar/related questions:        None of these questions or their answers explain how to prevent it from happening, apart from the obvious conclusion to just disable the root cause (Windows update) entirely.  So my specific question then is: How can I stop this from happening, without resorting to rigorous solutions such as disabling Windows Update, moving over to Linux, etc., and without resorting to creating an after-the-fact solution (e.g. a scheduled task to delete these folders)? Is that possible?  What I've tried so far is looking for a way to find out what specific process generates these folders so I can narrow my search for a solution. I've found  about a general way to find out such things, but it isn't very helpful. I've tried checking who the owner of those folders is, but MY-PC\Administrators doesn't tell me much either. I've tried dir e849ad3686d570a415 | format-list * in Powershell, but it tells me nothing of interest. I've  around but that mainly leads to aforementioned question.  Bottom line: How can I stop these folders from appearing? Removing them by hand is getting pretty old and writing a script or task to do this periodically "feels dirty".

Often I find guid-like folder names spread around on my hard drives. Is there a way to prevent this from happening? I think they might come when I install various programs or while updating them (seems like windows update does it too).   I find it very annoying. Especially when some of them won't be deleted because of security stuff. Doesn't Windows have a dedicated temp folder for these cases? Why can't they use that? Or at least clean up after themselves...


I'm trying to compute the infinite sum  $\sum_{n=1}^{\infty}n(\frac{1}{2})^n$  which I believe should represent the expected amount of coin flips needed to get a head. Can someone remind me how to do this?

Apparently,   $$ \sum_{n = 0}^\infty \frac{n}{2^n} $$  converges to 2. I'm trying to figure out why. I've tried viewing it as a geometric series, but it's not quite a geometric series since the numerator increases by 1 every term.


there!  I'm new to Python (as of yesterday, when I bought a book on it called Python Crash Course (2nd ed.)).  I'm having trouble getting started with the Python terminal in that I want to run my hello_world.py program from it, but can't find the darn thing from within the terminal.  I'm running Windows 10.  I've tried putting the directory in the root (C:) directory, on my Desktop, in my OneDrive directory, and under my name in Users and still can't navigate to it in the python terminal.    When I go to the command prompt and type "python", I get the following:  C:\Users\Anne>python Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>   The book says to put the working folder "somewhere on your system", which is why I have tried so many locations.  The working folder is currently called pywk and is located at C:\Users\Anne\pywk.  Here's what I get when I try to change the directory using the cd command in the terminal:  >>> cd C:\Users\Anne\pywk   File "<stdin>", line 1     cd C:\Users\Anne\pywk        ^ SyntaxError: invalid syntax >>> cd Users\Anne\pywk   File "<stdin>", line 1 cd Users\Anne\pywk            ^     SyntaxError: invalid syntax  >>> cd Anne\pywk   File "<stdin>", line 1     cd Anne\pywk           ^ SyntaxError: invalid syntax >>> cd pywk   File "<stdin>", line 1     cd pywk           ^ SyntaxError: invalid syntax >>>     My guess is that the carat indicates where the syntax problems lie, but I don't know for sure. And I don't know what else to try or have anyone else to ask.    I'm not trying to make a program to do this (yet).  I'm just trying to get to where I can run my little programs from the terminal.  That way I can learn.    Thank you to anyone who can help me over this hump.

cd is the shell command to change the working directory. How do I change the current working directory in Python?


This is my first time replacing the brake pads of hydraulic brakes.  I removed the old ones and the model was Shimano B01S Resin, so I bought the same ones. However, when I have replaced them. They don’t fit into the calipers... well they fit but there is no space for the disc between the pads. I have drained the brakes completely and nothing... Does anyone has an idea about that?  Thanks in advance. I have attached some pics about the issue.

How do I change my disc-brake pads? How do I avoid letting the fluid out?


Does anybody have an idea about the full form of rc.d in, for example, /etc/rc.d?  It contains scripts to used to control the starting, stopping and restarting of daemons. But what exactly is the meaning of rc here?

Is it "resource configuration", by any chance?


After fiddling around for a long time with a recently purchased USB WiFi adapter (a TP-LINK AC 600 Archer T2UH), I have finally got it working under Ubuntu (KDE neon User Edition 5.6), but only by manually restarting network-manager manually after each login using the following commands:  sudo service network-manager stop sudo service network-manager start   Note that if I don't issue the above commands after login, the network manager will still start up normally, but no WiFi networks are detected and I cannot establish a WiFi connection. However, by issuing the above commands I am able to select and connect to an access point normally.  I have tried adding the two lines above to ~/.profile so that I don't have to manually type them in each time I log in, but it doesn't seem to work. Is there anything else that would be worth trying? All I really want at this point is to have the above two lines executed automatically after logging in.  Sorry if the solution is obvious. This is my third day using Linux and I think I've hit my troubleshooting limit. Any help would be greatly appreciated.

How can I run scripts automatically when Ubuntu starts up so I don't have to run them manually after startup?


What are Closures/Lambda in PHP or JavaScript in layman terms? An Example would be great to aid my understanding. I am assumning Lambda and Closures are the same thing?

Could someone explain? I understand the basic concepts behind them but I often see them used interchangeably and I get confused.   And now that we're here, how do they differ from a regular function?


I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I tried to upgrade Ubuntu and some package broke, so I wrongly did this:  sudo rm -r /var/lib/dpkg/*   and now I get this:  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  ia32-libs : Depends: ia32-libs-multiarch but it is not installable  wine1.4 : Depends: wine1.4-i386 (= 1.4.1-0ubuntu5) but it is not installable E: Unmet dependencies. Try using -f.   and   $ sudo dpkg --configure -a dpkg: error: unable to create new file '/var/lib/dpkg/info/format-new': No such file or directory   and  $ sudo apt-get upgrade -f Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... failed. The following packages have unmet dependencies:  ia32-libs : Depends: ia32-libs-multiarch but it is not installable  wine1.4 : Depends: wine1.4-i386 (= 1.4.1-0ubuntu5) but it is not installable E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies

Earlier, I had a problem with a package, and I (wrongly) ran this:  rm -r /var/lib/dpkg/*   See also .  Now when I try to upgrade, I get this:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? masoud@masoud-PC:~$ sudo apt-get upgrade  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   and when I use: sudo dpkg --configure -a   I get this:  dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory     and for sudo apt-get upgrade -f get:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... failed. The following packages have unmet dependencies:  ia32-libs : Depends: ia32-libs-multiarch but it is not installable  wine1.4 : Depends: wine1.4-i386 (= 1.4.1-0ubuntu5) but it is not installable E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies


I had to resort to the following characterization of number $e$ in order to :     $\forall x > 0. \left(1+\frac 1 x\right)^{x} < e < \left(1+\frac 1 {x}\right)^{x+1}$   Unfortunately, I don't have this result yet in my theorem prover. What is an easy way to derive it?

I'm studying the book A Primer for the Mathematics of FinancialEngineering, along with it's solution guide. I've ran into trouble with the solution to question 7 in chapter 1.    The problem is:  Show that $(1+\frac{1}{x})^x < e < (1+\frac{1}{x})^{x+1}$ .   Specifically, I'm having trouble with one step in the solution.    It says that  $$x\ln\left(1+\frac{1}{x}\right)<1<(x+1)\ln\left(1+\frac{1}{x}\right)$$  can be written as   $$\frac{1}{x+1} <\ln\left(1+\frac{1}{x}\right)<\frac{1}{x}, \forall \ge 1.$$  How can the first equality (or is it inequality?) be written as the second?


I'm using Atom as a text editor, but don't like its fuzzy search, so I'm trying to configure an alternative. I found a nice command line fuzzy search (fzf) that works nicely like this:  atom $(fzf)  When I put this in my .bash_profile, like so :  alias atm="atom $(fzf)"  The fzf command runs prematurely, as soon as the .bash_profile is loaded. How can I defer the execution of fzf until I run the atm alias.

I've been using docker for a while and there's a command I write each time I boot up my docker:  eval $(docker-machine env)   I know eval shouldn't be used unless necessary, but it's mentioned by the following:  docker-machine env outputs environment variables like this:  docker-machine env export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://<some_ip>:<some_port>" export DOCKER_CERT_PATH="/home/gableroux/.docker/machine/machines/default" export DOCKER_MACHINE_NAME="default" # Run this command to configure your shell:  # eval $(docker-machine env)   eval grabs these and load them in my current session.  Now what if I'd like to have an alias like this:  alias dockereval="eval $(docker-machine env)"   Syntax is good, but the problem is when a dotfile (let's say .zshrc as an example), well the content of the $() is evaluated when registering the alias when you source that file.  which dockereval   Results in  dockerenv: aliased to eval   I tried a few things like:  alias dockereval="docker-machine env | eval" alias dockereval="docker-machine env | /bin/bash" alias dockereval="eval `docker-machine env`"   but none did work. 2nd one is probably because it's running in a different session, 3rd does the same as $() I guess  Is there an other way to load these environment variables with an alias?


I need a hand with scaling a tikz generated picture. I have an example of using tikz I found in one of the websites (not my own work). I am trying to scale and fit it into a6 layout. I read library graphics defines two commands resizebox{}{}{} and scalebox{}{}, which apparently tikz also includes. However, the commands generate series of errors: ! Undefined control sequence. The reason why I am trying to scale the whole picture is scale=0.5 while defining environment tizkpicture also does not work. The example: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{xcolor} \usepackage[landscape,margin=0.5cm,a6paper]{geometry} \usepackage{tikz} \usetikzlibrary{positioning,calendar} \usetikzlibrary{decorations.markings}  \newcommand{\calrow}[1]{\node[anchor=base east](lun){l}; \node[base right=of lun](mar){m}; \node[base right=of mar](mer){m}; \node[base right=of mer](gio){g}; \node[base right=of gio](ven){v}; \node[base right=of ven](sab){s}; \node[base right=of sab](dom){d}; \node[darkgreen,above=of gio]{\textbf{#1}};}  \newcommand{\calperiod}[1]{\calendar[dates=\the\year-#1-01 to \the\year-#1-last] if(Sunday) [black!50] \holidays;}  \newcommand{\holidays}{% holidays in Italy if (equals=01-01) [black!50]% if (equals=01-06) [black!50]% if (equals=04-04) [black!50]% if (equals=04-05) [black!50]% if (equals=04-25) [black!50]% if (equals=05-01) [black!50]% if (equals=05-01) [black!50]% if (equals=06-02) [black!50]% if (equals=08-15) [black!50]% if (equals=11-01) [black!50]% if (equals=12-08) [black!50]% if (equals=12-25) [black!50]% if (equals=12-26) [black!50]% }  \colorlet{darkgreen}{green!50!black}  \begin{document}  \null \vfill  \resizebox{\textwidth}{!}{%     \begin{tikzpicture}[every calendar/.style={week list}]         \sffamily         \matrix[row 1/.style={darkgreen, node distance=.3ex}, row 3/.style={darkgreen, node distance=.3ex}, column sep=1ex, draw=darkgreen,thick,rounded corners=5pt, postaction={decorate,decoration={markings,mark=at position 0.51 with {\node[fill=white,text=darkgreen,font={\bfseries\Large}] (year) {\the\year};}}}]         {%             % first row: week day and month             \calrow{January} & \calrow{February} & \calrow{March} &             \calrow{April} & \calrow{May} & \calrow{June} \\                          % second row: calendar             \calperiod{01} & \calperiod{02} & \calperiod{03} &             \calperiod{04} & \calperiod{05} & \calperiod{06} \\[1ex]                          % third row: week day and month             \calrow{July} & \calrow{August} & \calrow{September} &             \calrow{October} & \calrow{November} & \calrow{December} \\             % forth row: calendar             \calperiod{07} & \calperiod{08} & \calperiod{09} &             \calperiod{10} & \calperiod{11} & \calperiod{12} \\         };     \end{tikzpicture} }  \vfill  \end{document}

I would like to scale my tikzpicture to exactly (or a proportion of) the \textwidth  Of course I could play with the [scale=0.5] option until I found the right value, but I assume there must be an easier way.  How to get a properly scaled (the fonts still must be correct) tikzpicture with an exact width.


I recently saw a method like   public void display(final String toDisplay){  }   I want to know the purpose of final keyword in method parameter.  BTW: I have already searched it on SO, so please don't downvote; I know its a duplicate.  I know this question has been asked many times and trust I went through all of them but did not understand any of the answers. Please while answering assume that you are talking to a beginner.

I can't understand where the final keyword is really handy when it is used on method parameters.    If we exclude the usage of anonymous classes, readability and intent declaration then it seems almost worthless to me.   Enforcing that some data remains constant is not as strong as it seems.    If the parameter is a primitive then it will have no effect since the parameter is passed to the method as a value and changing it will have no effect outside the scope.  If we are passing a parameter by reference, then the reference itself is a local variable and if the reference is changed from within the method, that would not have any effect from outside of the method scope.    Consider the simple test example below. This test passes although the method changed the value of the reference given to it, it has no effect.  public void testNullify() {     Collection<Integer> c  = new ArrayList<Integer>();           nullify(c);     assertNotNull(c);            final Collection<Integer> c1 = c;     assertTrue(c1.equals(c));     change(c);     assertTrue(c1.equals(c)); }  private void change(Collection<Integer> c) {     c = new ArrayList<Integer>(); }  public void nullify(Collection<?> t) {     t = null; }


I'd like to know which is the correct option:     He went to bed without my telling him to.   He went to bed without me telling him to.   I was pretty certain it is the first, but I am unclear on why.  Is telling a gerund or participle?

I assume that the following sentences are grammatically correct:   He resents your being more popular than he is. Most of the members paid their dues without my asking them. They objected to the youngest girl's being given the command position. What do you think about his buying such an expensive car? We were all sorry about Jane's losing her parents like that.   I'm still getting used to this possessive gerund structure. It sounded so weird to me at first. Is the structure used in both formal and informal contexts? Are there any alternative structures that result in the same meaning and are more frequently used? (Examples taken from )


Let be $a,b,u,v$ integers and $au+bv=1$. I have to find integers $t,z$ satisfying $(a+b)z+abt=1$.  I think I can solve it by congruence. What do you think?  I realised $$bz\equiv 1 \quad (\text{mod}\, a)\Longrightarrow z\equiv v \quad (\text{mod}\, a)$$  $$az\equiv 1 \quad (\text{mod}\, b)\Longrightarrow z\equiv u \quad (\text{mod}\, b)$$  Any ideas? Thank you.

Let $a$ and $b$ be two integers such that $\left(a,b\right) = 1$. Prove that $\left(a+b, ab\right) = 1$.   $(a,b)=1$ means $a$ and $b$ have no prime factors in common  $ab$ is simply the product of factors of $a$ and factors of $b$.  Let's say $k\mid a+b$ where $k$ is some factor of $a$.  Then $ka=a+b$ and $ka-a=b$ and $a(k-l)=b$.  So $a(k-l)=b, \  a\mid a(k-1)$ [$a$ divides the left hand side] therefore $a\mid b$ [the right hand side].  But $(a,b)=1$ so $a$ cannot divide $b$.  We have a similar argument for $b$.  So $a+b$ is not divisible by any factors of $ab$.  Therefore, $(a+b, ab)=1$.  Would this be correct? Am I missing anything?


I`m trying to generalize Lagrange's mean value theorem for $f:A \to \mathbb{R}^n$ , differentiable in  $A \subset \mathbb{R}^m$.  What I have so far is that if $n=1$, we can write $g_i(t)=f(x_1,..tx_i,..,x_n$), where $x_j$ are any real numbers and $x_i$ is 1. We have $g'(t)=D_f(t)\cdot(0,..,1,...0)=\frac {\partial f} {\partial x_i}(t)$, And since $g_i(t):\mathbb{R} \to \mathbb{R}$ , we can apply the single variable mean value theorem to say that there exists a point $c_{x_i}\in [a,b] $ s.t $\frac {\partial f} {\partial x_i}(c_{x_i})=g_i'(c_{x_i})=\frac {g_i(a)-g_i(b)} {a-b}$ , for any partial derivative. However, For any partial derivative we get a different $c_{x_i}$, And I couldn`t find a way to relate $g$ back to $f$.   Also, if $n>1$, And I`d know how to handle the $n=1$ case, I know I can break down $f$ to $n$ different functions, apply the $n=1$ to each of them seperately, but then again, we get $n$ different points $c$ which aren't necessarily the same,So I got stuck here too.  I wonder if this is a good way to try and generalize the Lagrange`s Mean Value theorem for multivariable functions?Can anyone help me complete the idea, or suggest a different way of thinking?

I was thinking of a generalization of the mean value theorem and I think I found a simple way to generalize the MVT to differentiable functions defined such that, $f: I \rightarrow \mathbb{R}^n$ where $I$ is a compact subset of $\mathbb{R}^n$.  Here's my idea:  1) Every function defined on $\mathbb{R}^n$ may be decomposed into n functions using the orthogonal basis $\{x_i\}_{i=1}^n$ where $x_i$ are unit vectors.   2) So for any function $f$ on $ \mathbb{R}^n$, we have $f=\sum_{i=1}^{n} f_i(x|x_i)$  where $x|x_i$ is the projection of the vector $x$ onto the unit vector $x_i$.  It follows that since each since $\forall x \in I, f_i(x|x_i)$ is a function mapping $\mathbb{R}$ to $\mathbb{R}$, the usual mean value theorem applies for each $f_i$.   This means that $\exists p \in I$ such that $f'(p)= \sum_{i=1}^{n} \frac{f_i(sup(I|x_i))-f_i(inf(I|x_i))}{sup(I|x_i)-inf(I|x_i)}$  where $I|x_i$ is the projection of the set I onto the unit vector $x_i$.   Update: on second thought, the variables of the vector valued function must be linearly independent and the space they occupy must be of dimension n.


i'm writing my thesis and i face these two tables of variations, please help me transfer them to latex.

TikZ: variable in calc syntaTikZ: variable in calc syntax 1 x 1


Why does Indian movie industry use a  as a name?  For instance, I never heard of "".

As we know, American film industry is referred as Hollywood. The American film industry is called so because the film industry emerged at the place called (Correct me if I am wrong). The place adopted the name Hollywood which is informally known as Tinseltown.  But my question is not about Hollywood but the . This is widely referred as Bollywood.   From the  page of Bollywood:      Bollywood is the sobriquet for India's Hindi language film industry, based in the city of Mumbai, Maharashtra. It is more formally referred to as Hindi cinema. The term "Bollywood" is often used by non-Indians as a synecdoche to refer to the whole of Indian cinema; however, Bollywood proper is only a part of the larger Indian film industry, which includes other production centres producing films in many other Indian languages. There is no place in India called Bollywood like the Hollywood.    Many people prefer calling it as Hindi film industry and against naming film industries with wood. There are other film industries in India too in other languages. Eg: Telugu film industry is named as Tollywood, Tamil industry is named Kollywood etc.,   is the list of Hollywood inspired nicknames.  My question:   Who is the creator of the word Bollywood? Since when did the word become popular?


Typically it is a three bare pin polarized connector, with power, ground and tacho connections. However, I am having difficulty finding it as a part. What is it called?  This is what I am trying to connect to

I am EE hobbyist and I often used recycled parts in my projects. I came across this connector to a Heat Sink Fan and would like to know the name of it.  Thanks for the help.


Let's say that you need to find the cumulative probability for a random variable X which is normally distributed. You do not know what the value of X is or, for that matter, what the value of µ and σ is. You only know that X = µ + σ. Can you find the cumulative probability, i.e. the probability of the variable being less than µ + σ?


I tried to install drivers, I have tried to clean apt and purge existing nivida driver, now I cannot uninstall any packages.   Here is error:   Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  cuda-drivers : Depends: libnvidia-gl-410 (>= 410.48) but it is not going to be installed                 Depends: nvidia-compute-utils-410 (>= 410.48) but it is not going to be installed                 Depends: nvidia-dkms-410 (>= 410.48) but it is not going to be installed                 Depends: nvidia-driver-410 (>= 410.48) but it is not going to be installed                 Depends: nvidia-kernel-source-410 (>= 410.48) but it is not going to be installed                 Depends: nvidia-utils-410 (>= 410.48) but it is not going to be installed                 Depends: xserver-xorg-video-nvidia-410 (>= 410.48) but it is not going to be installed                 Depends: nvidia-settings (>= 410.48) but it is not going to be installed  libnvidia-ifr1-410 : Depends: libnvidia-gl-410 but it is not going to be installed  nvidia-410 : Depends: lib32gcc1 but it is not going to be installed               Recommends: nvidia-settings (>= 331.20) but it is not going to be installed               Recommends: nvidia-prime (>= 0.5) but it is not going to be installed or                           bumblebee but it is not going to be installed               Recommends: libcuda1-410 but it is not installable               Recommends: nvidia-opencl-icd-410 but it is not installable E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).   And this error trying to fix unmeet dependencies: I have tired to remove/clear cache package.   The following packages were automatically installed and are no longer required:   lib32gcc1 libc6-i386 ocl-icd-libopencl1 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed:   libnvidia-gl-410 nvidia-compute-utils-410 nvidia-dkms-410 nvidia-driver-410   nvidia-kernel-common-410 nvidia-kernel-source-410 nvidia-prime nvidia-settings nvidia-utils-410   xserver-xorg-video-nvidia-410 Recommended packages:   libnvidia-compute-410:i386 libnvidia-decode-410:i386 libnvidia-encode-410:i386   libnvidia-ifr1-410:i386 libnvidia-fbc1-410:i386 libnvidia-gl-410:i386 The following packages will be REMOVED:   nvidia-410 nvidia-410-dev The following NEW packages will be installed:   libnvidia-gl-410 nvidia-compute-utils-410 nvidia-dkms-410 nvidia-driver-410   nvidia-kernel-common-410 nvidia-kernel-source-410 nvidia-prime nvidia-settings nvidia-utils-410   xserver-xorg-video-nvidia-410 0 upgraded, 10 newly installed, 2 to remove and 0 not upgraded. 8 not fully installed or removed. Need to get 0 B/45.1 MB of archives. After this operation, 205 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 166080 files and directories currently installed.) Preparing to unpack .../libnvidia-gl-410_410.48-0ubuntu1_amd64.deb ... dpkg-query: no packages found matching libnvidia-gl-390 Unpacking libnvidia-gl-410:amd64 (410.48-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-410_410.48-0ubuntu1_amd64.deb (--unpack):  trying to overwrite '/usr/share/egl/egl_external_platform.d/10_nvidia_wayland.json', which is also in package nvidia-410 410.48-0ubuntu1 Errors were encountered while processing:  /var/cache/apt/archives/libnvidia-gl-410_410.48-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

I've installed Ubuntu 14.04 and I'm experiencing a fuzzy/blurry screen and bad support for multiple screens.  I realized that Ubuntu installs nouveau as default, but I need to install nvidia drivers, so I tried this:   sudo apt-add-repository ppa:ubuntu-x-swat/x-updates apt-get update apt-get install nvidia-current apt-get upgrade       Now that nvidia is installed, you need to blacklist the nouveau driver   so it don’t pop out when you will reboot. Create or edit the following   file:  nano /etc/modprobe.d/blacklist-nouveau.conf       …and add these lines at the end:  blacklist nouveau blacklist lbm-nouveau options nouveau modeset=0 alias nouveau off alias lbm-nouveau off    I checked via the software & updates if nvidia driver got installed successfully, and it says the driver installed is nvidia 304.117  I then tried to run:  lshw -c video | grep 'configuration'   and the result is that the driver is still nouveau:  configuration: driver=nouveau latency=0   So how do I install and use the nvidia drivers?


For an upcoming Eurostar journey I'm considering taking, I've noticed a very odd pricing situation. For some reason, the cost of a ticket on the 19:34 Lille & Brussels service is cheaper if I book to Brussels rather than Lille, even though Brussels is further away!  In this case, I know that the Eurostar will stop in Lille (not all do, so you have to check). However, I'm not sure if I would be allowed to get off early? (In this case, I'm interested in booking a ticket to Brussels but getting off in Lille, but I guess it could apply equally to buying a Brussels or Paris ticket and getting of in Calais, or booking a London ticket and getting off in Ashford or Ebbesfleet)  What are the rules on getting off a Eurostar and ending your journey at a station earlier than the one you were booked to go to? (This is somewhat the )

I have bought return tickets from London to Lille Europe on Eurostar. The trains on my outward and inbound journeys both stop at Calais Frethun.  Will Eurostar let me get on in Calais on the inbound? What about getting off at Calais on the outbound leg? I suspect leaving the train early is easier than getting on the train 'late'.