Why moving magnet releases more Magnetic radiation as the number of charges near it are increased?

Why does a moving (at constant velocity) magnet release more energy in the form of magnetic fields when the number of charges placed near it are increased? Say two current carrying coils $C1$ and $C2$ are in a system in which $C1$ is moving at constant velocity. The magnet fields from $C1$ will reach $C2$ after an interval of time. So at the moment $C1$ releases energy (M.F) it doesn't know about charges surrounding and it can't make predictions of how much energy is to be released at the instant. So it can only give out a fixed amount of energy in M.F.  Let's say it is equal to $M'$. When we add another coil say $C3$ in system, the amount of energy released by C1 is still $M'$. Therefore the total output can't exceed $M'$.  This statement says that you can't get more wireless energy by constant velocity gaining magnet in output even if you use many sets of coils.  But I think that it is false and we can get larger amount of energy as output by using extra coils. C2, C3, ... Cn Explain what is right


In The Winter Soldier, who did Peggy Carter say she married?

When Steve Rogers visits Peggy Carter, she has a family photo on her nightstand and says that she married someone after Cap disappeared. Who did she marry?


I wanted to install cx_freeze or pyInstaller for running my python game also on cross platforms without the need of having installed python3 and pygame. But the command sudo pip install cx_freeze (or pyInstaller) as indicated on their makers webpages doesn't work for me. The error that always occurs then is the following:  The directory '/home/h3friend/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/h3friend/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.  Has anyone an idea what I need to do in order to fix this?  Thanks in advance!


unmet dependencies while installing cinnamon

W: Failed to fetch http://ppa.launchpad.net/merlwiz79/cinnamon-ppa/ubuntu/dists/quantal/main/binary-amd64/Packages  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/merlwiz79/cinnamon-ppa/ubuntu/dists/quantal/main/binary-i386/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead. ashley@ashley-SVE15113FDW:/etc/apt$ sudo apt-get install cinnamon Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help resolve the situation:  The following packages have unmet dependencies: cinnamon : Depends: cinnamon-common (= 2.0.14-20131203040047-quantal) but 2.0.14-20131203040103-precise is to be installed         Recommends: cinnamon-screensaver but it is not going to be installed         Recommends: gir1.2-cjsdbus-1.0 but it is not installable         Recommends: cinnamon-bluetooth but it is not going to be installed E: Unable to correct problems, you have held broken packages. ashley@ashley-SVE15113FDW:/etc/apt$


Prove that, $f'(0) \ge -\sqrt{2}$ for a function $f$ satisfying some conditions on $(-1,1)$.

Let $f:(-1,1)\to \mathbb{R}$ be a twice differentiable function such that, $f(0)=1$, $f'(x)≤0$, $f(x)≥0$ and $f''(x)≤f(x)$ for all $x≥0$. Prove that, $f'(0)≥-\sqrt2$   Progress: I was able to prove $f'(0)≥-2$. For this I have applied Cauchy MVT for $f'$ and $g$ on $[0,x]$ for any $x\in (0,1)$ where $g: [0,x]\to\mathbb{R}$ is defined by, $g(x)=\sqrt{x+1}$. But, couldn't find another approach to get $-\sqrt{2}$.


Can we disable trigger which is a part of managed package

I want to run one script on my custom object say obj__c which will update 1 field of this object. This object obj__c is having a trigger on update which I don't want to run when my script runs.


Proof of a certain divisibility property

I have been asked to prove that $(a+b+c)\big|(a^n + b^n + c^n)$ for infinitely many $n$ given that $(a+b+c)\big| (a^2+b^2+c^2)$. Here | denotes divides (divisibility).   I have tried with the strong form of induction and tried to use the fact that $a+b+c$ also divides $2( ab+bc+ca)$, but could not prove it.


Understanding the Cartesian product is the set of functions

According Wikipedia, "if a tuple is defined as a function on ${1, 2, ..., n}$ that takes its value at $i$ to be the $i$th element of the tuple, then the Cartesian product $X_1×...×X_n$ is the set of functions ${\displaystyle \{x:\{1,\ldots ,n\}\to X_{1}\cup \ldots \cup X_{n}\ |\ x(i)\in X_{i}\ {\text{for every}}\ i\in \{1,\ldots ,n\}\}.}$"   For me, it is hard to understand the above definition. Could you give some example to illustrate the concept?  For example, let $X_1 = \{1,2\},X_2=\{a,b\}$. Then, $X_1×X_2= \{?\}$.  Thank you in advance.


suddenly, my wifi icon is missing, and showing wired icon instead; but there is no problem in connecting with wireless connection, though I'm not able to connect with wired connection! any help.. here is the screen shot of the problem


How can I reduce the file size of a JPEG keeping the same image width and height?

I have a 700Kb JPEG file (white cardboard texture) that I'm using as a background on a website.   A file this large takes too long to load for snappy page hits. I don't need the full resolution, a reduction in image quality is fine, but I do need to keep the JPEG the same size (to fill the entire screen).   What would be a good free PC or web utility that would allow me to modify a JPEG as described? I'd rather not use Photoshop or other professional software.


Citing StackExchange vs. Account Privacy?

In the answer to  and  it is recommended that you cite an idea or useful answer for your research work on StackExchange. Now, if you have asked a question requiring a walk-back mathematical process (lets assume its a contribution) using fundamental knowledge to walk-back, if you do cite in this case, how do you keep the privacy of your account name? Since, people would check the answer and could look into the account history of the questioner and the answerer. Also, these StackExchange websites are linked and it seems that not everyone would like that for privacy reasons. So how could this be managed appropriately? Note: This is a modification of an existing question marked as duplicate.


What happened if two DDR 3 RAM with different max bandwidths

I have laptop 8440p and it has two DDR3 Ram one ram max bandwidth is PC3-8500F 533 Mhz but the  other has PC3 10700 (667 Mhz) what is the effect on the laptop performance and the parts of the laptops like HDD, Processor etc


Passing multidimensional arrays as function arguments in C

In C can I pass a multidimensional array to a function as a single argument when I don't know what the dimensions of the array are going to be?  Besides, my multidimensional array may contain types other than strings.


How can I see the seed of my friend's SMP in Minecraft?

So I want to get the seed of my friends SMP to find a slime chunk, I tried using NBTexplorer but the world wasn't there. Any ways I can get the seed (anything works)


Temporary way to mitigate Meltdown before official fix?

As I understand it this vulnerability is about browser behavior, would turning off javascript be a temporary mitigation against attack?


Galois Group of $\sqrt{2+\sqrt{2}}$ over $\mathbb{Q}$

So I want to show that $\mathbb{Q}(\sqrt{2+\sqrt{2}})$ is Galois over $\mathbb{Q}$ and determine its Galois group.   My thoughts are as follows:  Define $\alpha := \sqrt{2+\sqrt{2}}$. Then it is easily shown that $\alpha$ satisfies $\alpha^4-4\alpha^2+2=0$.  Define $f(x) := x^4-4x^2+2$. Then $f$ is irreducible over $\mathbb{Q}$ by Eisenstein with $p=2$.  So we have that $f$ is the irreducible polynomial for $\alpha$ over $\mathbb{Q}$.   Further $|\mathbb{Q}(\alpha):\mathbb{Q}|=4$.  For $\mathbb{Q}({\alpha})$ to be Galois, it must contain all roots of $f$.   Define $K=\mathbb{Q}(\alpha)$ for convenience.  Define $\alpha := \alpha_1$.  Since $f$ has only even powers, we know that $-\alpha := \alpha_2$ is a root, and therefore contained in $K$ since $K$ is a field.  We note that the other two roots are $\alpha_3=\sqrt{2-\sqrt{2}}$ and $\alpha_4=-\sqrt{2-\sqrt{2}}$.  So in order to show $K$ is Galois, it must be shown that $\alpha_3$ and $\alpha_4$ lie in $K$.  Now $\alpha_1^2=2+\sqrt2$ and so $\sqrt2 \in K$. Thus $-\sqrt2 \in K$ since $K$ is a field.  Can somebody explain why $\alpha_3$ and $\alpha_4$ lie in $K$?  Next we are to determine the Galois group of $K$.  Assuming $K$ is Galois, since it has degree $4$ over $\mathbb{Q}$ (shown earlier), we know that its Galois group has size $4$. There are only two groups of size $4$, namely $V_4$ and $C_4$, the Klein four group and the cyclic group of order $4$.  How do we determine which of these choice is in fact the Galois Group?


How do I force Postgres to use a particular index?

How do I force Postgres to use an index when it would otherwise insist on doing a sequential scan?


I have to scrape a Website. I using phantomjs for this job. So there is a problem. I have to select form dropdown and then scrape the next page. I Don't know how to select a dropdown using Javascript. So AnyOne Can help me out. E.g We can click of any link using $('Selector').trigger('click'); Thank you for you time.


Stack Exchange API too many requests from this IP address

I am using the Stack Exchange API to get Stack Overflow data, but I am getting "too many request from this ip" after making only five requests. I got JSON content like this:  {u'error_id': 502, u'error_message': u'too many requests from this IP, more requests available in 68492 seconds', u'error_name': u'throttle_violation'}   I made the following requests to Stack Exchange without an access token:   "" ---> 2 times called this API "" --> 3 times called this API and on the 4th call I got an exception


How to restart X Window Server from command line?

How can I restart X Window Server from the command line?  I'd really like to be able to restart my GUI without having to do a full system reboot.


Is a downgrade from Windows 8.1 Pro to Windows 7 Professional reversible?

If I downgrade from Windows 8.1 Pro to Windows 7 Professional, can I change my mind later on and upgrade to Windows 8.1 Pro for free?


How to fix this NullPointerException JavaFX8

I'm programming an JavaFX application for my university scholarship, but in some part of my application has an exception exploding, this exception only explode when I try to change the Scene.  Here are the problematic code  public void nextButtonAction() throws Exception {   FXMLLoader secondScreen = new FXMLLoader(getClass().getResource("/view/SecondScreen.fxml"));   Parent root = secondScreen.load();    SecondScreenController secondScreenController = secondScreen.getController();   secondScreenController.setPorts(this.sensorPort, this.gpsPort);    Stage stage = (Stage) this.nextButton.getScene().getWindow();   stage.setScene(new Scene(root, 320, 480));   stage.show(); }   and here is the stack trace  Exception in thread "JavaFX Application Thread" java.lang.NullPointerException at com.sun.javafx.scene.control.skin.MenuBarSkin.lambda$new$383(MenuBarSkin.java:304) at javafx.event.WeakEventHandler.handle(WeakEventHandler.java:79) at com.sun.javafx.event.CompositeEventHandler$WeakEventFilterRecord.handleCapturingEvent(CompositeEventHandler.java:312) at com.sun.javafx.event.CompositeEventHandler.dispatchCapturingEvent(CompositeEventHandler.java:98) at com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(EventHandlerManager.java:223) at com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(EventHandlerManager.java:180) at com.sun.javafx.event.CompositeEventDispatcher.dispatchCapturingEvent(CompositeEventDispatcher.java:43) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:52) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54) at javafx.event.Event.fireEvent(Event.java:198) at javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3470) at javafx.scene.Scene$ClickGenerator.access$8100(Scene.java:3398) at javafx.scene.Scene$MouseHandler.process(Scene.java:3766) at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485) at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762) at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:381) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$354(GlassViewEventHandler.java:417) at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389) at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:416) at com.sun.glass.ui.View.handleMouseEvent(View.java:555) at com.sun.glass.ui.View.notifyMouse(View.java:937) at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) at com.sun.glass.ui.gtk.GtkApplication.lambda$null$49(GtkApplication.java:139) at java.lang.Thread.run(Thread.java:745)


I'm writing an application. It has the ability to spawn various external processes. When the application closes, I want any processes it has spawned to be killed.  Sounds easy enough, right? Look up my PID, and recursively walk the process tree, killing everything in sight, bottom-up style.  Except that this doesn't work. In one specific case, I spawn foo, but foo just spawns bar and then immediately exits, leaving bar running. There is now no record of the fact that bar was once part of the application's process tree. And hence, the application has no way of knowing that it should kill bar.  I'm pretty sure I can't be the first person on Earth to try to do this. So what's the standard solution? I guess really I'm looking for some way to "tag" a process in such a way that any process it spawns will unconditionally inherit the same tag.  (So far, the best I can come up with is running the application as a different user. That way, you can just indescriminently kill all processes beloning to that user. But this has all sorts of access permission problems...)


How can I tell which Apple ID has signed/purchased specific apps on iOS?

I have an iPhone I'm trying to restore and the restore keeps failing. Specifically, I'm asked to enter the password for family members. . Also, family sharing doesn't make me enter my family member's password, so why does that happen when restoring a backup?  In order to pick this apart, I'd like to inspect the apps on my iPhone 6 with iOS 9.1 so I can determine which ones are not purchased from my Apple ID.   I have Xcode,  from homebrew on OS X 10.11, iTunes can back up the phone and I can inspect the files on the Mac if there's no way to access this data from iOS - which I'd prefer. Basically, how can I enumerate all apps and determine which ones will prevent me from using an iCloud backup to restore that app using solely my Apple ID and not need the password of a family member.  How can I identify the signing identity used for each app on the iPhone by hook or by crook?


I am a math student, studying P.D.E. of some EM theory.  I am new to field theory and I don't even know what a Lagrangian density, Hamiltonian density, or gauge field theory is.  Could you please introduce some books or notes to me?


Adding symbol to multiple layers with auto refresh in QGIS 3

How to add a symbol to multiple layers at once and how to set up that the layers are refreshed once the symbol is changed?  I am aware of this thread . Perhaps it is a duplicate, but the question was in 2012! Now it is 7 years later ... I thought that in the meantime the workflow may be changed, is not it?


can I compare two fields like this in system.assert? I have to test a method that assigns the field Name to External id

@isTest public with sharing class AccountTriggerTest {    public static testMethod void  metodoTestBeforeInsert() {      Account account = new Account(Name = 'account_Test');      insert account;          system.assert(account.Name_External_Id__c == account.Name);             } }


Today I bought a Lenovo G510 Laptop (4GB Ram, 500GB Hard Drive) and need install both Ubuntu and Windows 7. I have some questions regarding this.   What OS should I install first ? What are the partition sizes should I put for swap, root and home ?


How can I list all of my steam games I've ever downloaded in my library?

Some time ago I downloaded a bunch of steam games, that later I found out I couldn't play due to my shit graphics card. Now that I got a new one, I want to re download them, but they don't show up in my library, only some do. Also, I did I system restore to my pcs original settings and things. Is here any way I can list all of the games?


Is there anyway to clear lag from minecraft?

I just wanted to know because my computer is very old. Please don't say things like "turn your render distance down" and things like that.


Find the partial derivatives of $f (x,y) = x^2\sin(1/x)+y^2$ at (0,0)

Find the partial derivatives of $f (x,y) = x^2\sin(1/x)+y^2$ at $(0,0)$  Is this function differentiable at the origin?   $$f(x,y) =  x^2\sin(1/x)+y^2 \quad \text{if $(x,y) \ne 0$}  $$ $$   = y^2 \qquad \text{if $(x,y) = 0$} $$  I found that $$\frac{df}{dx} =2x\sin(1/x)-\cos(1/x)$$ $$\frac{df}{dy} =y^2$$  df/dy(0,0) is easy it's df/dy=0^2=0  But df/dx(0,0) is a bit more complicated as $\sin(1/x)$ is undefined at x=0 perhaps i can use squeeze theorem to say that the limit of df/dx as it approaches x=0 is 0 but that would be the limit and not df/dx(0,0)  How do i find $\frac{df}{dx}(0,0)$


Why use the biconditional in the Axiom of Extensionality

I'm studying the Axiom of Extensionality in the following form:  $$ \forall a \forall b[\forall x(x\in a\leftrightarrow x\in b)\rightarrow a=b] $$ (where quantification of a,b is restricted to sets and quantification of x can range over domain objects as well as sets)  What is the advantage of the preceding formulation over the following, where the biconditional is replaced with conjunction? E.g.  $$ \forall a \forall b[\forall x(x\in a\wedge x\in b)\rightarrow a=b] $$  I am aware that conjunction and the biconditional are not logically equivalent since their truth tables differ in the case where both argument propositions are false.  So it seems that these two forms should differ in the case where an element of the domain is neither in a nor b.  Using the conjunction form, this case makes the main conditional of the axiom  vacuously true ($False\rightarrow True$). Using the biconditional form, this case makes the main conditional of the form $True\rightarrow True$. Either way, the main conditional is true.  So, what is the advantage of the biconditional form?


Is there a way to justify ALL LINES of a given paragraph?

I would like to set the paragraph alignment to "all lines", like in Adobe InDesign, see screenshot below:    Is there a way to do it with LaTeX?  And if yes, will it work with the  package ?  Thanks in advance.  Regarding the duplicate question: sorry, but I thought in tems of text justification ("alignment"), not overall shape ("rectangles").


A confusion about the proof of the fact that $[0,1]$ is connected

In the book of The elements of Real Analysis by R. Bartle, at page 78, it is given that     The closed unit interval $I= [0,1]$ is a connected subset of   $\mathbb{R}$.      Proof:       We proceed by contradiction and suppose that $A,B$ are open sets   forming a disconnection of $I$.Thus, $A\cap I$ and $B \cap I$ are   non-empty bounded disjoint sets whose union is $I$.WLOG, assume $1\in  B$, then let $c = sup A\cap I$ so that $c\in A\cup B$. If $c\in A$, then $0<c<1$; since $A$ is open and contains $c$, there are points in the intersection, hence contradiction. If $c\in B$, then $0<c \leq 1$; there is a point $c_1 < c$ s.t $[c_1, 1] \subseteq B\cap I$, which also contradicts the definition of c being supremum of $A\cap I$.   First of all, if $c \in sup(A\cap I)$, how can $c\in B$ ?  Secondly, if $c \in B$, why do we get a contradiction by showing $[c_1,1] \subseteq B$ ?


Is there a backup solution for Ubuntu that allows you to schedule backups, enable encryption of sensitive personal data and stores your backups offsite in the a cloud storage account? Example of this solution is Acronis. Looking to get off of Windows for my personal PC, but I need a backup strategy that is not a file sync like Google Drive, DropBox or OneDrive, also not interested in building a machine to be backup server.  Thank you.


How do I remove duplicate values from an array in Perl?

I have multiple values for each key in the hash. Here, I print the values of each key  print "$var:",join ',',@{$hash{$var}},"\n";   Output of the above print statement is:  ABC:1,2,3,1,4,2, DEF:9,3,4,5,3,5,   Now, I want to remove duplicates in the values. The desired output is,  ABC:1,2,3,4 DEF:9,3,4,5   Can someone help me in this?  Thanks


A limit to infinity: $\lim_{x \to \infty}\ (1+ {\frac{1}{x}})^{x}$

I've tried substituting ${\frac{1}{x}}$ as $y$ and then I get $\lim_{y \to \ 0}\ (1)^{\frac{1}{y}}$ and that's infinity?  $$\lim_{x \to \infty}\ (1+ {\frac{1}{x}})^{x}$$


Is building up reputation on Stack Overflow to up- and down-vote worth it?

I am a junior developer and visit Stack Overflow multiple times a day to get answers on all sorts of development topics; however I do not have enough reputation to say if comments are helpful or not. I would like to give feedback sometimes that the answers are worthless and need to be downvoted but most are exactly what I needed.   What is the fastest way to get enough reputation to up-/down-vote and is it even worth it to try to build up the reputation to give back to the community?


Blank white desktop icons on new Windows 7 install

I just did a fresh install of Windows 7 professional on my father's Toshiba Satellite laptop and everything went smoothly except for the fact that certain desktop shortcuts appear as a blank white page.    I've tried:    going in and changing the icon to many different things reloading the icon cache by deleting the IconCache.db file uninstalling his Free AVG as he heard the virus scanner might be preventing it (it wasn't and he put it back.)   The one thing these icons have in common is that they are shortcuts to some very old DOS executables.  One of them is Word Star 2000 to give you an idea.  Does anybody have any other suggestions besides what we've tried?


What is a reliable measure of accuracy for logistic regression?

Say I fit a logistic regression model on training data and test it on test data.  How do I measure accuracy?   Using the "treshold method" where we predict $y = 1$ if the predicted probability is above 0.5, and vice versa, is a very poor method, obviously. I think it would only work well for simple problems but not for complicated data. A second method I know is to calculate a $\sum_{i}$ where each term is either $\log p_i$ if the actual value at the point $i$ is $1$, or $\log(1 - p_i)$ if the actual value is $0$. But testing this on my data, I do not get sensible results. This method seems to be biased in preference of models that predict $p_i \approx 50 \%$ rather than predict extreme probabilities....   What is a simple and robust method?


Hello I am new in blender and I clicked Ctrl +  B+  Left Click. I had there whole peace for my job. But I do not know what happened. I tried step back, but it does not work. How can I take my step back?


How is the Integral of $\int_a^bf(x)~dx=\int_a^bf(a+b-x)~dx$

Can Some one tell me what this method is called and how it works With a detailed proof   $$\int_a^bf(x)~dx=\int_a^bf(a+b-x)~dx$$  I've been using this a lot in definite integration but haven't seemed to have realized why it is true.  But whatever it is it always seems to work.  Basically a proof of how it is always true.


Using \columncolor outside column definition

I'm trying to create a command, which calls on an environment, which defines a custom column definition with one argument using \newcolumntype, and defines a second command, containing parameters for a table column.  Then, still within the first command, I begin the tabular environment and call the custom column, with the second command as its argument. I always get an undefined control sequence error, though. Any thoughts on why that might be?  I'm sure that was clear as mud, but I've cut it down to a minimal example, which follows:  \documentclass{article} \usepackage{array} \usepackage[table,dvipsnames]{xcolor} \usepackage{colortbl}  \newenvironment{tablecolor}{     \newcommand{\tlight}{\columncolor{SkyBlue!30}\color{black}}     \newcolumntype{C}[1]{>{##1}c} }{}  \newcommand{\tablegoals}{ \begin{tablecolor} \begin{tabular}{l|C{\tlight}} Goal 7  & \\ \end{tabular} \end{tablecolor} }  \begin{document}     \tablegoals \end{document}     Here's my second attempt. Different approach, same undefined control sequence error with \columncolor.  \documentclass{article} \usepackage{array} \usepackage[table,dvipsnames]{xcolor} \usepackage{colortbl} \usepackage{ifthen}  \newenvironment{tablecolor}{     \newcolumntype{C}[1]{>{         \ifthenelse{\equal{dark}{##1}}{             \columncolor{Cyan}\color{white}             }{             \columncolor{SkyBlue!30}\color{black}         }     }c} }{ }  \newcommand{\tablegoals}[1]{     \begin{tablecolor}         \begin{tabular}{l|C{dark}}             Goal 7  &   #1         \end{tabular}     \end{tablecolor} }  \begin{document}     \tablegoals{Check mark} \end{document}


Proof that $1729$ is the smallest taxicab number

For homework I have to produce the proof (algebraic or otherwise) to show that $1729$ HAS to be the smallest . A taxicab number means that it is the sum of two different cubes and can be made with $2$ sets of numbers. I have the list of the next ones and I was wondering if it was linked with the fact that it would have to be $0$ cubed if it got any lower which obviously wouldn't work.  Any help appreciated, thanks in advance!


Dell ubuntu Repositories authorisation Key

I've just purchased a Dell Precision 7520 with Ubuntu 16.04. I needed to reinstall the Ubuntu version with partitions for the root and home and now I want to install the Dell Repositories which this machine had on it originally. They were:  http://dell.archive.canonical.com/updates/ exnial-dell-crane-kbl public http://dell.archive.canonical.com/updates/ exnial-dell-crane-kbl public (source Code) http://dell.archive.canonical.com/updates/ exnial-dell public http://dell.archive.canonical.com/updates/ exnial-dell public (source Code)   How can I do this in the Software & Updates window (Other Software Tab)? I need to install some open software drivers which were in the Additional Drivers Tab (when I bought it).


How to price for global packaging rights

I've searched all over Google and couldn't find a suitable answer so I thought I'd go to the source. How would you go about pricing for global packaging rights on illustrations you create? Pricing for the actual work carried out and the time spent on putting the illustrations together is not a problem. But when it comes to figuring out how much you should charge for the full rights to reproduce the illustrations on packaging globally is where my problem is. I have no idea where to start with coming up with a figure for that.    It's the first time I've been asked by a client to provide a quote for the rights to my work and just wondered if there was a rule of thumb or a formula to help come up with a ballpark. Any help anyone could provide would be really appreciated. Thanks!


How to explain the situation that heteroskedasticity disappear as the sample size grows larger? is there any evidence shows that the existence of heteroskedasticity has something to do with the sample size?


Texture blurry when viewed at shallow angle

I have this mesh with a full size texture added on one side. When I look at the texture at a shallow angle, texture further from view point gets extremely blurry, almost like I have some kind of depth of field filter on  How do I get my texture 100% sharp?


Weird buzzing noise coming from the pc (PSU perhaps)

Ok so this is a weird one. I'm used to troubleshooting things like this one myself, but now i'm rather stuck.  Just bought a new PC with RTX 2080 & Ryzen 7 2700X. All good, runs smooth and rather cool. While gaming i have heard a weird buzzing noise coming from my PC. I tried to locate the sound and it seems that it might be coming from the PSU (all components are new).  Here comes the weird part: I tried reproducing it instead of having it show up randomly by stress testing my CPU and GPU at the same time. I figured if its a PSU problem while gaming then it should show up while stress testing (especially since no game has challenged my CPU & GPU at the same time so far). Ran it for about 10-15 minutes. No buzzing.  The noise can also be heard very briefly (and at a lower volume so to speak) randomly. Last night i was watching a movie, it heard a low buzz and its not the first time. Now i'm in a game (ATLAS) and SOMETIMES it starts buzzing.   Any tips on how i could troubleshoot this ? All temps are fine, no PC freeze, no BSOD, no errors at all of any kind, yet the buzzing sound is there.  I must add that i  just bought a UPS because i needed it and i also thought it might be because of my houses electricity "bouncing" (not very good at electrical stuff). Nothing changed.   I also managed to record it here ->   You can also hear the fans, but the sound cant be missed (also a bit louder since i was recording near the source).  Any tips? Thanks!  P.S: Not sure if the hardware-failure tag is fine since nothing failed so far, but i'm unsure what to use.  Edit: Forgot to mention, i checked task manager while in-game when it started buzzing.  Nothing was even near 100% and my HDD was at 1% (the one the game is on).   Edit2: Added voltages.   Edit: Finally found the source of the buzzing! Its the GPU, but its not a fan. I think its the GPU case that is buzzing. After 3 days i managed to get the buzzing while my case panel was off. I tried slowing down one of the fans, the buzzing stopped while my finger was slowing the fan. Then i tried another fan, same thing. And then FINALLY i simply touched the plastic case on my GPU and the same outcome -> buzzing stopped.   From this i assume my GPU case is actually buzzing due to FAN vibrations ? My card doesnt seem to be 100% in place in the PCI slot (its rather big), but i dont think that has anything to do with it (its a not a perfect line so to speak). Any tips on how to fix the buzzing now ? I'm attaching a picture of my GPU for ref.     You can see that its not perfectly aligned if you look at the MB port. By touching the case and it stopped i mean the grey case part on the GPU that you can see in the pic (bottom of GPU).


I'm trying to strike out cells in a table, without specifying the cell width. To do so, I looked at the code of colortbl as this seems to a very decent job with filling cells.  Now I played around with all those \@tempdim but without any success. Honestly I have no idea what I'm doing.        If possible, I'd like to get rid of tikz.  What I have tried so far  \documentclass{article} \pagestyle{empty}% for cropping \usepackage{tikz,colortbl} \makeatletter \newcommand*\notableentry{%     \@tempdima\wd\z@     \advance\@tempdima\@tempdimb     \advance\@tempdima\@tempdimc     \tikz[remember picture]{\coordinate (X) at (-.5\tabcolsep-\@tempdima-\@tempdimb-\@tempdimc,-1.1\tabcolsep);}     \hskip\@tempdima\@plus 1fill     \kern-\tabcolsep     \hskip-\wd\z@ \@plus -1fill     \tikz[remember picture]{\coordinate (Y) at (.5\tabcolsep+\@tempdima+\@tempdimb,\@tempdima-.25\tabcolsep);} } \makeatother \begin{document} \LARGE \begin{tabular}{|c|c|}     \hline     alghreaiog & bghsah \\     \hline     cagja & \notableentry \\     \hline     \cellcolor{blue} & edkhaklgjaj \\     \hline \end{tabular} \tikz[remember picture,overlay]{%     \draw[red] (X) -- (Y);     \draw[red] (X |- Y) -- (Y |- X); }  \begin{tabular}{|p{4cm}|p{3cm}|}     \hline     alghreaiog & bghsah \\     \hline     cagja\par bla & \notableentry \\     \hline     \cellcolor{blue} & edkhaklgjaj \par xyz \\     \hline \end{tabular} \tikz[remember picture,overlay]{%     \draw[red] (X) -- (Y);     \draw[red] (X |- Y) -- (Y |- X); } \end{document}   Output  It seems to work for c columns, but fails for all other purposes, while \cellcolor always works.


The length of a rectangle is 6m longer than the width. If the area of a rectangle is $84^2$m, find the dimensions of the rectangle.

I'm in grade 11 math.  The length of a rectangle is $6m$ longer than the width. If the area of a rectangle is $84~\text{m}^2$, find the dimensions of the rectangle. I don't know where to start other than:  $l = w + 6$  $84 = lw$


Entered short name instead of full name on eticket

I entered my brother's short name, Abhi, instead of Abhimanyu. Can he travel on this ticket or should I get the name corrected?


Half of a mkdir function works but cd part doesn't

I've been trying do put together a function that combines mkdir and cd. This is what I've been using: #!/bin/bash mk(){     mkdir "$1" && cd "$1" }  mk $1  However, when I run the script using ./mker.sh test , it'll create a directory with  but won't change into it. I'm brand new to Bash so I'm really at a loss as to why that part doesn't work. It doesn't return an error to the command line either. What's the issue here? Thanks!


FInding the SRID for NAD_1927_UTM_Zone_7N?

How do I find the SRID for this shapefile? (output from ogrinfo -so)  Geometry: Polygon Feature Count: 3 Extent: (-76840.712074, 7832057.693703) - (123912.271665, 7979730.291856) Layer SRS WKT: PROJCS["NAD_1927_UTM_Zone_7N",     GEOGCS["GCS_North_American_1927",         DATUM["North_American_Datum_1927",             SPHEROID["Clarke_1866",6378206.4,294.9786982]],         PRIMEM["Greenwich",0.0],         UNIT["Degree",0.0174532925199433]],     PROJECTION["Transverse_Mercator"],     PARAMETER["False_Easting",500000.0],     PARAMETER["False_Northing",0.0],     PARAMETER["Central_Meridian",-141.0],     PARAMETER["Scale_Factor",0.9996],     PARAMETER["Latitude_Of_Origin",0.0],     UNIT["Meter",1.0]]   I know the shapefile polygons are in Alaska. I can  but not a 7N. Any ideas?


Long story short, I am using Citrix to remote into my PC at work, and several applications require the use of the INSERT key, which, as everyone knows, Apple chose to eliminate from their keyboards. I've tried everything I can think of, and never been able to find an easy way to send this keycode via Citrix.  I'm sure there are other uses for this, and I've read quite a few people's questions on the subject, but no one seems to have offered a viable solution.  I have the Apple USB keyboard (full-size, with numeric keypad), and in the position where the INSERT key would normally exist, Apple placed the "fn" key. Now, I still need this key from time to time, but what I'd love to see is perhaps Control-fn or similar to send the keycode for INSERT.  If anyone knows how to achieve this, preferably without installing 3rd-party software (adware?), I'm all ears.


What is the difference between "result" and "outcome" in that context?

In the sentences below:     The result of a man's jumping from the 10th floor is death.      The outcome of a man's jumping from the 10th floor is death.   They seem the same in the sentences above, what's the difference between them?   edit: The answer that reads:      "Result is preferable if you are describing what you get after following an organized or orderly process..."   It suggests result applies in a usual causation , but what shall it used when describing something abruptly happen like the one in my sentence mentioned? is it correct to say the death is an result of jumping off?  and     "Outcome can imply something was happening but no one party was in total control of things."   So it implies outcome should be used when things are unpredictable, but in my sentence above, isn't the outcome of death inevitable? and is it prosper to use outcome to refer to the aftermath of jumping off?  So my question is, what's the difference between them(the two sentences in comparision above)?   Any comment and answer regarding the question are appreciated. Please help to clear this confusion, thanks.


Hi people I just need a quick fix on how to do the validation for this question. Unfortunately the book I am using doesnt seem to provide a solution after attempting the program. Here is the the question.  "Write an input validation program that asks the user to enter 'Y', 'y' 'N' or 'n' "  keep in mind it must be done only using a while loop any help would be appreciated.  while(answer != "y" || answer!= "n" )     {         System.out.println("Please use a  Y or N");             answer = keyboard.nextLine();     }   that is my current loop but it doesnt seem to work even if i enter y or n in it.  The current output i keep getting is "Please use a  Y or N" regardless if I enter the correct letter


Crossplatform threading and GTK#, not working (properly)?

I'm trying to make a crossplatform C# application using C#, mono/GTK# on Linux and .NET/GTK# on Windows, however the startup sequence seems to need to be slightly different under the two platforms:  Under Linux:  public static void Main (string[] args) {     Gdk.Threads.Init ();     // etc...   Under Windows:  public static void Main (string[] args) {     Glib.Thread.Init ();     Gdk.Threads.Init ();     // etc...   Both require it to be done that way: Windows complains about g_thread_init() not being called with the linux code, and linux complains about it already being called with the Windows code. Other than this, it all works wonderfully.  My first attempt at a "solution" looked like:  public static void Main (string[] args) {     try {         Gdk.Threads.Init ();     } catch (Exception) {         GLib.Thread.Init ();         Gdk.Threads.Init ();     }     // etc...   But even this messy solution doesn't work; the error is coming from GTK+, unmanaged code, so it can't be caught. Does anyone have any bright ideas about the cause of the problem, and how to fix it? Or, failing that, have bright ideas on how to detect which one should be called at runtime?


I used an HSA to buy some contact lenses.  They came with a rebate form that I can send in to get a refund of about 1/5 of the purchase price.  Is it okay to send away for the refund after using the HSA to buy the contact lenses?  If I get the refund, do I have to deposit they money back into the HSA, or can I spend it any way I wish without having to pay any tax penalty on it?  If I get the rebate, do I need to declare it when I do my (USA) taxes next year?


where is save/download directory for snap application

Many snap applications are on my ubuntu 1804. For a snap gimp, I edit and save the file to the /tmp/Untile.xcf. Meanwhile, a 1.jpg is also export to /tmp directory. The issue is that I can not find any 1.jpg, nor *.xcf, in the directory /tmp directory after saving. This is also the case for the donwload directory with snap chrome browser(It is the same when restting the download directory).


I have two chairs, a cloth piece falling on it and then a helmet falling above the cloth on one of the chairs. Whatever the setting I'm trying I cannot get the helmet fall nicely on the chair and interact naturally with the cloth. Right now I have following:    the helmet is falling down  the cloth is falling down  the cloth is interacting with the chairs naturally  in the process of falling the helmet gets pushed by the cloth piece far away (as if it would be very hard surface).       I also read that soft body physics might be a solution, but it didn't work in my case and the rendering times are getting expanded.  The cloth has settings: 5/M, 10/s, 15/b, (here I tried almost everything) rigid body is off,  Collision physics is off  Helmet settings:  Right body active, mass 10, all other physics are off.  Right now almost all the other settings (except cloth physics) are default.  Would be glad to get some help!    Edit : Amended the Rigid Body Collision shape to 'Mesh' and this helped with allowing the helmet to collide with the cloth but now the cloth is being forced through the chair.


Is there any place to see a leaderboard of top "Helpful Flaggers"?

There are a few members of Stack Overflow especially who have a ridiculous number of helpful flags.  At the moment, there does not appear to be any way to display the top users with the most helpful flags. Even though this information is already available publicly, there does not seem to be any way to query all users and make a custom leaderboard, using SEDE, or other programming tools.  A quick search on main META did not yield anything related to this topic.  This is not limited to Stack Overflow (although that site will no doubt prove to be the most voluminous).   Is there any way to see a short list of top flaggers on the Stack Exchange sites?    See this? This is what I'm talking about! Totally awesome.


tb-megamenu how to click to open/close sub menu in mobile

We are attempting to get submenus to only appear when the user "taps" the menu option on a mobile browser. This functionality works good on hover but some mobile devices don't work with hovering. We need the ability to click submenu titles in order to drop them down and then click them again to collapse them.


If User A is able to store the URL of his website on a very popular highly ranked website by creating his own subdomain on that website, is this at all beneficial?  This may sound like a stupid question but I thought that no matter the popularity/quality of the website which is hosting your link, in reality it is the individual page that hold the rank and so your new subdomain means nothing as it is not yet cached by search engines, let alone is it even ranked!  Am I right here, or is there indeed a hopeful transferal of at least some authority to subdomains of a popular domain? Lastly would you say it is the job of the website admin to submit his new content for inclusion, or is that our job?


How to orientate many pictures well when pdfjoin *.jpg?

I am combining .jpg images which are correctly positioned in their jpg files.  So I think this position could be passed to an view format like pdf.  So I am doing now the following but it gives pictures in quite randomly positioned  pdfjoin *.jpg


Request Web Page in c# spoofing the Host

I need to create a request for a web page delivered to our web sites, but I need to be able to set the host header information too.  I have tried this using HttpWebRequest, but the Header information is read only (Or at least the Host part of it is).  I need to do this because we want to perform the initial request for a page before the user can.  We have 10 web server which are load balanced, so we need to request the file from each of the web servers.    I have tried the following:  HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://192.168.1.5/filename.htm"); request.Headers.Set("Host", "www.mywebsite.com"); WebResponse response = request.GetResponse();   Obviously this does not work, as I can't update the header, and I don't know if this is indeed the right way to do it.


ffmpeg compile error with Nvidia Cuda 9.0

I'm compiling ffmpeg on Centos7, Nvidia driver 384.81, CUDA 9.0. I'm using a Tesla P4.  Here is my config line:  ./configure --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64   I get this error:  ERROR: cuvid requested, but not all dependencies are satisfied: cuda   I found some recent info on this issue at:     so I did this:  git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git make sudo make install   output looks like this:  sed 's#@@PREFIX@@#/usr/local#' ffnvcodec.pc.in > ffnvcodec.pc install -m 0755 -d '/usr/local/include/ffnvcodec' install -m 0644 include/ffnvcodec/*.h '/usr/local/include/ffnvcodec' install -m 0755 -d '/usr/local/lib/pkgconfig' install -m 0644 ffnvcodec.pc '/usr/local/lib/pkgconfig'   Then I try to configure ffmpeg again and I get the same error.   ERROR: cuvid requested, but not all dependencies are satisfied: cuda   Is this header fix only for cuda 8.0 or should it work with 9.0 also? Does anyone have a way to resolve this?


Do you have to have a certain amount of reputation points to change your user name? I have checked all of the questions on changing my user name and the answers that are given say to click the edit button on my profile, they even have pictures demonstrating where it is, but I don't see it on my profile. Any help?  Edit: Never mind. I found the edit tab on Meta Stackoverflow. I was trying to find it on stackexchange.com, but I think what I have to do is change it for each site. Is this correct? I also think that it wasn't appearing on my phone's browser, because I did check meta before on my android.


Children's book with "square triangles" in parallel universe?

In the 1960s I read book--an older children's book, I think--which I loved, and still remember, roughly.  I have no idea what the title is or who the author is, and I'm wondering if anyone knows this one:  Scientists had invented a device which they didn't fully understand, and which had puzzling effects.  For example, when a pencil was put into the machine, it disappeared, and then reappeared inside out: The lead was on the outside.  When people went into the machine, they came back dead, having died from fright.  Finally they sent a very open-minded person into the machine.  She was an artist, I think.  She was able to return alive, and described an alternate universe in which geometry was very different.  I distinctly remember that there were supposedly square triangles or four-sided triangles--or was it three-sided squares?  (This is, of course, a literally contradictory claim, but I didn't see the matter as clearly then.)  Thanks!


Compilation effects of declaring method parameters "final"

Marking a method parameter as final is needed to allow for variable access by inner anonymous classes and is a useful coding-tool for enforcing certain variable use conventions within the method.  Apart from that, is there some other compilation-related motivation to use the final-keyword? Specifically, does it give the compiler any hints which facilitate some specific optimization that would otherwise not be performed? Or is the compiler smart enough to always recognize if a variable is never modified anyways?  For example, I'm thinking whether there is any difference how the variables are passed into the method. E.g. a variable of primitive type (int, byte, etc.) needs to be copied when passed into the method to prevent any modifications to trickle out into the calling code, whereas if the parameter is marked final, it could be "passed by reference" without such concerns, i.e. no copy-operation would be needed.  But let's keep the question more general than this example:  Are there scenarios where adding final to a method parameter will change the generated byte-code?


For $(X,d)$ a compact metric space and $ Y \subsetneq X$ there is no isometry $f:X \to Y$.

Let $(X,d)$ be a compact metric space and $Y \subsetneq X$. Prove there does not exist an isometry $f:X \to Y$.  I will try to prove this by contradiction. As $ Y \subsetneq X$ we can take some $x_{0} \in X$ such $x_{0} \notin Y$, but $f:X \to Y$ is an isometry so  for every $a,b \in X$  we have $$d(a,b)=d(f(a),f(b)).$$  So $f(x_{0}) \in Y$ and $x_{0} \neq f(x_{0})$, implying $d(x_{0},f(x_{0}))= \epsilon$ such $\epsilon >0$ but Im not able to show a contradiction from here. Can anyone help me how to end the proof by constructing a contradiction from supposing there is an isometry $f:X \to Y$? Thanks


Can the Soul be Transported or Duplicated?

Most of us have seen Star Trek episodes. Suppose that we have a Star Trek type matter transporter. Basically this can be described as a machine which examines an object's structure down to the atomic scale, disassembles the object (i.e., vaporizes it), and then reconstructs the object again down to the atomic scale in another location. Suppose you step into a transporter. You hear the hum of the transporter starting up. But then you hear beeping sounds indicating an error has occurred. The transporter operator grabs a phaser (i.e., a "space gun), points it at you and says "I'm sorry, sir. The transporter malfunctioned. It made another 'you' down on the planet surface but for some reason it didn't automatically vaporize the original object (i.e., the 'you' still standing here), so I'm afraid that I'm going to have to do it myself. Sorry about this."  Or, to look at this from another perspective, suppose after hearing the hum of transporter you open your eyes and find yourself beamed down to a planet surface, but then the transport operator on the planet approaches you and says "I'm sorry, sir. There's been a transporter malfunction. You're a duplicate. The original 'you' is still standing on the transporter pad on the starship orbiting this planet, and he's demanding that I vaporize you so that we can reset the transporter and start the transport operation all over again."  Matter transporters seen in Star Trek (or movies such as "The Prestige") seem to assume that the soul is transported along with the atoms when a matter transporter reassembles a person. Is this true? If you were transported by such a machine, would you really be able to see out of the eyes of this fresh new copy of you as is shown in Star Trek? But if so, then how does one explain situations such as the first scenario above in the hypothetical case that a transporter 'error' leaves the original person intact for some reason? Doesn't the physical body of the original 'you' have at least as much of a claim to be the rightful physical owner of your soul as the duplicated copy of 'you'?


but:  derive wrt θ1 and not wrt z=∑θixi  show that: $$ \frac{\partial \sigma(z)}{\partial \theta_1} = \sigma(z)(1-\sigma(z)) \cdot x_1 $$ with: $$ z = \theta_0 x_0 + \theta_1 x_1 $$  Note that in general (because of symmetry) holds:  $$ z = \theta_0 x_0 + \theta_1 x_1 + \dots $$  $$ \frac{\partial \sigma(z)}{\partial \theta_j} = \sigma(z)(1-\sigma(z)) \cdot x_j $$  How should I do this?


PHP (Laravel) undefined index error inside isset

I've got a strange Laravel error today. The message is:   It clearly states that there is an undefined array index. However, when I looked at the rendered blade file mentioned here, and checked line 272 I got this:  <?php if(isset($_COOKIE[$_COOKIE['userhash'] . '-surgery'])): ?>   $_COOKIE['userhash'] is always set. As seen on the above image, it's value is 70c0a3a1. How is it possible that PHP (or Laravel) throws an error inside an isset statement? How can I solve this issue?


I have recently seen weather forecasters making predictions for Christmas Eve Day, Christmas Eve Night, and for Christmas Day.  One also reads of Christmas Eve Eve, with two eves.  Are those all meaningful and distinct (and clear to all!) , or  are there redundancies or contradictions there?  Is there a better way to say those?   Given the apparent existence of a Christmas Eve Day and a Christmas Eve Night, is the period between those Christmas Eve Eve, or is it just Christmas Eve? Or does Christmas Eve Eve mean the day (or the night?) before Christmas Eve, so two days then before Christmas proper?    Me, I always thought of the eve as being the night before a holiday (or anything else), not the entire calendar day before as it seems now to mean — and I wonder when and why that has changed.  So  seems like a pleonasm to me.  And it seems that  based on this article published on Christmas Eve Eve Eve of 2012:     Just when I thought I was catching on to all the Christmas traditions, I hear the phrase “Christmas Eve eve” or “the eve of Christmas Eve.” When did that sneak in, and what the heck does it mean?   It looks like Easter Eve is (or at least was) sometimes used for Holy Saturday, sometimes the same as or related to Easter Vigil. Indeed, Anton Chekov wrote a story with the title Easter Eve about the night before Easter. But now we see people talking about  instead of Maundy Thursday.   has now been seen in the wild, and even  to mean October 30th, which seems to go by the name of  in some circles.  Even so, Halloween Eve seems like another double: All Hallows’ Eve Eve.


32 bit or 64bit ubuntu based distro for my machine

I am relative new user and i like ubuntu based distros (since i can google everythng up and make it work without overheating my brain) and i was wandering what ubuntu based distro would you recommend for me (since my plan is to switch completely to linux and use it as main OS on my PC) my PC configuration is  >>> AMD Athlon 64 x2 Dual Core 4200+  2.19GHz >> 2GB RAM >>> Nvidia GeForce 8400 GS.I did tryed a lot of dystros and first question alwayse is should i download 32bit or 64 bit since i have 64 bit CPU but only 2 GB ram  O.o  Ubuntu somehow since 10.01 LTS (was the latest perfectly working version) wasnt working good on my machine and i dont know why...So 32but or 64bit ubuntu based distro and what distro for my PC. Thank you.


Solve $x^2 + x + 47 ≡ 0 \pmod {7^3}$.  I don't know how to go about doing this question. I've tried completing the square and other routes but I always seem to end up with horrible answers for $x$ involving surds.  Any help or hints are appreciated.


How to change example name in beamer to some custom name (eg. Primer) without using exampleblock environment? It would be even better if it were possible to define new environment (with custom name, eg. primer) which behave same as example environment.  \documentclass[pdf]{beamer}  \mode<presentation> {    \usetheme{Darmstadt}    \setbeamercovered{transparent}    %\setbeamertemplate{theorems}[numbered]    \usefonttheme{professionalfonts}   }    \usepackage[T1]{fontenc}   \usepackage[utf8]{inputenc}    \usepackage{amsmath,amssymb}    \begin{document}      \begin{frame}        \begin{exampleblock}{Primer} Test \end{exampleblock}      \end{frame}    \end{document}


Every wizard in The Lord of the Rings obviously had a purpose to be sent to Middle-earth, with Gandalf's being to help out in the defeat of Sauron and Morgoth's forces, etc. However, because Saruman was not returned to life after his death by Grima, he must have fulfilled his purpose.  I've read that Gandalf came back as the White in order to fulfill the purpose Saruman had failed in. So, obviously, Saruman had a purpose and failed it, but why? What was his purpose? And why was he not sent back to complete it, but instead Gandalf was sent in his place?


When Runtime.getRuntime().exec call linux batch file could not find its physical directory

I have an java application.And I use Runtime.getRuntime().exec for call a batch file.When I call a linux batch file using with Runtime.getRuntime().exec the batch file could not find its own directory. I use pwd command in batch file but it returns application path. I need batch file's own  physical path from itself. How can I do this?


How do you drive a British car? Is it with the left hand and foot or right?

So, I'm an American.  I'm right-handed and I drive on the right side of the road :)    My clutch is the pedal furthest to the left, followed (from left to right) by the brake and the gas.  I use my right hand to change gears, and my right foot to control the brake and the gas. People differ in regards to whether one should use the left or the right foot to control the clutch brake.  If I rent a car in the UK, obviously I'm going to be driving on the left hand side, but is the arrangement of the pedals and clutch different?  It would seem to be awkward to use my non-dominant (i.e. my left) hand to shift gears and to use my left foot to control the brake and gas.    But, is this the case when I drive in the UK?  The spatial relationship is eluding me right now.


Why is $\mathfrak{sl}(n)$ the algebra of traceless matrices?

I'm studying Lie algebras as purely algebraic objects, without much of a background in the differential geometry surrounding Lie groups.  The definition of  $\mathfrak{sl}(n)$  has been given to me as the algebra of traceless $n\times n$ matrices with multiplication $$[A,B]=AB - BA$$ With my limited knowledge of differential geometry, I roughly understand that $\mathfrak{sl}(n)$ is defined as the tangent space of the Lie group $SL(n)$ at the identity, but I don't see how this leads to the definition of $\mathfrak{sl}(n)$ as the traceless $n\times n $ matrices.  I was hoping that someone would be able to roughly explain (or point me in the direction of a not-too-differential-geometry-technical article):     1) What is the reason $\mathfrak{sl}(n)$ is taken to be the algebra of traceless $n \times n$ matrices?       2) What is the connection between $\mathfrak{sl}(n)$  and $SL(n)$?      3) What is the motivation for this definition?


Prove that $xy \leq\frac{x^p}{p} + \frac{y^q}{q}$

OK guys I have this problem:  For $x,y,p,q>0$ and $ \frac {1} {p} + \frac {1}{q}=1 $ prove that $ xy \leq\frac{x^p}{p} + \frac{y^q}{q}$  It says I should use Jensen's inequality, but I can't figure out how to apply it in this case. Any ideas about the solution?


How to add figure to its own page, while coming directly after it is first mentioned?

I have a formatting requirement for my thesis where all figures must appear after the page they are first mentioned, and separate of any text. If multiple figures are mentioned on the page they can follow on separate pages. So if I mention 3 figures on a page for the first time, the next 3 pages will be the figures. I am having an issue getting this to format correctly. I can't perform a \clearpage because I can not have a page that is mostly empty, the pages must remain full. I have tried \begin{figure}[p!] and while that groups the figures how I want them to, it does not place them on in the correct location.


I want to create a Python library called blah with a directory structure like:  blah/ ├── blah/    ├── __init__.py    └── file.py   Currently, to run the code in file.py we have to run python3 -m blah.file .... Is there any way to structure the library so that we can simply write python3 -m blah ...?  The library contains some utility scripts that will be called many times a day and the shorter command will save millions of keystrokes.


Problem building the signal interceptor during the Molecular Level?

I have a problem in building the signal interception, it always tells me to use the power from one grid, which I've done but it doesn't work at all.  Is this a bug or there is a certain way of connecting them?


Here is one easy math function in Jupyter using Python 3  def sum(*formulation):      ans = 0      for i in formulation:         ans += i     return ans   If I want to try this function, I write down like this:  sum(1,2,3,4)  The output will be   10  My question is what is * mean in sum(*formulation)?  Because if I don't use *, I get an error.


Let $f$ be a function defined on $[0,1]$ by   $$f(x) = { 0, \text{ if } x = 0} $$ $$f(x) = { x \sin \frac 1 x , \text{ if } 0 < x \leq 1} $$  Prove that the curve $\{(x, f(x)) : x \in [0,1]\}$ is not rectifiable.   I'm not sure how to approach this. The general idea seems logical, we're proving that the length of the curve is infinite, but the method seems difficult to find.


Ok so i am running windows 8 on my computer currently and trying to get Ubuntu up and running in a dual boot.  My system has UEFI secure boot (for the record its a laptop).  When i boot up my Ubuntu from a flash drive it does not recognize windows 8 is installed on my system.  Also if it is any help, Windows 8 and the drive i am try to install Ubuntu on is a solid state drive.  And before anyone asks i have trying disabling secure boot.  Any help would be greatly appreciated!


How can we show helptext of a field in VF page

I am using fieldsets to display fields in a VF page. Is there a way to display the help text icon  next to the label if there is a help text associated with the field and display the text on hover?  Update I am not using pageblocks as we are using slds. Though the code below doesnt exactly use slds but the logic would be similar except for html and classes different.  <apex:repeat value="{!AppFields}" var="f">

                          <apex:outputlabel styleclass="control-label " value="{!f.Label}"  /><apex:outputLabel value="*" style="color:red;font-weight:bold" rendered="{!OR(f.required, f.dbrequired)}" />

                            <apex:inputField value="{!apps[f.fieldPath]}" required="{!OR(f.required, f.dbrequired)}"  styleClass="form-control" />

                    </apex:repeat>    Thanks


Why we define supermum of empty set to be $-\infty$ contradiction?

As Terence tao explains we have the following conclusion that if we consider the empty set as subset of the extended reals. We have the following result:  We know that $sup(E) \geq inf(E)$. This would imply that $-\infty \geq +\infty$. This is non-sense based on the ordering on the extended reals. Why do we get this result ? Is there anything preventing us from getting this result ?


I just started learning JSP technology, and came across a wall.  How do you output HTML from a method in <%! ... %> JSP declaration block?  This doesn't work:  <%!  void someOutput() {     out.println("Some Output"); } %> ... <% someOutput(); %>   Server says there's no “out”.  U: I do know how to rewrite code with this method returning a string, but is there a way to do this inside <%! void () {  } %> ? Though it may be non-optimal, it's still interesting.


How to fit this table in a page? Also to vertically align the text to center

I want this table to fit the page width. Also, vertially align the content to center of the box. Please find the code for the table below.   \documentclass[12pt]{article} \usepackage{amsmath,amsthm} \usepackage{mathtools} \usepackage{tabularx} \usepackage{multirow}  \begin{document}  \begin{table}[h!] \begin{tabular}{|c|c|c|r|r|r|r|r|r|r|r|} \hline \multicolumn{2}{|c|}{\multirow{2}{*}{Heading 1}} & \multicolumn{9}    {c|}{$\theta$} \\ \cline{3-11}  \multicolumn{2}{|c|}{} & \multicolumn{3}{c|}{1} & \multicolumn{3}{c|}{1.5}                                                        & \multicolumn{3}{c|}{2}\\ \hline \multicolumn{2}{|c|}{$\alpha\Rightarrow$} & 0.1 & \multicolumn{1}{c|}{0.2} & \multicolumn{1}{c|}{0.3} & \multicolumn{1}{c|}{0.1} & \multicolumn{1}{c|}{0.2} & \multicolumn{1}{c|}{0.3} & \multicolumn{1}{c|}{0.1} & \multicolumn{1}{c|}{0.2} & \multicolumn{1}{c|}{0.3} \\ \hline \multirow{3}{*}{x1/x2} & 1/3 & \multicolumn{1}{r|}{34.38\%} & 16.95\% & 9.74\% & 87.58\% & 36.25\%  & 45.85\% & 30.10\% & 67.21\% & 59.25\% \\ \cline{2-11}  & 1 & \multicolumn{1}{r|}{61.52\%} & 79.96\%  & 68.17\% & 75.50\%  & 36.18\% & 48.46\% & 32.88\% & 29.26\% & 9.76\% \\ \cline{2-11} & 3 & \multicolumn{1}{r|}{53.70\%} & 68.99\% & 85.41\%  & 37.80\% & 85.88\% & 25.70\%  & 32.32\% & 93.95\% & 81.96\% \\ \hline \end{tabular} \end{table} \end{document}


What does ‘Sport’ mean when you say ‘the new Apple iPad sports cameras for video conferencing’?

I found a phrase, ‘the new tablet of iPad can sport at least one camera for video conferencing’ in today’s  reporting iPad 2. I guess ‘Sport’ here implies ‘chase (move) after plural objects' or ‘Catch' them, because it says 'at least one camera.' But I’m not accustomed to the word, ‘sport’ used in a such way.   COD at hand gives only two meanings of ‘Sport’ as a verb, - 1. to have or wear sth in a proud way so that everyone can see. 2. to play in a happy and lively way. In addition to the above definition, an English Japanese dictionary (Readers Plus Dictionary) provides ‘play with other sex’ and ‘give’ as  slang usages, and I can’t find the definition anything near to the context used in the following sentence.   What does ‘Sport’ here exactly mean? Is this common way of using ‘Sport’ as a verb?     A report from the Wall Street Journal says that Apple has begun production of the next generation of the iPad. The Wall Street Journal, citing people familiar with the matter, claims that the new tablet will be thinner and lighter, will sport at least one camera for video conferencing and will have better graphics and a more memory.


Is it possible to save the 3D view in the Rendered shading (or render preview) in HQ (defined resolution)? Because when I do Render preview I like the way looks, I like to save it directly, instead of to click the Render button (or F12), since else I must wait again for the same picture.  This question  only works for Solid, Texture, Material, Wireframe and Bounding Box, but not for Rendered. Thanks :)  For example (the rendered preview):  After clicking the 3D view render button:


What the "snap" is going on with this symbolic link?

I was looking in /usr/bin tonight and saw this:    The symbolic link in cyan / red is a curiosity:  lrwxrwxrwx  1 root root          25 Jul 19 04:48 ubuntu-core-launcher -> ../lib/snapd/snap-confine*   As I don't use snapd yet (Ubuntu 16.04 / Unity Interface) I'm not really concerned but I'm curious if anyone else has encountered this strange coloured link and what it means with all the dangerous looking red?


Sometimes (or may be all the time) an Alias and Function for a command works the same way. For example, following Alias and Function of Ping Command:  alias Pingoogle='ping -c 3 google.com && echo "internet working..."' Pingoogle() {ping -c 3 google.com && echo "internet working...";}   works the same way by producing same output. But, My question is that in this situation which is more proper (or professional)? Setting Alias for such commands or Using Functions?


Question about convergence of a simple recursive sequence

Define the recursive sequence $(a_n)$ as $a_{n+1} = a_n^2 + a_n$ where $n \in \mathbb{N}$. We want to find $a_1 \in \mathbb{R}$ such that $(a_n)$ converges to a limit that depends on $a_1$.   Attempt: Let $a_1 = k$, then $a_2 = k^2 + k$, $a_3 = (k^2 + k)^2 + (k^2 + k)$, ... clearly if we have |k| > 1 then the sequence $(a_n)$ will diverge. From this we deduce the interval of convergence must be when $|k| \le 1$. Suppose $(a_n) \to L$ then $a_{n+1} = a_n^2 + a_n$ $\implies L = L^2 + L \implies L = 0$. Surely if $k = 0$ this will occur as $a_n = 0$ for all n. But it is not clear to me if there are other $k$ such that the recursive sequence converges.


Why do we have to use an integral in this scenario to figure out $v_{max}$?

$$\int_0^R mg\frac{r}{2}dr=\frac{m}{2}v_{max}$$ and can't write $$\frac{m}{2}v_{max}=mgR$$ don't we usually equal potential energy to kinetic energy?  A stone is falling through a tunnel towards the center of the Earth. Just the ush =)  And it goes on suggesting that the time it arrives at the center is $$T_{1/2}=\frac{\pi}{\omega_0}$$ since the movement can be characterized as a harmonic oscillator.


Which fold will be chosen after applying k-fold cross validation?

I think I barely understand how k-fold CV is working and I have a question about it.  For example, when I run 5-fold cross-validation (in SAS), I use 5 subsets of the training data, and end up with 5 different models. But I have only one output for it.  I understand the error rate is the average of those 5-folds' errors. But my model creating with which data set? When effective variables are being determinated, will SAS average the coefficients? If it's not like this, which fold will be chosen for creating my model?


First of all I'm a complete noob when it comes to QGIS so maybe thats the reason why I cannot find anything on this on google (or is this due to the 2.8.1 compatebility issue?).  My issue is that when I create the heatmap the location of the heatmap is off compared to the data. I've checked the CRS and all match (project CRS, data CRS AND the heatmap CRS). I've redone several tutorials several times and started several times from scratch but somehow it keeps giving me the data on the wrong location :-(.


Can two wizards use Leomund's secret chest to transport items between vast distances?

. Assuming that two wizards cast  on the same chest and then go in different directions could they use this chest to exchange items over vast distances? To clarify a bit.  1- Wizard A and Wizard B cast Leomund's secret chest on the same chest.    Wizard A leaves to venture into a dungeon while Wizard B stays at the city. Wizard A finds a huge hoard of gold but cannot carry it. Using sending to reach Wizard B he asks Wizard B to summon their chest every five minutes and dump it's contents. Wizard A summons the chest    and fills the empty chest with gold. Sends it to Ethereal Plane Wizard B summons the chest and empties the content before sending it to Ethereal Plane Rinse and repeat till the entire hoard is taken back to the city within the span of an hour.


Defining which layer (overlay) is displayed on Leaflet map?

I have 7 layers overlay on a base map, i need to define which layer is selected (active,displayed,shown) on the map.  var overlays = {         "AL HOUDA Espaces_Verts": alhouda6_layer,         "AL_HOUDA_imm": alhouda7_layer,         "AL_HOUDA_villa": alhouda8_layer,         "AL HOUDA_ECO": alhouda5_layer,         "AL_HOUDA_EQUIP": alhouda4_layer,         "AL_HOUDA_REC": alhouda3_layer,         "AL_HOUDA_PARK": alhouda2_layer,         "AL_HOUDA_200lOG": alhouda1_layer,     };  L.control.layers(baseLayers,overlays).addTo(map);   For example when i select "AL_HOUDA_villa" and it's shown on the map i want to define that it's selected so i can show data just for this layer


What's the name of the fallacy when you use a worst situation to ignore the current?

For example, I'm hungry, but the Africa kids are much more (so I should not care about my hungry).


What's wrong with putting do on the same line as for?

While reading about  I came across the following:     To loop over positional arguments, use:       for arg do    echo "$arg" done          You may not leave the do on the same line as for, since some shells improperly grok:       for arg; do    echo "$arg" done         It doesn't seem to explain anymore detail than that.   Questions   What shells have a problem with this syntax? What is the problem?


I am getting the latest OTA update(5.0.1) on my nexus 5, but when the phone restarts and goes to the recovery for the installation of the downloaded file, just 25% into the installation it gives me a error. I do not know what is going wrong. please help


DNS - how does it resolve the name servers itself?

Domain name: abc.com Name Server: ns1.abc.com and ns2.abc.com  I am running a DNS server and hosting the zone (abc.com) on-premise.  When a client wants to resolve *.abc.com, it will query ns1.abc.com or ns2.abc.com, that is straight forward.  The question is how does it resolve ns1.abc.com before it can sends query to it?


18.04.2 how to assign Alt+Shift as an input language switch

I tried to change the keyboard switch to Alt+Shift, but the graphic menu does not respond to pressing Alt+Shift.  I have two Ubuntu installed in parallel:   Ubuntu 18.04.1, which at the first launch was switched to Alt+Shift. It was updated until 18.04.2, and now everything is in order with it. Ubuntu 18.04.2, which I installed today and she does not want to switch to Alt+Shift.   From what I remember - in 18.04.1 the interface for switching the layout was different (not the same as now in 18.04.2). And there I switched the layout keys without any problems. And now, on the new system, the new menu asks for "Enter a new combination" but does not respond to pressing Alt+Shift (or Shift+Alt).   From the , I learned that you can edit the keyboard configuration file. I'll do it. I just have a file with working Alt+Shift from the first system (18.04.1-up-18.04.2).  But I also noticed that in both cases the graphical menu shows that input switching takes place via Shift+Super+Space (and Super+Space) and in both cases it works. But Alt+Shift also works on the system 18.04.1-up-18.04.2, but the graphic menu does not inform the user about this (as it was in the “previous-old-18.04.1” graphic menu).  18.04.1-up-18.04.2:   18.04.2:  Is it possible now to set the switching of the input language to Alt + Shift using the graphical menu in the clean system 18.04.2 and without installing additional software?  In both systems, all packages are updated in apt upgrade. And both systems are installed in VirtualBox on Windows10-Host. And I used RU locale)))


ALERT ! UUID- does not exist. Dropping to a shell

I have got problem in Ubuntu 16.04.   My system has 2 drives with RAID 1. I tried all that I found but didn't work.  I matched the /etc/fstab and /boot/grub/menu.lst file with both /dev/md126 also with UUID-.... but it didn't work.  My system shows this error message on boot:   (cat /proc/modules; ls /dev) ALERT ! UUID-853f6ofa-be83-4b2c-b111-89f7fb09d20ff does not exist. Dropping to a shell   Below is the out for blkid     /dev/sdc1: UUID="2016-04-20-22-45-29-00" LABEL="Ubuntu-Server 16.04 LTS amd64" TYPE="iso9660" PTUUID="4cbe268b" PTTYPE="dos" PARTUUID="4cbe268b-01" /dev/sdc2: SEC_TYPE="msdos" UUID="B1F5-0A13" TYPE="vfat" PARTUUID="4cbe268b-02" /dev/sdb1: UUID="b1e8f589-8e85-4396-f038-bda09701b1e4" UUID_SUB="70870fef-1666-c0e2-e80d-719c290f2b10" LABEL="Odoo:0" TYPE="linux_raid_member" PARTUUID="2c3f2dea-01" /dev/sdb2: UUID="8cd06e11-af74-a75b-e1f6-228eed6e6e50" UUID_SUB="c9afe7eb-e625-be77-64c1-f13e79fb0eb0" LABEL="odoo:128" TYPE="linux_raid_member" PARTUUID="2c3f2dea-02" /dev/sda1: UUID="b1e8f589-8e85-4396-f038-bda09701b1e4" UUID_SUB="eb4b677b-7d08-eaed-bcee-afe4853de434" LABEL="Odoo:0" TYPE="linux_raid_member" PARTUUID="ed1431b2-01" /dev/sda2: UUID="8cd06e11-af74-a75b-e1f6-228eed6e6e50" UUID_SUB="8ca1a95f-7651-b741-7c03-8d217b1be0f9" LABEL="odoo:128" TYPE="linux_raid_member" PARTUUID="ed1431b2-02" /dev/md127: UUID="853f60fa-be83-4b2c-b111-89f7b09d20ff" TYPE="ext4" /dev/md126: UUID="ce1bb201-a6ee-402b-9aa3-e782560575d9" TYPE="swap" /dev/sdd1: LABEL="GRMCULFRER_" UUID="4823-0029" TYPE="vfat" PARTUUID="fdc01076-01"   /etc/fstab contents:  # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> # / was on /dev/md128 during installation UUID=853f60fa-be83-4b2c-b111-89f7b09d20ff /               ext4    errors=remount-ro 0       1 # swap was on /dev/md127 during installation UUID=ce1bb201-a6ee-402b-9aa3-e782560575d9 none            swap    sw              0       0   How can I solve this problem?


Should we add more badges for asking questions?

This proposal was superseded , which improves on the core concept.   Early on, there was a question about whether Stack Overflow should . At the time,  was:  Getting answers is reward enough for asking questions.  Even then, Stack Overflow was getting more than enough questions, so it didn't make much sense to incentivize more questions.  lists the badges that can be earned by asking quality questions. (There are at least 8). But looking at the list of recent , it looks more like a list of . These badges are difficult to come by in the first place, and they're much harder to earn on sites like  even though there are some  on that site. It turns out that . We , but we still need plenty of oysters. The Student bronze badge is awarded for the first upvoted1 question. There are no equivalent gold or silver badges. Therefore, I'd like to propose the following:  Student—Asked first question with score of 1 or more Sophomore—Asked 10 questions with score of 1 or more Socrates—Asked 50 questions with score of 1 or more  Do you have any suggestions of better names/levels?  To give you an idea of how many of these badges would be awarded, I wrote . The results2 for the original trilogy: users   gold silver bronze none    Site Name  ------- ---- ------ ------ ------- ---------  3000344 7127 67713  805778 2194566 Stack Overflow 235053  115  1698   53073  181980  Super User 156773  53   1191   40063  116710  Server Fault  The gold version on SO would be slightly more rare than  and more common than . Obviously, there would be fewer badges for smaller sites: 5545    1    18     917    4628    Philosophy 4032    4    41     802    3230    History  5663    3    28     917    4746    Parenting   Several older sites would get none at all: 5778    null 29     1063   4715    Quantitative Finance 7884    null 20     927    6957    Project Management 4333    null 17     1630   2703    Motor Vehicle Maintenance and Repair  These smaller sites get at most . I suspect that a gold or silver badge would encourage site regulars to increase that number without sacrificing quality. Certainly the requirement for those questions to stay in positive territory would prevent a person from flooding the site3 with terrible questions in order to get the badge.   1. The [original spec](https://blog.stackoverflow.com/2008/07/stack-overflow-badge-feedbac/) didn't consider voting at all for Student and Teacher.   2. Your results will vary from mine since I'm looking at slightly newer data. The bronze badge count also differs from the number of [Student](https://stackoverflow.com/help/badges/2/student) badges because the badge isn't revoked when a user's question is later downvoted or deleted.   3. There is a potential problem with cookie-cutter or variation-on-a-theme questions. However, I think the typical tools for closing and deleting questions will prevent people from gaming the system for these badges.


Can I switch from Ubuntu 14.04 to Lubuntu without losing my data and installed programs?

I am currently using Ubuntu 14.04 on my very low end computer (it has pentium 4 2.8 GHz, with 1 Gb ram and 40 Gb HDD). The problem is that it gets really slow every now and then, though it is much smoother than Windows! However, am looking for something more buttery to use.  I have spent a lot of time (since I am new to Linux) in installing apps such as Red Eclipse, Google Chrome, uTorrent and many more into my current OS.  I have heard that Lubuntu would be the best choice for me, and have confirmed that with my own research on Google, as I would be using it for low end gaming, listening to music, web surfing, online gaming (Miniclip), movies, torrenting, some programming and some photo and light video editing.  How can I change from Linux Ubuntu to Linux Lubuntu without losing any data? Will my currently installed apps work on Linux Lubuntu as well?  Some additional questions:   How can I make Lubuntu look better and really good to the eye after I have installed it? Are the terminal commands almost the same in Lubuntu as they are in Ubuntu? How would I connect my PPPoE connection in Lubuntu?


Install from Ubuntu Software Centre to a location of my choice

I need to ensure that when I download from Ubuntu Software Centre, I do so on a self-made partition, and not in the HOME folder.   This applies only to applications and games.  Is this possible?   [This may be a basic issue, but I found no easily accessible answer for the same.]


This is my second day on Stack Overflow (my current reputation is 72). Why should I answer questions on Stack Overflow? I have no problem helping people, but as I understand it, even if I earn 1,000,000 rep points, I won’t get any diploma or anything, so what should motivate me to answer questions here on Stack Overflow?


Penalty for cashing out HSA on permanently leaving the country?

I understand that if you want to cash out your HSA you are expected to pay tax and some penalty on that money. The tax part I understand. But what is this penalty exactly and how much would it be? And if a person is leaving the country permanently why should they have to pay  penalty for withdrawing their own contributions from the HSA? Can it be avoided? Just curious. Thanks.


Show that if $fd'=f'd $ and the pairs $f, d $ and $f',d' $ are coprime, then $f=f' $ and $d=d' $.

Show that if $fd'=f'd $ and the pair $f, d $ are coprime, that is gcd($d,f $)=1, as is the pair $f',d' $, then $f=f' $ and $d=d' $.  This should be simple, but I couldn't verify it. Thanks in advance!


BOOLEAN algebra NOT and DWORDs - suggest a fix

I've found some legacy code that goes wrong, setting file attributes. It looks something like this -   flag1 = 0x0001; flag2 = 0x0002;  DWORD flags = flag1 | flag2;  //great - flags is 3  DWORD prevValue  = 0x0010; //say  //add our new flags to prevValue DWORD newVal = prevValue | flags;  //newVal is 19  //but now I want to remove those flags from newVal  DWORD backToPrev = newVal & !flags;  //but according to my compiler (vs2012) //!flags is 0, it can't do the logical NOT on the DWORD  ASSERT (backToPrev); // it's 0, should be 16   Any suggestions for a fix?


What would "I forgot my keys" mean in this situation?

If you were at the door and found out that you had forgotten your keys you might say: "I have forgotten my keys" ..  but what would it mean if you said I forgot my keys instead?


Possible Duplicate:          How to prove $$\arctan(1)+\arctan(2)+ \arctan(3)=\pi$$


In this  of the Ubuntu help it says that using Ubuntu reduces battery life than compared to using Mac/Windows. What does that exactly mean? Does "battery life" mean here the number of hours that you can use the laptop on battery, or the battery's lifetime and thus the number of years you can use your laptop?  Also, in terms of battery maintenance, is it better to use the laptop while plugged in on Ubuntu?. Does Ubuntu detach battery when it is fully charged, or when the battery was fully charged does it use the battery so that it falls to 99% and then charges that again?


As far as I know, "this" should hold the properties and functions of the object which actually triggered the function with "this". But in the following case it also contains the properties of the constructor "foo", why?  function foo(id) {    var self = this;    this.foo = "foo";    this.element = document.getElementById(id);    this.element.addEventListener("keyup", function(){self.bar();}, false); }  foo.prototype.bar = function() {    console.log(this.element.value); }; new foo("anyInputElement");


File(Size more than 2 gb) Uploaded with associated record For `Site Guest User` in Salesfore

I was stuck with a very strange issue. Can anyone suggest me what to do, the scenario is: I want to allow my site user to create record and along with that the user can upload the file(can be greater than 2 gb). File should be associated with that particular record in salesforce. Can anyone help me out in this scenario?


Point count within borders, in two different layers, using QGIS

I have a layer of georeferenced points, and a layer of vectorized borders. Is there a way I can use QGIS to calculate how many points fall within each area of the borders layer?


The image link describing the bug / ill-feature is here:    My PC and Windows are working fine, however for the past few days I'm getting an annoying window drag over any window.  My OS is: Windows 8.1 Pro  Whenever I drag any open window, only the borderline with a black color is seen as dragged and not the whole window.  I tried refreshing the PC but it encounters some problem, and I don't have a system restore point right now in my system.  Please suggest how to remove this annoying window drag feature.


after running commandsudo apt upgrade i am getting the following error: `dpkg: error processing package libetonyek-0.1-1:amd64 (--configure):  package is in a very bad inconsistent state; you should  reinstall it before attempting configuration  Errors were encountered while processing:  libetonyek-0.1-1:amd64   E: Sub-process /usr/bin/dpkg returned an error code (1)`


Covering $6 \times 6$ chessboard with $1 \times 2$ tiles

Problem: prove that after putting in 11 1 by 2 tiles in the 6 by 6 chessboard, there is definitely room to put in another tile. Tiles cannot overlap with each other. So I found this similar problem:  Apparently if you cover the whole chessboard with 18 tiles, you can find a line without crossing each tile. But is this a related problem to the original problem?


I'm having a similar problem to the following post .  The model is built with Deep Neural Network library in Matlab by Masayuki Tanaka. The library is designed for classification. However, I've managed to change the last layer's transfer function to linear, so that the Deep Belief Network performs regression instead. I'm pretty sure the feed-forward and back propagation is performed correctly.  The model has 2 inputs, 4 hidden layers with 500, 200, 100, 10 units per layer, respectively, and 1 output. The activation of the hidden layers are sigmoid  The data is simply a sin function generated by matlab's sind, you may consider the input as a time series where the 2 features are sin value at t1 and sin value at t2, and I would like to predict sin value at t3  inputdata = [sind(1:1000); sind(2:1001)]; //1000*2 matrix outputdata = [sind(3:1002)]; //1000*1 matrix   By default, inuptdata is between -1 and 1, and not 0 to 1, I'm assuming the DBN is fine with it. Note that I'm not interested in testing the data with LSTM yet, but with DBN instead.  I would appreciate a hint on what I may be doing wrong, as the model always outputs the mean 0.50 - 0.55. I've tested with fewer layers, and it seemed to predict correctly, but with more than 3 or 4 layers, the model predicts the mean (constant value).  Could it be because of some large/small values of hidden layers when back propagating? I'm really lost, I spent so much time on this..  Thank you for your time.


Why was the snaphat not awarded? Or why was it awarded incorrectly?

There have been a few cases in which the  was not awarded.   There have also been other cases in which it was awarded incorrectly, on old questions.   What gives?


Canceled SSHFS (fuse) mount - cannot remove directory

I tried to mount an SSHFS directory locally, failed, and now I cannot use my original directory anymore.  Following a tutorial, I just installed the sshfs package, executed sudo modprobe fuse, and then created a local directory remote where I would like to mount the remote directory.  I then ran sshfs -o idmap=user "myuser@<host>:/home/myuser" remote, as indicated in the tutorial, but my connection was slow so I Ctrl+C'd it.  Now, if I do ls on its parent directory, I obtain this entry (as an example, I left the next entry as well):  ... d?????????  ? ?      ?      ?    ?            remote drwxr-xr-x  2 myuser myuser 4096 Mar 13 11:02 Videos ...   If I try cd remote, I get:  cd: transport endpoint is not connected: remote  Trying to remove the directory does not succeed:  rmdir: failed to remove ‘remote’: Device or resource busy  How can I get rid of this directory, preferably without having to reboot?


Using WCS layer in QGIS for processing gives FAILURE: Missing destination

I have a GeoServer serving raster dem data out via WCS and can add the layer easily to QGIS (3.2) but when I try to use it as the input for an operation (e.g. HillShade) I get an error.  Processing algorithm… Algorithm 'Hillshade' starting… Input parameters: { 'ALTITUDE' : 45, 'AZIMUTH' : 315, 'BAND' : 1, 'COMBINED' : False, 'COMPUTE_EDGES' : False, 'INPUT' : 'dpiMode=7&identifier=training:panorama&url=http://localhost:8080/geoserver/ows?version%3D1.1.1', 'MULTIDIRECTIONAL' : False, 'OPTIONS' : '', 'OUTPUT' : 'C:/Users/ishare/AppData/Local/Temp/2/processing_868cc25180f24d9f8e193bc0cfedb6d3/7cf48f64d8b54ee694c3ee93ed17e903/OUTPUT.tif', 'SCALE' : 1, 'ZEVENBERGEN' : False, 'Z_FACTOR' : 5 }  GDAL command: gdaldem hillshade dpiMode=7&identifier=training:panorama&url=http://localhost:8080/geoserver/ows?version%3D1.1.1 C:/Users/ishare/AppData/Local/Temp/2/processing_868cc25180f24d9f8e193bc0cfedb6d3/7cf48f64d8b54ee694c3ee93ed17e903/OUTPUT.tif -of GTiff -b 1 -z 5.0 -s 1.0 -az 315.0 -alt 45.0 GDAL command output:   FAILURE: Missing destination.   Clearly the missing destination is a red herring, and it is failing to understand the WCS layer as an input. But GDAL is built with WCS support included so shouldn't this work?  Do I need to do something else or start working out where to hack the QGIS code?


How do I start applications automatically on login?

How can I make an application automatically start when I have logged in?


Using bootstrap classes, why is my child div flowing outside the parent, instead of just taking up remaining height?

I'm using bootstrap, and so am working with their row and column classes. I have a row, with two child rows. I'd like to be able to set a height, or max height, of the parent row and have the child rows fill up the available space. The child rows I want to fill up the space such that the top child row just grows to be whatever height based on its contents, so nothing special, but the bottom child row fills up whatever available remaining vertical space exists within the parent row.  I'm trying to make a collapsible header area above a content area, below it, that expands to take up the available space as the header expands and collapses.  I have a jsfiddle here which shows my rows and columns, but the bottom child row, which I have set to height 100%, expands outside the bounds of the parent row. I figure the height is being set to 100% of the parent, and not 100% of the available space which is what I am after.  Any idea how to just make the bottom row take up 100% of remaining space?    Edit:  I will also try to include the markup here so you don't have to leave the site. I'm not sure how to use the code examples that you can run here, though.    #parent {   height: 300px; } <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"/>

           I'd like this to be able to be whatever height based on the content

           I want this to just take up the remaining height of the parent row


After what speed air friction starts to heat up an object?

I understand that air friction cools off an object at low speeds. For example, if you blow on a spoon of hot soup, it cools off. Or if you swing a hot frying pan in the air, it cools off faster.  But at higher speeds, the situation changes in the opposite. For example, consider a meteor falling on Earth. It is so fast that it heats up to such a high temperature that it burns into ashes.  What is the critical speed in which an object starts to heat up?  For example, consider a spherical object with radius of 1 meter. Let its density be 1 g/cm3 if needed. And let the air pressure be 1 atm. Assume that the temperature of the object is 400 K and the temperature of the air is 300 K. Also assume that the specific heat constant of the material is 1 cal/(gr.K). What is the critical speed for this object after which its temperature starts to rise above 500 K?


Why is the code syntax color highlight gone in the mobile view?

The code block on a phone or tablet is only black/white.   Update: example The code in the following link will have syntax color highlight in desktop browser.    Here is the image of the mobile view.


Why is the spectrum of a star pretty much continuous?

I was reading about the development of the quantum theory when I got to the explanation for spectral lines. It's a topic that I've revisited many times but I came up with a question. I know that in some interactions with matter the amount of energy absorbed or transmitted in the form of photons is quantized but then what processes lead to the wide spectrum of frequencies that we observe in an object's electromagnetic spectrum? For example in a star what is going on in the nucleus that we get radiation in most frequencies?


Relation between exponential and gamma distribution

If T and S are distributed exponential T,S = Exp(lambda). What is distribution T+S? The solutions says its gamma(2,lambda), but I don't understand why. I can only guess the answer by knowing that E(X+Y) = E(X)+E(Y) and in this case its 1/lambda+1/lambda = 2/lambda. And we know E from gamma distribution that is n/lambda, so T+S is gamma distribution with parameters 2 and lambda. I would also like to ask what in gamma distribution means gamma(n)


Probability mass function of rolling two dice

Let $X = X_{1} + X_{2}$ be a random variable where $X_{1}$ is the result of rolling a first die and the $X_{2}$ of rolling a second die. The possible outcomes are         1  2  3  4  5  6    1    2  3  4  5  6  7   2    3  4  5  6  7  8     3    4  5  6  7  8  9   4    5  6  7  8  9 10   5    6  7  8  9 10 11   6    7  8  9 10 11 12   It is easy to see that there are $11$ different possible outcomes: $2, 3, 4, \dots, 12$.  I would like to calculate the probability mass function of $X$. From the table, I can see that $$n(2) = 1, n(3) = 2, n(4) = 3, n(5) = 4, n(6) = 5, \\ n(7) = 6, n(8) = 5, n(9) = 4, n(10) = 3, n(11) = 2, n(12) = 1$$   where $n(x)$ is the number of occurrences of a particular outcome.  Since there are $11$ different outcomes, I would intuitively think that the pmf is $p(x) = n(x) / 11$. For example, $p(2) = 1/11$ since there is $11$ possible outcomes and only one way of having $2$ occurring.  However, $$\frac{1+2+3+4+5+6+5+4+3+2+1}{11} = \frac{36}{11}$$  so my logic is wrong since it should come as $1$.  What is the correct way of thinking about this? (I can see what the answer is but not how to get there.)


I am running Ubuntu 12.04 on an IBM ThnkPad T42.  I just installed Gnome and Cinnamon but I am still using Unity.  The only problem is that in dash when I search for any application they don't appear.  I don't see recent applications either.  I fixed it by running unity --reset but the next time I turned on my computer it was broken again


I have a standard page that i have been injecting javascript into. It is using requirescript to require static resources in salesforce. This saturday we updated to salesforce 16 and it has stopped automatically running this code. I can click on the custom link and the the JS will run. Is there another work around for this that i can implement or a salesforce standard i can use?  The end goal is to add a drop down menu that groups all related custom buttons together into one menu that on hover shows the related buttons.   Any help would be appreciated, leave a comment if more information is needed!


Is Jellal really married? Who's his wife?

I'm far back and trying to catch up in the series, but as most people confused who are at the same place as me ( On the beach with Jellal and Erza) who really is Jellal's wife?


I recently bought a DnD 5e starter set and with it came the adventure book of the Lost Mine of Phandelver. It had a few maps with it. Now the problem is, I'm not sure how I should get those maps on a separate physical grid.


How to pull multiple lines between two words

I have a text file with multiple lines, punctuation, and other word boundaries.    Example:  TITLE: Praying  SINGER: Kesha   [Music video spoken intro:]  "Am I dead? Or is this one of those dreams? Those horrible dreams that seem   like they last forever? If I am alive, why? Why? If there is a God or   whatever, something, somewhere, why have I been abandoned by everyone and   everything I've ever known?   I've ever loved? Stranded. What is the lesson?   What is the point?    TITLE: Don't Stop the Party  SINGER: Pitbull    I say, y'all having a good time, I'll bet      Yeah, yeah, yeah     Que no pare la fiesta     Don't stop the party     Yeah, yeah, yeah     Que no pare la fiesta     Don't stop the party   The goal is to pull the lyrics of the song without including the title or singer.  There are at least 10 of these in my file so it will need to pull all 10 using regex.    content = re.findall(r'TITLE\:\s\w+(.*)?\s*SINGER', file, re.DOTALL)


get the latest record from the table for each user

I have a table user_status, which stores the status for each user, everytime a status changes, i apppend the status in the user_status table.   id   status     created  1    ACTIVE     08-10-2017 08:21:22 1    ACTIVE     08-10-2017 08:21:25 1    NON_ACTIVE 08-10-2017 08:22:23 2    NON_ACTIVE 08-10-2017 08:22:23 2    ACTIVE     08-11-2017 08:25:23 3    NON_ACTIVE 08-12-2017 08:23:23   What I am looking for is the last status for each user based on the created date so the output I am looking is   id   status     created  1    NON_ACTIVE 08-10-2017 08:22:23 2    ACTIVE     08-11-2017 08:25:23 3    NON_ACTIVE 08-12-2017 08:23:23   also once I do that, I am also interested to know if there is a way to get the second to last status (one before the last) status for each user   so output from this query i am looking ofr is   1    ACTIVE     08-10-2017 08:21:25 2    NON_ACTIVE 08-10-2017 08:22:23 3    NON_ACTIVE 08-12-2017 08:23:23   any suggestions, I


How to create textfield with limited amount of symbols to input

I'm trying to make a code verification screen. You probably saw it in every app, that requires phone or SMS verification.  The main concern for me is how to set limited available characters for the user to type in the text field.  I'm using reactive Swift, and here is what I came to:   Created an observable variable in my view The presenter is responsible for checking some symbols; a user gave typed. When this type is becoming equal to 10 (for instance) observable variable receives false signal Delegate method is listening to an observable variable. It is working, but when I reach ten symbols, I can't delete anything. So, my return button on keyboard becomes disabled.  func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {     return isButtonHidden.value }      However, I still think it is not the "best practice". What can you recommend in that case?


Hi I'm new to Django and I'd just like to ask what's the best way to add a custom profile field (e.g. companyid).  I'm reading this:   Should I just create 2 new apps? Company App and then User Profile app?  I'm looking to use the CompanyID as a criteria / filter that will be used in page views.  Linked answer / solution is outdated.