Equivalence of Categories and of Their Functor Categories

Suppose $A, B, C$ are categories. If $A$ and $B$ are equivalent, is it the case that $C^A$ and $C^B$ are equivalent? Also, is it the case that $A^C$ and $B^C$ are equivalent.  I first conjectured that $C^A$ and $C^B$ are equivalent, but then as I tried to prove the conjecture, I started to realize that it might not be the case. So now I'm trying to find a counterexample. So far I have not been able to find one. Maybe I'm stuck with "too complicated" ideas. I strongly believe that there are very simple counterexamples. Please help. (For more detail, I got to the point where I have a cube that I want to be commutative, but I can only show that 4 of its sides are commutative squares. That's when I realize the other two sides may not necessarily commute.)  And of course, there is the second part to the problem that's not just the dual problem. I would like to know about the special case in which $A$ is a preorder and $B$ is a partial order which is the skeleton of $A$. This may have nothing to do with the validity of the statement in question at all, but it is the setting that originated this question.


The default prompt will be   root@monu dev]#   Can we change the "root@monu" part and give it a desired name?


The relation of LCM and GCD in Euclidean rings

Given two elements $a,b$ in the Euclidean ring $R$ their least common miltiple $c\in R$ is an element in $R$ such that $a\mid c$ and $b\mid c$ and such that whenever $a\mid x$ and $b\mid x$ then $c\mid x$.   a) Prove that any two elements in the Euclidean ring $R$ have a least common multiple in $R$.  b) If the least common multiple of $a$ and $b$ is denoted by $[a,b]$, prove that $[a,b]=ab/(a,b).$   Proof:   (a) Consider the ideals $(a)$ and $(b)$, where $(x)=xR$. Their intersection $(a)\cap (b)$ is also ideal of $R$ since Euclidean ring is the ring of principle ideal then $(a)\cap (b)=(c)$ for some $c\in R$. I proved that this $c$ has all needed properties of least common multiple. Thus the LCM of $a$ and $b$ exists.  (b) We know that $\text{gcd}(a,b)$ exists in Euclidean ring for any $a,b\neq 0 \in R$. But I have no thoughts how to prove that $[a,b]=ab/(a,b)$.   So I would be very thankful answer.


Will evolving the Pokémon Day 2017 festive Pikachu give me a festive Raichu?

It was announced on the official  that:     Did you know February 27 is Pokémon Day? We’ve teamed up with our friends at The Pokémon Company International for their annual celebration of all things Pokémon, and we have a special treat for you this Pokémon Day! From February 26 at 1:00 P.M. PST to March 6 at 1:00 P.M. PST, special Pikachu appearing all over the world will be celebrating Pokémon Day by wearing festive party hats. These special Pikachu will keep their party hats forever, but they can only be found during this limited-time celebration, so make sure to keep an eye out for them as you explore!   The special Pikachu looks like the following:    If I evolve my special Pikachu, do I also get a special Raichu with a hat?


What are the operating hours for Beauvais-Tillé Airport (Paris Beauvais Airport) Buses?

My Ryanair flight will arrive in Paris at 21:00. Is it still possible to catch the bus? The return flight is also in the morning at 08:00. Are there buses from Paris at 05:00 ?  What are the operating hours for the buses between the airport and the center of Paris? Is there any timetable for the buses?


I am modeling a building in blender and I have this strange problem with my viewing camera. The geometry seems like it has been scaled down for the Y axis. I measured a 2 vertices relative to a point and they have the same distance, but in the view, vertex on the X axis seems like it is farther than the one in the Y axis.  I definitely accidently changed something but I don't know what. Here is my . Thanks a lot in advance!


How large is the Playfair cipher keyspace?

In the Playfair cipher, is the key space 5 x 5 = 25 or 25 x 25 = 625? I'm trying to work out the size of the key space if each set of equivalent keys is counted as one key.


Finding the Probability for a Bivariate Normal Distribution

Given $(x_1,x_2)' \sim N_2 \left(\bf{0},\Sigma\right) = N_2 \left(\left(\begin{array}{l}0\\0\end{array}\right), \left(\begin{array}{l}1&\rho\\\rho&1\end{array}\right)\right)$, find $Pr(x_1>0,x_2>0)$.  I have been struggling with solving this problem using multivariate algebra.  I think the final answer is $\frac{1}{4}+\frac{sin^{-1}(\rho)}{2\pi}$, but not sure how to get to it.  I am considering the trick is to notice that $Pr(x_1>0,x_2>0)=\frac{1}{2}Pr(x_1x_2>0)$; but from here I am stuck.    Any help and/or advice is appreciated.


Is this definition of "escape velocity" correct?

According to :     In physics, escape velocity is the minimum speed needed for an object to escape from the gravitational influence of a massive body.   But, say, I have a spaceship in low Earth orbit, from which hang a long rope. If its is strong enough, using it, one can climb from the ground up to the spaceship at any speed, 1 m/s for example, which is much slower than the first cosmic velocity.  Thus, an object can "escape from the gravitational influence of a massive body" at a speed lower than its escape velocity, as long as there is a rope or something similar, so technically speaking, escape velocity is the not minimum speed required to escape. Am I right?  If I'm right, this also means we can shoot a sensor into the event horizon of a blackhole, and then pull it back after data are collected, if we can find a really strong rope. Sounds cool.


How to get a DescribeSObjectResult from a DescribeFieldResult

I have a function argument, dfr, that is of type Schema.DescribeFieldResult. Based off this variable, I need to find it's parent SObject and get the Describe Result for it (Schema.DescribeSObjectResult).  From the documentation, I see that I can get an  either via  or , but SObjectField seems to be a mostly useless class as it's only documented function is  which just takes me back to the DescribeFieldResult. (I know that it can also be compared to other SObjectField instances, but this isn't helpful since I don't want to compare it against every field in the org).  Is there some utility function or something I haven't found yet that can at least get the SObject name, or, preferably, the DescribeSObjectResult, for a given DescribeFieldResult?


Changing the connective "and" in a \cref multiple referencing

I am using \cref in my Persian document. I want to change the connective "and" to its Persian counterpart when I am using \cref for multiple referencing. By multiple referencing, I mean putting several entities, say theorems, in one single \cref command; example: \cref{thmTech, thmMain}.  This command outputs something like: "theorem 2.3 and 2.5".  I am wondering if "cleveref" package has an easy-to-use command for this?   If exists, it must be like the command "\crefname" used for changing the title-name of the counters:  \crefname{chapter}{CH.}{CH.s} If you want "CH.s 1 and 2" instead of "chapters 1 and 2" in your output.


Nilpotent elements of a commutative ring

Show that if $a$ and $b$ are nilpotent elements of a commutative ring then $a+b$ is also nilpotent.  Let $R$ be a commutative ring, since $a$ and $b$ are nilpotent we know that $a^n = 0$ for some $n \in \mathbb{Z}^+$. Same argument for $b$ with some $m \in \mathbb{Z}^+$.  I wanted to first consider the linear combination of them, $a^n + b^m = 0$ but i'm not sure if this could get me anywhere.  I can't really connect multiplication and addition in this way i have it here. And I can't make anything from the statement $a^n = -b^m$ because we aren't given that R is a field. (not sure if i could do anything with that anyways)


An unresolvable problem occurred while initializing the package information. Please report this bug against the 'update-manager' package and include the following error message: 'E:Type 'e' is not known on line 18 in source list /etc/apt/sources.list,  E:The list of sources could not be read.,  E:The package lists or status file could not be parsed or opened.'   How do I fix it?


How can one install the ECW plugin for QGIS 2.18 for mac? I would simple step by step for this.


In "Principles of mathematical analysis" Walter Rudin gives the definition of   $$\lim_{x \rightarrow p} f(x)=q$$  for $f: X \supset E \rightarrow Y$ with $X,Y$ metric spaces, in this way:     for every $\epsilon>0$ there exists a $\delta >0$ such that      $$d_Y(f(x),q)<\epsilon$$      for all points $x \in E$ for which      $$0<d_X(x,p)<\delta$$   where $d_X$ and $d_Y$ are the distances in $X$ and $Y$. After few pages he gives the definition of continuity:     $f$ is said to be continuous at $p$ if for every $\epsilon>0$ there   exists a $\delta >0$ such that      $$d_Y(f(x),f(p))<\epsilon$$      for all points $x \in E$ for which       $$d_X(x,p)<\delta$$   My question is, why did he drop the $0<\dots$ in $d_X(x,p)<\delta$? I though that continuity in $p$ means that the limit of the function in $p$ exists and is equal to $f(p)$, so one should simply replace $q$ with $f(p)$ in the above definition of limit, why changing the condition on $x$?  Doing so a function like  $$f: \{1\} \rightarrow \mathbb{R}$$ which maps 1 to 5, for example, would be continous in 1, since $x=p$ is allowed, but what is the limit of $f$ in 1? It doesn't exist, right?  Is there a deep reason for such a counterintuitive definition?   EDIT:  Maybe I should better clarify my question. I know that this definition works, I am asking why considering a function continuos at isolated points (which is an immediate consequence of this defintion ---> It turned out I was wrong about this).    The only reason I can think of is that this definition agrees with the topological one for continuity, but it doesn't seem to me a good reason since topology came after (and would have agreed no matter the convention).


Isomorphic distinct powers of the same ring

It is possible to have a ring $A$,  with identity,  such that $A^m\cong A^n$ as left $A$-modules and with $m\neq n$?   I have that for commutative rings this is not possible, but I have no idea of the proof.


One site with two different domain name indexed in Google

My site is indexed in google with too different domain names , one with http and another with https .  I was just wondering that if there is something I should do like trying omit one , or there is no problem and Google will take it . Thanks.


Is Multiple '/boot' partition required for different Linux OS?

I assume that that a single /swap & /home partition will suffice for different os but each root / partition to be created for each of them but not sure whether each /boot partition are required or a single /boot partition will take care of the all linux os?


What's a good beginner resource to learn group theory?

I'm interested in learning about the basics of group theory. My background is in statistics so I have barely any knowledge about group theory. I've had some work with proofs and I have also taken classes at university such as multivariable calculus, linear algebra, and differential equations. Any beginner resource would be helpful but nothing too technical.


Conditional Git alias within zsh: "parse error: condition expected: cd"

I'm trying to implement a simple stack of git-related aliases for my personal dotfiles. alias gs="[[ $(git rev-parse --is-inside-work-tree &> /dev/null) ]] || cd $D && git status -s" ------------- $ gs zsh: parse error: condition expected: cd  My logic (which I'm sure is flawed):  If not within a Git work-tree, cd $D (ENV var = my dotfile path) and keep output to yourself :) Run git status -s  Reasoning: 90% of my git activity is to my personal repo. Being able to run gs (gc -> git commit -m $* via a function, ga -> git add , etc.) anywhere is very handy. When intentionally working within another repo, I don't want to be automatically cd'ed to my dotfile path. The command works outside the confines of an alias, but not within one. What am I doing wrong? I've tried a few variations such as this, without output redirects: alias gs="[[ $(git -C $(pwd) rev-parse) ]] || cd ${D} && git status -s"  Upon launching of the terminal with the alias above: fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).  EDIT: I successfully converted these aliases into working functions, but I would still like to understand what went wrong.


How to attach a file in the “Files” related list instead of the “Notes & Attachments” related list of a record

I'm new with Apex. I'm downloading images from web with Apex that i'd like to add in Files. Already i'm just adding images to Attachment.  //Download image Http h = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint(linkImg); req.setTimeout(60000); req.setMethod('GET');  HttpResponse res = h.send(req);  Blob bodyImg = res.getBodyAsBlob();  //Add image to Attachment Attachment att = new Attachment(Name = nameImg, Body =             bodyImg, ContentType = 'image/png',            ParentId=parentid); insert att;   Is there a way to add document directly in Files or convert/link automatically Attachment to Files ?


I am trying to find a game that I had a starter set to when I was younger. I tried doing some online research, but honestly, I don't even know where to start and I can't find anything for it at my local comic/board game shop. I think that it was named something-"scape". I believe that I bought it sometime between 2003 and 2007, but my memory could be a little hazy on that that.  The Board  The board was different every time you played because it was made up of a bunch of chunks of hexagons (like honeycombs) that you could put together any way you want. You could even stack them on each other to create different levels. The hexa-combs were made out of plastic and I think they kinda clicked together.  Gameplay  Disclaimer: I was a kid when I played so I could have been disregarding any number of rules and not playing correctly at all, so take this with a grain of salt. You controlled a few different heroes and/or monsters (I remember a dragon that took up 2 spaces and I think an archer of some sort?). You moved around the terrain you built and did battle with the enemies heroes/mosters. I do not recall if it was a dice-based game or not. I think each character has a stats card. Unfortunately, I don't remember much about how it was actually played.  Expansion Sets  As I said, I think I had a starter set, which seemed to be generic-fantasy themed, but I think there were other sets that could be bought that had heroes/monsters from lots of other genres and more hexagons so that you could wind up with a huge battle with tons of genres mixing it up.  Can anyone point me to this game?


Splitting a string with numbers and letters

Im trying to find the best way to split strings, they could be 2 or 3 characters long depending on the number, E.G. splitting 2r to 2 and r and 10y to 10 and y.  Any help would be greatly appreciated, thanks


Print leading zeros with C++ output operator?

How can I format my output in C++? In other words, what is the C++ equivalent to the use of printf like this:  printf("%05d", zipCode);   I know I could just use printf in C++, but I would prefer the output operator <<.  Would you just use the following?  std::cout << "ZIP code: " << sprintf("%05d", zipCode) << std::endl;


Manual tester wanting to get into automation

So its been a year since I have been studying Python, and just recently I started picking up web driver. It was a long journey, and I am still a pretty noob, but I finally understand how to use it lol. I have made some tests to automate my manual testing, which took a long time, but worked!  I am wondering what kind of tests QA automation engineers make daily. I made simple ones like logging in, creating a ticket, creating alarm, verifying other stuff. I can see it getting complex, but in general, am I ready to apply for an automation job? I don't want to look like a fool and say "hey I made a script to login!", but I honestly have no idea what kind of work an automation engineer would do. I can only assume it's similar to what I am doing now, and that it seems pretty basic.   My goal was to learn some Selenium, so that I have SOME automation experience, and put that on my resume. I feel I can automate a lot of what I do with WebDriver, but it wouldn't exactly be efficient, just mainly good for experience. Do any automation jobs not mind finding a novice that they can teach? Or will most require someone who can do everything right off the bat. Would be nice if a QA automation engineer can respond with what kind of tests they write and what level they would require, thanks!


I am an Indian Citizen travelling from Mumbai(India) to Berlin(Germany) via British Airways which goes from Mumbai to London.  I already have a Schengen visa C-Type  Do I need a British Transit visa in this case?  Just to clarify i am not stopping at London. My destination is Berlin. But the British airways flight goes from Mumbai to London with a stop in Berlin.


Reporting results of a bootstrap regression model that has violated the assumption of homoscedasticity

I want to fit a multiple regression to test the relationship between several independent variables and a dependent variable. A few independent variables are standard demographic variables, the rest of the IVs are summed scores of responses to likert items. The dv is also a sum of responses to likert items.   The books I have read before and during my analysis are Discovering statistics using SPSS, by Field, 4th ed., and R in action, data analysis and graphics with r.    The problem is that the homoscedasticity assumption has been violated. To test homoscedasticity, I used the ncvTest() available in Car package of R, and the Breusch and Pagan test available in olsrr package for R. Both  show violation of homoscedasticity.   Both books I have mentioned above, suggest that bootstrapping for robust standard errors and confidence intervals should be used when the homoscedasticity assumption is not met. In his book, Field suggests that when there is  heteroscedasticity, the tests of hypotheses may not be valid.   I have bootstraped using the Boot function in R package, as well as  using SPSS. My problem is that I  am unable to work out how to present my results after a  bootstrap, and which values may or should change other than standard errors as a result of the bootstrap.   I’ll use the output of both R and SPSS as examples to elaborate my question. In R,  I know that rlm(), Boot(), summary(ofboot) will give me the bootstrap standard errors. But, when I am going to report my results, should I report the r-squared, f, and t provided by rlm(), should bootstrapping influence r-squared, f and t values? In other words, when I'm constructing the regression results table, I will take the values of standard error from the  results of bootstrap, but can I take the t, f, and coefficients values returned by rlm()? SPSS provides two tables of coefficients, both with and without the bootstrap; the bootstrap coefficient table does not have a column for t, so, again, when reporting the results, do I report the t in coefficient table without the bootstrap, f in the ANOVA and r-squared in the model summary table. Field in his book, has provided a bootstrap example, but the process is shown graphically, and since I’m totally blind, I cannot see the image to determine whether his book has an answer to my dumbest question.


Prove that every nonzero element of R is either a unit or a zero–divisor.

Let $R$ be a finite commutative ring with unity. Prove that every nonzero element of $R$ is either a unit or a zero–divisor.  Sol:   Let $a\not=0 $   Because $R $is finite then   $a^j=a$ , then $(a^j -a )=0$  $a (a^{j-1}-1) =0$  If $a\not=0$ then $a$ is zero divisor and $a^j a^{-1} = a^{j-2}a=1 $ so $a$ is unit   is true to prove this theorm by this way ? ,if not what is true ? Thanks  for all


SQL Server scheduled scripting of DDL (2020 edition)

I'm currently in need of a way to pragmatically generate DDL scripts for a single database in SQL Server.  My current need is to do this in 2012, but it's likely I'll need to be able to do this with 2008 - 2017.  I've seen this question (and answers)   as well as this one   I'm trying to figure out the best way to do this today.  I realize this may seem like a duplicate, especially if there's an answer out there that is the best way to do it today (and maybe I just don't realize it).  The simple version of the question:  In SQL Server 2012, what's the best way, that I can schedule, to produce all the DDL needed to make an exact replica of a database?


How to set Caps Lock to write a character?

Is it possible to change Caps Lock to a special character like $ (most use in PHP) ?


Alright, so my friend and I are setting up a new website. We expect heavy DDoS attacks, so our plan is to use nginx to proxy from various cloud servers so that people can't find our actual server's IP.  However, we need to link all these proxy servers up to one domain, so that when the domain (we'll say domain.com) is requested, it chooses a proxy server to send the user to and sticks them there. It also, however, needs to check if the server it's sending the user to is actually up and running (and has internet connectivity). If the server it's sending the user to is under attack, it kind of defeats the purpose of the proxy servers in the first place.  Any idea on how to do this?


While creating a backup of a table, I am using the following Syntax -  CREATE TABLE new_table LIKE original_table; INSERT new_table SELECT * FROM original_table;   But while executing the first Statement only, I am getting the folowing error:     SQL-Fehler: ORA-00922: Fehlende oder ungültige Option   00922. 00000 -  "missing or invalid option"   I am new to SQL but this should be simple execution.


Constructing a group from any set of groups

How can we construct a group from any non-empty set of groups that is not in the original set (i.e. not isomorphic to any of its elements)?


I have a few older flags, the oldest one being from Jun 27 at 23:03, still showing as active.  Since then I've had over 20 newer flags handled. Is there an issue with the displaying of the status, or perhaps an issue with the queue (I don't know how the flag queue works)?


remove headers on pages where there is a sidewaysfigure

I have a Latex document with headers on each page.  On the pages where I have a 'sidewaysfigure', I want to remove the headers, because sometimes, the white borders of the large sideways figures overlap the header.  Is it possible to remove headers on pages where there are sidewaysfigures?    Edit -   So here is my minimal working example. I have a main file which calls the other files - sorry I don't know the correct terminology. It's called testlatex.tex. It calls a file called test.tex which has the sideways figure.  I have     \thispagestyle{empty} in the sidewaysfigure environment, but the header and footer still appear.  testlatex.tex:  \documentclass[12pt,twoside]{ociamthesis}  % default square logo   \usepackage[bottom=37mm,top=10mm,left=33mm,right=33mm]{geometry} \usepackage{natbib} \usepackage{calc} \usepackage{aas_macros} \usepackage{color} \usepackage{longtable} \usepackage{amsmath, amsthm, amssymb, amsfonts} \usepackage{fourier} % The Fourier font package. \usepackage{microtype} % Apparently this makes pdfs look nicer. \usepackage{graphicx} \usepackage{longtable} \usepackage{eucal}  \usepackage{hyperref}  \usepackage{multicol} \usepackage{nomencl} \usepackage{geometry} \usepackage{setspace} \usepackage{rotating} \usepackage{changepage}  \usepackage{subfigure} \usepackage{dcolumn} \usepackage{booktabs} \usepackage{xfrac} \usepackage{fancyhdr} \setlength{\parindent}{0pt} \usepackage[font={footnotesize}]{caption} \let\oldtabular\tabular \renewcommand{\tabular}{\footnotesize\oldtabular} \include{mymacros} \makenomenclature \renewcommand{\nomname}{List of Symbols} \renewcommand*{\nompreamble}{\begin{multicols}{2}} \renewcommand*{\nompostamble}{\end{multicols}} \setlength{\columnsep}{3em} \title{Test title} \abstracttitle{} \author{a.n.other}             %your name \DeclareMathSizes{12}{13}{8}{10}  % For size 12 text  \begin{document} \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{\leftmark} \fancyfoot[CE,CO]{\thepage} \baselineskip=24pt plus1pt % this looks about double-line \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \pagenumbering{arabic} \newgeometry{bottom=4cm,top=4cm,left=3.2cm,right=3.2cm} \baselineskip=24pt plus1pt \doublespacing \include{test}  \end{document}   Test.tex  \chapter{Test Chapter} \ifpdf     \graphicspath{{Chapter3/Chapter3Figs/PNG/}{Chapter3/Chapter3Figs/PDF/}   {Chapter3/Chapter3Figs/}} \else     \graphicspath{{Chapter3/Chapter3Figs/EPS/}{Chapter3/Chapter3Figs/}} \fi  \begin{sidewaysfigure*}[] \thispagestyle{empty} \begin{center} \includegraphics[ width=200mm]{anything.png} \caption[]{Figure caption here.} \end{center} \end{sidewaysfigure*}


I've done enough research before asking this question. The work done by a spring is defined as $$W_\mathrm{spring}=\left|\frac{1}{2}kx^2\right|$$ Where $ k$ is the spring constant and $x$ is the distance moved by the spring. But when I tried to derive the eqñ I'm getting  $|kx^2|$ and no half is present. I took into consideration that there is displacement at both ends of the spring even when the force is exerted at only one end but still I end up at this eqñ. Can anyone help me out?


I'm using TikZ to plotting some functions for a document. For example, I want to plot 1/(x+1). So I did something like this:  \begin{tikzpicture}[>=stealth,x=3mm,y=3mm] \draw (0,5) node[above]{\fimg $y=f(x+1)=\dfrac{1}{x+1}$}; \clip (-5,-5) rectangle (5,5); \ejes[1]{-4}{4}{-4}{4} \draw[samples=100] plot(\x,{1/(\x+1)}); \end{tikzpicture}   where \ejes[style]{xmin}{xmax}{ymin}{ymax} is command, that I have defined before to draw the axes (join with \fimg). My expected output for the code below was just the function, but I get this:    So, TikZ automagically put the vertical asymptote at x=-1. That isn't a bad thing, but now I want to have some control over it. For example I want dotted lines for vertical asymptotes. How can I do that?


"allow for a little leeway" or " allow a little leeway" which one is correct?

"allow for a little leeway" or "allow a little leeway", which one is a right expression?  Maybe both expression are correct?


How to search a column name from a MySQL database?

I am running a huge database with so many tables and tables are having so many columns.  My DB is MySQL and I have to search for a particular column.  Is there a way available in MySQL to search a column name from all tables in a database?


Can Lightning Lure pull a creature through a friendly or enemy creature's space?

An enemy creature is 10 feet away from the caster. Right next to the creature is another enemy or friendly creature. Can Lighting Lure pull the target creature through the other creature's space, and into the empty space next to the caster?


How to oganizing bigger scenes? Workflow

I'm starting a big scene in which I have many objects. I modelled every object in separated blender files. Now I am putting everything together, and I was wondering if there was a proper way to organize my work, so I can still modify my objects afterwards, so it gets updated in the final scene. Thanks for your feedback!


How to remove the decimal and take only the whole number?

i have output = "70.00" i want only to get "70" through SQL server


Objective C NSString* property retain count oddity

I have the following example class:  Test.h:  @interface Test : UIButton {     NSString *value; } - (id)initWithValue:(NSString *)newValue; @property(copy) NSString *value;   Test.m:  @implementation Test @synthesize value; - (id)initWithValue:(NSString *)newValue {     [super init];        NSLog(@"before nil value has retain count of %d", [value retainCount]);     value = nil;     NSLog(@"on nil value has retain count of %d", [value retainCount]);     value = newValue;     NSLog(@"after init value has retain count of %d", [value retainCount]);     return self; }   Which produces the following output:  2008-12-31 09:31:41.755 Concentration[18604:20b] before nil value has retain count of 0 2008-12-31 09:31:41.756 Concentration[18604:20b] on nil value has retain count of 0 2008-12-31 09:31:41.757 Concentration[18604:20b] after init value has retain count of 2147483647   I am calling it like:  Test *test = [[Test alloc] initWithValue:@"some text"];   Shouldn't value have a retain count of 1?  What am I missing?    Thanks for your help.


I am following a networking course from udacity.   In one of the tutorials, the professor says that loopback address is almost always 127.0.0.1  So, it means it can be other than 127.0.0.1.  Can it be changed ? If yes, how ?  And also, at one moment, a machine can have only 1 loopback address, is it right ?


How to convert rows into columns in Google Spreadsheets?

I have a spreadsheet in Google Docs with two data rows and lots of columns like so:    Is it possible to easily convert these rows into two columns and lots of rows (obviously retaining all information and formulas)? In other words, to something like this:   19.9.2009   967,15 €  28.9.2009   950,78 € 12.11.2009   942,03 € ..           ..   There's probably a neat mathematical term for such a conversion, but I don't remember which (matrix something?). Feel free to suggest a better name for the question.  Edit: To clarify, ultimately I want to get rid of the original (two row) version and continue working on the converted one. TRANSPOSE(), , got me very close but not quite there. I want the raw data in the transposed version, not cells that mirror the original ones.


Plural for surnames derived from other words?

I recently came across a surname in a podcast, called Barleyfoot. In the podcast, his family was referred to as the Barleyfeet. Is this correct? Or should it be Barleyfoots? What about other possible names ending in words like goose, man, cactus etc. whose original words' plurals don't just add an 's' at the end? I'd like to say that a surname is a Proper noun, but if multiple people in a family have it, is it a Proper noun/ Collective noun?  Edit: The question mentioned as similar, does not cite any references for the answers given. Got answer with reference here


Split text with {{Text}} format Javascript

Sorry to bother you all. I'm no idea about regular expression. But right now I need one very badly. I want to split text using this format {{Text}}. The "Text" can be anything. All I need is split the text at the position of {{Text}}.   Here is a sample.  var Regx = My Regx; var String = "{{This}} is a {{test}} string to be {{spliced}} with {{Regular}} Expression";  var SplitArray = String.split(Regx); // it will give me an array like this // ["","is a ","string to be "," with"," Expression"]   Thank you in advance.  Edit: I solved it myself too. It is {{[^{}]+}}


I just installed a new kernel on Ubuntu GNOME 17.04 that came in through the normal updates. However, it is now stuck for a while on the following line:  Setting up linux-headers-4.10.0-20-generic (4.10.0-20.22) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 4.10.0-20-generic /boot/vmlinuz-4.10.0-20-generic   Something seems to hang the process. Does someone know what could cause this?  EDIT: This is the content of /boot as requested:  abi-4.10.0-19-generic     grub                          System.map-4.10.0-19-generic abi-4.10.0-20-generic     initrd.img-4.10.0-19-generic  System.map-4.10.0-20-generic config-4.10.0-19-generic  memtest86+.bin                vmlinuz-4.10.0-19-generic config-4.10.0-20-generic  memtest86+.elf                vmlinuz-4.10.0-19-generic.efi.signed efi                       memtest86+_multiboot.bin      vmlinuz-4.10.0-20-generic   EDIT 2: Just tried purging the new kernel but got this:  E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.   Using that command returns me to the original problem. I am stuck now :(


Why can't capillary tubes overflow due to this reason?

It is known that raises to a certain height based on the parameters of surface tension, the radius of the tube, etc. Given by the formula $$h=\frac{2S\cos \theta}{\rho Rg}$$ When the capillary tube is of insufficient height I'm told the water does not overflow and read  which prove this using energy. But why can't water be pulled by the surface tension on the interface outside of the tube? Resulting in all the liquid emptying out like a siphon.


Does a charged rod or a shell have a magnetic potential energy when it is kept in a uniform magnetic field?  Also, can anyone quantitatively explain why a wire loop carrying current would tend to be circular?


New Line character \\ not respected in TikZ

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}


Proving $\left(1+\dfrac{1}{1^3}\right)\left(1+\dfrac{1}{2^3}\right)\cdots\left(1+\dfrac{1}{n^3}\right)<3$ for all positive integers $n$

Prove that $\left(1+\dfrac{1}{1^3}\right)\left(1+\dfrac{1}{2^3}\right)\cdots\left(1+\dfrac{1}{n^3}\right)<3$   for all positive integers $n$   This problem is copied from Math Olympiad Treasures by Titu Andreescu and Bogdan Enescu.They start by stating that induction wouldn't directly work here since the right hand side stays constant while the left increases.They get rid of this problem by strengthening the hypothesis.$$\left(1+\dfrac{1}{1^3}\right)\left(1+\dfrac{1}{2^3}\right)\cdots\left(1+\dfrac{1}{n^3}\right)\le3-\dfrac{1}{n}$$ and then proceed by induction.  The problem is that I can't find a motivation for the above change.I mean,we could have subtracted a lot of things from the RHS but what should nudge us to try $\dfrac{1}{n}$?The rest of the proof is quite standard,but I can't see how I am supposed to have thought of it.Is it just experience?Or is it a standard technique?A little guidance and motivation will be appreciated.


Finding joint distribution of sum of independent Poisson random variables and calculating probabilities

My textbook, Introduction to Probability, by Blitzstein and Hwang, provides the following problem:     Let $X = V + W$ and $Y = V + Z$ where $V$, $W$, and $Z$ are independent $\text{Pois}(\lambda)$ random variables.   I want to then find the joint distribution of $X$ and $Y$ so that I can calculate $P(X = 3, Y = 0)$ in terms of $\lambda$.   However, I am confused about how to proceed here. I would greatly appreciate it if people could please take the time to show how to do this. I would really appreciate it if people could explain the reasoning behind the steps taken, so that I can understand what's going on in the solution process.


Why are the fertility rates of large predators kept low?

Predators at the top of a food chain, like lions, seem to have a relatively low fertility rate, which fits well to the ecosystem and avoids overpredation. But what is the mechanism that keeps the fertility rate at this level? A mutation that increases fertility among the predators should quickly spread in such a population, eventually leading to an increase of the predator fertility rate followed by overpredation. But it seems that this is usually not the case. What does keep the fertility rate of predators at the level they are?  P.S: Many explanations on population dynamics cite Lotka Volterra, including the existing question on Bio.SE "". Population dynamics predict orbits for the population sizes of predator and prey. Still this does not explain why the fertility rate of predators shouldn't go up.


So far I have checked the tolerance value, VIF and condition indexes. But checking the variance of the regression coefficients I have to wonder: how little variance of the regression coefficient should be associated with the smallest eigenvalue and what is too much (indicating multicollinearity)?


Comparing logarithms with different bases

$\log_3 4$ and $\log_7 10$: which of these two logarithms is greater?  I figured out that both are between $1$ and $2$, then between $1$ and $1.5$. And then $\log_34$ is greater than $1.25$, and $\log_710$ is smaller than $1.25$. However, that method doesn't work for every example, and I wonder if there's a easier way to solve this?


Can I bounce the creatures I've chosen for sacrificing to Annihilator?

I have  in play, which allows me to pay 2 life to return a Sliver to my hand.  My opponent controls an Eldrazi with annihilator 2 and attacks, making me sacrifice 2 permanents.  Can I sacrifice 2 Slivers and then, before the sacrifice resolves, return them to my hand with , so I don't have to sacrifice anything and only have to pay 4 life?


I would like to understand on a fundamental level the way in which A* pathfinding works. Any code or psuedo-code implementations as well as visualizations would be helpful.


I have created a group in Ubuntu terminal called terminal using groupadd terminal command and when I list out the groups using groups command it will not show the newly created group name in the output but if I add the same group again it gives me   groupadd: group 'terminal' already exists   error message but the group name exists in /etc/group file. Why I am not able to see the newly added group while running group command?


I have a simple piece of code, but there is one part that I cannot complete.  How do I print all the elements of an array after I have inputted them from the keyboard in a for loop,  here is the code.  Thanks.     final int MAX = 5;   String [] names = new String[MAX];    for(int index = 0; index < MAX; index++){      System.out.println("Enter a name: ");      names[index]=keyboard.nextLine();   }   System.out.println(names);


How to change the parent user on my chat profile

I cannot change the parent user shown in my chat profile. I've deleted my GL&U account a few months ago, then people get the 404 error when trying to see my profile. When I click on change, this is what I get:


I am having trouble getting good depth of field on close photos. My light is good. Lense is AF-S Micro Nikkor 40 MM 1:2.8 G


How to remove ubuntu 12.04 from a dual boot computer with windows 7

sir kindly tell me the steps that i can perfectly remove ubuntu from my computer . dual boot with windows 7 . system configuration is Intel e5200 2.5 Ghz Ram 2GB HDD 500 GB .


I have an ubuntu VM, where i by accident installed jdk 11, but i wanted to install jdk 8, and then set the enviroment variable like this.   #in the .bashrc file if want to add the following lines export JAVA_HOME=~/java/jdk1.8.0_161 export PATH=$JAVA_HOME/bin:$PATH export SPTARGET=sandbox    the problem is that i did not install the jdk, i did it directly from the command line   sudo apt install default-jre   and whenever i check the version with   $ java -version outputs: openjdk version "11.0.3" 2019-04-16  does anybody know how i can remove this java version, and then add the java jdk environment variable manually?


How to file form 8606 when doing a recharacterization followed by conversion?

I made a $5500 contribution to my Roth IRA in 2015 (T1).   Later I recharacterized this contribution. The market had gone down and I only got $5090 in my TIRA when the recharacterization happened (T2).   Then after sometime I converted the amount in my TIRA back to a Roth IRA. This time the market had gone up and I got $5146 in my Roth IRA (T3).     Now I am trying to figure out how to file form 8606.  thread helped me a lot but it took a while to parse all of it and I think it would be useful to have this topic as a concise Q&A on this site. So given the facts above, are the forms below filled out correctly? What is purpose of line 14 (the basis) in form 8606?  Form 8606:      Form 1040:      Also these are the 1099-R forms I got from my custodian (vanguard). Are these correct?  1099-R when I did recharacterization:  1099-R when I did conversion:


I've just read  which essentially says that when I set up DNS for example.com, the root record can't be a CNAME, it has to be an A record.  My question is, why?   I'm sure the clever people who designed DNS didn't make arbitary restrictions for no reason, but I don't see what we gain by requring root domains to be A records. I would love to just point my example.com domain to someserver.somewebhost.example and forget about it, but I can't.  Please enlighten me, billpg.


I would like to know whether these phrases "English Department" and "Department of English" have the same meaning. Thanks!


Is an old mtb with replaced gear safe to buy?

I believe this question to be on topic for this site, I want it to be more factual based than opinion, another similar question is . If its not feel free to close it.  I am looking at buying an older (10 yrs old) Giant NRS 1 MTB, it has very good  for the frame especially, but other parts have been replaced (it has a new front wheel, cables etc.). Should I be worried that other parts will be about to fall off, or are replacements a good thing?  EDIT: Ok so the wheel was replaced due to hitting a stump at night time, the cables were getting old, it has had plenty of action, but was well looked after. The rear sus has a tiny bit of play in the top bush (not enough to realise when riding)  It also has a leaking front fork, not a big issue (probably new seal, or not worry), but makes me wonder if it is worth it, will cost around $400 US ish, do you think it will have other issues?  cheers in advance!


I have to use dynamically created images for my projekt. I do this with jQuery:  var img = $('<img />').attr({ 'id': i, 'src': e.files[i].thumbnails["200x200"], 'alt':e.files[i].name, 'class': 'photo'}).appendTo($('#img'));   But I can't run a function if the image is clicked. I tried:  $(document).ready(function() {     $(".photo").click(function(){         alert('Works!');         }); };   and onClick:  var img = $('<img />').attr({ 'id': i, 'src': e.files[i].thumbnails["200x200"], 'alt':e.files[i].name, 'class': 'photo', 'onClick': 'test();' }).appendTo($('#img'));   [...]  function test(){    alert('Works!'); }   But both ways aren't working... What did I wrong?


As I'm about to reply with a comment, the text field is cut off until I swipe left or right.  iPhone 5 iOS 7.0.6  App: 0.1.54


I had 4 GB RAM installed, running in dual channel mode.  RAM: Corsair TWIN2X4096-6400C5DHX (CM2X2048-6400C5DHX) Motherboard: Gigabyte GA-EP45-UD3R  Channel 0: DIMM1, DIMM2 Channel 1: DIMM3, DIMM4  DIMM 1: 2 GB, CM2X2048-6400C5DHX DIMM 2: -- DIMM 3: 2 GB, CM2X2048-6400C5DHX DIMM 4: --   I added 2 GB more in DIMM 2. So now I have 6 GB in total.  So this is the current configuration:  DIMM 1: 2 GB, CM2X2048-6400C5DHX, channel 0 DIMM 2: 2 GB, CM2X2048-6400C5DHX, channel 0 DIMM 3: 2 GB, CM2X2048-6400C5DHX, channel 1 DIMM 4: --   But now when I boot up, BIOS reports as running in "Flex" mode.    Why is that? The module I added is of the same brand and part number as the other ones that were already installed. From what I have read on the web, the "flex" mode only appears if you mix and match different module sizes, or different brand and part numbers.  In fact, here is a quote from the motherboard manual about it:     When memory modules of different capacity and chips are installed, a   message which says memory is operating in Flex Memory Mode will appear   during the POST. Intel® Flex Memory Technology offers greater   flexibility to upgrade by allowing different memory sizes to be   populated and remain in Dual Channel mode/performance.   Here is a screenshot of a RAM report.    How do I tell if at least the original two RAM modules are running in dual channel? What do I look for?  I notice that the module in slot 2 has a week/year parameter. While the original two do not. I don't think the date is accurate. But could this indicate that they are not same modules, internally? Like different revisions maybe?  Why are there two different JEDEC frequencies? One is at 270 MHz and the other is at 400 MHz, why is that?  This is what the DIMM slots look like:    Similar color means disimilar channel, and disimilar color means similar channel (in lack of a better way of expressing this idea). So yellow and yellow means channel 0 and 1, which makes up a dual channel. Similarly, red and red means channel 0 and 1. Colors are not an indication of channel (same color does not mean same channel), but a way to help install memory in dual channel mode. (Then you add the third wheel to the mix, like I did, and you're in this weird "flex" mode.)


Can you "rewind" sound messages by going supersonic?

I was having a discussion with a friend about supersonic flights.   It was then when he proposed an idea on an interesting experiment that can be done during a supersonic flight. The experiment goes like this.  You board a supersonic jet along with your friend. The flight is cruising at Mach 1 above Amazon rainforests, or some other place with comparatively low air currents. You have somehow got the permission to do the experiment which involves getting out of the plane.  You both take all the safety measures and stand on both the ends of the aeroplane with yourself near the nose and your friend near the tail, both facing in the direction of the aeroplane's motion.  Your friend yells out something at you, but you can't hear it, because it's Mach 1.  You ask the pilot to slow down the plane, and the plane gradually decelerates. What happens now?  Your friend's sound catches up with you, and you hear the message!  Now, you yell out something at your friend.  You speed up the plane, and your friend catches up with the message.  Now, something remarkable happens when you do this. Your friend hears the message in reverse!!  Now the most interesting part:   If you keep on accelerating and decelerating the plane about the speed of sound, you can make your message to be heard multiple times by your friend!! It is weird, but is such an observation plausible? UPDATE: Most of the comments posted here are about the rewinding part. In fact, that is only a part of the question. The real question emphasizes on the idea, of receiving a signal by overtaking it.


Where can I read about gamma coefficient in SVM in scikit-learn?

have a couple of coefficients which meaning I can not understand.  gamma : float, optional (default=0.0) Kernel coefficient for ‘rbf’, ‘poly’ and ‘sigmoid’. If gamma is 0.0 then 1/n_features will be used instead.  and  coef0 : float, optional (default=0.0) Independent term in kernel function. It is only significant in ‘poly’ and ‘sigmoid’.  I tried to google for gamma in support vector machines, but have not found anything relevant. Can anyone explain me what is the meaning of these parameters and reasonable value for them.


Show that every nonzero prime ideal in $\mathbb{C}[x, y]/(x^2 - y^2 - 1)$ is maximal

Show that the ring $A := \mathbb{C}[x, y]/(x^2 - y^2 - 1)$ is an integral domain. Further show that every nonzero prime ideal in A is maximal.  I proved that $A$ is an integral domain by showing that $x^2 - y^2 - 1$ is an irreducible in the UFD $\mathbb{C}[x, y]$ and hence a prime. To prove that every nonzero prime ideal in $A$ is maximal I need to prove either that:   i) A is a PID, so in a sense I need to be able to express $x$ in terms of $y$ (or vice versa) but I only know that $x^2 = y^2 + 1$ in $A$.  ii)If $I$ is a prime ideal in $A$ then every non zero element in $A/I$ is invertible.


Ubuntu running very slow. Unity is being rendered by Intel video card, not by my NVIDIA® GeForce® GT 540M

I have installed Ubuntu 12.04. I have installed bumblebee too, and it works fine. But my operating system is very slow. I suppose it's because the Intel video card is rendering my graphic interface. When I want to use my dedicated video card, I use the optirun command (e.g optirun firefox). How can I use optirun for graphic interface rendering?


In what occasion would an interface be used?

Im currently studying PHP and came across the concept of an interface. I understand that they are used as a templating structure for the program,  but in what occasion would they be used?


Query a region within a larger region with GeoDjango REST API

I have a working Django REST API which can query all the counties in a country. //My model class kenya_counties(models.Model):   objectid = models.BigIntegerField()   id_field = models.BigIntegerField()   county_nam = models.CharField(max_length=80)   const_code = models.BigIntegerField()   constituen = models.CharField(max_length=80)   county_cod = models.BigIntegerField()   shape_leng = models.FloatField()   shape_area = models.FloatField()   geom = models.MultiPolygonField(srid=4326)    def __str__(self):       return self.county_nam  //My Serializer class CountiesSerializer(serializers.ModelSerializer):   class Meta:      model = kenya_counties      fields = ('objectid', 'id_field', 'county_nam', 'const_code', 'constituen', 'county_nam', 'county_cod', 'shape_leng', 'shape_area')  //My view @api_view(['GET', 'POST']) def counties(request):    if request.method == 'GET':        data = kenya_counties.objects.all()         serializer = CountiesSerializer(data, context={'request': request}, many=True)         return Response(serializer.data)     elif request.method == 'POST':        serializer = CountiesSerializer(data=request.data)        if serializer.is_valid():            serializer.save()            return Response(status=status.HTTP_201_CREATED)                 return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)  //My url     re_path(r'^api/gis/counties/$', views.counties),  I get . How can I query just one county and display it on a react-leaflet map as shown below? <MapContainer center={position} zoom={13} scrollWheelZoom={false}>     <TileLayer       attribution='&copy; OpenStreetMap contributors'       url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"     /> </MapContainer>


Can a cantrip be cast using a higher-level spell slot?  Specifically, I'm thinking of casting Shocking Grasp as a 1st-level spell, to trigger the 's  feature (Sword Coast Adventurer's Guide, p. 137):     [...] whenever you start casting a spell of 1st level or higher that deals lightning or thunder damage, stormy magic erupts from you. This eruption causes creatures of your choice that you can see within 10 feet of you to take lightning or thunder damage (choose each time this ability activates) equal to half your sorcerer level.


If there's no pokemon to begin with, will incense help?

I live in the middle of nowhere with an M-cell. There is no pokemon near me 99% of the time. When i pop an incense, will it attract pokemon even though theres none to begin with?


Fermat's Last Theorem: implications (there is no new proof)

I am not experienced in Number Theory but what I know is that some results of this filed are applicable in other areas, e.g. algebra. For sure FLT made (and makes) people be interested in Number Theory leading to the development of new methods which can be themselves applied not only for the proof of FLT (like financial problems motivated somehow development of stochastic analysis). I am interested - if there are applications or implications of FLT itself?  More precisely: if the fact "for each $n\geq3$ there are no integer solutions of $a^n+b^n=c^n$" leads to solutions of problems which are not in the field of Number Theory?   I would specify that I wonder about some problems which are already formulated: since FLT is known for more then 300 years I am pretty sure that there were formulated hypothesis which follow from FLT directly (if there are such hypothesis not in the field of Number Theory).


So the problem is that account 1 and account 2 bought a game together, but account 1 isn't used anymore. Can we transfer the game license from account 1 to account 3?   The game was bought on account 1 and account 2 activated account 1 as primary.


Ability Scores bonus spells and metamagic feats

First of all, I'm not asking this question to solve an issue. My GM and I both agree on the fact this should not be possible to avoid any game breaking mechanics.   However, we couldn't find any rules on this matter on the wiki we're using (we're not native English speakers), I asked Google only to find out people saying "I think you can't" without any source, or leave the subject and speak about learning spells and not using already learnt ones.  My mage is currently level 3 with 24 intelligence, as far as I know he cannot learn 3rd level spells. Nonetheless, he has access to two bonus 3rd level slots. What's stopping him to learn 2nd level and fuse with any +1 metamagic feat (such as Intensified Spell)? Same with 1st level spells and +2 megamagic feat.  Please, use official rules based evidence. Thank you and have a good day.


I am looking to make details on the handle of a sword, and am trying to use the Boolean modifier to cut into the cylindrical handle. Unfortunately, Blender does not seem to enjoy cutting the objects when the subdivision surface modifier is high detail. I would like for the curves to look smooth. Is there another way for me to create these rounded cutouts or am I using Boolean wrong? The Blend File:


ESR meter: Are in-circuit readings accurate?

I recently bought one of these ESR meters, a 'MESR-100':       It claims to be able to test capacitor ESR with the caps left in-circuit.  It appears to work well from my tests so far.  However, how much can I trust the in-circuit readings?  Are they going to be less accurate?  Are there certain circuit configurations where it wouldn't be possible to measure ESR in-circuit accurately?  [EDIT: Added the model as requested] :


I am working on an application, where i would like the user to first register and than log in to the application.   Can i make the user perform both actions from a single form i.e. as soon as he registers he may be logged in or go for separate forms for both the actions


How can I set a key binding that globally overrides and takes precedence over all other bindings for that key?  I want to override all major/minor mode maps and make sure my binding is always in effect.  This of course doesn't work:  (global-set-key "\C-i" 'some-function)   It works in text-mode, but when I use lisp-mode, C-i is rebound to lisp-indent-line.  I can go through and override this binding in lisp-mode and in every other mode individually, but there must be an easier way.  Every time I install a new mode for a new file type, I'd have to go back and check to make sure that all of my key bindings aren't being overridden by the new mode.  I want to do this because I want to emulate bindings I've already learned and ingrained from other editors.


tensor product of infinite dimensional vector spaces

Let $V,W$ be vector space over field $k$. Then  \begin{eqnarray*} V^*\otimes W &=&V^*(\oplus_{i\in I} k_i)\\ &=&\oplus_{i\in I}(V^*\otimes k_i)\\ &=& \oplus_{i\in I}V^*_i\\ &=& \oplus_{i\in I}Hom(V,k)_i, \end{eqnarray*} \begin{eqnarray*} Hom(V,W)=Hom(V,\oplus_{i\in I}k_i). \end{eqnarray*} When $W$ is finite dimensional, we have $Hom(V,\oplus_{i\in I}k_i)=\oplus_{i\in I}Hom(V,k)_i$. Thus $V^*\otimes W=Hom(V,W)$.   Does the equality holds when $W$ is infinite dimensional and $V$ finite dimensional? Is the equality holds when $W$ is infinite dimensional and $V$ also infinite dimensional?   I am confused. By universal property I only obtain $ Hom(M,\Pi_{i\in I}N_i)=\Pi_{i\in I}Hom(M,N_i)$. Can we obtain $Hom(M,\oplus_{i\in I}N_i)=\oplus_{i\in I}Hom(M,N_i)$ in general?   Thanks.


Does verifying the apk signature fingerprint guarantees it has no malware?

I want to check if an apk file is really from a specific developer and that the whole apk has no malware in it.  I unzipped the apk and in the sub-folder META/INF I used the following command in Ubuntu:  keytool -printcert -file RELEASE_.DSA   If I use this technique with a "clean.apk" and a "suspicious.apk" file from the same developer and the MD5 / SHA1 are the same ... does this mean that the "suspicious.apk" really is "clean" ?  Does this work like GnuPG verifying a file? Or is this not reliable to check for integrity / authencity of an apk file?


Find all function $f \colon \mathbb R \to \mathbb R$ such that $f(xf(y)) + f(yf(x)) = 2xy, \forall x, y \in \mathbb R$.

Find all function $f \colon \mathbb R \to \mathbb R$ such that $$\large f(xf(y)) + f(yf(x)) = 2xy, \forall x, y \in \mathbb R$$   Me, thinking about things without noticing the lesson: I wonder what is the hardest problems about function equations?  My maths teacher: Let's move on the next problem which you can see on the board there, Thành Đạt!  30 minutes later...  Everyone in class: Well, we can calculate the value _$f(0)$ and prove that $f(xf(x))$ equals to-  That one kid who is certainly better than everyone (and is studying advanced calculus while you haven't started on the basics yet): Also, it can also be proven that $f(1) = \pm 1$.  (Everyone knows that.)  My maths teacher: Actually, this problem has only been proposed yesterday so there hasn't been a solution yet. Let us work this out together.  After 1 hour of figuring out what we are doing with our lives...  My maths teacher: That there's the answer, $f(x) = \pm 1, \forall x \in \mathbb R$, and don't write that down in the actual test if there is a problem in a competition that is similar to this. I've taken a shortcut just because-  Me: I want to go home.  My maths teacher: Thank you for finishing my sentence but please don't interrupt me, again.  So I have provided the solution below, please help me with coming up with a shorter solution.


I'm trying to use GParted to resize an ext4 partition on /dev/sda2, and I've been watching a youtube tutorial for that. But my /dev/sda2 cannot be resized. I've tried to change the number but it kept returning to the previous value. I've tried to use cursor but still cannot. when I saw on youtube it could reduce the partition size just shifting dev/sda2. I cannot shift the /dev/sda2 by the cursor and resize that.


What is the gem icon in DOTA2 Twitch stream?

I've only seen this icon in Twitch streams, so assume it's something to do with Twitch, but again have only seen this in DOTA2 streams!  Any ideas what it is?


I was already on 16.04, made an update and now I have login issues, it is looping. Is there any file I can look for crash log or anything that I could try?  Already tried everything on post  and still not working. My screen resolution is also wrong now so maybe it has relation with video card.


Determining an unknown vector from its cross and dot product with known vector

Let $\vec{k}$, $\vec{v}$, and $\vec{u}$ be vectors, where $\vec{u}$ is unknown and $\vec{k}$ and $\vec{v}$ are known vectors. Given:     $\vec{u}\cdot\vec{k}=c$  $\vec{u} \times \vec{k}= \vec{v}$   From this relations, how can i determine the vector $u$? I tried to construct orthogonal coordinate system from $(\vec{k}, \vec{v},\vec{k}\times \vec{v})$ but i couldn't proceed from there. Any idea?


What is a word like "perfectionist", but without the negative aspects?

I'm looking for a word that describes people who have high standards for themselves and others and strive to achieve them, but don't expect absolute perfection. They are satisfied with realistic results. As in     Being a ________ [perfectionist], John spends a great deal of time ensuring the quality of work is above reproach.   I like "perfectionist", but it's too closely associated with words like "persnickety", "hypercritical", "nitpicky", "punctilious", "anal", "pedantic", etc.  I'm finding words like "meticulous", "rigorous", "conscientious", and "thorough", but none of these really fit quite right.


GLIBCXX_3.4.20 not found, how to fix this error?

Whey I try to run the program Layout Editor (available on ) on Ubuntu 14.04.1 64-bit LTS I get the following output in the terminal:  $ layout layout: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by layout)   I tried the command strings on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 as following and here is the input and the output:  $ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBCXX_3.4.14 GLIBCXX_3.4.15 GLIBCXX_3.4.16 GLIBCXX_3.4.17 GLIBCXX_3.4.18 GLIBCXX_3.4.19 GLIBCXX_DEBUG_MESSAGE_LENGTH   How can I resolve this issue I somehow guess that it is related with GCC but cannot figure out how to fix the problem. Furthermore, I have tried a PPA as suggested on  and there is a similar question for an older version of Ubuntu at . However, after I ran sudo update I get numerous warnings and the list I obtained with the strings command did not have new entries after installing gcc 4.9, so I purged the PPA() with ppa-purge. Any help, suggestions on how to proceed are greatly appreciated.


What happened to all the people with Senju last names?

In Naruto, the Uchiha clan was wiped out by Itachi, which makes sense why you don't see many Uchihas in the show. However, why do I hardly see anyone anyone in the show with the last name of Senju? The last time I recalled, they weren't wiped out by anything. What's up with that?  Note: I know that the Narutopedia page for the  gives a short explanation, but I would like further elaboration.


What is the difference between an int and a long in C++?

Correct me if I am wrong,  int is 4 bytes, with a range of values from -2,147,483,648 to 2,147,483,647 (2^31) long is 4 bytes, with a range of values from -2,147,483,648 to 2,147,483,647 (2^31)  What is the difference in C++?  Can they be used interchangeably?


Workspace preparation and cleanup for DNA work

What steps should be taken in a molecular lab environment to help ensure that DNA samples/stocks are not contaminated, or contaminate other objects in the lab?


Remove 1 instance of duplicate values T-SQL

I currently have a table called People. Within this table there are thousands of rows of data which follow the below layout:  gkey |    Name |  Date       | Person_Id 1    |    Fred |  12/05/2012 | ABC123456 2    |    John |  12/05/2012 | DEF123456 3    |    Dave |  12/05/2012 | GHI123456 4    |    Fred |  12/05/2012 | JKL123456 5    |    Leno |  12/05/2012 | ABC123456   If I execute the following:  SELECT [PERSON_ID], COUNT(*) TotalCount FROM [Database].[dbo].[People] GROUP BY [PERSON_ID] HAVING COUNT(*) > 1 ORDER BY COUNT(*) DESC   I get a return of:  Person_Id     | TotalCount ABC123456     | 2   Now I would like to remove just one row of the duplicate values so when I execute the above query I return no results. Is this possible?


How to split a loop into multiple columns

If I have a loop running from a category query like :  <?php $the_query = new WP_Query('cat=1&showposts=50&orderby=title&order=asc');?>
 <?php while ($the_query->have_posts()) : $the_query->the_post();?>
..
<?php wp_reset_query(); ?> <?php endwhile; ?>
   How would I create an if clause that breaks the list at a certain interval, and starts a new one. So for example at the 10th post, return a
 and start a new one
 at 11.  This is incorrect but to illustrate my objective:  <?php $count =0;     while($count <=50){         if ($count == 9){             echo "
<a href='<?php the_permalink(); ?>'>                       <?php the_title(); ?>

";             }          elseif ($count == 10){         echo "

<a href='<?php the_permalink(); ?>'>                           <?php the_title(); ?>
";         }         else {         echo "
<a href='<?php the_permalink(); ?>'><?php the_title(); ?>
";         }   What is the correct way to include this logic into the loop?


What is the best way to lubricate gear and brake cables in their tubular housings? Up until now, I've used CRC/WD-40 with an extension tube and attempted to squirt the lubricant into the tube housings. However, I suspect that this is fairly ineffective because 1. WD-40 is not a great lubricant (judging by the other Q+A on this site), and 2. the lubrication doesn't travel very far into the tubes.  So what is a good way of doing this?


Logging as Admin user on Drupal 7 website stored on an IIS machine, I get the following error:  Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]:  General error: 2006 MySQL server has gone away'  in E:\inetpub\wwwroot\teams\includes\database\database.inc:2139   Stack trace:  #0 E:\inetpub\wwwroot\teams\includes\database\database.inc(2139): PDOStatement->execute(Array) #1     E:\inetpub\wwwroot\teams\includes\database\database.inc(664): DatabaseStatementBase->execute(Array, Array)  #2 E:\inetpub\wwwroot\teams\includes\database\database.inc(2318): DatabaseConnection->query('SELECT expire, ...', Array, Array)  #3 E:\inetpub\wwwroot\teams\includes\lock.inc(167): db_query('SELECT expire, ...', Array)  #4 E:\inetpub\wwwroot\teams\includes\lock.inc(146): lock_may_be_available('schema:runtime:...')  #5 E:\inetpub\wwwroot\teams\includes\bootstrap.inc(420): lock_acquire('schema:runtime:...')  #6 E:\inetpub\wwwroot\teams\includes\bootstrap.inc(442): DrupalCacheArray->set(Array)  #7 [internal function]: DrupalCacheArray->__destruct()  #8 {main} thrown inE:\inetpub\wwwroot\teams\includes\database\database.inc on line 2139   Any idea on how do I debug those statements? And how do I release locks?


Prove $\text{Aut}(Q_8)$ is isomorphic to $S_4$ using presentation of groups

We are given that presentation of $S_4$ is $ \langle x,y|x^4=y^2=(x*y)^3=1 \rangle$ and $|S_4| = 24$. My approach: I have proven that $|\text{Aut}(Q_8)|=24$ and there exists $f$ and $g$ in $\text{Aut}(Q_8)$ such that $f^4 = \text{Id}$ and $g^2= \text{Id}$ and $(f*g)^3= \text{Id}$ (Where $f(i)=i$,$f(j)=k$ and $g(i)=j,g(j)=i$). If I prove that $f$ and $g$ generate the whole of $\text{Aut}(Q_8)$ then I am done, but this seems rather a tough task. I have speculations that after finding $f$ and $g$ is enough to prove it but I am not sure why. It would be great if anyone could help. Edit: There is a similar question here  But it doesn't prove by presentation of groups and I want the question to be solved in the way I have approached.


Understanding what this for loop will do

In this code, what does the "? arr[ i ] : min;" mean? Specifically the question marks in the statements?  int min; int max = 4000;  min = max = arr[0]; for(i = 1; i < sz; i++) {     min = (arr[i] < min) ? arr[i] : min;     max = (arr[i] > max) ? arr[i] : max; }


Differences between MANOVA and Repeated Measures ANOVA?

What is the difference between a repeated measures ANOVA over some factor (say experimental condition) and a MANOVA? In particular one website I stumbled across suggested that MANOVA does not make the same assumption of sphericity that repeated measures ANOVA does, is that true?     If so, why would one not just always use MANOVA?   I am trying to conduct a repeated measures ANOVA with multiple DVs, what is the appropriate approach?


error: non-static method setListMovie(ArrayList) cannot be referenced from a static context

i don't know why there is this error. it want me to add static in my adapter in this code  void setListMovie(ArrayList<Movie> listPresident) {     this.listPresident = listPresident; }   but when i add static in it. 'this' in my code become error.  this it the my main code that want to add static the adapter class code  ListMovieAdapter.setListMovie(list);   please help why there is this error and how to fix it


Let $X_n$ be s submartingale and $\zeta_n = X_n - X_{n-1}$ with $\text{sup}\ X_n < \infty$ and sup $\mathbb{E}[\zeta_n^+] < \infty$. Show $X_n \rightarrow X$ a.s.  For some $\epsilon > 0$, let $A_n$ be the event that $\zeta_n > \epsilon$. Since $\text{sup}\ X_n  = M < \infty$, and $\mathbb{E}[X_{n+1}] \geq X_n$, then $\mathbb{P}(A_{n+1}) \leq \mathbb{P}(A_{n})$, and $\mathbb{P}(A_{n}) \rightarrow 0$.   Is there any way I can show the sum of probabilities is $0$ and apply Borel-Cantelli? Am I going in the right direction?


Conversion from type 'DBNull' to type 'Integer' is not valid in designer

I have a code below in an Entity Class. It throws exception in the Entity.Designer.vb saying the value Amount in Table Patient is DbNull.      If _patientDetails.ID > 0 Then         If _patientDetails.Amount = EntityEnums.Patient.Existing             Then                                          _patientDetails.SetAmountNull()         End If     Catch ex As Exception         _patientDetails.SetAmountNull()     End Try  End If   It goes to the "Return" line as below and throws exception.  Public Property Amount() As Integer     Get         Try              Return CType(Me(Me.tablePatient.AmountIDColumn),Integer)         Catch e As Global.System.InvalidCastException             Throw New Global.System.Data.StrongTypingException("The value for column 'AmountIDColumn' in table 'Patient' is D"& _                      "BNull.", e)         End Try     End Get     Set         Me(Me.tablePatient.AmountIDColumn) = value     End Set End Property   Exception Details are   A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll  Additional information: Conversion from type 'DBNull' to type 'Integer' is not valid.


"This post has been deleted - no more edits are allowed" for all posts I try to edit

When I try to edit any post on stackoverflow.com (I have experimented with at least 5 random posts) I recieve a blank page with the text "This post has been deleted - no more edits are allowed". I believe it is highly unlikely that the five posts that I checked have been deleted (even one with 107 votes). How would I be able to fix this?


How do I get a Secon JButton to work with muliple names when clicked on?

I'm new to JFrame buttons and I have two JButtons. The one with Submit works but when I try to use the other with a specific name it doesn't output a string into the console. In the end the second JButton (btn) will have different names but when clicked on the button doesn't do anything.  package schoolprgm;  import java.awt.Dimension; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.Arrays;  import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.WindowConstants;   public class Jeopardy extends JFrame  {   static JButton btn = new JButton();static JButton Submit = new JButton(); static JFrame frame = new JFrame("Jeopardy");static JPanel panel = new JPanel(new GridLayout(7,5,10,10)); static JTextField textField = new JTextField(10); public  Jeopardy(){       frame.setDefaultCloseOperation(3);     frame.setVisible(true);      Submit.addActionListener(new ButtonListener());      btn.addActionListener(new ButtonListener());  }  public static void main(String[] args) {     // TODO Auto-generated method stub        frame.setPreferredSize(new Dimension(1000,400));            frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);          int Score = 0;        JLabel l2 = new JLabel("Score: "+ String.valueOf(Score));        JLabel l3 = new JLabel();        ArrayList question = new ArrayList();         JLabel l = new JLabel("Question: "+ question);          Jeopardy.Submit.setText("Submit");          l.setLabelFor(textField);          /*label1.setText("Label1");          panel.add(label1);         panel.add(label2);         panel.add(label3);         panel.add(label4);         panel.add(label5);         panel.add(label6);         *///panel.add(label7);           String words = ("Category 1,Category 2,Category 3,Category 4,Category 5,Category 6,Category 7,C1: 100,100,100,100,100,100,100,200,200,200,200,200,200,200,300,300,300,300,300,300,300,400,400,400,400,400,400,400,500,500,500,500,500,500,500,999,999,99,999,999,999,999,999,999,999,999,999");         ArrayList btnnames = new ArrayList();         String[] words2 = words.split(",");         btnnames.addAll(Arrays.asList(words2));       frame.add(panel);         for(int x=0;x<42;x++){              if( x >= 0 && x<=6){                 JLabel label = new JLabel(String.valueOf(btnnames.get(x)));                 panel.add(label);                 label.setText(String.valueOf(btnnames.get(x)));             }             else{            btn = new JButton(String.valueOf(btnnames.get(x)));           Jeopardy.btn.setText(String.valueOf(btnnames.get(x)));             panel.add(btn);         }}           panel.add(l);         panel.add(textField);         panel.add(Submit);         panel.add(l2);         panel.add(l3);            frame.setContentPane(panel);         frame.pack();         frame.setVisible(true);         frame.setResizable(false);      frame.getContentPane().add(new Jeopardy());  }   }  class ButtonListener implements ActionListener { @Override     public void actionPerformed(ActionEvent e) {        if (e.getActionCommand()=="Submit"){         System.out.println("submit");         System.out.println(Jeopardy.textField.getText());      } if (e.getActionCommand()==("C1: 100")) {       System.out.println("100 has been clicked");     }       } }


In python regex r'\W' vs r'\W+' vs r'\W*', can someone explain this?

txt = "The rain in Spain '69'" x = re.split(r'\W*', txt) print(x)   ['', 'T', 'h', 'e', '', 'r', 'a', 'i', 'n', '', 'i', 'n', '', 'S', 'p', 'a', 'i', 'n', '', '6', '9', '', '']  txt = "The rain in Spain '69'" x = re.split(r'\W+', txt) print(x)   ['The', 'rain', 'in', 'Spain', '69', '']  The documentation (python.org):     Another repeating metacharacter is +, which matches one or more times. Pay careful attention to the difference between * and +; * matches zero or more times, so whatever’s being repeated may not be present at all, while + requires at least one occurrence. To use a similar example, ca+t will match 'cat' (1 'a'), 'caaat' (3 'a's), but won’t match 'ct'.   Please explain this difference.


UK Visa application: "Travelling with another person"?

I'm filling out my Tier 4 UK visa application for postgraduate studies and will be travelling with my parents to the UK a week before my program starts for a little vacation. My parents will only be with me for a week, but do I still need to list them on the "travelling with another person" section in the application?


How is Kylo still alive after the Starkiller base explosion?

When Starkiller base exploded, Ren appeared to be on it still, either way, he wouldn't have had enough time to get off of it before it exploded, so how did he survive? And if so, how without serious injury?


I have a map with a few different layers. One of these layers is a 'cities' layer. I am trying to use selection->select by attribute-> Select: "Pop_CL"=8 or 9 or 10..... where Pop_CL is the population class (ten being cities with the largest population). I keep on getting error messages though!   Error 1: There was an error executing the query. An invalid SQL statement was used. I am selecting each # from "get unique values." No idea why I keep getting an error!


When we want to say that something is inappropriate or an incorrect selection from several options, we often say that it is "the wrong [whatever]". For example:  Ten o'clock is the wrong time to have lunch.   I put on the wrong shirt this morning.  But this is surely incorrect logically, because the use of the word "the" implies uniqueness where there is none. Ten o'clock is not uniquely the wrong time to have lunch; nine o'clock would also be wrong. So it's not the wrong time to have lunch, merely a wrong time to have lunch. And if I have a shirt that's not a good selection, then I may have several; yet even if I had several, I would still say that I put on the wrong shirt and not the more logically defensible a wrong shirt. So why do we talk about wrong selections this way, using the definite article? How long have we been doing it? Is it something that arose from the history of the English language, or did it come to us from a precursor to English?


Intuitive explanation for density of transformed variable?

Suppose $X$ is a random variable with pdf $f_X(x)$. Then the random variable $Y=X^2$ has the pdf   $$f_Y(y)=\begin{cases}\frac{1}{2\sqrt{y}}\left(f_X(\sqrt{y})+f_X(-\sqrt{y})\right) & y \ge 0 \\ 0 & y \lt 0\end{cases}$$   I understand the calculus behind this. But I'm trying to think of a way to explain it to someone who doesn't know calculus. In particular, I'm trying to explain why the factor $\frac{1}{\sqrt{y}}$ appears out front. I'll take a stab at it:  Suppose $X$ has a Gaussian distribution. Almost all the weight of its pdf is between the values, say, $-3$ and $3.$ But that maps to 0 to 9 for $Y$. So, the heavy weight in the pdf for $X$ has been extended across a wider range of values in the transformation to $Y$. Thus, for $f_Y(y)$ to be a true pdf the extra heavy weight must be downweighted by the multiplicative factor $\frac{1}{\sqrt{y}}$  How does that sound?  If anyone can provide a better explanation of their own or link to one in a document or textbook I'd greatly appreciate it. I find this variable transformation example in several intro mathematical probability/stats books. But I never find an intuitive explanation with it :(


Have my linearity and Homoscedasticity assumptions been met?


Is this notification that keeps coming up on my phone a virus?

This notification keeps coming up, and i'm not sure if it's real or a virus, or how to stop it coming up. It says 'Android system warning! Google has found serious bugs in your Battery Module!Click on [OK] to view details.'   Screenshot (click for larger variant)  Any help appreciated, thanks. Lauren.


can't see my meshes after updating my drivers

After I updated my graphics driver blender Isn't showing me my meshes, but for some reason It shows my selection. I tried using substance painter and daz studio and both work fine only blender is giving me trouble.


Finding and removing duplicate files of a specific file extension or type in OS X with a script?

Not sure why but there doesn't seem to be a utility app that allows defining a search and delete duplicates by file extension or type.  Is it possible to do through some terminal script? Like for:     Strata Design 3D CX Model    .sd3


I'm trying to make a condition on firebase, taking value, but I'm not sure how to do it.  I need to do this, if the value is horizontal do this, if you do not do that.  My firebase:  leitura: "horizontal"  String emailUsuario = autenticacao.getCurrentUser().getEmail();     String idUsuario = CustomBase64.codificarBase64( emailUsuario );     favoritosRef = firebaseRef.child("usuarios").child(idUsuario);     valueEventListenerLeitor = favoritosRef.addValueEventListener(new ValueEventListener() {         @Override         public void onDataChange(DataSnapshot dataSnapshot) {             if (dataSnapshot.child("leitura").getValue() == "horizontal") {                 Log.e("TAG", "=======" + dataSnapshot.child("leitura").getValue());             } else {                 Log.e("TAG", "=======" + "Vertical");             }         }            @Override         public void onCancelled(DatabaseError databaseError) {          }     });


Ubuntu screen flickering after laptop repair

I own a Dell Vostro 3550 laptop which uses both Windows 7 and Ubuntu. The laptop broke a month ago and I called Dell support to fix it. A small metallic clip was dislodged from the back lid and short-circuited  "something" on the motherboard. I wasn't present during repair so I do not know exactly what was roasted.  After repair everything works fine on Windows 7 but on Ubuntu the mouse cursor and the windows environment are flickering. Sometimes it stops for an hour or so but it reoccurs.   I've tried a fresh install of Ubuntu along with Fedora and Funduntu but flickering is still present. My intuition says that its a hardware issue since I've never had flickering problems in Ubuntu(currently run the 12.04 vostro 3550 distro), although I kind of spended a lot of time in order to setup Vostro 3550 graphics to work properly.  I want to investigate more before calling Dell support again because Windows 7 works flawlessly and it might be a drivers problem(although I've tried almost everything regarding ati drivers for ubuntu, disabled discrete card, disable integrated card etc.)  The graphics card are  AMD Radeon 6630M and Intel HD 3000.  Any ideas on how to fix that problem?


Arrange different external displays of same model to different positions

I am running Mac OS X (Version 10.10.5) on a MacBook Pro (13 Inch, Mid 2010) and want to arrange an external monitor of the same type to different positions.  First, let me explain my setup:   monitor at my office: DELL U2312HM (located above the MacBook's screen) monitor at home: DELL U2312HM (located left of the MacBook's screen)   As you can see, I am using different monitors of the same type (they have different serial numbers displayed in the System Overview window). However, they are located either above or left of the internal screen.  Since the only way I know to arrange an external monitor is draging the blue boxes in the monitor section of the system preferences, I need to do this every morning after connecting my monitor in the office and every evening after coming home. The monitor arrangement does not depend on the monitor's serial number but on the model since saving the arrangement of different models works as desired.  So is there a way, a hidden setting, a hidden setting accessible through the terminal or even a third-party app which enables different monitor arrangements for the same monitor model but based on the monitor's serial number as shown in the system overview?  The behavior which seems to be a system default is very annoying and does not feel very apple-like.


I want to sed using a variable.  For example, sed -n '1,10p' file. So, instead of 10, I want to use $k where k is an integer.


For how many positive integer $k$ does the ordinary decimal representation of the integer $k\text { ! }$ end in exactly $99$ zeros ?  By inspection I found that $400\text{ !}$ end in exactly $99$ zeros , but $399\text{ !}$ does NOT end in $99$ zeros ; using the formula $$\text{ number of zeros at the end }=\sum_{n=1}^{\infty}\left[\frac{k}{5^n}\right]$$where , $[x]$ denotes the greatest integer part not exceeding $x$. I also found that, for $k=401,402,403,404$ the number of zeros is same, but for $k=405$  the number of zeros increase by $1$ ; as $405$ is divisible by $5$ again , after $400$. Thus I got that there are only $5$ integers satisfying the condition which are $400,401,402,403,404$. The question is possible duplicate of  or  but my question is different from these two questions.  Does there exist any other rule  or easy formula from where I can get how many integers are there


I 'd like to calculate the integral of the following expression in cube $$\int_{0}^{1}\int_{0}^{1}\int_{0}^{1}\left\{\frac{y}{x}\right\}\left\{\frac{z}{y}\right\}\left\{ \frac{x}{z}\right\}\,dx\,dy\,dz$$ When I calculate this integral I finally find that this integral has the relation with the infinite sum of $1/n^3$ But I don't know the exact way to calculate this some. Any one can help me to find the answer?


Get Date Part only from DateTime (SQL Function)

Which of these two functions is more efficient? toDate1 or toDate2 -- Is there something better?  use Something go -- All SQL versions create function toDate1(@t datetime)       returns datetime as begin       declare @return datetime       select  @return = dateadd(day,datediff(day,0,@t),0)     return  @return end go -- SQL 2008 -> create function toDate2(@t datetime)       returns datetime as begin       declare @return datetime       select  @return = convert(date, @t)      return  @return end


Show that the locus formed by $z$ in the equation $z^3+iz=1$ never crosses the coordinate axes in the Argand's plane.Further show that $|z|=\sqrt{\frac{-\text{Im}(z)}{2\text{Re}(z)\text{Im}(z)+1}}$    Let $z=x+iy$.Then $z^3+iz=1$ becomes $(x+iy)^3+i(x+iy)=1$ $x^3-iy^3+3ix^2y-3xy^2+ix-y=1$ $(x^3-3xy^2-y)+i(3x^2y-y^3+x)=1$ Comparing real and imaginary parts on both sides,we get $x^3-3xy^2-y=1,3x^2y-y^3+x=0$ But i do not know how to prove that the locus formed by $z$ never crosses the coordinate axes in the Argand's plane. In the second part,$|z|=\sqrt{x^2+y^2}$ and $\sqrt{\frac{-\text{Im}(z)}{2\text{Re}(z)\text{Im}(z)+1}}=\sqrt{\frac{-y}{2xy+1}}$.I don't understand how to prove them equal.


Why is the plural of "basis" "bases" and not "baseis"?

Looking at the , it indicates that the plural is either bases or baseis.  It looks like the rare  comes from the Greek, but the common  just refers back to basis and that does not explain the plural etymology.  Is there a standard rule at work here, or is this just an exceptional case that arose over time by convention?


Is the expression "What's that mean" correct?

Today I saw a comic where one of the characters say:     What's that mean?     I am not a native English speaker but that sentence puzzled me.   I would personally use the verb to do here but instead there's a 's which I assume is the verb to be contracted.  The other option is that 's here is the verb to do contracted, but I'm not aware of this contraction to be possible.  Is the sentence correct in English? Or is it some "slang" language. The character is not supposed to speak slang or incorrect English at all, so that's why this sentence drew my attention.


My middle name on my passport is missing one letter, so different from my ticket.  Will this be an issue? Doroty vs Dorothy


Re-enter Singapore after exit on a multiple entry pass

I am an Indian and have multiple entry pass valid for the next 2 years. Suppose if I enter Singapore on a tourist visa on 23rd December and stayed for the next 30 days, i.e. till 23rd January. Now I leave or exit from Singapore on 22nd January to travel either to Malaysia or Indonesia for a 2-3 days trip, can I return to Singapore and then again stay for 30 days?


How to pass page message to arbitrary Page Reference

Is it possible to pass a page message to a newly created PageReference, so that this page will display it?  public PageReference doAction() {    PageReference resultPage = new PageReference('/'+id);    resultPage.addMessage(new ApexPages.Message(...));     return resultPage; }   or  public PageReference doAction() {    PageReference resultPage = Page.customPage;    resultPage.addMessage(new ApexPages.Message(...));     return resultPage; }


Word 2010 Number of pages without first page

I show the number of pages as 1 / 4, with 4 being the total number of pages. But I do not want to count the first page.  Important: I know how to do it for the current page number (Starting at ..), I mean the total number of pages.  So if the document has one cover page + 3 pages, I want to show it as 1/3, 2/3 ..., not as 1/4.


binding functions, which contain "this" (JQuery)

Consider the following object:  var obj = {   name: "pete",   funct : function () { console.log("I am", this); } }   When binding obj.funct to an event handler, this looses its reference to the object, it now refers to the global object (window).  so, this does not work properly:  $(window).bind("keypress", obj.funct);   How can I archieve that this still points to my object when it is called by an event handler?


Can I enter the Schengen area with a German long-term visa through a different country?

I am an Indian national. Right now I am staying in Israel. I will be moving to Germany on the last week of this month with german national visa directly from tel aviv. Ticket price of direct flight is high. So I am thinking to buy either Air France or LOT for travelling having layover at Paris or Poland. Am I allowed to do that? I mean is it mandatory to enter in Germany first? May I travel with these airlines with proper transit visa?


Aligning multiple figures/tikzpicture vertically and horizontally

I'm trying to align four figures vertically and horizontally. But I couldn't get it right in spite of repeated tweaks.  Can someone help me out?   Here is a MWE -- there are no errors, but the figures don't come out scaled properly.  \documentclass[12pt]{llncs}  \usepackage{fullpage} \usepackage{graphicx}  \pdfoutput=1 \usepackage{epsf} \usepackage{epsfig} \usepackage{epstopdf} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \usepackage{latexsym} \usepackage[all]{xy} %\pagestyle{empty} \pagestyle{plain} %\usepackage{algorithmic} %\usepackage{algorithm} \usepackage{hyperref} \usepackage{nameref} %\usepackage{MnSymbol} \usepackage{tikz} \usepackage{caption} \usepackage{subfig}  \begin{document}  \begin{figure} \captionsetup[subfigure]{width=2in} \begin{minipage}[t][4em][s]{.5\textwidth} \subfloat[First]{ %\begin{subfigure}[b]{\textwidth} \begin{tikzpicture}[every node/.style={circle, draw, scale=1.0, fill=gray!50}, scale=1.0, rotate = 180, xscale = -1]  \node (1) at (0, 0) {$a$}; \node (2) at (3.0, 0) {$s$}; \node (3) at (4.5, 0) {$s'$}; \node (4) at (7.5, 0) {$t'$}; \node (5) at (9.0, 0) {$t$}; \node (6) at (12.0, 0) {$b$};   \draw[->] (1) -- (2); \draw[->] (2) -- (3); \draw[->] (3) -- (4); \draw[->] (4) -- (5); %\draw (8) -- (7); \draw[->] (5) -- (6);  \end{tikzpicture} %\label{fig:sto} } %%\qquad % %\bigskip % \subfloat[Second]{ \label{fig:st} %\begin{subfgure}[b]{\textwidth} \begin{tikzpicture}[every node/.style={circle, draw, scale=1.0, fill=gray!50}, scale=1.0, rotate = 180, xscale = -1]  \node (1) at (0, 0) {$a$}; \node (2) at (3.0, 0) {$s$}; \node (3) at (4.5, 0) {$s'$}; \node (4) at (7.5, 0) {$t'$}; \node (5) at (9.0, 0) {$t$}; \node (6) at (12.0, 0) {$b$};   \draw[->] (1) -- (2); \draw[thick, dashed, ->] (2) to[out=-100,in=-150] (1); %\draw (3) -- (2); \draw[->] (3) -- (4); \draw[thick, dashed, ->] (4) to[out=-100,in=-150] (3); %\draw (5) -- (4); \draw[thick, dashed, ->] (2) to[out=-250,in=-350] (4); \draw[thick, dashed, ->] (3) to[out=100,in=150] (1);     %\draw (8) -- (7); \draw[->] (5) -- (6); \draw[thick, dashed, ->] (6) to[out=-100,in=-150] (5);   \end{tikzpicture} } \end{minipage} \begin{minipage}[t][4em][s]{0.5\textwidth} \subfloat[Third]{ %\begin{subfigure}[b]{\textwidth} %\centering \begin{tikzpicture}[every node/.style={circle, draw, scale=1.0, fill=gray!50}, scale=1.0, rotate = 180, xscale = -1]  \node (1) at (0, 0) {$a$}; \node (2) at (3.0, 0) {$t$}; \node (3) at (4.5, 0) {$t'$}; \node (4) at (7.5, 0) {$s'$}; \node (5) at (9.0, 0) {$s$}; \node (6) at (12.0, 0) {$b$};   \draw[->] (1) -- (2); \draw[->] (2) -- (3); \draw[->] (3) -- (4); \draw[->] (4) -- (5); %\draw (8) -- (7); \draw[->] (5) -- (6);   \end{tikzpicture} } %%\qquad % \subfloat[Fourth]{ \label{fig:ts} %\begin{subfigure} \begin{tikzpicture}[every node/.style={circle, draw, scale=1.0, fill=gray!50}, scale=1.0, rotate = 180, xscale = -1]  \node (1) at (0, 0) {$a$}; \node (2) at (3.0, 0) {$t$}; \node (3) at (4.5, 0) {$t'$}; \node (4) at (7.5, 0) {$s'$}; \node (5) at (9.0, 0) {$s$}; \node (6) at (12.0, 0) {$b$};   \draw[->] (1) -- (2); \draw[thick, dashed, ->] (4) to[out=-100,in=-150] (1); %\draw (3) -- (2); \draw[->] (3) -- (4); \draw[thick, dashed, ->] (5) to[out=100,in=150] (1); %\draw (5) -- (4); \draw[thick, dashed, ->] (2) to[out=100,in=150] (5); \draw[thick, dashed, ->] (4) to[out=-100,in=-160] (2);   %\draw (8) -- (7); \draw[->] (5) -- (6); \draw[thick, dashed, ->] (6) to[out=100,in=150] (3);  \end{tikzpicture} } \end{minipage} \end{figure} \end{document}


Is there a Stack Exchange site where I can get a recommendation for an API?

I ask on Stack Overflow () and I get downvoted and no response.  I ask on  and get told that it's about finding web applications, not developing them.  Is there a place I can go to simply get a recommendation as to an API or service to get MP3 files for songs?


I recently downloaded OpenSUSE OS version 11.4 from the site to use it as a server..In order to do that I downloaded the server edition that has Apache/2.2.17 and PHP5 downloaded by default.....Ok till now it is fine  Now I started the Apache successfully and put a test.php file in the documentRoot directory. test.php contain only <?php phpinfo() ?>  Then using my browser I typed http://localhost/test.php and here was the problem  the browser didn't display what phpinfo() should display, instead it asked me whether I want to open or save test.php...which is driving me crazy.... I googled a lot but no solution  THis is /etc/apache2/conf.d/php5.conf  <IfModule mod_php5.c>     AddHandler application/x-httpd-php .php4     AddHandler application/x-httpd-php .php5     AddHandler application/x-httpd-php .php     AddHandler application/x-httpd-php-source .php4s     AddHandler application/x-httpd-php-source .php5s     AddHandler application/x-httpd-php-source .phps     DirectoryIndex index.php4     DirectoryIndex index.php5     DirectoryIndex index.php </IfModule>


how to club two cmd commands in command prompt?

I want to use result of one command in the next command line. Is there any way to do it? preferably in one line. For e.g.   1st: where svn;  2nd: explorer {{result_from_first_cmd}}.   I tried explorer where svn. Evidently didn't work.


How would one go about proving that the rationals are not the countable intersection of open sets?

I'm trying to prove that the rationals are not the countable intersection of open sets, but I still can't understand why   $$\bigcap_{n \in \mathbf{N}} \left\{\left(q - \frac 1n, q + \frac 1n\right) : q \in \mathbf{Q}\right\}$$   isn't a counter-example. Any ideas? Thanks!


I have a variable in bash script dirs= "4"; I want to get this number from another file so I am using a command dirs= sed -n '1p' < test.txt; It gets me the number, I see it in the terminal. But Later in the code, I want to use a loop for dir in dirs.. it does not work because in the script it does not understand that dir is number.  d= sed -n '1p' < test.txt for dirs in $d     do   echo "$dirs" done dirs= read $dirs  speeds= sed -n '2p' < test.txt   for speeds in $s     do   echo "$speeds" done for dir in $dirs do   for speed in $speeds   do     echo "speed=$speed   dir=$dir" done done


Concecutive last zeroes in expansion of $100!$

Possible Duplicate:          In decimal form, the number $100!$ ends in how many consecutive zeroes. I am thinking of the factorization of $100!$ but I am stuck. I try to count them and since there are 10, 20, 30,..., 100, there are at least 11 zeros. How should I proceed.


Delete the nth line from a matched string (which only occurs once in the file)

I have a question related to deletion of strings that appear at the n+2 position after the matched string which is at position n using awk for multiple files. I am able to print it using the command:   awk -F '/radius-server/{nr[NR+4]}; NR in nr' *   Where the matched string is radius-server.  Since I'm not too familiar with  awk I would appreciate it if someone could help me  delete this line in place , that would mean that I want the files to be modified and saved after the deletion is done.  An example scenario is below - file 1 which is unmodified    radius-server dz7HQQH4EqT5 1645-1646  !  oj5icqh1dGpSK  !    alias exec t telnet  alias exec sis show interface status  !   file 2, after modification is -  radius-server dz7HQQH4EqT5 1645-1646 ! ! alias exec t telnet alias exec sis show interface status !   I understand that I can do a pattern matching method using sed -i '/pattern/d' to remove it but that is not what I want as the values change from file to file. Any help would be much appreciated.


What's the best short-term investment plan?

Say I have a small sum of money, which I have no use for for the following 6-12 months. I don't want to invest it in index funds, because these have a non-negligible risk of decreasing  in this time period, and I need the money available.  What investment plan is better suited for this purpose?  If it matters, I live in Israel.