How to enable mDNS on Windows 10 build 17134?

I am looking for a way to resolve .local addresses in Windows 10.  Windows itself also includes mDNS support, but that appears to only be available for Modern API applications.  In the past, the advice has always been to install Apple's Bonjour, for instance . Unfortunately, that seems to no longer be working.  As far as I can tell, the problem is that one of Windows' own processes, DNSCache, is now listening on port 5353.  How do I get mDNS to work for non-Modern applications?


Count number of increasing functions, nondecreasing functions $f: \{1, 2, 3, \ldots, n\} \to \{1, 2, 3, \ldots, m\}$, with $m \geq n$.

I stumbled upon a question given like:  Let $m$ and $n$ be two integers such that $m \geq n \geq 1$.   Count the number of functions $$f: \{1, 2, · · · , n\} \to \{1, 2, · · · , m\}$$ of the following two types:  (a) strictly increasing; i.e., whenever $x < y, f(x) < f(y)$, and  (b) non-decreasing; i.e., whenever $x < y, f(x) \leq f(y)$.  I tried in the following way.  For (a). We can say $f(n)>f(n-1)$ AND $f(n)>f(n-2) \ldots f(n)>f(1)$ (total $n-1$ elements)  Similarly for $f(n-1)>f(n-2), f(n-1)>f(n-3) \ldots f(n-1)>f(1)$ (total $n-2$ elements)...  and $f(2)>1$  Like this $$(n-1) + (n-2) + \ldots + (1) = \frac{n(n-1)}{2}$$  Is this correct?  For (b). Since there's equality, it will be $$n + (n-1) + ... (1) = \frac{n(n+1)}{2}$$  Is my approach correct? Any help is appreciated. Thanks in advance.


How does quantum mechanics explain stability of electron orbitals?

According to classical physics, an electron orbiting the nucleus would emit electromagnetic radiation. Losing energy in that way, it would spiral into the nucleus and the atom would collapse. Quantum mechanics explains that the electron cannot be treated as a classical particle having a definite position and velocity. The best we can do is specify the probability of it manifesting itself at any point in space and then something about Heisenberg uncertainty principle. How does quantum mechanics explain why the orbiting electron doesn't emit EM radiation and the atom doesn't collapse?


Redirect to other page on alert box confirm

This is a piece of my function with the question in it:  function deletePost() {     var ask = window.confirm("Are you sure you want to delete this post?");     if (ask) {         window.alert("This post was successfully deleted.");          /* How to redirect to another page on confirm? */      } }   Pure Javascript needed.


Neural Network gives exact same values of previous day for 1 day ahead prediction

I have hourly data for 365 days, and I would like to train a neural network model for 7 days and predict 8th day hourly data. It is a time series 24-h ahead regression problem. I am also applying such an approach instead of predicting all day data I am predicting each hour, so my neural network model has 1 output and 6 inputs. We can think that each days and each hours are features. I am training the model as follows Xtrain = Day-1 Hour-1, Day-2 Hour-1 ... Day-6 Hour-1 (6 sample,1 feature), Ytrain = Day-7 Hour-1, after training I am giving Day-7 Hour-1 to predict Day-8 Hour-1  Xtrain = Day-2 Hour-1, Day-3 Hour-1 ... Day-7 Hour-1 (6 sample, 1 feature), Ytrain = Day-8 Hour-1, after training I am giving Day-8 Hour-1 to predict Day-9 Hour-1  After I predict all hour-1 values I am repeating this for Hour-2, Hour-3 ... Hour-24. This procedure goes up to 365 days. First of all, Is this approach valid?  The problem is, the model predicts the exact same values of previous day.    Why do you think this happens, what might be the issue?  I have also tried training with l2 regularizer, but results are almost same.  NN --> 6 Inputs -> 12 Hidden Neuron -> 1 Output. Using Adam optimizer, 5k Epochs and RandomUniform Initializer.  EDIT: Same happened if I use choose 8 random hourly value as feature for each day as Xtrain = D1-h6 D1-h8 D1-h10 D1-h12 D1-h14 D1-h16 D1-h18 D1-h20 ... D2 ..... D6 Ytrain = D7 h1 to h24 Xtest = D2-h6 D2-h8 D2-h10 D2-h12 D2-h14 D2-h16 D2-h18 D2-h20 ... D3 ..... D7 Predict = D8 h1 to h24  D8 values are exactly the same with D7 values.


How many classical bits are needed to represent a qubit?

I have two question concerning information content of qubit.  Question 1: How many classical bits are needed to represent a qubit:  A qubit can be represented by a vector $q = \begin{pmatrix}\alpha \\\beta \end{pmatrix}, ~~ \alpha, \beta \in \mathbb{C}$. So, we need four real numbers to represent it. But when facts that (i) $|\alpha|^2+|\beta|^2 = 1$ and (ii) two qubits which differ in global phase only are indistinguishable, are taken into account, only two real numbers are necessary (angles on Bloch sphere). Moreover, we can choose a precission of the qubit representation (i.e. number of decimal places in $\alpha$ and $\beta$ or Bloch sphere angles) which influence number of classical bits needed to described the qubit.   So, it seems to me that the qubit representation cannot be used for measuring qubit information content but only memory consumption in simulation. Am I right?  Question 2: What is an (effective) information content of qubit:  A superdense coding enable us to send two classical bits via one qubit. But on the other hand you need two entangled qubits prepared in advance.  Given these facts, what is an information content of qubit? One or two classical bits? Or do I need to use another angle of view given the fact that qubits are "continuous" (i.e. described by complex numbers $\alpha$ and $\beta$)?


Copy/duplicate database without using mysqldump

Without local access to the server, is there any way to duplicate/clone a MySQL db (with content and without content) into another without using mysqldump?  I am currently using MySQL 4.0.


How can I sell items for a higher profit?

I've just started playing and am currently level 12.  I would like to know if it's possible to sell items, particularly more expensive ones, such as dragon bones, for closer to the original value.  All the stores I've seen purchase the items for too little. Is there any way I can sell it for more?


How to fix the incompatility between BiBer and BiBLaTeX versions in TeXmaker?

I can't get citations to work with 32-bit MikTeX and TexMaker. It seems like my Biber and biblatex versions are out of sync but I don't know how to sync them, other than by using the "synchronize" command in the MikTeX Package Manager.  Input  \documentclass{turabian-thesis}  % PDFLaTeX \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{csquotes}   \usepackage{filecontents} \begin{filecontents}{\jobname.bib}     @book{turabian_manual_2013,         author = {Turabian, Kate L.},         edition = {8th edition},         title = {A Manual for Writers of Research Papers, Theses, and Dissertations: Chicago Style for Students and Researchers},         shorttitle = {A Manual for Writers of Research Papers, Theses, and Dissertations},         publisher = {University of Chicago Press},         year = {2013}} \end{filecontents}  \usepackage{biblatex-chicago} \addbibresource{\jobname.bib}  \begin{document} \end{document}   Log  Process started  Use of uninitialized value $bltxversion in concatenation (.) or string at C:\Users\benna\AppData\Local\Temp\par-62656e6e61\cache-564dd4103627c1c374effa6d52fc299ad25d4d4a\inc\lib/Biber.pm line 415.  INFO - This is Biber 2.5 INFO - Logfile is 'Citation_sample.blg' INFO - Reading 'Citation_sample.bcf' ERROR - Error: Found biblatex control file version 3.0, expected version 3.1.         This means that your biber (2.5) and biblatex () versions are incompatible.         See compat matrix in biblatex or biber PDF documentation. INFO - ERRORS: 1  Process exited with error(s)


I just found that there is a apt command that you can use directly:   $sudo apt   apt 1.0.1ubuntu2 for amd64 compiled on Apr 10 2014 13:03:39  Usage: apt [options] command   CLI for apt.  Basic commands:    list - list packages based on package names   search - search in package descriptions   show - show package details   update - update list of available packages   install - install packages   remove  - remove packages   upgrade - upgrade the system by installing/upgrading packages   full-upgrade - upgrade the system by removing/installing/upgrading packages   edit-sources - edit the source information file   With similar syntax to apt-get. And it offers some coloring in the CLI interface. So I want to know if there are some major difference between apt and apt-* commands? Why do people seem to post commands as apt-get install and apt-cache search when they don' t need the additional options apt-* commands provide, while apt is shorter with all the similar functionality with additional coloring, and in my opinion, better output format? Is it only habit?  I see in the manual pages that apt is for end-users while other low-level commands are for scripts. So why is everyone posting those low-level commands instead of the more user-friendly high level command?


I have a problem with Ubuntu 13.04.  I cannot log in to my account. I put the right password but there is an endless loop. (if i put wrong pass, it says "Invalid password..."). Also, it doesnt show the small drop down menu with choices "Gnome fallback, Default, etc.."  If i login as guest, the desktop is clear, no bars, no menus, anything. Just right clicks works only.  I have already try  solution ( chown username:username .Xauthority ) but there is no "Xauthority" at ubuntu 13.04. (?)  Is the problem about lightdm? Also, i tried sudo dpkg-reconfigure lightdm but it soesn't work.  I use the recovery mode (root command shell or something like this) in order to try the above commands.  Has anyone a solution?  Thank you.


Character encoding displays question marks

I have a website with database that works fine in my computer, all special characters displayed correctly - I made sure to save all pages and CSS in Western European format and declare charset ISO-8859-1.  Nonetheless, when I upload the project to a web server, all accented/latin/whatever-you-call-them characters, such as ~, ^, ´, etc., are replaced by question marks.  I don't know what is causing this, but I suspect it is due to my files using lots of PHP includes: 1 for heading section, 1 for footer section (since heading and footer look the same in all pages, I wanted to save some space by reusing the code).  My second hypothesis is that it has something to do with the web host. But honestly, I'm lost and have no clue what to do. If you guys could give me a solution, I'd really appreciate it.  Update: my question was marked as duplicate, BUT idk how this can be an duplicate, since I've searched this site through and through and nothing solved my problem. I did all people generally recommend: changed database collation, saved every file in ISO-8859-1 encoding, declared the correct <meta charset> in header section and it had no effect.


Ubuntu 14.04 "[Errno 5] Input/output error" during Installation

I have been trying to install a fresh copy of Ubuntu 14.04 (64 bit version) on my desktop PC from a USB memory stick, but I'm experiencing a problem.  Each time I attempt an install I received an  "[Errno 5] Input/output error", followed by the following message before the installer exits:  "The installer encountered an error copying files to the hard disk: [Errno 5] Input/output error This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk. It may help to clean the CD/DVD, to burn the CD/DVD at a lower speed, to clean the CD/DVD drive lens (cleaning kits are often available from electronics suppliers), to check whether the hard disk is old and in need of replacement, or to move the system to a cooler environment."  In order to attempt to remedy this I have so far tried installing Ubuntu to two different hard disks, one of which is brand new, and each time I have received the same error "Errno 5" message. I have also tried installing from 3 different USB sticks using torrent and Ubuntu site iso images burned using both Unetbootin and Startup Disk Creator.  Again, these measures have proved fruitless.  The installation process varies depending of the iso I use, with the Ubuntu download page iso exiting at an earlier stage compared to the torrented iso.  The later torrent iso returns an error and exits when I am prompted for my name, computer's ID and password.  I've never experienced anything like this when installing previous versions of Ubuntu.  I'm absolutely stumped!  Does anyone have any more ideas?


Given $y_{k+1} = 1 + \sqrt{y_k}$ for $k \geq 0$ and $y_0 = 0$, we have a limit of the form $L = \lim_{k \rightarrow \infty} y_k = 1 + \sqrt{1 + \sqrt{1 + \sqrt{1 + ... \sqrt{1 + \sqrt{2}}}}}$.    Apparently this can be rewritten as $L = \frac{3 + \sqrt{5}}{2}$, but I am at a loss for how to approach this.  Tips would be greatly appreciated.    I see that $L = \frac{3 + \sqrt{5}}{2} = 1 + \frac{1}{2} + \frac{\sqrt{5}}{2}$, but this doesn't really take me very far.


After quite a lot of reading even, I am not being able to grasp the rationale behind the AF-L part of AE-L/AF-L button on Nikon D5300. If the camera is set to AF-C, then the concept of locking focus at a particular object/distance makes no sense. Hence, I am assuming AF-L is relevant only in case of AF-S. However, I can keep auto-focus locked by simply keeping the shutter half-pressed. Nikon  an AF Lock (Hold) mode. Essentially, it means that the focus will remain locked until the AE-L/AF-L button is kept pressed. What is the preventing the photographer from keeping the shutter button half-pressed and then recompose rather than having a dedicated button with a fancy feature? Isn't it a redundant functionality assigned to a button which could be better used for some other purpose? Am I missing something?


How does the controller know when to jump to the ISR?

I am talking about things at the core level.   As far as I understand, the controller core just executes instructions which are fetched from the memory (Fetch - Decode - Execute). When an Interrupt arrives, how does the core/ALU decide to jump to the ISR?   Because we, or the compiler, don't add any instruction to poll the interrupt status - then how does it know that an interrupt needs to be served?


If an enemy monster charms one PC and tells them to attack a second PC, and then the second PC charms the monster, what happens?

Consider the following example:  Character A, Character B, and Character C are in one room. Character A is an  (MToF p. 62) of 3rd level or higher. C is a . Characters A and B are allied. C is a foe.  First, C charms B (using the succubus' Charm action), and tells B to attack A. Then, A charms C (using the autumn eladrin's Fey Step), and convinces C to stop attacking. (He also tries to charm B with this ability, but B succeeds on the Wisdom save.)  No other intervening events occur. Is B going to attack A?


How prove this inequality $\tan{(\sin{x})}>\sin{(\tan{x})}$

How prove  this inequality $$\tan{(\sin{x})}>\sin{(\tan{x})},0<x<\dfrac{\pi}{2}$$  this  PDF give  a ugly methods :   I post this solution:let     $$f(x)=\tan{(\sin{x})}-\sin{(\tan{x})}$$   then we have   $$f'(x)=sec^2{(\sin{x})}\cos{x}-\cos{(\tan{x})}\sec^2{x}=\dfrac{\cos^3{x}- \cos{(\tan{x})}\cos^2{(\sin{x})}}{\cos^2{(\sin{x})}\cos^2{x}}$$   case 1:$0<x<\arctan{\dfrac{\pi}{2}}$, then we have    $$0<\tan{x}<\dfrac{\pi}{2},0<\sin{x}<\dfrac{\pi}{2}$$   so Use AM-GM inequality we have   $$\sqrt[3]{\cos{(\tan{x})}\cos^2{(\sin{x})}}\le\dfrac{1}{3}[\cos{(\tan{x})}+2\cos{(\sin{x})}]\le\cos{\dfrac{\tan{x}+2\sin{x}}{3}}$$   use   $$\tan{x}+2\sin{x}>3x$$   so   $$f'(x)>0\Longrightarrow f(x)>0$$   case2: $\arctan{\dfrac{\pi}{2}}\le x\le\dfrac{\pi}{2}$, so   $$\sin{(\arctan{\dfrac{\pi}{2}})}<\sin{x}<1$$   since   $$\sin{(\arctan{\dfrac{\pi}{2}})}=\dfrac{\pi}{\sqrt{4+\pi^2}}>\dfrac{\pi}{4}$$   $$\Longrightarrow \dfrac{\pi}{4}<\sin{x}<1$$,so   $$1<\tan{(\sin{x})}<\tan{1},$$,so   $$f(x)>0$$   I think this inequality have other  simple methods.Thank you  It is said can use integral inequality,But I can't   In fact,we have $$\tan{(\sin{x})}-\sin{(\tan{x})}=\dfrac{1}{30}x^7+o(x^7),x\to 0$$ can see:


I have a device with multiple USB inputs wired in parallel (Raspberry Pi 2B with Kedei Display, each of the units has an Micro USB input). Are there any dangers of connecting both inputs at once, powered by different powerbanks/chargers? I don't want to do this to increase the supplied current, but rather to swap power supplies without having to turn off the device. So e.g. the connected powerbank is about to run out of power, so I connect a wall charger to the second port and then disconnect the powerbank. Are there any possible negative interactions between the two power supplies? (e.g. different ground potential (especially with two wall chargers), slightly different voltages that cause power to flow in the wrong direction, different voltage fluctuation frequencies from the regulators in the power supplies that cause problems, ...) Related questions While this question seems similar to other questions posted on electronics.stackexchange.com, those questions are quite different in some aspects.   Both of these questions don't actually use different power supplies, but instead multiple ports on the same powerbank. Also both of them do that, to increase supplied current.  This question actually talks about two different power supplies, but also here the idea is to increase current.


My classmate asked a question during lecture about our discussion of bounded sequences, particularly the sequence $\sin(n)$. His question was, What is $\sup(\sin(n))$?


Can an Aadhaar card be used as a proof of ID to travel to Nepal?

I don't have any of the specified documents for travelling to Nepal as an identity proof. Can I use an  instead as proof of identity?


Is this a good justification for why integration by substitution works?

It is a well known fact that $$ \int f'(g(x))g'(x)dx=f(g(x))+C $$ This follows directly from the chain rule. However, sometimes it is easier to perform the substitution $u=g(x)$: \begin{align} u&=g(x) \\ \frac{du}{dx}&=g'(x) \\ du&=g'(x)dx \\ \therefore \int f'(g(x))g'(x)dx&=\int f'(u)du\\&=f(u)+C\\&=f(g(x))+C\end{align} Ordinarily, one cannot simply multiply both sides of an equation by $dx$. After all, '$dx$' on its own is not even formally defined. Here is my attempt to justify why this is allowed:  As well as knowing that $ \int f'(g(x))g'(x)dx=f(g(x))+C $, we also know that $$ \int f'(u)du=f(u)+C $$ Note that this holds even when $u\neq g(x)$. However, the above fact becomes useful when we set $u=g(x)$, as $f(u)+C$ becomes $f(g(x))+C$. Knowing that $ \int f'(g(x))g'(x)dx$ and $\int f'(u)du$ evaluate to the same thing, we can say that $$ \int f'(g(x))g'(x)dx=\int f'(u)du $$ when $u=g(x)$. Hence, $g'(x)dx$ can be replaced by $du$, without the value of the integral changing. Since differentiating both sides of $u=g(x)$ and multiplying by $dx$ yields the same result, it is safe to treat $\frac{du}{dx}$ as a fraction in this case.  I have two questions:  Is this justification good (or, at the very least, valid)? If it can be improved upon, how so? Is there a more fundamental reason as to why $\frac{du}{dx}$ can be treated as a fraction? Is it something to do with how we can treat derivatives as fractions when using the chain rule?


Say you have a class B that extends a parent class A. To access the methods of B, you would use this. To access A, you would use super. If you were to have a third class C that extends class B, you would use this to access methods of C and super to access B. How would you access the methods of A from class C?


Why does $A_6$ 6-cycle from $S_6$ which also has even number of 2-cycles and hence is even permutation

For $S_6$,the possible orders are 1,2,3,4,5,6.  While for $A_6$, the possible orders are 1,2,3,4,5 but not 6.  Why does $A_6$ neglects the 6-cycle in $S_n$ which also has 0 number of 2-cycles and hence an even permutation .  I was going to upload the image of possible orders of $S_6$. but error pops up that I can't upload it .


How do I copy top X files from a directory to another using terminal command?

I have a directory more than 1200+ files. How do I copy the top 1000 lines of that directory to another directory?


I've been trying to get a value from txt1(jtextfield) which is an id in my database. But it keep saying java.lang.NullPointerException. Here is the code:  public void harga() {     try {         stat = con.createStatement();         String query = "SELECT harga from obat WHERE ID = '"+ Integer.valueOf(txt1.getText())+"'";         stat.executeQuery(query);         ResultSet rs = stat.getResultSet();         while (rs.next()) {             int harga = rs.getInt("harga");             //String nama = rs.getString("nama");             System.out.println(harga);         }      } catch (SQLException e) {         e.printStackTrace();     } }


What does the fourth number in the release version mean?

On Ubuntu, the string returned by uname -r is always of the form x.y.0-z-generic (i.e., 3.19.0-21-generic). Compiling Ubuntu's kernel ends up with a string that is of the form x.y.z (i.e., 3.19.8), the actual version of the kernel that is used. What does the z represent in the first case? Is that the EXTRAVERSION parameter or is it something else? How do I get the version string of my build of Ubuntu to match the official one?


What is the maximum number of pencil that can be stood in this stand?

I am working on the following problem asked in an examination: "What is the maximum number of cylindrical pencils of 0.5 cm diameter that can be stood in a square shaped stand of 5cm × 5cm inner cross section? 1. 99    2. 121   3. 100    4. 105." A simple calculation yielded me the answer 100.  But the answer in the key is 105. I don't how such an answer is possible. Any hint please.....Thanks in advance!


What is the correct of saying between you and I?

I was taught that it is correct to say "between you and I," instead of "between you and me." Which is correct?  I forgot to mention that my father said if you left out the other person. the correct word will be "I" not "me'.  A person doesn't said "me" went to the store. A person would say "I" went to the store.


How to find a computer name in a LAN from the IP address?

My network includes machines running Linux and others running Windows. And my machine is running Linux.


Cant understand output format using ObjectOutputStream

I wrote the following code using ObjectOutputStream: class ClassToTestOutputStream implements Serializable{      int a;     String b;      public ClassToTestOutputStream(){         a=10;         b="Deepak";     }      public String toString() {          String s = ""+a+" "+b;         return s;     } } public class UsingOutputStreams {      ClassToTestOutputStream ref;     private ObjectOutputStream oos;      public UsingOutputStreams(){     try {          oos = new ObjectOutputStream(System.out);     } catch (IOException e) {         e.printStackTrace();     }     ref = new ClassToTestOutputStream(); }  public void writeOnScreen(){      try {         System.out.println("Writing on Screen");         oos.writeObject(ref);     } catch (IOException e) {         e.printStackTrace();     } }      public static void main(String[] args) {          UsingOutputStreams obj = new UsingOutputStreams();         obj.writeOnScreen();     }  }  And I got answer :  �� Writing on Screen sr ClassToTestOutputStream����S��M I aL bt Ljava/lang/String;xp t Deepak  Please help me figure out why such output gets printed.


Can the word, intact, be considered as adverb?

I have come across many sentences that appear to use 'intact' as an adverb. For example,      Suppose that both segments arrive intact at B.   However, in the dictionary, 'intact' is listed as an adjective rather than an adverb; 'intactly' is the corresponding adverb.  Why does the author not use 'intactly' here?      Suppose that both segments arrive intactly at B.


Implication in local noetherian domain of Krull's dimension 1.

Let $(A,m)$ be a local noetherian domain with Krull dimension $1$. Let $k$ be the field $A/m$. I'm trying to prove that if $m/m^2$ has dimension $1$ as a $k$-vector space, then every ideal $I$ of $A$ is a power of $m$.  I started the argument with; If $I=A$ then trivially $I=m^0$ and we're done. Otherwise it must be $I\subset m$ since every element of $A\setminus m$ is invertible; but I can't think of a way to use the hypothesis from this point. Could someone sketch a way to prove this? Thank in advance.


Intel wireless 7260 problems in ubuntu 14.04

my internet connection is really slow and unstable sometimes and only on my Ubuntu machine =( can somebody help me


I recent migrated from TeXnicCenter to TeXstudio.  TeXstudio doesnt have independent project sytstem like TeXnicCenter. It just takes control of a master document and calls the child files correctly, however how does it know to include .cls and .sty files while compiling?  I see highlights such as unrecognized command which are specific to the custom class (.cls) and style (.sty) files I intend to use, including citation style files (*.bst). The document compiles correctly producing the correct output as well. But I don't understand how this should be handled in TeXstudio.  Based on  document, I can turn off inline checking to bypass this.


How is a feature request a duplicate of a support question?

I asked  but it was marked as a duplicate. But I believe it isn't a duplicate because the questions linked to are asking how to use a feature that already exists in Stack Exchange, while mine is asking if we could implement a new feature.


Can I replace an existing method of an object in Python?

Q: Is there a way to alter a method of an existing object in Python (3.6)? (By "method" I mean a function that is passed self as an argument.)    Example  Let's say I have a class Person having some very useful method SayHi():  class Person(object):     Cash = 100     def HasGoodMood(self):         return self.Cash > 10      def SayHi(self):         if self.HasGoodMood():             print('Hello!')         else:             print('Hmpf.')  >>> joe = Person() >>> joe.SayHi() Hello!   As you can see, the response of the person depends on their current mood computed by the method HasGoodMood(). A default person has good mood whenever they have more than 10$ cash on them.  I can easily create a person who does not care about the money and is happy all the time:  >>> joe.HasGoodMood = lambda: True >>> joe.SayHi() Hello! >>> joe.Cash = 0 >>> joe.SayHi() Hello!   Cool. Notice how Python knows that when using the original implementation of HasGoodMood, it passes silently self as the first argument, but if I change it to lambda: True, it calls the function with no arguments. The problem is: What if I want to change the default HasGoodMood for another function which would also accept self as a parameter?  Let's continue our example: what if I want to create a greedy Person who is only happy if they have more than 100$ on them? I would like to do something like:  >>> greedy_jack = Person() >>> greedy_jack.HasGoodMood = lambda self: self.Cash > 100 TypeError: <lambda>() missing 1 required positional argument: 'self'   Unfortunately, this does not work. Is there some other way to change a method?    Disclaimer: The above example is just for demonstration purposes. I know that I could use inheritance or keep a cash threshold as a property of the Person. But that is not the point of the question.


What is the equation for the refracted vector when using Snell's Law with 3D vectors?

As the title says, how would I obtain the vector $\mathbf t$ if the vector $\mathbf i$ and the refractive indices are known? I've tried for hours but I keep getting stuck. Is there an equation readily available? Thank you.


I have a similar problem to the person in this post:  I don't see the Minecraft folder in Application Support. Does anyone know where the folder can be located?


Oops left baby back ribs on warm instead of low for 7 hrs

Would the meat still be ok to eat if I cooked it on low for another 8 hrs after being on warm for 7 hrs?


If Conventional Current is wrong, how can I trace the flow of current in a schematic?

If Conventional Current is backwards, how do I look at something like this schematic and trace the flow of current?  I'd like to follow the design linearly from positive to negative.    When the battery is on, does current go to 8, then 4, then through R1 and so on?  Does the current get "back around" to the side of the capacitor, 1, and the speaker eventually (though fast)?  How can this be so if in reality electrons flow from negative to positive?  Edit:  If the current were water here, how would I see that physically on the wiring, as if they were pipes?


The value of $$\lim_{x\to -\infty} \sum_{k=1}^{1000} \frac{x^k}{k!}$$ is  a.) $-\infty$  b.) $\infty$  c.) $0$  d.) $e^{-1}$  I tried expanding the series but it got me nowhere. Then i thought the expanded sequence is a part of e^x but it goes to infinity and in question it is only up to 1000.


What are the benefits of hand built wheels over automated ones?

I just read this page  explaining that 'artisanal' aka hand built wheels are better for many reasons, such as having better tension and static stress distribution. This would imply better feeling from the saddle as well as better durability. How  much truth is in there? It makes me feel as if I should find time to rebuild my campagnolo zondas from scratch.


Recreate material from blender sculpt mode with nodes?

When you are sculpting in blender sculpt mode you can switch between a number of different materials. one of them is a red clay like material, i would like to recreate this specific material using nodes. i have attempted to get something similar with the principled shader but to no sucess. could anybody instruct me how to do this? (attached picture depicts the material i am refering to).


Estimating the Parameters for $y=\beta_1 e^{\beta_2 x}+\beta_3 z+\epsilon$

I have the model  $$y=\beta_1 e^{\beta_2 x}+\beta_3 z+\epsilon$$  where $z$ is an indicator variable. I need to obtain estimates from linear regression to get initial values for the parameters. Then I can do an iterative search to find the best values for each parameter. However, I am having trouble doing this.   For the model  $$y=\beta_1 e^{\beta_2 x}+\epsilon$$  I can simply take the natural log of both sides and run the regression model  $$log(y)=log(\beta_1)+\beta_2 x+\epsilon$$  to get estimates of $\beta_1$ and $\beta_2$ but  $$y=\beta_1 e^{\beta_2 x}+\beta_3 z+\epsilon$$  doesn't appear to be intrinsically linear.   Any suggestions would be greatly appreciated.  Edit:  The data is as follows  df <- read.table(textConnection( 'x y z log_y 0.5 0.68 0  -0.38566 0.5 1.58 1  0.45742 1.0 0.45 0  -0.79851 1.0 2.66 1  0.97833 2.0 2.50 0  0.91629 2.0 2.04 1  0.71295 4.0 6.19 0  1.82294 4.0 7.85 1  2.06051 8.0 56.10 0 4.02714 8.0 54.20 1 3.99268 9.0 89.80 0 4.49758 9.0 90.20 1 4.50203 10.0 147.70 0 4.99518 10.0 146.30 1 4.98566'), header = TRUE)   When the model is just $y=\beta_1 e^{\beta_2 x}$ I get parameters estimates of 0.753 and 0.533 respectively after transforming the data to be linear. In SAS, I used these as the initial values for the new model and let $\beta_3=0$, arbitrarily. Using the Gaussian-Newton method, I got that the convergence criterion was met so it may be a valid approach. The coefficients I obtained in SAS are as follows:


I'm using a C# Windows Service application where I'm having a object containing a stored procedure.  public class Sp {     public int Id { get; set; }     public string Name { get; set; }     public int IntervalMin { get; set; }     public DateTime LastRun { get; set; } }   Right now I'm using this method to check if it's time to run:  public bool TimeToRun() {     return ((IntervalMin * 60) <= (DateTime.Now - LastRun).TotalSeconds); }   The problem I have is that when the service is down during weekends and wakes up on monday TimeToRun will be true for all (considering IntervalMin isn't really high).  For example, there is one Sp with IntervalMin = 1440 (should be runned once a day), and lets says LastRun is Friday 14:00, on monday when service wakes up at 03:00 it will run, but I want it to be as close as possible to 14:00.  You have any tips of how I can build this kind of schedule? Do I need to use more properties that I set? It's no problem if it's like +/- 5 minutes or even more. TimeToRun() is checked about every each second.  LastRun is currently set to Datetime.Now, but I would like to use AddMinutes to cause no extra delays.  LastRun = LastRun.AddMinutes(IntervalMin)


Prove that $ \tan40° + \sqrt 3 =4 \sin40° $

The equality I'm trying to prove looks like that: $$ \tan40° + \sqrt 3 =4 \sin40° $$ My guess is that $\sqrt3$ can be rewritten as $\tan60°$ and I can use proved in previous exercise formula $$\tan3  \alpha = \frac{(3 - \tan^2\alpha)\tan\alpha}{1 - 3\tan\alpha}$$ But after dealing with it for an hour I feel misled. Some hints would be greatly appreciated.


Evaluating the limit of a sqrt function using Riemann Sums

$\lim\limits_{n\to\infty}\dfrac{\sqrt1+\sqrt2+\sqrt3+\ldots+\sqrt n}{n\sqrt n}$ I am having trouble doing this problem. I have attempted to take the Riemann Sum but cannot get past the square root. I also tried to upper-bound and lower-bound it, but I got stuck doing this.


How can I run an exe in 32-bit mode on a 64-bit machine?

I have an executable that works fine when run on 32-bit windows but breaks when run on 64-bit windows.   Is there some way I can force it to run in 32-bit mode on a 64-bit machine?   I don't have access to the source code.


how to ADD a NEW entity/item/effect to Minecraft Java

In Minecraft Java, I am creating many resource packs by myself (no studio or external resource) so, I want to ADD a new file/entity/element/items/etc. to the game to not replace an old item because EVERY item/effect/entity has SOME use in the game. In conclusion: how I can ADD [not replace] a file in the game and give it custom physical and mental properties?


Visual Studio: How do I show all classes inherited from a base class?

In Visual Studio, How do I show all classes inherited from a base class?    For example, in ASP.NET MVC there are several '' types -- and they all inherit from / implement the base class ActionResult.    It looks like unless you just 'know' that View and Json are valid ActionResult types, there is no way you can easily find this information out.    Please prove me wrong.  Is there something in the object browser that makes this easy to find out?  I'm even up for suggestions of tools outside of Visual Studio to discover this information about various classes.  For example: is there something in Resharper that will help me out?


I would like to ask if there any Java API which can fire events, when a specific line on the txt file change and which line is change, modified or delete? If not, I would like to point me the direction to look about it!  Thanks


How can I permanently and globally disable Firefox's annoying and useless "leave page" confirmation?

We have carefully reviewed and considered Mozilla's opinion on the matter and dismissed it as something that does not fit our web browsing requirements. We are seeking community help to find a way to completely, totally, globally, and permanently disable the "This page is asking you to confirm that you want to leave - data you have entered may not be saved." Stay/Leave dialog box. Currently this dialog box is annoying our employees in data entry roles as it slows down their work and lowers their wages. We cannot tolerate this program behavior as it is hurting our staff, just so that you understand where we are coming from.


Getting a replica of the in-camera JPG using free RAW editors

This question has been asked before for  but my question is about free RAW editors such as LightZone, Dark Table or Rawtherapee. More detail follows. I've turned off all in-camera modifications that affect the JPG file. But still when I open a RAW file in one of the above software it looks much different from the preview JPG inside the RAW file.  Of course I can use the software to edit the result to my liking but sometimes I just want to get the JPG (a higher quality version of the JPG inside the RAW file) quickly in Linux. Do I need a camera profile of some kind?


What specific algebraic properties are broken at each Cayley-Dickson stage beyond octonions?

I'm starting to come around to an understanding of hypercomplex numbers, and I'm particularly fascinated by the fact that certain algebraic properties are broken as we move through each of the $2^n$ dimensions. I think I understand the first $n<4$ instances:   As we move from $\mathbb{R}$ to $\mathbb{C}$ we lose ordering From $\mathbb{C}$ to $\mathbb{H}$ we lose the commutative property From $\mathbb{H}$ to $\mathbb{O}$ we lose the associative property (in the form of $(xy)z \neq x(yz)$, but apparently it's still alternative and $(xx)y = x(xy)$. Is that right?) The move from $\mathbb{O}$ to $\mathbb{S}$ is where I start to get fuzzy. From what I've read, the alternative property is broken now, such that even $(xx)y \neq x(xy)$ but that also zero divisors come into play, thus making sedenion algebra non-division.   My first major question is: Does the loss of the alternative property cause the emergence of zero divisors (or vice versa) or are these unrelated breakages?  My bigger question is: What specific algebraic properties break as we move into 32 dimensions, then into 64, 128, 256? I've "read" the de Marrais/Smith paper where they coin the terms pathions, chingons, routons and voudons. At my low level, any initial "reading" of such a paper is mostly just intent skimming, but I'm fairly certain they don't address my question and are focused on the nature and patterns of zero divisors in these higher dimensions. If the breakages are too complicated to simply explicate in an answer here, I'm happy to do the work and read journal articles that might help me understand, but I'd appreciate a pointer to specific papers that, given enough study, will actually address the point of my specific interest--something I can't necessarily tell with an initial glance, and might need a proper mathematician to point me in the right direction.  Thank you!  UPDATE: If the consensus is that this is a repeat, then ok, but I don't see how the answers to the other question about why algebraic properties break answers my questions about what algebraic properties break. Actually, the response marked as an answer in that other question doesn't actually answer that question either. It provides a helpful description of how to construct a multiplication table for higher dimension Cayley-Dickson structures, but explicitly doesn't answer the question as to why the properties break.   The Baez article many people suggest in responses to all hyper-complex number questions like mine is truly excellent, but is mostly restricted to octonions, and, in the few mentions it makes of higher dimension Cayley-Dickson algebras, does not refer to what properties are broken.   Perhaps the question isn't answerable, but in any case it hasn't been answered in this forum.   UPDATE 2: I should add that the sub question in this post about whether the loss of the alternative property specifically leads to the presence of zero divisors in sedenion algebra is definitely unique to my question. However, perhaps I should pose that as a separate question? Sorry, I'm not sure about that aspect of forum etiquette here.


Taking both sides of an issue for personal gain

I'm looking for a word or two for a person who would support or defend either side of an issue for personal gain. In other words, a person who is not interested in truth for truth's sake but for personal gain or advantage.


Information about parameters using priors distributions

When using the "non-informative" prior $\pi(\mu,\sigma)\propto\frac{1}{\sigma^2}$ where $\pi(\mu)\propto1$ and $\pi(\sigma^2)\propto\frac{1}{\sigma^2}$ Where is the no information for the parameter? and if would be informative prior, Where one would see the 'information' given?  I saw the definition on Wikipedia  and there mentions 'An informative prior expresses specific, definite $\color{blue}{\text{information}}$ about a variable.' My question is where is this $\color{blue}{\text{information}}$ given in my particular example for instance? Could you help please?


i want getting a meta value from multiple meta  i getting meta by :  $data['cd_meta'] = get_post_meta( $p->ID, 'cd_meta', true);   but cd_meta is a multiple meta and i need just one specific meta from it  how Can get it ?  Thanks


To prove that triangles of side $a^n, b^n, c^n$ are isosceles.

Let $a\ge b \ge c\gt 0$ be real numbers such that for all $n \in \mathbb N$ there exist triangles of side $a^n, b^n, c^n$. Prove that the triangles are isosceles.    I tried proving it by writing $c^n + b^n \gt a^n$ and when I assumed some values for $a, b \text{ and } c$ I realized that it would be true for all $n$ only when $c=b$. But I don't know how to generally prove this.


"Of your lunch boxes" vs "in your lunch boxes"

When to use the former and when to use the later? And why?  Example:  You never eat the bell peppers of your lunch boxes.  You never eat the bell peppers in your lunch boxes.


How to have GUI in Dutch and terminal output in English?

I've got Ubuntu installed with Dutch as my language. I often work in the terminal and many of the outputs are in Dutch as well. This is very inconvenient though, because I often need to search for error messages I get, and on the interwebs error messages are unfortunately easier found in English than in Dutch.  Is there a way to have all terminal output in English, while all GUI's are in Dutch?  All tips are welcome!


As we know $3^1-2^1 = 1$ and of course $3^2-2^3 = 1$. The question is that whether set $$ \{\ (m,n)\in \mathbb{N}\quad |\quad |3^m-2^n| = 1 \} $$  is finite or infinite.


How to setup shaders for semitransparent mirrors?

I would like to produce a box with an effect like this one :     I have been trying to create a mix shader between glossy and transparent to achieve this effect, but it didn't gave me anything close to this...    Any ideas on what shader to use ?    Thank you ! :)


A friend of mine thought about this problem, and I got very interested in it, but I couldn't develop it. Could some help me, because I got stuck trying to verify it's injectivity and surjectivity in a rigorous way.  Thanks in advance for any help :)  Prove that the function $f:(Z_{+} \times Z_{+}) \rightarrow Z_{+}^{*}$ and $f(x;y)=2^{y}(2x+1)$ is bijective.


In the Star Trek 2009 movie, did they travel back in time or did they travel to an alternate universe?

In the new Star Trek movie, did they travel back in time and become their younger selves or are they in an alternate universe like the episode "Mirror, Mirror"?


Running Windows Batch File without Popup

I am trying to run a bat file on startup (running Windows 8.1) that will change the permission of the temp folder and then run dropbox. The bat file executes properly on startup and does what I want but the cmd window appears and just stays there with the commands showing. I have to manually close the window for it to go away but other than that it works fine.  So is there a way for me to suppress the window. Here is the batch file code:  @ECHO OFF echo y| CACLS "C:\Users\Name\AppData\Local\Temp" /grant Everyone:F "C:\Users\Name\AppData\Roaming\Dropbox\bin\Dropbox.exe" exit


Simple method for copying a file and preserving it's path?

I want to copy a file from drive A to drive B, preserving the file's path.  For instance  /A/x/y/z/file.txt to /B/x/y/z/file.txt   However, you cannot cp a file to a directory that doesn't already exist.  I searched and saw some results for moving whole directories using paths, but in my use case I need to be able to do this by specific individual files.    In my example above assume /B contains no directories currently, and so I would need to create x/y/z before the cp command would be successful.  The string that I have to work with is the full current file path, /A/x/y/z/file.txt


Is there a command that would enable me to replace a character in a text file.  Constraint :  - File size is >= 100 MB


SQL Server setup media does not support the language

I'm getting the following error when i try and install MSSQL 2008 on Windows Server Standard 2008 R2:


apt-get update errors after installing google chrome

I have asked a question related to this problem before here . But I was told to ask a new question after it was established that my sources.list doesn't have any errors.  The problem started after I installed google chrome on my system. Now every time I do an update I get errors. Here is an output of errors I get after doing an update -   Err http://downloads-distro.mongodb.org dist Release.gpg                        Could not resolve 'downloads-distro.mongodb.org' Fetched 2,992 kB in 60s (49.1 kB/s)               Reading package lists... Error! W: Failed to fetch  http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg  Bad header line [IP: 74.125.130.91 80]  W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages  404  Not Found [IP: 74.125.130.91 80]  W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-i386/Packages  404  Not Found [IP: 74.125.130.91 80]  W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/Release  Unable to find expected entry 'restricted/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)  W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg  Cannot initiate the connection to archive.canonical.com:80 (2001:67c:1360:8c01::1b). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::1b 80]  W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/partner/i18n/Translation-en_IN  Cannot initiate the connection to archive.canonical.com:80 (2001:67c:1360:8c01::1b). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::1b 80]  W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/partner/i18n/Translation-en  Cannot initiate the connection to archive.canonical.com:80 (2001:67c:1360:8c01::1b). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::1b 80]  W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/partner/binary-amd64/Packages  Cannot initiate the connection to archive.canonical.com:80 (2001:67c:1360:8c01::1b). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::1b 80]  W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/partner/binary-i386/Packages  Cannot initiate the connection to archive.canonical.com:80 (2001:67c:1360:8c01::1b). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::1b 80]  W: Failed to fetch http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/Release.gpg  Could not resolve 'downloads-distro.mongodb.org'  W: Some index files failed to download. They have been ignored, or old ones used instead. E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_i18n_Translation-en E: The package lists or status file could not be parsed or opened.   Will reinstalling google chrome solve this problem? I am completely lost now. Please help!


what is faster? background-image or image

My only question is what is faster for the browser to render?  An image as a background-image or the same image as a simple <img src=".">


I didn't demonstrate any significant strong personal ties to my home country.


Use the axiom of regularity to demonstrate that if $A$ and $B$ are two sets, then either $A\notin B$ or $B\notin A$ (or both): Proof Assistance

In Tao's Analysis I, the following exercise is posed:     Use the axiom of regularity (and the singleton set axiom) to show that if $A$ is a set, then $A \notin A$. Furthermore, show that if $A$ and $B$ are two sets, then either $A\notin B$ or $B\notin A$ (or both).    I was able to demonstrate the first portion of this (i.e. that $A \notin A$), but I am having trouble formulating the proof necessary to demonstrate the second claim. Here is what I have so far.   Firstly, if $A = B$, then we know by $A\notin A$ that the statement $A\notin B \lor B\notin A$ is true, so let's consider the case where $A \neq B$.   Define $A=\{...\}$ and $B=\{...'\}$. (just my shorthand notation for denoting that they contain different elements and are therefore not equal).   Consider the case where $A \in B$. Then we have $B = \{A,...' \}$. Suppose also, by contradiction, that $B\in A$. Then we could rewrite $B=\{A,...'\}$ as $B=\{\{B,...\},...'\}$. But because $A\in B$, we could then rewrite $B$ as $B=\{\{\{A,...'\},...\},...'\}$. This process would continue infinitely.   I believe there is a contradiction here because I remember reading something about infinitely nested sets not being allowed in set theory where the axiom of regularity is asserted...so I think I am close.  What I see so far (in the little nested examples that I presented), is that $A=\{\{A,...'\},...\}$. I feel like this somehow contradicts the idea that $A \notin A$, but I am not certain why.   Any help is greatly appreciated!


Tracking the last execution date of a query

My manager is requesting to know when was the last time a number of reports were last ran to see if they are getting used. He requested info from our vendor and the vendor if coming to me for SA level permission to dig through the relative SQL Server.   Obviously, I won't be doing that but I would like to know is there a way to track the last time a specific query has been executed?  This database resides on an old SQL Server 2008 R2 install so I am sure my options are limited if not non-existent especially since he wants to look back as far as 18 months.   Just figured I would ask in case there might be at least a partial way to go back in history and track this information.


How to support all iOS device screen sizes / resolutions in my game

I made this . Right now the game supports all iOS devices except iPhone 5.  The definition of each level of the game is kept in a plist. The creation of each level is done through a graphical level editor. Each device family has its own plists. So, right now the game has 100 levels and 200 plists; 100 plists for the iPhone family and 100 plists for the iPad family.  In order to support the iPhone 5 I need to create 100 new plists and adjust the plists accordingly, which is time consuming, not to mention the creation of new levels...  The editor for creating and editing the levels is solely based on the manipulation of UIViews that describe the game elements. So, this is the code that I wrote to save and restore the state of each UIView in one level of the game.  - (void)encodeWithCoder:(NSCoder *)aCoder {     // Save the screen size of the device that the view was saved on     [aCoder encodeCGSize:self.gameView.bounds.size forKey:@"saveDeviceGameViewSize"];      // ****************     // ALL properties are saved in normalized coords     // ****************      // Save the center of the view     CGPoint normCenter = CGPointMake(self.center.x / self.gameView.bounds.size.width, self.center.y / self.gameView.bounds.size.height);     [aCoder encodeCGPoint:normCenter forKey:@"center"];       // I rely on view bounds NOT frame     CGRect normBounds = CGRectMake(0, 0, self.bounds.size.width / self.gameView.bounds.size.width, self.bounds.size.height / self.gameView.bounds.size.height);     [aCoder encodeCGRect:normBounds forKey:@"bounds"];       // Here I save the transformation of the view, it has ONLY rotation info, not translation or scalings     [aCoder encodeCGAffineTransform:self.transform forKey:@"transform"]; }  - (id)initWithCoder:(NSCoder *)aDecoder {     self = [super initWithCoder:aDecoder];     if (self) {          // Restore the screen size of the device that the view was saved on         saveDeviceGameViewSize = [aDecoder decodeCGSizeForKey:@"saveDeviceGameViewSize"];          // Adjust the view center         CGPoint tmpCenter = [aDecoder decodeCGPointForKey:@"center"];         tmpCenter.x *= self.gameView.bounds.size.width;         tmpCenter.y *= self.gameView.bounds.size.height;         self.center = tmpCenter;          // Restore the transform         self.transform = [aDecoder decodeCGAffineTransformForKey:@"transform"];          // Restore the bounds         CGRect tmpBounds = [aDecoder decodeCGRectForKey:@"bounds"];         CGFloat ratio = self.gameView.bounds.size.height / saveDeviceGameViewSize.height;         tmpBounds.size.width *= (saveDeviceGameViewSize.width * ratio);         tmpBounds.size.height *= self.gameView.bounds.size.height;         self.bounds = tmpBounds;     }     return self; }   I am really stuck here. I cannot explain what is wrong with this code. The UIViews are correctly positioned when restored on the same device. This is not true when the level is opened on another device. There are slightly misplaced elements and distortions.  Here are two pairs of screenshots demostrating the issues:        What is the correct approach to handle the scaling of the levels on different screens? Should I rely on AutoResizingMasks (I need to support iOS 4 and later)? In any case I would like to give a solid paradigm on how to achieve this.


When I first studied power series in high school, the teacher gave the following general definition:  \begin{equation} f(x)=\sum_{n=0}^{\infty}a_n (x-x_0)^n \end{equation}  He then proceeded to explain that when both $x=0$ and $x_0 =0$, the first term of the power series is defined to simply be $a_0$. How does one justify $0^0 = 1$ in this case?


Polynomial interpolation of a polynomial with degree at most $n$ with $n$ data points is same as polynomial

I'm trying to solve following question from D Kincaid & W Cheney, Numerical Analysis section 6.2 and need a proof check  Prove that if $p$ is a polynomial of degree at most $n$ then $$ p(x) = \sum_{i=0}^{n} p[x_0,\dots,x_i] \prod_{j=0}^{i-1}(x-x_j). $$  My attempt to solve this is using the uniqueness of interpolation polynomial of degree $n$, since we have a polynomial with degree at most $n$ and we are using $n+1$ data points to interpolate that polynomial we get a polynomial with degree at most $n$ so now we have two polynomials with degree at most $n$ and they both interpolate same points so they most be the same.


Can I find out if an American Airline flight flew March 19, 2020

This was in the middle of all the Covid19 shut downs and I know we decided not to travel, but I need to know if the flight actually flew to determine credit.


as a part of script I'm trying to copy a file from remote site. But got an error. To me that sounds bit strange as everything sounds ok:  #aaa="/path/to/some file with spaces(and brackets).txt" .... #scp user@example.com:"$aaa" /test/ bash: -c: line 0: syntax error near unexpected token `(' bash: -c: line 0: `scp -f /path/to/some file with spaces.txt'   upd: problem with brackets...


In Linux how to run a shell script automatically when the headphone is plugged in?

Is some kind of signal emitted when an earphone/headphone is plugged in? I want detect when they are plugged in and run a script accordingly.


What order should I play the Half-life series in?

For one reason or another I managed to totally miss playing any of the Half-life series. I have the time and money now to play these games that I have heard such great things about. So what are all the Half-life games that I should play? and what order should I play them in?  I am confused of where the episodes and expansions all fit in. And what they mean by "Source" versions. Are these even part of the same series? And what about Blue Shift, Lost Coast, or Opposing Force? So many games, and I don't know where or if they fit.  Are there any in the series that I should skip, or just read the plot summary for? Can someone please give me a run-down of what I should play, in order.


-This address appeared in my win 10 proxy setting. Every time I turn it off it goes back on when I leave the proxy tab. -When this issue appeared I got an error in browser saying that there is no internet connection even do I can browse the web on any other device. -How can I fix this issue?


I have an issue. I need to move a SharePoint external list to a custom list. After some research, I decided to use a SharePoint timer job. Not having coded in C# before all of two days ago, I immediately went looking for templates. And found two here:      I followed the steps, and have successfully created a timer job, built it, and deployed it to the dev environment. And though it does show up in the site features, it's not doing anything.  I have two main questions:   Are these the right sources to be looking at? Or is there something obviously wrong with them. What's the best way to debug a SharePoint timer job? Ultimately, I've got to be able to detect and fix these problems myself, and right now I've got no idea how to do that.


Is it safe to use a 19v - 3.42A adapter on a laptop that requires 19v - 6.32A?

The original power adapter for my Asus laptop is broken. A spare adapter I have with me has different power specifications: Input  Original: 100-240V ~50-60hz 2.0A Spare: 100-240V ~50-60hz 1.5A  Output  Original: 19v - 6.32A Spare: 19v - 3.42A  The polarity matches. Since the voltage is the same, is it safe to use this adapter on my laptop?


Dell Latitude E5550 M.2 slots - what can I use?

I will get a new laptop Dell Latitude E5550, I do not know exact sub-model spec yet.   From the spec sheet:     Two M.2 Expansion slots: 1 WWAN/HCA and 1 WLAN/BT/WiGig   Can I be sure that it will have M.2 slot to buy SSD M.2 disk in advance? What disk will fit in (width)? Can I use ?  I found this  but still I cannot figure out the params of M.2 slot. They say there is no M.2 slot, does it mean that the M.2 slots in Latitude E5550 cannot be used for SSD disks?


access to class attribute with python 2.7

How can access to class's attributes with python like:  for key in data:         m.key = data[key]   If i do this, 'm' will create an new attribute "key" but i want write attribute which is in key.  For exemple:   m =Class() data ={"user_username" : "toto", "user_password" : "titi", "user_other" : "" } for key in data:      m.key = data[key]   'm' has attributes "user_username","user_password",etc...  if i do this, new attribute "key" will be created with value "toto" but i want change m."user_username" and not add m."key"...


How to let a bar chart start from value different to zero with pgfplots

Following up on a previous . How do I let a bar chart start from a value different to zero? Including negative numbers. As you can see when I plot the data from the table all bars start at zero.  \usepackage{pgfplots} \pgfplotstableread[col sep=comma]{ system,   Tmin, Tmax, limitmin, limitmax         {a},      20,     50,     -10,      30       {b},     10,     60,     15,      60         {c},      -15,     -5,     0,       10   }{\datatable}        \begin{tikzpicture}      \begin{axis}[ sactter, xlabel=Temperature,      xbar,    ytick distance=1,    enlarge x limits=0.15,   bar width=0.8em,     symbolic y coords={a, b, c, d, e},   grid=both,  ]  \addplot  +[forget plot] table [x index=1, y index=0] {\datatable};      \addplot table [x index=2, y index=0] {\datatable};  \addlegendentry{T}    \addplot +[forget plot] table [x index=3, y index=0] {\datatable}; \addplot table [x index=4, y index=0] {\datatable};      \addlegendentry{Limit}  \end{axis}   \end{tikzpicture}   Thanks for your help.


Is ham safe to eat if it was at room temperature but is recooked?

I accidentally left two half hams in a storage locker in a basement for four days. They were in packaged in plastic and packed in ice, but the ice would have melted by the end of the second day. They were at room temperature when I found them. The hams were from a grocer, sealed in plastic. One is semi-cooked. The other is fully cooked, smoked and salted. Are they safe to eat if I cook them to 160 degrees + or, as I suspect, do they need to be thrown out?


grep: memory exhausted on big file when using pipe

When I try to find a specific byte with grep not using pipe I get some output:  $ grep -aboP "\\x55" bigfile 510:U 1049086:U 1049598:U   But when a pattern is supplied via pipe then there is a memory exhausted error:  $ echo "\\\\x55" | grep -aboPf - bigfile grep: memory exhausted   Why does it happen and how to make it work?


Is abstract algebra (mostly?) restricted to $2$-ary operators?

This may be due to my own pure ignorance but it's my experience that all abstract algebra I've been introduced to, both in actual courses and in self-studies only exclusively deals with algebraic objects consisting of a set together with one or more binary operators defined on that set, perhaps over some other algebraic structure. Not counting categories here, just "low-level"-ish stuff.  I'm an undergraduate so my knowledge is of course very limited but I can't help to wonder why I never stumble upon algebraic structures with $n$-ary operators? Is there a good reason for this, something along the lines of $n$-ary operators behave "badly" when $n>2$ or is it just my ignorance because I'm a beginner in the field?


I have seen plenty of definitions and descriptions of electric flux.  Most of them say it is the number of field lines per unit area.   However how can there be a fixed number of field lines in a unit area?   If we take an area in an electric field,  there exists a field at every point.(A simple scenario).    Thus in that area there are infinitely many field lines right?   Also if we take into account the curvatures of the field lines, then I could see that there is a difference.  But numerically, there are still infinite lines in that area right?   What am I thinking incorrectly? Please help me as I am unable to wrap my head around this topic


I want to buy Pokemon Soul Silver, a USA version, in order to play it on my 3DS. I know the 3DS is region locked, but is it region locked for DS games? Need an answer generally or specifically for USA on a UK 3DS.


java.lang.NullPointerException: Attempt to invoke virtual method 'onMemberDareLoaded(java.lang.String)' on a null object reference

I am creating a simple application, where there is a login page, on logging in a Dashboard (recycler view is there with card view along with onClick()).  DashboardAdapter          holder.itemView.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 String selected = mdList.getName();                 dashboardView.onMemberDataLoaded(selected);                 //GeneralUtils.showAlertDialog(activity, activity.getString(R.string.card_view) + " " + mdList.getName());             }         });     }   Dashboard Fragment  public void onMemberDataLoaded(String memberList) {   GeneralUtils.showAlertDialog(getActivity(), getActivity().getString(R.string.clicked_on) + " " + memberList);     } }   onMemberDataLoaded comes from a interface DashboardView which is implemented in Fragment


Javascript Math.ceil rounds differently when value given is an equation vs integer

When I do Math.ceil(510/11*11) on Google Chrome, I get an answer 511 whereas if I do Math.ceil(510) or Math.ceil(510.00), I get the correct answer of 510. May I know why is it calculated like this? Apparently I tried some other numbers like 410, 610, etc.. and they were calculated correctly. Is there some documentation somewhere that someone can direct me to learn more about this?


Are the Ferengi racially discriminated against by members of the Federation?

Many Federation citizens, particularly those in Starfleet, seem to be openly hostile to the Ferengi and appear to have strong prejudices against them.  For example, when two Ferengi narrowly escape a doomed shuttle, Riker tells Worf to give them quarters "not too close to mine." He hadn't even met them, or spoken to them, but was still keen to keep them away from where he lived.  Others seem to automatically assume Ferengi will be trouble, too. Is this not prejudice in the literal sense? Is it not bias against their entire race?


I have a code that looks like this :   \[\Omega_\Lambda{}_0 = 0,6911 \tag {2}\]   in the pdf the (2) has round parentheses. I would like square brackets [] to figure instead : [2]  Can you give me the correct code.  Thanks


OLS but accidentally swapping $X$ and $Y$ and calculating new parameters

Just pondered over the following thought experiment for lunch. Suppose I am meant to perform an OLS for $Y=\beta X+\epsilon$, but when estimating $\hat\beta$ I accidentally use $X$ for $Y$ and $Y$ for $X$. What are the consequences of being "lazy" by rewriting the OLS as $X=(Y-\epsilon)/\beta=\gamma Y+\eta$ ($\gamma=1/\beta$ and $\eta=-\epsilon/\beta$), and instead of estimating $\gamma$, use $\hat\gamma=1/\hat\beta$? My intuition so far: for the simple case of $X$, $Y$ being zero mean r.v.s., the right answer for minimising $\mathbb{E}[(Y-\beta X)^2]$ gives $\hat\beta=\frac{\rho\sigma_Y}{\sigma_X}$, and likewise for minimising $\mathbb{E}[(X-\gamma Y)^2]$ gives $\hat\gamma=\frac{\rho\sigma_X}{\sigma_Y}$. However, we accidentally claim that $\hat\beta=\frac{\rho\sigma_X}{\sigma_Y}$, and flipping it gives $\frac{\sigma_Y}{\rho\sigma_X}$.  Since $\rho\in[-1,1]$, this leads to an overestimate when we apply our new model to a new dataset. I'm wondering if there is a deeper story to this and I am missing out on anything on my analysis? For example, if it is dependent on $\epsilon$/the distribution of the data? Thank you!


Why mix wet and dry ingredients separately?

Often in baking, instructions say to mix wet and dry separately, then add wet to dry. Chemically, shouldnt mixing it all into one single mushy lump produce the same mixture of ingredients as mixing dry and wet separately and then combining? Why bother separating the two (and dirtying more bowls along the way)?


Is there any way to remove free space of a partition ? I want to build embedded os and i created disk image with dd command and patition this disk with fdisk .       my problem is , disk size is too big , I wan to create fixed size partition . I mean my operating system rootfs is for example 200M and size of partition is for example 210M . How to remove 10M free space of this partition ?


Add a way for moderators to cast a normal, non binding close/open vote

I think moderators should have the ability to cast a normal, non binding close and open vote like they were a normal user (while of course retaining their ability to cast a binding vote where necessary). This can be used in "grey areas" where a moderator can choose to give his or her opinion, but not make a decision alone; a good example of this is . This also helps in areas not so grey (questions that everyone would agree should be closed) since the OP has the time to see close (1) and possibly edit his or her question. The moderator can then optionally come back after a few minutes and close it for real if it's not improved (or maybe during that time other 4 people voted to close it). This would also fit perfectly in :  Since we’re about to add community moderators on both Stack Overflow and Server Fault, I need to document what it is, exactly, we expect moderators to do. The short answer is, as little as possible!


How can I change the default applications from the command line (specifically from a script) in Ubuntu 18.04?   The link below describes setting the default applications from the GUI, and also by editing ~/.local/share/applications/mimeapps.list. However, it appears mimeapps.list has been moved or is no longer present in Ubuntu 18.04.    See, e.g.,


PREMISE:  I would to make analysis to see the encryption time difference between AES-128 ,192 and 256 version with Java.  I checked that the three versions are built well (i had to change only the key 16 bytes for 128, 24 bytes for 192 and 32 for 256).   I saved the time before the encryption (and after the decryption) and i made the difference. For each payload i had a lot of values of time(nanoseconds)that i saved on a csv, so i made the average, because i wanted the "real" value. For example: For the payload of 7,8 MB i had 40 values of estimated time in a csv. I made the mean and i plotted the first point on MATLAB (7.8 , mean)...and so on for other values.  long startTime = System.nanoTime(); byte[] encrypt = ob.encrypt(tempBuffer, 0, read); long estimatedTime = System.nanoTime() - startTime;   THE PROBLEM IS:  I plotted each value but i noticed that AES-256 is faster than AES-128 (and this is impossible). Someone said to me that the problem is the WARMUP effect of the JVM... how can i "clean" the JVM each time i run the program?


prove that $\displaystyle\int_0^1 \dfrac{1}{x^x}dx = 1 + \dfrac{1}{2^2} + \dfrac{1}{3^3} + \dfrac{1}{4^4} + \ldots $

$\displaystyle\int_0^1 \dfrac{1}{x^x}dx = 1 + \dfrac{1}{2^2} + \dfrac{1}{3^3} + \dfrac{1}{4^4} + \ldots $ the only idea I have is using the series expansion of $x^{-x} \approx 1 - x\log x + \dfrac{(x\log x)^2}{2!} - \ldots$. But it ends up little complicated, any idea?


How to save the Home Cover Photo of a LINE profile?

In the upper section of each  user's home screen a background picture is displayed, called Home Cover Photo in . How is it possible to save the cover photo of another user?


Example of noncommutative ring in which all nonzero elements are   invertible.   I was thinking along Matrices in $(2,\mathbb Z$), but some nonzero matrices are not invertible.  Can someone provide me with an example?


Zero radiation resistance for constant acceleration?

I was just reading chapters from The Feynman Lectures on Physics Vol 1 about antennas and radiation, and I'm confused about the so-called "radiation resistance" experienced when driving an antenna. If you push on a charge then you increase its momentum (which you can recover later) and you also create an electric field that can do work on other charges far away. My understanding is that the reason this isn't a source of free energy is that the Abraham–Lorentz force resists your effort to accelerate the charge. You have to put in extra work to account for all the energy being radiated away. The problem is that the radiated power is proportional to acceleration but the Abraham–Lorentz force is proportional to the next derivative (jerk). So what happens with constant acceleration? You could accelerate a charge in a straight line for 10 seconds, or you could maintain the same acceleration for 1000 years. You radiate power for much longer in the latter case, but the work done against the Abraham–Lorentz force is identical. Doesn't this violate conservation of energy?


What is the correct spelling of Marshalling/Marshaling? I also have problems with other derived variants of marshal:   marshaller / marshaler marshalling / marshaling marshalled / marshaled   Google hasn't help much, also different spell checkers have different opinions.   What are the rules here?


I've never worked out the general proof of l'Hôpital before, and am taking the opportunity to do so before I return to the soul-crushing grind of college life.   I looked in Spivak and found a fine proof of the $(x \rightarrow a$ and $f(x), g(x) \rightarrow 0)$ case; but when he went to prove the $(x \rightarrow \infty, f(x), g(x) \rightarrow 0)$ case, he made a suggestion which actually does not work. (He proposed applying l'Hôpital for the first case above to $f(1/x) / g(1/x)$ as $x \rightarrow 0$, but since he used the fact that $f(0)$ and $g(0)$ could be defined to prove the first case, his version doesn't seem to apply. Correct me if I'm wrong!)  I adapted this proof of the second case.    Theorem: Suppose that $\lim_{x \to \infty} f(x), \lim_{x \to \infty} g(x) = 0$, and $\lim_{x \to \infty} \frac{f'(x)}{g'(x)} = l$. Then $ \lim_{x \to \infty} \frac{f(x)}{g(x)} = l.$    Proof: Note as a lemma that there exists an interval $I = (c, \infty)$ on which   $g'(x) \neq 0$ $g(x) \neq 0$   (The hypothesis implies (1); to prove (2), note that every interval $(\eta, \infty)$ would otherwise have $g(\xi) = 0$, so taking any $\eta ' > \eta$, there would be $g'(x) = 0$ on $(\xi, \xi ')$, and thus on $(\eta, \infty)$, against (1).)  Fix $\epsilon > 0$. By hypothesis, $\exists M: x > M \implies |\frac{f'(x)}{g'(x)} - l| <  \frac{\epsilon}{2}$. If $M < c$, choose $M = c$ so $M \in I$.   Now pick any $y > M$. By Cauchy, $\forall x > y$ we get $($for $\mu \in (y, x))$  $$\frac{f(x) - f(y)}{g(x) - g(y)} = \frac{f'(\mu)}{g'(\mu)}.$$  But if we take $\lim_{x \to \infty}$ of both sides, we find  $$\lim_{x \to \infty}\frac{f(x) - f(y)}{g(x) - g(y)} = \frac{f(y)}{g(y)} = \lim_{x \to \infty} \frac{f'(\mu)}{g'(\mu)}. $$  We know that the RHS limit is determinate; we also know that  $$ l - \frac{\epsilon}{2} < \frac{f'(\mu)}{g'(\mu)} < l + \frac{\epsilon}{2} \implies l - \frac{\epsilon}{2} \leq \lim_{x \to \infty} \frac{f'(\mu)}{g'(\mu)} \leq l + \frac{\epsilon}{2}$$  $$\therefore l - \epsilon < \frac{f(y)}{g(y)} < l + \epsilon .$$  We have therefore furnished $M : |\frac{f(x)}{g(x)} - l| < \epsilon$ if $x > M$. This proves the theorem.    I now feel a sudden urge to begin overusing l'Hôpital! Someone, please tell me if this is correct, so I can go at it.


My shell is bash and I have three variables x=5; y=7; z=7.5 I am trying to use the below statement to test the equality of variables $y and $z as shown below Command: test $z -eq $y; echo $? But, it shows the following error and I am not able to resolve it.  -bash: test: 7.2: integer expression expected 2  Note: when I apply the same test command on integers $x and $y, they work fine.


Im trying to download apps but it says insufficient storage but I have plenty of storage and an sd card

I try to download apps like Vine and other apps but, it continuously says insufficient storage and I have an sd card and enough internal storage to download. It makes me angry. Please help, I need don't want but need some apps and it wont let me download.  I have a Samsung galaxy ace style and I got it June 13th. Thanks.


I have downloaded Ubuntu 14.04 and burned it onto a disk, it's an ISO file.. will it boot from disk?

I downloaded the .ISO file from the Ubuntu website, burned it to a [dvd] disc and before I wipe Windows (I don't have a spare  Windows disc) I want to know will it boot from the disk?


When to use "What is the..' vs 'Which is the ...' in a sentence?

Which is the correct usage?        What is the best book for learning English grammar?   Which is the best book for learning English grammar?      Also, can you give other examples where we could use either?


I am developing an application in Android Studio and want to make a favourites page. To do this, I would like the user to be able to save the activity to the favourites, and when opening the favourites page from the home page, the user can view the button to start this activity.   I have looked up numerous other similar questions but none which suits my specific issue.  I have looked at different possibilities such as SharedPreferences, ToggleButton etc. but none I can get to work.   I would really appreciate your help.  Thank you so much in advance.


Is it legal to target myself with Warding Bond?  It would be great to have +1 to saves and AC for 1 hour without concentration.


Can you please help me to write a test class for the blow code:   public class retrieveOpenSafetyObservations    {          private ApexPages.StandardSetController controller;          public List<Safety_Observation__c> getOutbaseSafetyObservations()                      {                                      return [SELECT Id, Name, Title__c, Priority__c,   Risk_Factor_Ranking__c,Contractor__c,Status__c               FROM Safety_Observation__c WHERE Status__c = 'Open' order by id desc limit 10];        }}   here is what I have so far:    @isTest         public class testRetrieveOpenSafetyObservation{             static testMethod void testOpenSafetyOb(){                     retrieveOpenSafetyObservations oso = new retrieveOpenSafetyObservations(                       Safety_Observation__c SafObse = new Safety_Observation__c(                       Basic_Risk_Factors__c ='Design',                       Cause_Category__c = '1 Equipment and Material problems',                       Cause_Code_Sub_Category__c = '3E other Human Error not specified here',                       Contractor__c = 'a0fg0000000u09l',                       Contributing_Factors__c = 'qwert',                       Customer_Name__c = '001g0000007q9Z9',                       Description__c  = 'bla bla',                       Human_Factor_Domain__c = 'Staffing Issue (Workload etc.)',                       Human_Factors__c = 'Alarms',                       Performance_Improvment_Factors__c = 'Organisational Change',                       Priority__c =  'Low',                       Risk_Factor_Ranking__c = '2',                       SO_Number_Name__c = 'Test',                       Status__c = 'Open',                       Title__c = 'Test'                       );                insert SafObse ; );                                   }               }


get icloud password from activated device

Here is the story .. My friend bought an iphone 5S .. Later he found that it's linked to icloud account and it wasn't verified .. So, he asked me to help him remove the account .. And i couldn't .. So, i told him that there is nothing i can do for him and he should use the device in this condition till someone find a solution .. Next day i met him .. And his iphone has no icloud !! He told me that he found a guy in a mobile shop who did it for him .. That guy didn't just removed the account .. He also gave it's password to my friend !! And i've tested the account myself .. !! My friend also told me that he did it in just 15 min .. !!  I know you can extract account password from an encrypted backup .. But it's not that simple .. And not everyone can do it !!  So, have someone here knows about getting icloud password from activated device .. Or can explain what that dude did to my friend's iphone ??  Thx in advance.


In Star Trek: Beyond, Jaylah has hidden the USS Franklin from Krall and his buddies using some sort of holo/light refraction cloaking technology.  How could this possibly work, as       Krall and his buddies actually crash-landed that very ship themselves sometime earlier? Surely they remember where their ship crashed, and a ship doesn't just corrode away that quickly (evidently).    There is even a log recording of 'captain Krall' which seems to be recorded ON the ship AFTER it crashed, so it should be weird to them if the ship suddenly had disappeared.   So how could Jaylah hide the ship?


I know these are float point division. But why did these two formula behave differently?  And I did some more investigation, the result confusing me even more:  >>>0.9/3 0.3  >>>1.2/3 0.39999999999999997  >>>1.5/3 0.5   What's the logic here to decide whether the result is printed with one decimal place or more?  PS: I used python3.4 to do the experiment above.


I have filled my disk but can see games in /usr that I could delete but can't see how to do it. I am not a computer buff and have no idea what a terminal is.


Proving Caratheodory measurability if and only if the measure of a set summed with the measure of its complement is the measure of the whole space.

Suppose we have a premeasure $\mu$ on a space $X$ such that $\mu(X) < \infty$. Prove that $E \subset X$ is Caratheodory measurable iff $ \mu^*(E)+ \mu^*(E^C) = \mu(X)$.  Going in the forward direction is fairly easy. Assuming that E is Caratheodory measurable, we can just substitute X into $\mu^*(A) = \mu^*(A \cap E) + \mu^*(A \cap E^C) $, and then we note that the outer measure and the premeasure of X themselves would have the same value.   The other direction is more difficult however. My primary idea of how to solve this part is to show that $\mu^*(A)$ and $\mu^*(A \cap E) + \mu^*(A \cap E^C) $ are both greater than and less than each other to show equality. However, I am not completely sure how to proceed with this. Can anybody provide any pointers as to how to prove the equality between these two expressions?


Can I use my UK Business visa for tourism?

I was granted a multi-entry Standard Visitor visa last July for business purposes. I know the business visa does not exist anymore, but I still have the following on my visa stamp: Type of visa: C Remarks: C-visit  The project I was supposed to fly to the UK for has been postponed until February, so I haven't had the chance to use my visa. Now, I want to spend a week end in London in January, just before my visa expires, but I don't know if this is possible.  More info:   I am still working for the same company. If I go, I will be travelling with my boyfriend who is Spanish and does not need a visa. We both live in Spain. I have e-mails stating that the project has been postponed and will be resumed in 2017.


Can I travel to Greece using my French visa?

Can I travel to Greece using my French Schengen visa? I went to France for 4 days but I really want to go to Greece for 10 days I suppose I can visit France a few more times to make up the days to 10. I'm worried, however, that there will be problems at the Greek border.


Why was the scar that Harry received from the Avada Kedavra spell lightning shaped? Is there any reason why a death spell that was blocked by      A mother's sacrifice   Would leave a scar specifically in the shape of a lighting bolt?  In-universe answer, please.


Prove that $(a,bc)=1$ if and only if $(a,b)=1$ and $(a,c)=1$

I have proven the forward direction. By BeZout's identity: $1=ar+(bc)s$ for some integers $r,s$. A corollary states that $(a,b) =1$ if and only if $1=ar+bs$ for some integers $r, s$. So we can conclude that $(a,b)=1$ since $1 = ar +b(cs)$ and also that $(a,c)=1$ since $1=ar + c(bs)$.  But I do not know how to prove the reverse direction.


I use a dual monitor.  The colors appear entirely different on the new monitor than they do on my laptop.  When you are selecting colors etc, to be included in a website design, it totally freaks me out.  Is there no software solution that finds how the settings of one of the monitor is and puts that to the second one?  Otherwise what all settings do I need to change manually on the second monitor to make it appear as it does on the laptop?  Thanks in advance.


I have a very long url to show in the references, I am using BibTex and the package url, but I still the url breaks once and not twice as it should.


Why is there an electric field in a wire even though it is a conductor?

If you take a perfect conductor, there cannot be a field across it since if there were, the particles would arrange themselves in a way to cancel out the field right?  Yet, why does the same not hold true for a wire. A wire is essentially a long, thin conductor yet electrons do indeed flow so there must be an electric field.  Does this not contradict with what happens in a conductor? Why don't the electrons re-arrange to cancel out the electric field?


What is the difference between "text" and new String("text")?

What is the difference between these two following statements?  String s = "text";  String s = new String("text");


In terms of user experience, which layout of buttons would work better? This would basically be a landing page.   Side by side?    Or stacked?


I am trying to understand the concept of event horizon and what really the word "event" means and have some questions. I apologize if the questions seem stupid or vague as I am not a physics student or professional: just someone who is curious.  As the black-hole sucks more and more mass, the gravity of the black-hole increases. Are things affected by this increased gravity not examples of events occurring due to changes (to the mass of the singularity) inside the (event horizon of the) black-hole ? In that case, isn't this an example of an event inside the black-hole influencing something outside it ?  Building on the same question: Couldn't gravity wave patterns during black hole collisions give us some insight into the geometry of the singularities inside the horizon ?  (Also, observing how the gravity envelope changes as mass (stars, planets, etc.) enter the horizon might provide clues on what is happening inside as the mass falls to the center. Also, If we are ever able to really observe closely and interpret BH collisions (probably even rarer), looking for changes to the gravity envelope past the moment when the two event horizons start merging could present interesting insights. However, I am not sure if we have such an advantage of observing (the changes in effects of gravity around) a BH from that many angles and at that precision today or not.)  Or is mass, somehow, also considered to be a property of the surface/event-horizon ?


Wi-Fi not working on Lenovo ThinkPad E570 (Realtek RTL8821CE)

We just bought a Lenovo  (which is supposed to have the Intel 8265 for wireless). This laptop was bought in part because it is certified to run Ubuntu and as such to me at least it would make sense for things to work out of the box... but no such luck.  First, I installed Ubuntu 17.10 and after installation realised Wi-Fi was not working. I also tried Ubuntu 16.04 from a USB drive since that is the version of Ubuntu it is certified for, but no luck there either.  The wireless chip is not detected by lshw (or even lspci by the looks of it), ip link does not show a wireless interface, and the iwlwifi kernel module is not loaded at boot (I can load this myself using modprobe iwlwifi but this does not make Wi-Fi work). I think it is a combined Wi-Fi/Bluetooth chip, and Bluetooth does appear to work (or at least Bluetooth shows up in Gnome and rfkill list).  modinfo iwlwifi | grep 8265 shows me a file ending in -34 is supposedly loaded but only a file ending in -33 (and some other lower numbers) is present in /lib/firmware, if that helps).  I have also installed the Linux 4.14.9 kernel in an attempt to get things to work, but this did not resolve the issue either.  Further information  root@ThinkPad-E570:~# modinfo iwlwifi | grep 8265 firmware:       iwlwifi-8265-34.ucode root@ThinkPad-E570:~# rfkill list all 0: tpacpi_bluetooth_sw: Bluetooth     Soft blocked: no     Hard blocked: no 1: hci0: Bluetooth     Soft blocked: no     Hard blocked: no root@ThinkPad-E570:~# dmesg | grep iwl root@ThinkPad-E570:~# lspci -nnk | grep 0280 -A3 05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c821]     Subsystem: Lenovo Device [17aa:c024]   Update  I just noticed that the laptop does not have an Intel wireless chip at all, but in fact has a Realtek one... which means that the  of the shop I bought this laptop at were not accurate... Sigh. Same problem stands, however, just with a crappier wireless chip.


Does somebody know how can I use Wingdings symbol ?  This code doesn't work :  \documentclass{article} \usepackage{fontspec} \newfontfamily\wingdingsfont{Wingdings} \newcommand\wingdings[1]{{\wingdingsfont\symbol{#1}}} \usepackage{fonttable}  \begin{document} \wingdings{40} 123-4567-8900  \fonttable{Wingdings} \end{document}


How can I replace spaces with new lines on an input like:  /path/to/file /path/to/file2 /path/to/file3 /path/to/file4 /path/to/file5 etc...  To obtain the following:  /path/to/file /path/to/file2 /path/to/file3 /path/to/file4 /path/to/file5   Note  I'm posting this question to help other users, it was not easy to find a useful answer on UNIX SE until I started to type this question. After that I found the following:  Related question


Is it OK to use the amount of with countable nouns? I have come across the usage of it with people, but I am confused whether to use it with countables.   What about the proportion of? How different is it from the amount of and the number of ?  Thank you in advance for the answer.


In/after hours. What preposition to use?

In/after 3 hours I will go to work.   I will have to go to work after 3 hours from now.


Question about theta of $T(n)=4T(n/5)+n$


Minimum number of characters to change is problematic

I wanted to suggest an edit for  given to , but it was denied because "Edits must be at least 6 characters."  However, given the edit I was suggesting is very important to the syntax of the solution, I think it is relevant even though it contains only 3 characters. See the answer posted by knittl and notice the variable $value is used as both function input and in the foreach loop. I simply suggested changing the function parameter's name to $values in the 3 locations it is used, but was denied, leaving the post incorrect.  Note: I do realize I could have suggested an entirely different variable name thus allowing the edit, but similar situations have arisen in the past where a simple fix of just a few characters make a significant difference. After all, Stack Overflow is a coding website and syntax is very important.


What is the difference between Deep Neural Network(DNN) and Artificial Neural Network (ANN)?

This question basically focus on working of ANN and DNN. I really want to know, as both ANN and DNN may have multiple layer and also increase the number of hidden neuron. so, why DNN works better than ANN?


Ubuntu 14.10 install boots on my pc, but not any others

So recently I decided I'd start learning Linux, having 10+ years experience with Windows and feeling quite competent with that OS. I got a 500gb external HDD, formatted it etc with Rufus and created a persistent, bootable USB installation of Ubuntu 14.04 (I later upgraded it to 14.10). This has worked great with my workstation PC, have not had any issues whatsoever and have been in love with the snappiness of Linux. However, when I try to boot that same working installation on pretty much any other computer (tried it with two lab computers at my office as well as my laptop) I get an "Operating system not found" error. I would love some advice as to how to get this install bootable on other PCs as I intend on using it to diagnose and clean Windows installations that are not in a workable state.


I've attempted to install utorrent on 14.04 using the Terminal and attempting to install libssl 0.9.8, but with no success. Also, this utorrent version is V3.3 and is located in my Downloads. I've already attempted the post which mine was a dupe of ( )


Combinatorial proof that $(n-r){n+r-1 \choose r}{n \choose r} = n{n+r-1 \choose 2r}{2r \choose r}$.  Typically to combinatorially prove something we need to show that the LHS indeed counts the same thing as the RHS. I am having trouble doing so. One thing I noticed is that on the LHS, we are choosing from a total of $(n-r)+(n+r-1)+(n) = 3n-1$, but on the right we chose from $2n+3r-1$. This is likely no problem at all, but it is still roadblock for me.  Any tips or hints on how to approach this problem are appreciated


Why do digital cameras not have an iso rating?

With conventional cameras your camera had a maximum shutter speed ( typically 1600 ), and the film you used had an ISO speed rating at which it was meant to be able to get a proper exposure under "normal" lighting conditions.  Essentially this was a way of rating the sensitivity of the film.  While you can push a given film to a higher than rated speed, unless you have lots of light, the quality of the picture is going to suffer due to being underexposed.  Why do digital cameras not seem to be given an ISO rating?  It looks like the manufacturers are trying to misrepresent the maximum shutter speed as an ISO rating and make ludicrous claims with very high numbers for the sake of specsmanship, but trying to use those high speeds invariably results in terrible, underexposed pictures ( due to the very small dynamic range that has to be highly amplified to get anything at all ).  One manufacturer could have a terrible sensor but push the maximum shutter speed to 100,000, and you're not really going to be able to use anything more than 200 in lower light conditions, while another could only have a maximum shutter speed of 3200, but you can actually use it at 1600 in low light and not get underexposed pictures.  How can you tell the difference?


What is the next number in the sequence?

What is the next number in the sequence ?  1 1 1 2 1 1 2 1 1 1 1 1 2 2 1 3 1 2 2 1 1 1 3 1 1 2 2 1


Similar questions pane travels through bottom footer

When typing a question and "similar questions" appears, it travels over the bottom footer (from Software Engineering):    On MSE a similar problem exists with the "How to Format" toolbar, though it appears the transparency is different for the background:    It seems this should not do this at all as it's pretty ugly appearance wise. And rather Clippy like, to be honest.  Using Chrome, with a resolution of 1080x960.


How to add more partitions to Existing partitioned Table

I have a Big table Which is having monthly Partitions From 01-2013 to 12-2016, I have not created partitions after December 2016.  SQL Server is using Last partition to Insert the data from December,2016.   Can someone help:   Which is the best way to Extend the Partition and move the data of Last partition into Separate Partitions month wise? Create more partitions for future use?   I have a Clustered Index and 3 Non Clustered Index on the Table.  Thanks in advance.


how to transform non-normal data for downstream statistical analyses

I have a dataset that look at the effect on photosynthesis and respiration. When i checked to see if the data looks normal or not, i find that for both the variables the distributio is non-normal. In case of photosynthesis it is obvious because of the effect of difference light. But however for respiration this is not the case and may be because of some outliers. My question now is how to deal with this non-normality of data for both the variables before doing statistical analyses (regression, anova, mixed effect model etc)


Comparing java.util.date to java.sql.date unsucessfully

I am writing this section of code to compare a query to the database with the current date in order to tell if a student is already checked into class. I can cast them both to string and they look identical but they are different in some way at a byte level and the if statement is still returning false.  What can be done?  Also this does not work.  java.sql.Date date = new Date();   It gives an error that is why I tried changing the format to .sql.Date with the first 2 lines.  It did not help but I left it in there to show what I have tried.  here is the code  public boolean checkTodaysAttendance(int ID){     //date stuff     java.util.Date date = new java.util.Date();     java.sql.Date sqlDate = new java.sql.Date(date.getTime());      //System.out.println(sqlDate);     boolean attend = false;     try {         PreparedStatement statement = con.prepareStatement("SELECT Date FROM attendance WHERE ID="+ID);         rs1 = statement.executeQuery();         while(rs1.next()) {             //System.out.println(rs1.getDate("Date"));             if (rs1.getDate("Date").toString().trim(). == sqlDate.toString().trim()) { //my problem is on this line                 attend = true;                 //string don't equal at a byte level             }         }      }catch(Exception ex){         System.out.println(ex);     }     //System.out.println(attend);     return attend; }


Taxonomy terms follow/unfollow module (even for anonymous users)

I want a subscriptions/notifications like module which works for anonymous users too.   Users should be able to subscribe to a taxonomy term, and then be alerted if content is created for that term.   Subscriptions work great but the lack of support for an anonymous user is quite disappointing. I don't get why we can't send a verification mail for any anonyomous user based subscription.  Any Drupal Module which does that?


If nonnegative $f: [0,1] \rightarrow \mathbb{R}$ has a continuous $f''$, then $\int_0^1 \Big| \frac{f''(x)}{f(x)} \Big| \,dx >4$

Assume that $f: [0,1] \rightarrow \mathbb{R}$ has a continuous $f''$ and $f$ is positive on the interval $(0,1)$ and $0$ at the endpoints.    I want to prove that $$\int_0^1 \Big| \frac{f''(x)}{f(x)} \Big| \,dx >4. $$  I could not make any progress. Since the unit interval is compact, we know that the continuity of $f, f'$ and $f''$ are uniform and they attain their maximum and minimum values. Moreover, I tried to apply the Mean Value Theorem but I failed.


Sufficient set of features for distinguishing items

My input is a set of objects having different values with respect to a set of features (F1, F2, F3, F4, F5). The output should be a set of minimal features allowing to distinguish all these objects or if not possible, the features that distinguishes most of these objects.    Fo example, F1 distinguishes objects 4 (value of 2) and 5 (value of 11) from the rest of objects. We need to distinguish obj1, obj2 and obj3. F2 distinguishes Obj2 (value of 4) from the obj1 (value of 6) and Obj3 (value of 6). After combining both features F1 and F2, we can distinguish obj4, obj 5, obj4. I need an additional feature that allows to distinguish obj1 from obj3. F4 would do the job, since obj1 (value of 9) and obj 3 (value of 10). Our set allowing to distinguish all objects is then F1, F2, F4. Note that F6 is useless since it does not help distinguish our objects.  Is there a way to obtain this set of features that allows to distinguish all objects, knowing that I have more than 500 features and more than 500 objects.   Thanks in advance for your help.


Where should I store images which I want to keep on MySQL Database?

I am designing a table in which I need images to get stored for every row. Should I upload the images to a folder on google-drive and then store the shareable link or should I store the images locally in a folder ? If stored locally , what address should I store in the Table ?


How do you explain cubic growth of a function

When reading scientific papers I have seen people explain the growth of a variable linearly, exponentially. However how would one say for a variable which grows in quadratic fashion, or cubic?  I don't remember reading something like: "y grows cubically with x"  Can I say, y grows cubically with x?  What would be the proper way to explain cubic or quadratic growth of a variable as a function of another one?  How would you explain the given lines:


By looking at the sheer number of residents on Gallifrey (as shown in The Day of the Doctor), we see both men women and several children.   How do(/did) the Time Lords reproduce? Is there any explanation about it?


How to pass a OUT String parameter to a function?

How to pass a OUT String parameter to a function ? something like   public static Address getFromLocation (OUT string ErrorMsg) { ... }   If some errors are found in the getFromLocation then the function will update the ErrorMsg that i can use later.  If it's not possible, how in my example, can i retrieve the errorMsg ?