How do I redirect a domain to another domain locally?

My /etc/hosts file looks like this:  127.0.0.1       localhost 10.20.7.67      testsitealpha.dev othersite.dev   testsitebeta.dev   The first two work. The last one doesn't. Why not? How do I make it work? The reason I am doing this, is because I have a test server (othersite.com), which is on the local network, but it's ip can vary. e.g. 10.20.7.98 one day, 10.20.7.35 another, etc.  So, how do I make my system always resolve testsitebeta.dev to the same ip as othersite.dev?


How to solve apt "package cannot be configured because package is in a different version" errors?

I can't say what steps brought me into this:  → sudo apt-get upgrade  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y dpkg: error processing libtiff4 (--configure):  libtiff4:i386 3.9.5-1ubuntu1.1 cannot be configured because libtiff4:k386 is in a different version (3.9.5-1ubuntu1) Errors were encountered while processing:  libtiff4 E: Sub-process /usr/bin/dpkg returned an error code (1)   The following commands all end up in the same error:  sudo apt-get install -f sudo dpkg --configure -a sudo apt-get --fix-broken install sudo apt-get --fix-missing install sudo apt-get clean sudo apt-get autoclean sudo apt-get autoremove   How to solve these kind of problems? And what did I do wrong?  UPDATE I managed to get apt working again by downgrading to previous version (3.9.5-1ubuntu1). However, next upgrade led to the same problem. But there is more info now:  (Reading database ...  dpkg: warning: files list file for package `libtiff4:k386' missing, assuming package has no files currently installed. (Reading database ... 281166 files and directories currently installed.) Preparing to replace libtiff4 3.9.5-1ubuntu1 (using .../libtiff4_3.9.5-1ubuntu1.1_i386.deb) ... Unpacking replacement libtiff4 ... dpkg: error processing libtiff4 (--configure):  libtiff4:i386 3.9.5-1ubuntu1.1 cannot be configured because libtiff4:k386 is in a different version (3.9.5-1ubuntu1) No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  libtiff4   So the real problem seems to be the missing libtiff4:k386 package. And k386 seems like a stupid typo somewhere.  I tracked down the file that introduces the typo:  **/var/lib/dpkg/status**  Package: libtiff4 Status: install ok half-configured Multi-Arch: same Priority: optional Section: libs Installed-Size: 528 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Architecture: k386 Source: tiff Version: 3.9.5-1ubuntu1 Config-Version: 3.9.5-1ubuntu1 Depends: libc6 (>= 2.11), libjpeg62 (>= 6b1), zlib1g (>= 1:1.1.4) Pre-Depends: multiarch-support Description: Tag Image File Format (TIFF) library  libtiff is a library providing support for the Tag Image File Format  (TIFF), a widely used format for storing image data.  This package  includes the shared library. Homepage: http://libtiff.maptools.org Original-Maintainer: Jay Berkenbilt <qjb@debian.org>   Fixing the typo solves the problem.


Expression of the Hyperbolic Distance in the Upper Half Plane

While looking for an expression of the hyperbolic distance in the Upper Half Plane $\mathbb{H}=\{z=x +iy \in \mathbb{C}| y>0\},$ I came across two different expressions. Both of them in Wikipedia.   In the page  it is explicitly stated that the distance of $z,w \in \mathbb{H}$ is: $$d_{hyp}(z,w)= Arccosh(1+ \frac{|z-w|^2}{2 Im(z) Im(w)}).$$ While in the page  it is stated that the metric on the Upper Half Plane is : $$\rho(z,w)=2 Arctangh(\frac{|z-w|}{|z-\bar w|}).$$  At the beginnning I thought it would have been an easy exercise to prove the equivalence of the two expressions. But first I failed in doing that, and then I found, using Mathematica, a counterexample (i.e. $z=2i$ and $w=i$).  Question: If they are not equal, which of the two expressions is the right one? Then, how is the metric related to the induced distance?  The question is probably silly, but I'm often confused about the relationships between "metric" objects.   Thank you very much for your time!


How can I change brightness through terminal

Now I can change it by Fn+ arrow right but now I need  to do it via my shell script


Is everyone in Firefly fluent in Chinese or do they only know Chinese slang?

Often the English-speaking characters in Firefly speak curses and slang in Chinese because of the mixing of American and Chinese cultures in the universe. Often audio recordings are also said in both English and Chinese.  I am wondering if there is any canon source that says that the English-speaking characters such as the Serenity crew actually know Chinese or if they simply know Chinese curses and slang.


Integral $\int\frac{dy}{(y^2 + ay + b)^{3/2}}$

Need the indefinite integral with $a,b$ constants. This is not a homework question. Need it for a physics problem.


For linear regression, is it important for predictors and response to be normally distributed?

I get that for simple linear regression, say y=b0+b1*x + error, the errors should be normally distributed, have no autocorrelation, constant variance. I also understand that there should be no collinearity, and that the relationship between x and y should be linear.  Those are the standard assumptions in an intro to regression. However, as I'm learning about power transforms such as the Box Cox transformation, it's said that the Box Cox attempts to transform either the predictor x or response y to normally distributed if they are skewed in the first place. By this I mean the marginal distribution of x and y, not the distribution of y conditioned on x (this is related to residues).  But other sources say it's not important for x and y to be normally distributed. So I'm thinking, if both x and y are uniformly distributed rather than normally distributed, and then there is a roughly linear relationship between them, wouldn't linear regression also work? You can still have the error be normally distributed in this case right?  For example, say you have a cylindrical bar of chocolate. You want to regress the weight against the length of chocolate that you cut. Since the cross section is the same, the weight is linear with the length. But let's say you cut it using a machine that randomly decides on a length from a uniform distribution (1-10 inches). Then the weight should be uniformly distributed too. You should still have normally distributed residues due to manufacturing tolerance, accuracy of the machine, accuracy of measurement, etc...  A linear regression clearly is suitable in this case, but neither x and y are normally distributed. So I'm guessing, it's not required for x and y to be normally distributed. Please advise.


Prove that the set $S$  of rational points in the plane $\mathbb R^2$ is denumerable.   [A point $p = (x,y) \in  \mathbb R^2$ is rational if $x$ and $y$ are rational.]


In probability theory what does the notation $\int_{\Omega} X(\omega) P(d\omega)$ mean?

Where $P$ is a probability measure on the space $\Omega$ and $X$ is a real-valued random variable?  Specifically what does $P(d\omega)$ mean and how is it different from $dP$ together with the integral for $\Bbb{E}(X)$ involving supremum of approximative simple functions?  I'm going through the book A Basic Course in Probability Theory and some things they don't explain.  That's fine though, other than that it's a great book, and I already know some measure theory.  So I'm at the part about simple functions (which I've read about / worked with before) and the change of variables formula, where the above notation is used:     $\Bbb{E}(h(X)) \equiv \int_{\Omega} h(X(\omega))P(d\omega) = \int_{S} h(x) Q(dx)$,   provided one of the two integrals exists, and $h: \Bbb{S} \to \Bbb{R}$ is Borel measurable.


Could YouTube, Todoist, myEmail (fill in name app your looking for) be controlled/used with Siri?  Could a third party iOS app be controlled by Siri?


Interpretation of the nature of light in quantum mechanics

Maxwell's theory of electromagnetism describes light as a wave of the electromagnetic field.  Quantum mechanics associates a probabilistic wave (my own interpretation of the function wave) from which we reproduce results similar like the model of electromagnetic waves, e.g. diffraction. The same goes with electrons and other particles  What happens in this interpretation with the electromagnetic field that travels in space? Is it only valid to speak about it when the number of photons is big (a statistic property), or it is wrong thing in this model and you have to forget it when you work with quantum mechanics?  Could somebody explain how to reconcile all the things that you learned classically about electromagnetism with this idea?


Why does a bird not get electrocuted when it is sitting on a high tension electric wire?


Why does Postgres generate an already used PK value?

I'm using Django, and every once in a while I get this error:     IntegrityError: duplicate key value violates unique constraint "myapp_mymodel_pkey"   DETAIL:  Key (id)=(1) already exists.   My Postgres database does in fact have a myapp_mymodel object with the primary key of 1.  Why would Postgres attempt to use that primary key again? Or, is this most likely my application (or Django's ORM) causing this?  This issue occurred 3 more times in a row just now. What I've found is that when it does occur it happens one or more times in a row for a given table, then not again. It seems to happen for every table before it completely stops for days, happening for at least a minute or so per table when it does occur, and only happening intermittently (not all tables right away).  The fact that this error is so intermittent (happened only 3 or so times in 2 weeks - no other load on the DB, just me testing out my application) is what makes me so wary of a low-level problem.


Can't access recovery mode by holding shift

I have Xubuntu 14.04 and I cannot access recovery mode via holding down the SHIFT key. I read almost everywhere that this is how you do it.   Does that work for Xubuntu as well or just Ubuntu?  The reason this is needed is because I somehow lost sudo on my user account and cant access any root commands.


Replace spaces with hyphens in a text file


Prove that if $p$ is an odd prime such that $p\mid(x^2+1)$ for some $x\in\mathbb{Z}$, then $p\equiv 1 \pmod 4$

I've tried proving the statement using that $x^2\equiv -1\pmod p$, and someone told me that this actually just implies that $p\equiv 1\pmod 4$. But I don't see it. Can anyone help me with this problem?


Suppose $f$ and $g$ are entire functions,and $|f(z)|\leq|g(z)|$ for every z.What conclusion can you draw?  My conjecture : $f$ and $g$ are constant but I don't know how to deal with it.  I will appreciate your help


When we write, do we have to write "OK" instead of "Ok" or are both correct?

I'm confused when I have to write "Ok" in a writing, because I don't know if "OK" and "Ok" are both orthographically correct or just one is.


I install mate environment with that command   sudo apt-get install ubuntu-mate-desktop   And now i want to get original back but i try so many different things all over the internet without any result still when i reboot my pc start with mate theme (i have too many fails and programs i dont want to lose its about 2TB of information) and i dot want to reinstall my ubuntu just i want to make him like original (sorry about my terrible english) please help me to get rid of that mate environment i already try this   sudo apt-get remove mate-desktop sudo apt-get remove --auto-remove mate-desktop sudo apt-get purge mate-desktop sudo apt-get purge --auto-remove mate-desktop   but still ubuntu ends and start with that green mate icon ...... Many THANKS!


I would like to travel to France before the starting date of my long sejour visa (type D). I am Canadian, so I am usually able to visit France without a explicit tourist visa. Can I enter France as a tourist prior to the start of my work visa in order to make accommodation arrangements?  I realize that I might need to exit the Schengen area and re-enter after then start date of my long sejour visa.  I've tried contacting the consulate but they haven't been answering me at all.


Regex to match a whole string only if it lacks a given substring/suffix

I've searched for questions like this, but all the cases I found were solved in a problem-specific manner, like using !g in vi to negate the regex matches, or matching other things, without a regex negation.  Thus, I'm interested in a “pure” solution to this:  Having a set of strings I need to filter them with a regular expression matcher so that it only leaves (matches) the strings lacking a given substring. For example, filtering out "Foo" in:  Boo Foo Bar FooBar BooFooBar Baz   Would result in:  Boo Bar Baz   I tried constructing it with negative look aheads/behinds (?!regex)/(?<!regex), but couldn't figure it out. Is that even possible?


tab is displayed as "^^I" in tcblisting environment

My tabs inside the tcblisting environment are not showing correctly and becomes "^^I". I have tried everything to fix this but not worked. Could anyone please help me so the tabs are displayed correctly in tcblisting? (As illustrated in the sample code, lstlisting seems have no problem with tabs.)  \documentclass{article} \usepackage[dvipsnames]{xcolor} \usepackage{tcolorbox} \tcbuselibrary{listings} \usepackage{lstautogobble} \lstset{language=[LaTeX]TeX, keywordstyle=\color{blue},commentstyle=\color{ForestGreen},stringstyle=\color{Maroon}, basicstyle=\ttfamily\footnotesize, frame=tb, rulesepcolor=\color{Gray}, showspaces=false, showstringspaces=false, tabsize=4, aboveskip=10pt, belowskip=10pt, lineskip=2pt, breaklines, autogobble} \begin{document} \begin{tcblisting}{} \begin{enumerate}     \item First     % some comment     \item Second \end{enumerate} \end{tcblisting} \begin{lstlisting}{}     \begin{enumerate}         \item First     % some comment         \item Second     \end{enumerate} \end{lstlisting} \end{document}


How do I evaluate $\sum\limits_{n=1}^\infty(n-1)\cdot\big(\frac12\big)^n$?

I know from the ratio test that the series converges and I used wolfram alpha to determine that the answer is 1, but what are the steps involved to reach this answer?


Measure of image of critical points set is equal 0

Let $f:\mathbb{R}\to \mathbb{R}$ be $C^1$ function and $K = \{x : f'(x) = 0 \} $.   Show that $\mu \left(f\left(K\right)\right) = 0$, where $\mu$ is Lebesgue measure.   My attempt was following: $$\mu \left(f\left(K\right)\right)= \int_{f(k)} 1 dy \stackrel{(*)}{=} \int_{K}f'(x) dx = \mu\left(K\right) \cdot 0 = 0$$ but we cannot substitute $y = f(x)$ at $(*)$ like that. I was told that there exists quite elementary proof (not using Sard's theorem) so I'm looking for it.


When should titles like "captain" or "admiral" be capitalized?

Please excuse the contrived example below, but I am wondering if this example is properly capitalised? I'm assuming that capitals are used when addressing someone directly, but lower case is used elsewhere. Can someone give some rules on this?      The captain walked into the room.    "Hi, Captain," said the admiral.   "Hi, Sir," replied the captain.   "Call me Admiral."   "Hi Admiral."   The captain and admiral stepped forward.   "Prime Minister, this is Captain Jones," said Admiral Brown.   "Pleased to meet you," said the prime minister.


Show that there exists a bijection from $(0,1)$ to $(0,1]$

I'm having trouble envisioning a bijective relationship that maps $(0,1)$ to $(0,1]$.  My professor gave the hint that it can be expressed as a piece-wise function $f(x)$ comprising of two cases:  _ if $x=$ __ and $x$ otherwise.  It could be $1$ if $x=\frac{1}{2}$ and $x$ if $0<x<\frac{1}{2}$ or $\frac{1}{2}<x<1$.  However, $f$ would not be a bijection then, because there would not be an $x$ value for $y=\frac{1}{2}$.


register_nav_menus() won't register menus

Please help with menu registeration:  I have followed this guide (http://codex.wordpress.org/Navigation_Menus) step by step.  Added the following code to functions.php:  function register_my_menus() {   register_nav_menus(     array('header-menu' => __( 'Header Menu' ) )   ); }  add_action( 'init', 'register_my_menus' );   But the guide says that this will make the menu appear in the Appearance -> Menus admin screen in the "Theme Locations" box as "Header Menu".  When I go to Appearance -> Menus everything is greyed out and there is no option of "Theme Locations"


Set windows scheduler to schedule open a website, webpage or the bookmark

I have a bookmark: C:\inetpub\services\Full Scan\full scan.url or a link: 10.237.49.250:8080/scanner/run.aspx?FULLSCAN=ON  how can I schedule either of them to open in IE or Chrome?


What’s the difference between "are buying" and "will buy"?

What’s the difference between the present progressive tense are buying and the simple future tense will buy as used here?   Next week we are buying a new car. Next week we will buy a new car.


How do I disconnect (and reconnect) the tubing from this fitting?

The plastic tubing supplying filtered water to our refrigerator currently runs below a suspended ceiling. I want to reroute it above. How do I disconnect it without damage from either the union or tee, so I can reconnect once moved? The tee is labeled NSF-51 Parker Parflex size 4. The union has no discernible markings. I believe I would rather disconnect the union rather than the tee. I didn't want to just start tugging. I have found similar fittings for sale online, but no instructions for use.  Here is the union:   And here is the tee:


How is $\frac {x^2 + x - 6}{x - 2}$ different from $(x+3)$?

Let's consider the function:   $$ f(x) = \frac {x^2 + x - 6}{x - 2} $$  At x = 2, the value fo the function is undefined, because $ x - 2 $ = 0. But if factor the expression on the numerator, we get $ \frac {(x + 3) (x-2)}{x-2} $, which on simplifying yields $ x + 3 $. At $ x = 2 $, the function gives 5, which is not what we get before simplifying.   If all we do too the initial function is simple algebraic manipulation, shouldn't both functions yield the same value?


I've uninstalled java, installed 7 update 65 and switched the executable, but Minecraft still does not run. What should I do? On my other computer everything is the same for the .exe file and arguments are also the same, yet it runs on that computer. Here is my stacktrace:  Exception in thread "main" java.lang.ExceptionInInitializerError at org.apache.logging.log4j.util.PropertiesUtil.<init>(PropertiesUtil.java:71) at org.apache.logging.log4j.util.PropertiesUtil.<clinit>(PropertiesUtil.java:31) at org.apache.logging.log4j.status.StatusLogger.<clinit>(StatusLogger.java:48) at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:44) at ave.<clinit>(SourceFile:145) at net.minecraft.client.main.Main.main(SourceFile:41) Caused by: java.lang.NullPointerException at org.apache.logging.log4j.util.ProviderUtil.<clinit>(ProviderUtil.java:70) ... 6 more Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release`


I tried to turn off Facebook notifications in my System Preferences on my OSX 10.9.1 but they still won't go away. What am I doing wrong? I unchecked all the boxes but it insists on showing me pop up balloons in the top right corner of my screen every time I get a notification. How can I make it go away??? Do I need to re-boot my computer in order for it to work?


Let $(X,\mathscr T)$ be a metrizable space such that every metric that   generates $\mathscr T$ is bounded. Prove that $X$ is compact.   My attempt:-  We know that $(X,\mathscr T)$ is metrizable. So there is a metric on $x$ such that collection of all open sets with respect to the metric is the $\mathscr T$. Let $\{d_\alpha\}_{\alpha \in \Lambda}$ be the collection of metric that generates $\mathscr T$. We know that $\forall \alpha \in \Lambda, (X,d_\alpha)$ is bounded.  Suppose on contrary $X$ is not compact. So  $(X,d_\alpha)$ is not sequantially compact. So, there is a $\{x_n\}$ be a sequence in $X$ such that none of its subsequence converges. How do I make contradiction with our assumption?


Possessive apostrophe in phrasal descriptor

If I want to describe a person/group and then refer to something of theirs. Would these be permissible?   The guy in charge's hat It is the people of France's doing It is everyone else's fault The electrified fence's voltage   Which more commonly would be phrased like:   The hat of the guy in charge The people of France did it Everyone else is at fault The voltage of the electrified fence   If it is not what are the rules? Or where can I find the rules pertaining to this construction? In my native language the former examples can all be constructed like singular compound words, where the ownership would be indicated at the end of just one word.


Can we define the general term for the Fibonacci Sequence? I mean we can make a generating function for fibonacci sequence which equals $\dfrac1{1-x-x^2}$, but is there any way to find the general term of fibonacci sequence?


"There is the man." Is *there* an adverb or pronoun?

According to      there         adverb          in or at that place (opposed to here ):      She is there now.         pronoun          (used to introduce a sentence or clause in which the verb comes before its subject or has no complement):      There is no hope.   Then, what element is there in:     There is the man.   I'm confused because "There is the man" is an adverb inversion, in which there is an adverb and "the man is" is inverted. But according to the definition above, there suddenly becomes a pronoun.


How to derive a ranking function from observations

I have a employee dataset with the following 5 details.  projects completed customer ratings number of bugs reported customer complaints profit   I want to rank these employess based on their efficiency. We have observed the following facts of each detail as follows.  projects completed -> highly efficient employees tend to complete many projects customer ratings -> highly efficient employees has a good customer ratings number of bugs reported -> highly efficient employees has less number of bugs reported customer complaints -> highly efficient employees has less customer complaints profit -> highly efficient employees make a higher profit to the company   I am wondering if I can convert the above observations to derive a ranking function to rank the employees. Please recommend me a suitable approach to perform my task of ranking.  I am happy to provide more details if needed.


Find all triples $(a,b,c)$ of positive integers such that $(1+\frac{1}{a})(1+\frac{1}{b})(1+\frac{1}{c})=3$   Supposing $a\ge b\ge c$, $$(1+\frac{1}{c})^3\ge 3$$ $$\Rightarrow 1 + \frac{1}{c^3} + 3(1 + \frac{1}{c})\frac{1}{c} \ge3 $$ After this how to proceed?


Combinations Problem - Arranging People in Rooms

A hostel has four vacant rooms. Each room can accommodate a maximum of four people. In how many different ways can six people be accommodated in four rooms.  The answer is 4020.  My case by case analysis leads to a number in the 7000s:  Listing the rooms as so  4 2 0 0  4 1 0 0  3 3 0 0  3 2 1 0  3 1 1 1  2 2 2 0  2 2 1 1  Now for each of the above case I went (e.g for first case) 6C4 * 2C2 * 0C0 * 0C0 * 4!


I need help to advance in the resolution of that limit: $ \lim_{n \to \infty}{\sqrt[n]{\frac{n!}{n^n}}} $

how I can continue this limit resolution?  The limit is:   $$ \lim_{n \to \infty}{\sqrt[n]{\frac{n!}{n^n}}} $$  This is that I have done:  I apply this test: $ \lim_{n \to \infty}{\sqrt[n]{a_n}} = \frac{a_{n+1}}{a_n} $  Operating and simplifying I arrive to this point: $$ \lim_{n \to \infty}{\frac{n^n}{(n+1)^n}} $$  I've done something wrong? Thanks!


Show that if a and b are positive integers, then $(a + \frac12)^n + (b + \frac12)^n$ is an integer for only ﬁnitely many positive integers n.

I stumbled upon this problem when reading the resource provided by AoPS, on    Here is the problem:  Show that if $a$ and $b$ are positive integers, then  $$\left(a + \frac12\right)^n + \left(b + \frac12\right)^n$$  is an integer for only ﬁnitely many positive integers $n$.  I'm unsure on how to begin - any help would be much appreciated!   Thanks


Free group actions for singleton group or for empty set

My book is Connections, Curvature, and Characteristic Classes by Loring W. Tu (I'll call this Volume 3), a sequel to both Differential Forms in Algebraic Topology by Loring W. Tu and Raoul Bott (Volume 2) and An Introduction to Manifolds by Loring W. Tu (Volume 1).  I refer to .  Let $M$ be a set, possibly empty. Let $G$ be a group, possibly a singleton. Let $G$ act right on $M$ by the action $\mu: M \times G \to M$. For each $x \in M$, let $\text{Stab}(x):=\{g \in G | \mu(x,g) = x\}$ denote a stabilizer subgroup of $G$. Let $1_G$ be the identity of $G$.  I understand 's second definition of $\mu$ to be free as follows:     $\mu$ is free if for all $g \in G$, if there exists $x \in M$ such that $\mu(x,g)=x$, then we have that $g=1_G$.   Later  says     if $\mu$ is free and $M$ is a non-empty set, then $\mu$ is faithful. $\tag{A}$   Question: Given the idea that we can have $M$ as an empty set, I would like to clarify, similar to what I did : Are these correct?   If $G$ is a singleton, then every action $\mu$ is free, whether or not $M$ is empty. If $M$ is empty, then every action $\mu$ is free, whether or not $G$ is a singleton. By (1), if $M$ is empty, $G$ is a singleton and $\mu$ is free, then $\mu$ is faithful The reason for the assumption for $M$ non-empty in $(A)$ is that if $M$ is empty and $G$ is not a singleton, then by  every action $\mu$ is free while every action $\mu$ is not faithful. If there exists a free action $\sigma: M \times G \to M$ and if every free action $\mu$ is faithful, then either $M$ is non-empty or $G$ is a singleton. (The existence of $\sigma$ is to avoid cases where no free actions exist, if that's even possible)     Update: Based on , I think (2) is correct.


Can I transfer my Terraria character from one PC to another?

Currently my map server is run on my laptop at home, and my brother and I play via LAN each on his desktop PC.  However, I'd like to transfer my character from the Desktop PC to my laptop in order to play on the go.  Can I do this? Where is the character information saved?


Why didn't obliviate spell work on wizards?

I have just watched first part of Fantastic Beasts and Where to Find Them, and I can't understand the final scene. Rain influences everybody's memory except wizards. Is there is a spell which works against Obliviate spell? If there is no such spell, then why didn't it work on Jakob Kowalski?


What is the difference between a spell with a range of "Self" and a spell with a range of "Self (XYZ)"?

There are a number of spells with a range of "Self", and a number of spells with a range of "Self (XYZ)" where XYZ is some modifier. Is the range of Self consistent between these two? Are the targeting rules different in each case? What is the difference between these two ranges?


I am a beginner to python coding in GIS. I want to calculate the total number of counts in raster attribute table. In order to do that:   I would like to build a attribute table of raster data use a loop through attribute table using ARCPY.SearchCursor()   Therefore, I wrote a code to build an attribute table. However, I am getting an error while running the code and not able to figure out the error in the code.  Code:  import arcpy # Create the geoprocessing object  import arcgisscripting gp = arcgisscripting.create()  #To overwrite output arcpy.env.overwriteOutput = True  #Set environment settings gp.workspace = "C:/Subhasis/Test/raster-read"  #Build Raster Attribute Table gp.BuildRasterAttributeTable_management("sti-9", "Overwrite")  Error Message: Traceback (most recent call last):   File "C:/Subhasis/Test/raster-read/test.py", line 15, in <module>     gp.BuildRasterAttributeTable_management("sti-9", "Overwrite") ExecuteError: ERROR 000049: Failed to build attribute table Failed to execute (BuildRasterAttributeTable).


i have some folders/files in Recent items of windows.what i want to do is i want to know real path of all the files/folders of .lnk shortcuts present in Recent Items.I want result like this. Local path      : C:\Program Files (x86)\Windows Live\Mail\wlmail.exe  My code is given  /*  * To change this license header, choose License Headers in Project Properties.  * To change this template file, choose Tools | Templates  * and open the template in the editor.  */ package sir.aimal;  import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.LinkOption; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.attribute.BasicFileAttributeView; import java.nio.file.attribute.BasicFileAttributes; import java.nio.file.attribute.FileTime; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date;  /**  *  * @author zeeshan  */ public class SirAimal  {       public static void main(String[] args) throws IOException     {         String user=System.getProperty("user.name");         String path="C:\\Users\\"+user+"\\AppData\\Roaming\\Microsoft\\Windows\\Recent\\";          File directory = new File(path);         File[] fList = directory.listFiles();          for (int i=0;i<fList.length;i++)         {             String filename=fList[i].getName();             String actualfilename=filename.replace(".lnk", "");              Path p = Paths.get(path+filename);               BasicFileAttributes view= Files.getFileAttributeView(p, BasicFileAttributeView.class).readAttributes();             FileTime fileTime=view.creationTime();             System.out.println(actualfilename+"\t\t"+new SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format((fileTime.toMillis())));           }      }   }


Configuring ClusterSSH to Use Freetype Fonts

I have read the question  and confirmed that my configuration works fine with valid non-Freetype font names as passed to, e.g., xfontsel. However, I would like to use Freetype fonts instead.  With urxvt I specify my font as xft:Source Code Pro:size=9 in my X resources; the same specification works fine when given directly with the -fn command line option.  However, if I use the same specification with the -f option to cssh or the terminal_font setting in .clusterssh/config I get an error message:  Fatal: Unrecognised font used (xft:Source Code Pro:size=9). Please amend $HOME/.clusterssh/config with a valid font (see man page).   How can I specify this font to ClusterSSH?  (For those whom might be helped by a look at the source code, the error originates in the get_font_size() function of /usr/share/perl5/App/ClusterSSH.pm on my system; I suspect it's the $xdisplay->QueryFont($font); call that's failing.)


I'm building a php api that edit some informations for an account. Here's an exemple of my code (not the real code but something shorter)  :  $interrogations = "?=?, ?=?, ?=?"; //auto generated $toSend = array("col1","val1","col2","val2","col3","val3","mail"); //also auto-generated $req = $bdd->prepare('UPDATE accountInfo SET '.$interrogations.' WHERE mail=?'); $req->execute($toSend);   But the final generated query is (got from the PDO debugDumpParams() ): UPDATE accountInfo SET 'col1'='val1', 'col2'='val2', 'col3'='val3' WHERE mail='mail'  The problem : cols can't be quoted (so it gives syntax error), but I need to use PDO prepare() to prevent SQL injections. How can I solve this issue?  Thanks !


I have a database on SQL Server 2008 on a Windows server and I want to move all of the data to a MySQL database on a Ubuntu server. I have tried using the SQL Server Import and Export Wizard with the MySQL ODBC driver, and it correctly accesses both databases, but the xml files containing the specifications for type conversion did not exist and the specifications were too limited for me to correctly create them. Does anyone know either how to create the type conversion files or where to get a better tool for transferring this data?


Configure Postfix to use external MX servers for delivery of local mail if user is unknown

I have a following setup:   linux box with postfix configured to be responsible for example.com domain domain's MX servers are configured so that mail sent to example.com is sent to google mail servers several user accounts on linux machine exist (same machine also hosts example.com site)   When someone from the outside attempts to send mail to address ending with @example.com, it gets routed to google mail (and there handled appropriately).  When linux machine tries to send mail to outside world, mail is delivered correctly, as reverse dns and spf records are configured correctly, so linux machine is valid mail sender for example.com domain (along with google mail servers).  However, here's the problem. When php application (hosted at linux box) tries to send mail to someuser@example.com (and someuser doesn't exist on linux box), it fails, since it doesn't even consult google mail servers, but postfix smtp locally concludes that "someuser" is unknown.  So, the question is: how do I tell postfix to relay mails sent to @example.com domain to google mail servers (so, to servers specified in MX records), IF and only if a mailbox is not found locally.


T-distribution as Gamma(\nu/2;\nu/2) and Normal

I am trying to understand how $Gamma(\nu/2;\nu/2)$ can in anyway be related to a $\chi_{\nu}^2$ distribution, maybe even $\chi_{\nu}^2/\nu$.  This comes up in Expectation-Maximization algorithms when trying to use MLE to find the parameters of a multivariate t-distribution (in my case, bivariate) [1,2,3,4,5]  I am aware of this thread .  But this does not seem to be the same thing, since in that thread, they are discussing a random variable $X_i$ ~ $\mathcal{N}(0,\sigma^2)$ but where $X_1, X_2,...X_N$ all have the same $\sigma^2$. This is not the same as constructing the t-distribution since the tdist can viewed as a mixture of normal distributions with DIFFERENT $\sigma^2$. Also, I still don't see how this gets to $Gamma(\nu/2;\nu/2)$.  To be even more specific, in [1] they describe that, if $Y$ follows the multivariate t-distribution $t_p(\mu,\Sigma,\nu)$ then, given the weight $\tau$, $Y$ has the multivariate Normal distribution and $\nu \tau$ is $\chi_{\nu}^2$ distributed, therefore $\tau$ is Gamma distributed. So:  $Y|\mu,\Sigma,\nu,\tau$ ~ $\mathcal{N}(\mu,\Sigma/\tau)$ and $\tau|\mu,\Sigma,\nu$ ~ $Gamma(\nu/2;\nu/2)$  What I can't figure out is how $\tau$ has that distribution if $\nu \tau$ is  $\chi_{\nu}^2$. Is $\chi_{\nu}^2/\nu$ equivalent to $Gamma(\nu/2;\nu/2)$ ? How?  Thanks for the help!  References:  [1] ML ESTIMATION OF THE t DISTRIBUTION USING EM AND ITS EXTENSIONS, ECM AND ECME - Chuanhai Liu and Donald B. Rubin, Statistica Sinica 5(1995), 19-39 (This is the link given in the first post)  [2] Robust mixture modelling using the t distribution - D. PEEL and G. J. MCLACHLAN, Statistics and Computing (2000) 10, 339–348  [3] The EM Algorithm--An Old Folk-Song Sung to a Fast New Tune - Xiao-Li Meng and David van Dyk, Blackwell Publishing for the Royal Statistical Society  [4] A Novel Parameter Estimation Algorithm for the Multivariate t-Distribution and Its Application to Computer Vision - Chad Aeschliman1, Johnny Park1, and Avinash C. Kak, European Conference on Computer Vision 2010  [5] The mixtures of Student’s t-distributions as a robust framework for rigid registration - Demetrios Gerogiannis 1, Christophoros Nikou *, Aristidis Likas, Image and Vision Computing 27 (2009) 1285–1294


Finding the last 4 digits of a huge power

I know this is more of a 'aops' type of question but here we go, I went to this math competition last year and there was this one problem that clearly I didn't solve but it recently came back to my mind and I want to know how to go about such problem:  Find the last 4 digits of the number: $$2^{{10}^{2018}}$$  My intuition is that one should probably use modular arithmetic on this one, the first things that came to my mind when I saw this one where: Chinese remainder Theorem and Binomial sums, I wasn't able to do much unfortunately... I've read through the "How do I compute $a^b$ (mod c) by hand?" question but most of the answers rely on a and c being coprime which in my case $(2,10^4)=2$ is not true, the answers cover a few cases when a and c are not coprime but nothing very similar to my case...


What is the difference between unit and dimensions?

If I say Height of a block = 2m, then would "Height" be called as a dimension


While drawing a simple 3D (fake 3D in fact) cube, I realized that the corners end up with unwanted extensions of the line. I understand this is related to the width of the lines themselves, but how can I remove them? An alternative solution of drawing the desired figure is also welcomed.  Example:  \documentclass{article} \usepackage{tikz}   \begin{document} \begin{tikzpicture}  \draw[draw=black,fill=gray!20] (0,0) --(4.8,0)-- (4.8,5)--(0, 5)--cycle; \draw[draw=black,fill=gray!20] (4.8,5) -- (4.9,4.8)--(4.9,-0.1)--(4.8,0)--cycle; \draw[draw=black,fill=gray!20] (0,0) -- (0.1,-0.1)--(4.9,-0.1)--(4.8,0)--cycle; \draw[dashed,draw=black] (4.8,5) -- (4.9,4.8)--(0.1,4.8)--(0.,5)--cycle; \draw[dashed,draw=black] (0.1,-0.1)--(0.1,4.8)--(0.,5)--(0,0)--cycle; \end{tikzpicture} \end{document}


linux + single user mode and set network

I have linux redhat machine version 6.5  I reboot machine and work as single user mode ,   then I set the network on eth0 with default gw address   /etc/sysconfig/network-script/ifcfg-eth0   but from some reason dg address not appears from netstat -rn after service network restart  my question - can we set default gw address and start network when we in single user mode ?


Abnormal results projecting WGS84 to local Azimuthal Equidistant projection with pyproj

I am trying to project regular WGS84 coordinates to a local projected system (Azimuthal Equidistant), using meters and centered on the eiffel tower (as an exemple). I am using python 3.8.2 and pyproj 2.4.1 for that.  I tried to reproduce the method of Spacedman from , but the results I get are clearly wrong ...  Here is my test code, trying to get the coordinates of Le Louvre Museum in that system :  # coding: utf8 import pyproj  def to_local(lon_angle, lat_angle, origin):   crs_wgs84 = pyproj.Proj('epsg:4326') # WGS84 input projection (angle)   crs_aeqd = pyproj.Proj(proj='aeqd', datum='WGS84', lon_0=origin[0], lat_0=origin[1], units='m') # Local Azimuthal Equidistant projection, centered on the 'origin' parameter   x, y = pyproj.transform(crs_wgs84, crs_aeqd, lon_angle, lat_angle)   return(x, y)  origin = (2.294473, 48.858440) # Eiffel tower in Paris destination = (2.335769, 48.861062) # Le Louvre Museum  x, y = to_local(destination[0], destination[1], origin) print(f'In local system centred on origin, destination has coordinates ({x}, {y})') # Result, in meters, should be around (3030, 290)   From what I roughly computed manually, I should get something like 3030 meters as longitude and 290 meters as latitude, both positive since Le Louvre is North-West from the Eiffel Tower, but here is the output :  > In local system centred on origin, destination has coordinates (5635219.051216577, -3788748.14149113)   I don't understand thoses values, what am I missing here ?


Convert coordinates in a CSV file and get the new ones added in the text file

In QGIS I am trying to convert coordinates from a CSV file. QGIS can use another projection, but when I try to export this layer (and changing the output CRS) the coordinates in the CSV file itself won't change. Is there a way to transform/convert these coordinates and get the new values exported? Update of details: I have coordinates for points in a circle around a center point (geocoded from a service using WGS84).  These coordinates are in WGS84. I want these converted to SWEREF 99 TM, since that is what my other software is using. But when I import them, it looks like this:  I have use field calculator with on a CSV file and a SHP file, using this formula: x(transform($geometry,'EPSG:4326','EPSG:3006'))  The attribute form for the CSV file looks like this:  The formula seems to be working. The SHP file (exported from the CSV file) attribute form looks like this:  The formula is creating NULL values. Still, if I use the converted coordinates from the CSV file (export it to a new CSV file) Most likely there is some basic knowledge regarding coordinate transformation that I do not possess...


How are propensity scores different from adding covariates in a regression, and when are they preferred to the latter?

I admit I'm relatively new to propensity scores and causal analysis.  One thing that's not obvious to me as a newcomer is how the "balancing" using propensity scores is mathematically different from what happens when we add covariates in a regression? What's different about the operation, and why is it (or is it) better than adding subpopulation covariates in a regression?  I've seen some studies that do an empirical comparison of the methods, but I haven't seen a good discussion relating the mathematical properties of the two methods and why PSM lends itself to causal interpretations while including regression covariates does not. There also seems to be a lot of confusion and controversy in this field, which makes things even more difficult to pick up.  Any thoughts on this or any pointers to good resources/papers to better understand the distinction? (I'm slowly making my way through Judea Pearl's causality book, so no need to point me to that)


I have a very basic program in Android Studio that gets a Json-Object from a website ("") and the just displays it on screen, without parsing it. The Json-object is transmitted correctly, but at onPostExecute the String result seems to be null and the Log.e("setText") is throwing a NullPointerException, while Log.e("String") is correct and neither the IOException nor the MalformedURLException is thrown:       try {             url = new URL("https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesDemoItem.txt");             connection = (HttpURLConnection) url.openConnection();             connection.connect();              InputStream stream = connection.getInputStream();              reader = new BufferedReader(new InputStreamReader(stream));             Log.e("TRY", "trybracket");             StringBuffer buffer = new StringBuffer();              String line = "";             while ((line = reader.readLine()) != null) {                 buffer.append(line);             }              String result = buffer.toString();             Log.e("String", result);             return result;          } catch (MalformedURLException e) {             e.printStackTrace();             Log.e("MUE", "Malformed");         } catch (IOException e) {             e.printStackTrace();             Log.e("IOE", "IOException");         } finally {             if (connection != null) {                 connection.disconnect();             }             if (reader != null) {                 try {                     reader.close();                 } catch (IOException e) {                     e.printStackTrace();                 }             }             return null;          }     }      @Override     protected void onPostExecute(String result) {         super.onPostExecute(result);         tvData.setText(result);         Log.e("setText", result);     } }   Also this my Logcat:   E/TRY: trybracket E/String: {  "movies": [{"movie": "Avengers","year": 2012}]} D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main                Process com.stasiak.jsonparsing, PID: 20061               java.lang.NullPointerException: println needs a message                     at android.util.Log.println_native(Native Method)                     at android.util.Log.e(Log.java:238)                     at com.stasiak.jsonparsing.MainActivity$JSONTask.onPostExecute(MainActivity.java:96)                     at com.stasiak.jsonparsing.MainActivity$JSONTask.onPostExecute(MainActivity.java:39)                     at android.os.AsyncTask.finish(AsyncTask.java:695)                     at android.os.AsyncTask.-wrap1(Unknown Source:0)                     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)                     at android.os.Handler.dispatchMessage(Handler.java:105)                     at android.os.Looper.loop(Looper.java:164)                     at android.app.ActivityThread.main(ActivityThread.java:6541)<1 internal calls>                     at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)


I am creating some standard Junit tests in Eclipse for a Crud repository, but I get a null pointer exception. The test for save looks like this: import static org.junit.Assert.*;  import org.junit.Test;  public class CustomerRepositoryTest {     private static Customer mats;     private static Customer thomas;     private final IDGenerator idGen = new IDGenerator( "C", IDGenerator.IDTYPE.NUM, 6 );     CrudRepository<Customer,String> customerRepository;                     //test if saving works     @Test     public void test() {         mats = new Customer(idGen.nextId(), "Doe", "John", "Street 1");         thomas = new Customer(idGen.nextId(), "Doe", "Sue", "Street 2");         customerRepository.save(mats);         customerRepository.save(thomas);         int check=2;         assertEquals(customerRepository.count(),check);     }  }  The Code for the Customer Repository: class CustomerRepository implements CrudRepository<Customer, String> {           private CrudRepository<Customer,String> crudrepository;     private final IDGenerator idGen = new IDGenerator( "C", IDGenerator.IDTYPE.NUM, 6 );      /*long count();*/     @Override     public long count() {         long count = crudrepository.count();         return count;     }      /*<S extends Customer> S save( S entity );*/     @Override     public <S extends Customer> S save(S entity) {         if (entity.getId()=="" || entity.getId()==null ){             entity.setId(idGen.nextId());             crudrepository.save(entity);             }         if(crudrepository.existsById(entity.getId())==false){             entity.setId(idGen.nextId());             crudrepository.save(entity);             }         else{         crudrepository.save(entity);         }         return entity;     } }  How can the NullPointer exception be resolved ?


I am trying to prove that $2^{2^{1/2}}$ is irrational, but I am having a hard time doing that. Any hints?


I am starting on a animation and every time I click something it waits and  says at the top of the window "Blender (Not Responding)".  I know what it means but is there a way to stop it from doing this? Its very annoying having to wait 7 seconds to select a bone. I don't know what to do I have tried turning of grid and outline selected and it still is slow.  Also, I am on a gaming laptop with a I7 and a gtx 960 so there should be no problems like with old computers.


How do get rid of (1 not defined because of singularities) in R?

I'm analyzing data in R, I'm trying to see how some variables affect test scores (Value) of different countries. In the data, since there is different time periods for different countries I need to use a panel technique to regress this data. I'm using a fixed-effect model, more specifically a constant-free model, where you include dummy variables for every particular country. In the equation I took off the intercept to eliminate collinearity. When I ran the regression, I could see the statistical information for all variables except one. I get "NA" for this variable in R. I think my model still suffers from collinearity and I think the solution to fix this problem is just to drop one dummy variable from the equation. I did do that and I'm no longer getting "(1 not defined because of singularities)". I just wanted to double check with someone else if I did the right thing? This is my code: library(stats) library(lmtest) library(dplyr) library(plm)  # running fixed effects with country dummies  Data_we_using2$LOCATION = as.factor(Data_we_using2$LOCATION)  dummyregress = lm(Value ~ Boysdummy + RGDPCapita+Graduation_rates + MissingGraDummy + Mortality_rate + GovtExpen + MissingGovt + Private + LOCATION-1, data = Data_we_using2)  summary(dummyregress)  LOCATION is the dummy variables of the countries. The pictures I included is the output I got for R.


I have been trying to eject the cd drive with the use of the cmd. However, I am stumped. Searching on the internet, I only found this answer:  eject D:    and a similiar answer  eject D: /I   Both of them do not work.   EDIT Now people have found this answer on superuser,   Set oWMP = CreateObject("WMPlayer.OCX.7") Set colCDROMs = oWMP.cdromCollection colCDROMs.Item(0).Eject   However, I get an error:  colCDROMS.Item is not recognized as an internal or external command, operable program or batch file.


In a research statement for PhD admissions, should I start with the context, or directly with the idea for my research?

I'm applying for a PhD in engineering and I was asked by the advisor I have chosen to write down a short program (~10 pages) about the "research" I will conduct if I get into the PhD program.  The advisor provided ten choices where the future PhD program will lay. The topics are very large and well studied in the literature. Our "task" is to choose one of them, find out something "new" inside of this big sea and write it down. I did a lot of research on Scholar and downloaded more or less 20 free papers I found interesting. I collected data and results, thought a bit about the problem and found a ( maybe ) new application that fits my interests and past studies and I think it could bring some novelty in the field I'm applying.   Now my question is, which is the best way to format the proposal?   Should I start with the context of the research, point where previous studies went and what kind of results yielded and now focus on my brand new idea? Should I skip 1) and start in medias res with the heart of the matter?


Can you die instantly if you take enough damage?

If you have a max HP of, for example 27, and you have 0 current HP, and then take another 27 dmg, do you die instantly?


If I don't want to install a GUI, just install a minimal Ubuntu amd64.  Ok, but: I heard that I can still run e.g.: Firefox in a "framebuffer" (?), so I'm asking, that how can I run e.g.: a VLC media player through a framebuffer under console, without "GUI"?


How can I create a password protected .zip file in Windows 10?

Winzip claims that it can create a password protected zip on Windows 10, but the Winzip installer fails part way during the installation on Win10.    Is there an alternative to Winzip?


How does one go about proving that the function $x \sin x$ is not uniformly continuous on the set of real numbers ?  Any method that uses the sequential criterion for discontinuity would be preferred.  Thanks in advance !


What causes the rainbows with beautiful forms by shining white light on a cd?

When you shine white light on the mirror side of a cd you see beautiful coherent rainbow forms. What causes these forms? When trying to find out by searching the net, it didn't become very clear to me. It was said it's the same phenomenon as the strangely noncoherent deformed rainbows you see if you shine white light on an oily surface on top of water. The thickness of the oil layer varies slightly over the surface which causes light of different frequencies to interfere constructively or destructively. But the layer on the cd doesn't vary in thickness, and the patterns you see are very coherent, in contrast to the rainbow patterns you see on an oil layer. So what's causing these beautiful coherent rainbow patterns?  So I don't ask why these patterns occur for white light which have small phase related regions, but why the effect itself appears (by diffraction gratings I read below), but how, and why have the rainbow patterns beautifully coherent forms, which change shape if you look at different angles.


Let n be an even integer. How many different ways can I choose subsets of the set {1,2...,n} if they all have to have odd size, but the intersection of any two of them has to have even size?  Please help me answer this question or lead me in the right direction. Thank you :)


Is there some way to boot a Linux system from a VHD in Windows 7?  If there is a way, how do I put it there in the first place?  EDIT: To clarify, I'm not trying to run Linux in a VM. I'm trying to boot it in my physical machine, from a VHD, as I can do with Windows 7.


How can I trigger onclick function when I press enter button?

I use the code below to update the url link based on user text input:  <input type="text" id="q" /> <input type="button" id="submit" value="submit" />  <script> $(function () { $("#submit").click(function() {     var url = "/tag/";     url += $("#q").val();     window.location = url; }); }); </script>   Right now it works pretty fine when someone clicks the submit button. What I want is to make it also work when a user press the enter button.


doesn't work the bash script to check given single character is in lower case or uppercase

I write below shell script to check whether given character is in uppercase or lowercase..  read d case $d in [a-z]) echo "Character is in Lowercase";; [A-Z]) echo "Character is in Uppercase";; esac   But when I enter any case in Uppercase it displays the output "charecter is in Lowercase" I just want to create simple script with basic programming. Is there any solution??


Prevent upload file in Asp.net Web forms

I have a file upload functionality in my application which is for uploading a valid Image(JPG). However, a user is currently able to upload a .exe file by just changing the extension of the exe file to .jpg. Can we validate this file and give an error message to the user that it’s not a valid file? Anyone has implemented this check and can suggest?


Ways of showing $\sum_\limits{n=1}^{\infty}\ln(1+1/n)$ to be divergent

Show that the following sum is divergent   $$\sum_{n=1}^{\infty}\ln\left(1+\frac1n\right)$$   I thought to do this using Taylor series using the fact that $$ \ln\left(1+\frac1n\right)=\frac1n+O\left(\frac1{n^2}\right) $$ Which then makes it clear that $$ \sum_{n=1}^{\infty}\ln\left(1+\frac1n\right)\sim \sum_{n=1}^{\infty}\frac1n\longrightarrow \infty $$ But I feel like I overcomplicated the problem and would be interested to see some other solutions. Also, would taylor series be the way you would see that this diverges if you were not told?


When will the next LTS version of Ubuntu be released?

I am a bit confused about the release schedule of Ubuntu. AFAIK, it releases a new version every 6 months right? How about the LTS version?


Corrupted graphics, crashes, and noisy GPU fan after updating NVIDIA GeForce drivers to 364.xx

I recently updated the drivers for my NVIDIA GeForce video card to version 364.72 (or other version in the 364.xx series), and I'm now experiencing issues such as the following:   Games or other graphically intensive applications crash or hang I get BSODs that are associated with the graphics driver, e.g. nvlddmkm.sys or dxgkrnl.sys Graphical glitches such as missing or misplaced text or icons, display corruption, or a black screen occur The graphics driver crashes regularly, with the message "Display driver [...] has stopped responding and has recovered." The fan on my graphics card spins up to high speed, or the card makes excessive noise   Reinstalling the graphics driver did not help. What's going on?     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.


Is the size of the entrance pupil the same as the size of the effective aperture?

I understand that the entrance pupil is the image of the aperture as seen from the front of the lens. However, is the size of the entrance pupil the same as the size of the effective aperture? In other words, if I measure the size of the entrance pupil by looking at it, will that be equivalent to the focal length of the lens divided by the f-number (with the focus set to infinity)? I know that sometimes this is hard to estimate because of the shape of the aperture blades, but I was wondering whether pupil and aperture can be quite different (perhaps at very low magnification).


How to create a Geometric Polygonal Art portrait

I've been interested in creating Geometric Polygonal art illustrations, i.e. making polygons and shapes with different color shading represent a face, or an object, see  set of .  How are they achieved? Is there some script for Illustrator which alters the image adding the shapes according to the colors or shades? How would I transform a normal image of Marilyn Monroe for example, to a polygonal illustration of her?


Equivalece of the geodesic equation and the continuity equation for the energy-momentum tensor

I am stuck with an exercise in Sean Carroll's Spacetime and Geometry (Chapter 4, Exercise 3). The goal is to show that the continuity of the energy-momentum tensor, i.e. \begin{equation} \nabla_\mu T^{\mu\nu}=0\tag{1} \end{equation} is equivalent to the geodesic equation in the case of a free particle. The energy-momentum tensor of a free particle with mass $m$ moving along its worldline $x^\mu (\tau )$ is \begin{equation} T^{\mu\nu}(y^\sigma)=m\int d \tau \frac{\delta^{(4) }(y^\sigma-x^\sigma(\tau ))}{\sqrt{-g}}\frac{dx^\mu}{d\tau}\frac{dx^\nu}{d\tau}.\tag{2} \end{equation} Taking the covariant derivative of this tensor gives $$\begin{align} \nabla_\mu T^{\mu\nu}=&m\int d \tau \nabla_\mu\left[ \frac{\delta^{(4)}(y^\sigma-x^\sigma(\tau ))}{\sqrt{-g}}\right]\frac{dx^\mu}{d\tau}\frac{dx^\nu}{d\tau}\cr &+m\int d \tau \frac{\delta^{(4)}(y^\sigma-x^\sigma(\tau ))}{\sqrt{-g}}\nabla_\mu\left[\frac{dx^\mu}{d\tau}\frac{dx^\nu}{d\tau}\right].\tag{3} \end{align}$$ The first covariant derivative of the right-hand side of the above equation reduces to an ordinary partial derivative, as the argument is a scalar. This allows us to apply partial integration to this term. The second covariant derivative has an argument that is not explicitly dependent on $y^\sigma$, so the covariant derivative can be written as a multiplication of this tensor with the appropriate Christoffel symbols. This finally leads us to $$\begin{align} &-m\int d \tau \frac{\delta^{(4)}(y^\sigma-x^\sigma(\tau ))}{\sqrt{-g}}\frac{d^2x^\nu}{d\tau^2} \cr &+  m\int d \tau \frac{\delta^{(4)}(y^\sigma-x^\sigma(\tau ))}{\sqrt{-g}}\left[ \Gamma^\mu_{\mu\sigma}\frac{dx^\sigma}{d\tau}\frac{dx^\nu}{d\tau} + \Gamma^\nu_{\mu\sigma}\frac{dx^\mu}{d\tau}\frac{dx^\sigma}{d\tau} \right].\tag{4} \end{align}$$ The continuity equation requires \begin{equation} -\frac{d^2x^\nu}{d\tau^2} + \Gamma^\mu_{\mu\sigma}\frac{dx^\sigma}{d\tau}\frac{dx^\nu}{d\tau} + \Gamma^\nu_{\mu\sigma}\frac{dx^\mu}{d\tau}\frac{dx^\sigma}{d\tau}=0.\tag{5} \end{equation} This is the geodesic equation with an extra term, i.e. the term in the middle and with an incorrect sign for the first term. Can I get rid of this term in the middle by changing the parameter $\tau$ of the worldline? What about the incorrect sign? What did I do wrong?


Quantum Entanglement- why are we so suprised?

So, I was watching a youtube video in order to understand quantum entanglement- you know, as a non-physicist- and at one point the speaker says that it doesn't understand how the energy of one photon can be divided to several different atoms and how it can interact at the same time with each (as this photon is entangled). What I don't understand- and please excuse my lack of knowledge in the field- why are scientists so awed at the fact that a photon- which is energy- is divided? it's not as if it's a definite hard object, it's energy. Plus, isn't matter made up of energy? I've been thinking about it for a while and would really appreciate it if someone could explain what all the fuss is about.


How to hyperlink to figure instead of head of section

I have a problem with the PDF output of a tufte-handout ( the MWE, you also need the these two files to compile:  and ). I am not sure the problem is with the template, but in my PDF when I click on some reference in the text (where I placed the \ref) instead of linking to the referenced figure or table, the hyperlink goes to the head of section.


Alright, so I'm working on an application which will use a Linux back-end running PostgreSQL to serve up images to a Windows box with the front end written in C#.NET, though the front-end should hardly matter.  My question is:   What is the best way to deal with storing images in Postgres?   The images are around 4-6 megapixels each, and we're storing upwards of 3000.  It might also be good to note: this is not a web application, there will at most be about two front-ends accessing the database at once.


Cannot cd into directory because of permission, but directory is mine

I have changed my windows machine to Artix linux. And I had bunch of music in the windows so I just kept them in drive and moved them over to new Artix installation. At first, the permissions of files and directories was insane, everyone had execute permissions for all directories and files(because they were coming from windows). So I changed them with runnign chmod -x {dirs and files}. Because I have done all the installation and the moving the folder over as root, obviously, the owner of the files was root. So I changed them with chown -R murad rammstein (all my music is in that folder). But when I try to cd rammstein I get cd rammstein/ Permission denied. So what is the problem? The permissions and owner of the folder drw-r--r-- 9 murad wheel 4096 Jan 31 15:54 rammstein  All the other folder and files are the same, for example the directories inside of rammstein are drw-r--r-- 2 murad wheel 4096 Jan 31 15:53 rammstein-herzeleid-1995 <and 5 different folders with the same perms/owner>  And the songs' permission inside of an album folder -rw-r--r-- 1 murad wheel  9688925 Jan 31 15:53 rammstein-asche-zu-asche.mp3  From here it's obvious that I can, at least, view those folders and files. But I'm not sure a simple cd gives Permission denied error.


How to prove the following: Assume A infinite,B denumerable show that A~$A\cup B$

Assume A is infinite,B is denumerable. Prove A$\approx (A \cup B)$(rewrite) Reference: 7.18 Theorem A is an infinite set iff A is equipotent with a proper subset of itself. 1.20 Theorem If A and B are any classes, then i) A⊆A∪B and B⊆A∪B. ii) A∩B⊆A. and A∩B⊆B My thoughts on it are as follows : By 7.18 if A is infinite then it is equipotent with a proper subset of itself, so by 1.20(i),A$\subseteq A\cup B$ Then there exist an injective function f:$\omega\mapsto A\cup B$ Check f is bijective once defined. If A is denumerable ,we know there is a bijective function f:$\omega\mapsto A\cup B$ and we have a function g:$A\cup B\mapsto\omega$ Once defined show it is onto I don’t know how to create brackets for two functions thus I state “once it is created “ Then ? I don’t think I can conclude somehow?


Single word request: a notable representative of a discipline  e.g. Picasso and Braque - Cubism  Picasso and Braque were "important representatives" of Cubism  Is there a word to replace "important representatives"?


Are unimpressive grades in core courses an indication of not being competent for a career in the field?

I have recently passed my qualifiers and research proposal. My research is in computational mechanics. I had two courses (continuum mechanics and finite element method) as part of my research related courses. I will be using the concepts learnt in the courses in my research, though my research will be more applied than theoretical, so will involve utilizing a commercially available software and develop few additional routines for it.  Now, I scored B+ in both the courses (the minimum grade required for being eligible for qualifying exams was a B-). I struggled through few concepts but fared fairly well in the qualifiers and answered most of the questions asked by the committee.  However, I am concerned that my average grades might be an indicator that I might not be fit for the field I have chosen to build a career in. Now, I am confident that I will manage to adequately complete my PhD thesis and publish papers as required.   But, I am worried that academia is going to be a closed door for me. Eventually, if I get tenure track position after my PhD, I will have to teach these subjects (There's no teaching assistantship opportunities in my department for me), and how will I be able to teach something in which I fared poorly? Also, I will have to do theoretical research work after my phd, and I will not fare well in that. What should I do?


Number of solutions to $a_1 + a_2 + \dots + a_k = n$ where $n \gt 0$ and $0 \lt a_1 \leq a_2 \leq \dots \leq a_k$ are integers.

I know how to find the number of solutions to the equation:  $$a_1 + a_2 + \dots + a_k = n$$  where $n$ is a given positive integer and $a_1$, $a_2$, $\dots$, $a_n$ are positive integers. The number of solutions to this equation is:  $$\binom{n - 1}{k - 1}$$  This can be imagined as $n$ balls arranged on a straight line and selecting $k - 1$ gaps from a total of $n - 1$ gaps between them as partition boundaries. The $k - 1$ partition boundaries divide the $n$ balls into $k$ partitions. The number of balls in the $i$th partition is $a_i$.  Now, I don't know how to find the number of solutions to the same equation when we have an additional constraint: $$0 < a_1 \leq a_2 \leq \dots \leq a_k.$$ Could you please help me?


How to Set Left Align in the Table Whose Length is Set

I have a problem with this table. I want to set the right column (whose is set by p{9cm}) to be left align, but if I replace it with l{9cm}, it will be error. How to solve it? Here is my code: \documentclass[a4paper,oneside,11pt]{book} \usepackage[hmargin={4cm,3cm},vmargin={4cm,3cm}]{geometry} \usepackage{tabularx} \usepackage{lipsum} \begin{document}     \chapter{Chapter's Name}     \begingroup     \setlength\extrarowheight{13pt}     \noindent\begin{tabular}{@{}lcp{9cm}}         Random Text&:&\uppercase{random text here. mmmmmmmmm nnnnnnnnnn bbbbbbbbb. vvvvvvvvvv ccccccccccccccccccccccc xx zzzzzzzzzzzzzzzzzzzzzzzzzzzz}\\         Random Text 2&:&\uppercase{random text here. mmmmmmmmm nnnnnnnnnn bbbbbbbbb. vvvvvvvvvv ccccccccccccccccccccccc xx zzzzzzzzzzzzzzzzzzzzzzzzzzzz}     \end{tabular}     \endgroup \end{document}  The output is:  I want to change the setting of the right column from p{9cm} to l{9cm} (left align), but if I do it, it will be error. What should I do to handle the long space between word (red line)?


What happens to Wall of Fire if the surface moves

The situation I am wondering about is if Wall of Fire is cast upon a wall and then the wall either falls over or crumbles. Would the wall of fire remain floating in the air? Would it disappear? Would it follow the surface to the ground?  Wall of Fire reads:     You create a wall of fire on a solid surface within range.


I came across the phrase, “suck it up and go” in the columnist’s answer to a question from a reader of Carolyn Hax's column in Washington Post’s “Lifestyle” section (July 2nd).  The Q&A titled “Ever the aunt, never the godmom” begins with the following sentence:     “Dear Carolyn: We just got an invitation to the baptism of my seventh nephew on my husband’s side. Once again we were not considered as godparents. I felt snubbed. -- Is this a legitimate snub? Should I talk to my sister-in-law about it?”    and Carolyn answers:     “Boycotting the baptism in a wounded huff would be petty, yes, and that’s the main reason to suck it up and go - but you also need to go because nothing would undermine your own purpose more tidily than staying home.”   I checked the meaning of “suck it up and go” in English Japanese dictionaries at hand only to find one of them shows “suck it and see” meaning “to try” as a British and  Australian usage. Online dictionaries register “suck it (up) and “go suck,” but not “suck it up and go.”   What does “suck it up and go” mean? Is it an American version of “suck it and see”?


Forced to Quit PhD although the hard and proved work

I am a first year Ph. D student, and I have been working on a new topic of research.  I worked day and night to prove something new and verified it. I began my Ph. D while my supervisor was on travel, but he returned before I had been here for long.  When he returned, he told me we have to stop and not continue without any reasonable reasons.  After a few months he began treating me poorly---always belittling and underestimating---although I got two grants from a top conference, made videos and podcasts, and constantly received praise for my good work and personality.    It seems that I have been treated as a competitor, not a collaborator.  Although agreeing with my approaches in private, my supervisor said false words to the committee to take the decision and stop my Ph. D work!  It is not surprising, as there was another former senior Ph. D student who I met on campus, who was not allowed to defend his Ph. D: this same supervisor claimed he was not able to finish his dissertation although he had published in a peer reviewed journal and having citation as well, it was scary and not familiar.  In front of committee, he lied, and said something without proving. I asked if he can make a detailed constructive criticism, but he could not.  All I can say that they are a gang literally, and he said words that show that he is jealous and doesn't want to see me having self confidence in my self. I know no one will believe me, but this is the truth.  Honestly, I am distressed and I'm losing sleep.  I had this dream where there were many people who saw me fail.  All things considered, I don't know whether what happened is good or bad, and I definitely don't know what I should do next!  I would be grateful for your advice and whether there is someone has encountered any similar situation.


There are about three or four people regularly in the  every weekday but few others seem to even know it exists. Can Stack Overflow advertise the chat rooms on specific tags?   For example, when a new question is tagged with ASP.NET MVC, it could suggest the chat room for that as an option for finding answers. Of course, moderators/admins would have to create those relationships between tags and rooms.  A clarification based on comment from @Tinkeringbell: we still want questions to be posted as questions. But less prominently displayed, for items that are perhaps more discussion-related, it can be asked in chat. One downside: some folks will look for quicker answers/shortcuts through chat instead of formulating a proper MCVE (Minimal, Complete, and Verifiable example) question.  Thanks.  Update: This is different from , the OP would see the chat rooms while typing the title, similar to how similar questions display during that process.


windows boot loader does not detect ubuntu

I installed ubuntu 13.04 along side windows 7. However, after installation was complete and the computer restarted I could not see ubuntu in the operating system load choice. I had windows 7 initially and 3 drives c,d and e before I installed ubuntu. I deleted e: partition and installed ubuntu in the unallocated space.  Windows boot loaded does not detect ubuntu 13.04.  please help


I always assumed that assigning computers to different workgroups was a way of effectively putting them on separate Windows networks. I just tried this, expecting computers in one workgroup to be invisible to computers in the other (and vice versa). Instead, all computers are still visible and accessible to one another.  If this isn't the purpose of changing workgroup names, what is?  EDIT: Ƭᴇcʜιᴇ007, this question is not a duplicate. I'm asking specifically what changing workgroup names achieves, not generally what workgroups are for. Could you please undo this?


Where are measurable functions not locally integrable?

Let $f : \mathbb R^n \rightarrow \mathbb R$ be a measurable function.  We know that $f$ is not necessarily locally integrable - but how hard can a measurable $f$ fail to be so? For example, is it true that $f$ is locally integrable outside of a negligible set $N \subset \mathbb R^n$?   Edit: In consideration of the comment by zhs, let me correct the phrasing of the question. I was originally wondering whether the 'singular' behaviour of a measurable function can be localized to a 'small' set.   A motivational example is $f(x) = 1/x$ over the real line. It is locally integrable in the complement of the origin. Hence, a conceivable phenomenon, which I had in mind originally when asking the question, could be that a measurable $f$ is integrable over open sets that are compactly contained in the complement of some negligible sets.


Images from digital camera can't be enlarged

I am unable to import images from my digital camera (Sony Cybershot 8.1 megapixel DSC-W130) as they appear in the camera display. When I connect the memory card using a card reader, the thumbnails look fine. But when I open the images, all of them seem corrupted. The image size is about 2-3 MB. When I reinsert the card in the camera, they are perfectly fine. I have tried it with another laptop, but still no good. I don't know what the problem is.


To connect to my server I'm forced to use iptables -F

To understand better please look this short   I can not solve a problem about a problem of dialogue between iptables and security group of EC2  The only way to connect to server using my elastic public is IP 35.156.xx.xx:27015 seems to set on EC2 this rule:  Custom UDP Rule UDP 27015 0.0.0.0/0   BUT this is not enough because I have to use this command from terminal to unlock connection  iptables -F   In one picture I set this configuration http://  i.imgur.com/X12Iq9X.png  But what is sense to clear all rules temporally ? Why flush all chains ? Is not dangerous ?  These rules from terminal are no effects  iptables -A INPUT -p udp --dport 27015 -j ACCEPT iptables -P OUTPUT -p udp --dport 27015 -j ACCEPT iptables -A INPUT -p tcp --dport 27015 -j ACCEPT   My relevant data is this - I copy on pastebin because it is little too long Link:


What are alternative IDEs to ADT eclipse ? the emulator in adt eclipse is VERY SLOW

I tried to develop apps in standard ADT - but it is very slow to respond to my clicks on the virtual smartphone..  Are there other FASTER alternative IDEs to ADT and better simulator coming with it?


In the sites dropdown, the reputation scores are misaligned:    This seems to happen only on Firefox (56.0), both on macOS (10.13) and Windows (7, 10) (thanks @Tom and @MonicaCellio). I've tested a couple of other browsers which do not have this problem. I've already cleared my cache.


Is deleting contents of AppData folder from my computer recommended?

Well well well...my computer keeps on eating whatever free space is available in the hard drive. It doesn't care whether the free space is in kb,KB,MB or GB. It happens only in the C drive where my OS & other program files are installed.  I used a software Windir Stat or something like that (I don't remember the name exactly) to analyze the usage of space by various programs.  In my C drive, there's a folder named AppData with loads of useless files. I don't know whether they are useful or not? Are they useful?  I was thinking about deleting the contents of that folder. I visited  for more info. WHich folder should I delete???


Is there any way to lock files of these types:   txt pdf docx doc   If locked, it should not be possible to edit, copy or print it.


Is Static keyword in java used for memory management purpose ?

Because no matter how many objects will we create with static will share same reference ?


Why is the Array memory location being printed in Java?

Not understanding why the memory location is being printed when I run. When I satisfy the 'if' statement I have in my code, the message I get back is "Your total is [I@5f184fc6". I would appreciate if someone could help get this issue resolved as well as explaining to me to help me understand and not run into this issue again.   import java.util.Arrays; import java.util.Scanner; public class steakShop {    public static void main(String [] args){     Scanner scanner = new Scanner(System.in);     String items[] = {"burger", "pizza", "shrimp", "nachos","stir fry"};          enter code here`int selection[] = {5,10,8,7,9};              for (String it: items) {                 System.out.println("Would you like to order a " + it + "?");                String itemSelected = scanner.nextLine();                   if (itemSelected.equals("yes"))                    System.out.println("Your total is " + selection + ".");   }  } }  Thanks for all comments and answers!


What is the Python equivalent of static variables inside a function?

What is the idiomatic Python equivalent of this C/C++ code?  void foo() {     static int counter = 0;     counter++;     printf("counter is %d\n", counter); }   specifically, how does one implement the static member at the function level, as opposed to the class level? And does placing the function into a class change anything?


I have a 32 GB Lacie Cookey USB flash disk that doesn't show in the Computer window but it's visible as a device.  cmd > diskpart  DISKPART> list disk    Disk ###  Status         Size   --------  -------------  ------   Disk 0    Online          149 G   Disk 1    No Media          0  DISKPART> select disk 1  Disk 1 is now the selected disk.  DISKPART> clean  Virtual Disk Service error: There is no media in the device.   It also appears in the Disk Management tool, but the box is empty.  Is there anything I can do or is it dead?  ............................................................  output from ChipGenius:  Description: [F:]USB Mass Storage Device(LaCie CooKey) Device Type:        Mass Storage Device  Protocal Version: USB 2.00 Current Speed: High Speed Max Current: 200mA  USB Device ID: VID = 059F PID = 103B Serial Number: 070535924B170C18  Device Vendor: LaCie Device Name: CooKey Device Revision: 0100  Manufacturer: LaCie Product Model: CooKey Product Revision: PMAP  Controller Vendor: Phison Controller Part-Number: PS2251-67(PS2267) - F/W 06.08.53 [2012-09-26] Flash ID code: 983AA892 - Toshiba [TLC]  Tools on web:       http://dl.mydigit.net/special/up/phison.html


use of "everything" or "anything" in positive and negative sentences?

As a non-native speaker, when I read the books about grammar, I learn that usually the word "everything" is used in a positive sentence and that the word "anything"is used in a negative or interrogative sentence. But I often see sentences in some magazines and articles like:   We'll do almost anything for our beloved animals.   What's the difference between them, and is it changing the meaning in sentence?


Can I have net negative maximum HP per level with a negative CON modifier?

For the sake of an example, assume I'm a level 1 Sorcerer or Wizard who's somehow had the misfortune of winding up with 1 CON. Maximum HP at level 1 is determined by the highest possible roll on your hit die plus your CON modifier. For me, that's \$6+(-5)=1\$. Horribly low, but technically survivable. I just have to not get hit.  The problem arises when I level up. For simplicity, let's say my group doesn't roll hit dice to determine how HP changes. We instead use the alternate option of adding the listed flat values from the class descriptions in the Player's Handbook (the average roll on your hit die, rounded up). Using this method, the formula for what's added to my maximum HP is: $$\left (\frac 6 2 +1 \right)+(-5) = 4-5 = -1$$  Uh oh. At level 2 my maximum HP is 0. If I somehow manage to keep gaining levels, the situation becomes even more dire; the reduction of one maximum HP stays constant, so as I level up the most health I'm allowed to have goes deeper and deeper into the negatives.  Obviously this is a pretty contrived example, but it could come up in the future. As of now, I'm only aware of two sources of ability damage in 5e, and they hit INT and STR. But if a future book adds a way for your CON to be lowered, it could be disastrous. When your CON modifier is modified by 1, your maximum HP is affected by 1 point for each of your levels. The way the math works out, this means that if you want to calculate a character's maximum HP, you can assume that they've had the same CON modifier since level one; the result is identical. If I'm a level 20 Sorcerer or Wizard and my CON is somehow reduced to 1, my maximum HP immediately becomes -18!  ...Is this really how it works? Or is there a rule saying (for example) that your maximum HP will always be at least one, preventing the issue?


Intuitive explanation for $\zeta (2)=\frac{\pi^2}{6}$

Using $f(x)=x^2$ Fourier' series, the proof for $\zeta (2)=\frac{\pi^2}{6}$ is pretty straight forward. I'm wondering if there is a more intuitive explanation for the equality, one that a layman could understand and appreciate.  For $\sum_{n=1}^\infty\frac1{2^n}=1$, the intuitive explanation can be given to a 10-year-old, using the following picture   Is there a similar intuitive explanation for $\zeta (2)=\frac{\pi^2}{6}$ or $\zeta(2n)$, $n\in \mathbb{N}$ and it's relation to $\pi^2$?


How to determine the "age" of a linux system since installation?

I thought that I could easily check the timestamp of particular files. Then I realized that it wouldn't be so easy when I saw timestamps like 1991.


How do i create a linestring from points sort by date in PostgreSQL?  I tried:  SELECT observations.id,    ST_MakeLine(observations.geom ORDER BY observations.date) AS newgeom    FROM   observations     GROUP BY    observations.id;   This is going wrong. It returns me a linestring with same coordinates.  So, instead of a line from a to b, it gives me a to a.    What am I doing wrong?


How do I approach this problem? I know the formula but do not how it had come. Could you please explain to me the procedure, with examples if possible.


Combination key like ctrl or alt or shift doesn't work on ubuntu 16.04

I have problem using combination keys like Ctrl or Alt or Shift. For example when I want to copy selected text I press Ctrl + C,but it isn't working. Or when I want to select all text, I press Ctrl+A, but this also doesn't work. In android studio all combination keys, doesn't work. When I open settings> keyboard> shortcuts , I can't edit shortcuts , because when I enter Ctrl + C for shortcut to copy, ctrl never gets entered , just C.


Stuck with proof for $\forall A\forall B(\mathcal{P}(A)\cup\mathcal{P}(B)=\mathcal{P}(A\cup B)\rightarrow A\subseteq B \vee B\subseteq A)$

I came to point where I suppose for case 1 that $A\subseteq B$ and conclusion is trivial. For case 2 I suppose that $A\not\subseteq B$ and try to prove $B\subseteq A$, but that gets me nowhere. Any pointers here are most welcome.


I have four build servers that were all setup the same originally.  We've been using them to cross-compile C projects.  I'm trying to update them compile C++ natively as well.  Two of the servers I was able to install g++ on with no problem, the other two though give me 404 errors.  $ sudo apt-get install g++ Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed:   g++-7 libstdc++-7-dev Suggested packages:   g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg libstdc++-7-doc The following NEW packages will be installed:   g++ g++-7 libstdc++-7-dev 0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded. Need to get 9,043 kB of archives. After this operation, 40.7 MB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++-7-dev amd64 7.4.0-1ubuntu1~18.04   404  Not Found [IP: 91.189.88.149 80] Err:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++-7 amd64 7.4.0-1ubuntu1~18.04   404  Not Found [IP: 91.189.88.149 80] Err:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++ amd64 4:7.4.0-1ubuntu2.2   404  Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/libstdc++-7-dev_7.4.0-1ubuntu1~18.04_amd64.deb  404  Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/g++-7_7.4.0-1ubuntu1~18.04_amd64.deb  404  Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/g++_7.4.0-1ubuntu2.2_amd64.deb  404  Not Found [IP: 91.189.88.149 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I have confirmed that all four report the same version info.  $ uname -a Linux build_server4 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 18.04.2 LTS Release:        18.04 Codename:       bionic


Greece to Scotland, flight connects at Turkey, will I need Visa for Turkey?

I am a Greek national and I will be traveling from Greece to Scotland. I booked my tickets with Turkish airlines. Both flights (to Scotland and back from Scotland) connect at Ataturk Airport (IST) for a few hours.   Will I need a visa for Turkey? Or is a passport or European identity card enough?


I have been trying to improve my skills in the kitchen by watching some professional chefs on television, I have a serious problem though, many of the recipes they describe contain different kinds of cheese,  I can get cheddar easily but after several disasters I have discovered that I can not replace some of the hard to get cheese discussed in some recipes with cheddar, to my surprise there are even different varieties of cheddar.   Could someone point me to a comprehensive easy to follow cheese guide for beginners? I would prefer a PDF document I can freely download and print. the guide should contain the different types of cheese, their characteristics and what they are best used for I will then use this to try and make substitutions.


How to add attributes (classes, id, ...) to preprocessed text of field?

I'm working on a theme for Drupal 9 where I'm rendering a node's field, which consists of multiple "raw" HTML elements (without any attributes). The item.content variable inside my field template looks as follows when I dump() it: array(4) { ["#type"]=> string(14) "processed_text" ["#text"]=> string(27) "
Sub heading

Lorem ipsum
" ["#format"]=> string(10) "basic_html" ["#langcode"]=> string(2) "de" }   This gives me, as expected, just
Sub heading

Lorem ipsum
. In this case, simply using the tags for styling is not acceptable as I wish to follow specific conventions, so I'd like to add suitable class attributes to these elements, for instance each
 inside this template should get a defined class, each
 another class. As I don't want the person typing the text inside the editor take care of the styling, I'd rather not change the editor's setup to include classes. How can I do things like that, importantly without affecting any other elements to be rendered somewhere outside this template? Unfortunately my own research did not lead to an answer so far. Thanks for your help!


Error bands must have compatible data types; found inconsistent types: Float32 and Float64

I have an image that I have created which is basically paired image with two bands:  band 1 is NDVI image from Sentinel 2 band 2 is SAR image from Sentinel 1  I have tried to export this image to my drive and I get the next error:     bands must have compatible data types; found inconsistent types:   Float32 and Float64.   I have seen here few posts about the same error, but couldn't fix it:  I have tried to change it to int16, and it worked, but i'm afraid I'm losing data. I have tried to use the same code but instead of 16 to put 32 but i'm afraid I'm losing data from the 64 and to be honest I couldn't understand really the different between the different numbers. Also, I couldn't use toUint64(). When I upload the int32 image to QGIS, I got black square with values of 0. I don't really need the visualization but I'm worried that I have gotten values 0 and I don't have any value.   pairedImage = pairedImage.toUint32();  Export.image.toDrive({   image: pairedImage,   description: 'imageToDriveExample',   scale: 20,   region: geometry }); print('Paired Image',pairedImage);    My end goal is to understand what are the consequence of this, which data I might lose and how I can keep my data.


How can I generate random number in specific range in Android?

I want to generate random number in a specific range. (Ex. Range Between 65 to 80)  I try as per below code, but it is not very use full. It also returns the value greater then max. value(greater then 80).   Random r = new Random(); int i1 = (r.nextInt(80) + 65);   How can I generate random number in between range?


How can I create a table from another table without inserting rows (Only want columns) ORACLE SQL?

I'm trying to create a table from another table (CREATE TABLE...AS... statement), but I don't want to insert the rows from the first table. I only need the columns. How?  CREATE TABLE employees24 AS (     SELECT employee_id AS "ID",       first_name,       last_name,       salary,       department_id AS "DEPT_ID"     FROM employees);


How do I disable "Lock screen" keyboard shortcut under Unity?

I don't want Super + L (that is the windows key pressed with the L key) to lock my screen. I have disabled this in settings, but it still happens. How do I make this not happen?


Prove or disprove: If $\lim_{n\to\infty} (a_{2n} - a_n) =0$, then $a_n$ has a limit (not infinity).

I need to prove if this is true or false.If true then I need to Prove and if false I need to provide an example that disproves the statement.I tried many times but it didnt work.  Note:- Im new so I dont know how to write in the math format so if you know how to  please tell me


I've installed Ubuntu, but when it is loading it gives following error:  mount:can't read proc/mounts. Can't fount such file or directory   However, OS continues loading but when I try to enter system using my login/password, which I entered during installation, it fails to login.  Does someone know what is problem here? I've tried reinstall ubuntu several times, but problem still occurs.  Medium from I installed: Windows 7. Installed Ubuntu with wubi, where I chose separate disk G(NTFS file format), set installation size: 18GB, chose Ubuntu in dropdownlist, language English(GB) and set username and password.


How to automatically render from several camera angles?

I've got an animation that I want to render from loads of camera angles. How can I write a script to automatically loop through all the cameras and render the scene from each perspective?


I do not understand why not works my programm.  I get  only this [I@6af62373 I know it's a very simple problem but I have no Idea.  if someone speaks german can answer me to german.  public class InsertSort {     public static void main(String[] args){     int [] myAr = {8, 9, 7, 5, 6, 4, 3, 2, 1};      for(int i = 0; i < myAr.length; i++){         System.out.println(sort(myAr));     }  }   public static  int[] sort(int[] myAr){          int m,j;         for (int i = 1; i < myAr.length; i++){               j = i;               m = myAr[i];               while (j > 0 && myAr[j-1] > m) {                      /*verschiebe myAr[j-1] nach rechts */                       myAr[j] = myAr[j-1];                       j--;                }                myAr[j] = m;                }     return  myAr;   } }


I was considering the notation we use for integration, and was wondering what it means if we leave various parts out:   If its $\int_{a}^{b} dx$ it becomes $b-a$, as there is an "invisible" $1$, which we integrate. If its $\int_{a}^{b} f(x)$ what does that signify or represent? Can it be evaluated?   Thanks


Comment font sizes are inconsistent on Android

An issue similar to that described in  and likely to be related.  The comments for a question may vary in size:         Chrome for Android on Nexus 7 running 4.2.2 Jelly Bean. This also occurs on Firefox for Android:


In Windows Vista, whenever I open a folder, the selection of columns is nonsensical: album, date taken, etc., for folders that contain no music or pictures whatsoever. I can select the correct columns for a particular folder, but all the other folders are still wrong, even when I go in to Folder Options and click the button to set the current options to all folders of this type.  How can I tell Windows to use the current column selection for all folders, unless otherwise specified?


I'm trying to set an attribute inside the init method as .  Component  <aura:component implements="flexipage:availableForAllPageTypes" access="global" >      <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>      <aura:attribute name="canCreateRecord" type="Boolean" default="false" />       {!v.canCreateRecord} <!-- outputs - false -->  </aura:component>      Controller  ({     doInit: function(cmp){             cmp.set("v.CanCreateRecord",  true );                             } })   When I output {!v.CanCreateRecord} inside the view, I get the default value of 'false'.     According to , the attribute should be set inside the init function before it is rendered. However, it's not happening in my case. What could I be missing?


Any idea what kind of tool should I but to fix the loose left crank on my bike? I found this  but not sure if it's gonna suit. Or is it enough to buy only nut driver?


Question:    simplify $$\frac{(k-1)!}{(k+2)!}$$   What I did was:  $$\frac{(k - 1)!k!}{(k + 2)! \cdot (k + 1)!}$$ This I did following the rule $n! = n \times (n - 1)!$.  can this be simplified further? Thanks.


Why aren't we more heavier at midnight than at noon on the earth's surface?

At noon the sun and the earth pull the objects on the earth's surface in opposite directions. At midnight, the sun and the earth pull these objects in same direction. Is the weight of an object, as measured by a spring balance on the earth's surface more at midnight as compared to it's weight at noon? As if I draw the gravitational  force vectors of sun & earth it seems that the statement must be true. Also does the answer is affected if I use equal-beam balance instead of spring balance.


I am having hard time with a website design in IE. its actually working fine in mozilla, chrome, opera and safari but very messy in IE. so my question "Is there any plugin like firebug for IE"?.


The discrimination between short and long option is only `-`?

On Unix system, options begin with - is short option, while options begin with -- is long option. Is my understanding right?


Simple algebra question - proving $a^2+b^2 \geqslant 2ab$

How to prove that $$a^2+b^2 \geqslant 2ab$$ is true, where $a$ and $b$ are both real numbers?


How can I create "buffers" or vector from values from a layer of points, where the "buffers" are "tied" to the streets?  Example: A bus station, I would like to create vectors within 100 m range with streets, from the point, regardless of the direction, following the road system.   I need to make a linear "buffer", following the system road, to identify the distance the bus station will cover on every street.


Share an audio playback stream through a live audio (video) conversation like Skype

In conversations using Skype, I often want to share sound output (e.g. of a Youtube video) with other people I am talking with.  So I am looking for a way to route the output to the recording input (So that the other members hear the sound output), but I can still hear the output myself. Furthermore I want still be able to speak with them while sharing the sound output with them.   How would I do that? I would be very thankful!  Part of my question has been answered here:  (but it only allows for setting the output stream as input, without overlapping the real microphone)


This is what I see when I try to submit a question to the mathematica.stackexchange.com site:    I am unable to find any captcha boxes.  I should add that I'm using Google Chrome on Windows 8.1.


Why is the order of $\mathbb{Z}[i]/\langle 3+i\rangle$ equal to 10?

The reasoning my book uses is as follows:   Since $(3+i)(3-i) = 10$, $10 + \langle 3+i\rangle = 0 + \langle 3+i\rangle $. Also, $i + \langle 3+i\rangle = -3 + \langle 3+i\rangle = 7 + \langle 3+i\rangle$. So, $\mathbb{Z}[i]/\langle 3+i\rangle = \{k + \langle 3+i\rangle \mid k = 0,1,\ldots ,9\}$, since $1 + \langle3+i\rangle$ has additive order $10$.   I do not understand why the additive order of $1 + \langle 3+i\rangle$ is $10$, or why the fact that $(3+i)(3-i) = 10$, shows the additive order or $1 + \langle 3+i\rangle$  is $10$. If someone could please explain this I would greatly appreciate it.   Note: I apologize for not using MathJax to write this post. I intend to learn it over the coming weekend.


If $(x_{2k+4})$ and $(x_{2k+5})$ converge to the same limit, is $(x_k)$ also converging, and to the same limit?

Say there is a sequence $(x_n)$ and one knows only two subsequences of that sequence, one containing the terms $(x_{2k+4})$ and the other containing the terms $(x_{2k+5})$.  If both of them converge to the same limit, will the sequence converge and if it does, will it converge to the same limit?  I have seen all the similar questions on Maths.S.E. but none of them had a rigorous proof on this idea.


Download Packages and Dependencies on Windows 8.1, then move and install them on Ubuntu

I recently installed Ubuntu on an ancient PC. Its fantastic, but I don't have any sort of internet connection at home. I was wondering if It would be possible to download a package and its dependencies on my School computer (Windows 8.1), move them to a USB drive, and install them on my offline Ubuntu PC. I've heard of Synaptic, but I don't know how to install it on my offline PC and don't know if it supports Windows. Any help or suggestions?


HTTP proxy server for Windows that forwards to SOCKS proxy

I have am application for Windows which only supports HTTP proxies (no SOCKS support).   Because I already have some good SOCKS proxy lists, I was wondering: Is there some HTTP proxy server for Windows OS, that could "forward" (translate?) connections to SOCKS proxies?  So the connection would look like this:      App → local HTTP proxy (as "translator" to SOCKS proxies) → SOCKS proxy   Is it possible? Is there such software?