Notification panel doesnt like Careers 2.0

Ever since I have received a , clicking on the notifications icon* from within the app crashes it.  I cannot open the notifications panel at all now.  Version: 0.1.26  UPDATE: It seems to have been resolved in 0.1.27 as the notification panel is opening now.  *Since there seems to be some confusion, I meant clicking on the notifications icon and not the specific careers notification as mentioned in the previous question.


Prove that $G$ is an abelian group given the following automorphism of $G$

Let $G$ be a finite group, and let $  |\{g\in G\  | \phi(g)=g^{-1}\} |> 3/4 |G|$ where $\phi$ is an automorphism of $G$ then $G$ is abelian? I tried to prove that $\phi (g)=g^{-1} $ for all $g\in G $ but could not prove it. After this is proved I can prove that the group is abelian. Am I in the right direction? Any help is appreciated.


Accumulation points of $ \{x_n \in \mathbb{R}, n \in \mathbb{N} \ \ | \ x_n = n\sin(n) \}$?

A younger student asked me:  What are accumulation points of the following set?  $$ \{x_n \in \mathbb{R}, n \in \mathbb{N} \ \ | \ x_n = n\sin(n) \}$$  I really can't answer this question, could anyone help me?


What's a good word for a person, or a state, when a person is constantly waiting for life to get good, but does nothing to actually make it happen

I've written a song about people who constantly wait for something good to happen to them and am looking for a word to describe this state/paradox/condition.   The song is about people who expect life to get better for no reason, talk about moving to a bigger city or a different place as if that would magically make them rich, famous and happy, and keep talking about how they are going to do this or that, but never do it. I was under the impression that there's a psychological term for this state, but can't google it up, so I probably made it up.  This is essentially a song about myself, I keep talking about how I love to make music, or shoot videos, but I never actually produce anything, yet it's the only thing I can think of. When it comes to the moment to take action – I just stay at home watching tv shows.  I know it's a broad question and list of topics, but I guess I'm looking for a word that describes this state – of doing NOTHING.


An integer $k$ is a generator of group $\mathbb{Z_n}$ if and only if $\gcd(k, n)=1$

An integer $k$ is a generator of the group $\mathbb{Z_n}$ if and only if $\gcd(k, n)=1$. So $\langle k\rangle=\mathbb{Z_n}$ iff $\gcd(k,n) = 1$. Is there any general way to prove this? I see that it's so obvious but can't find a general way to prove it.


Let $\mathcal{E}$ be an arbitrary collection of subsets of a set $X$, let $A$ be a nonempty subset of $X$, and let $$ \mathcal{E}\cap A:=\{E\cap A:E\in \mathcal{E}\}. $$ Show that the $\sigma$-algebra $\sigma_A(\mathcal{E}\cap A)$ on $A$ generated by $\mathcal{E}\cap A$ is equal to $\sigma_X(\mathcal{E})\cap A$, where $\sigma_X(\mathcal{E})$ is the $\sigma$-algebra on $X$ generated by $\mathcal{E}$.


How to take photos of large groups (over 100 people)?

I recently had been called to take a photo of a 100+ group. The photos were taken inside with some bright lighting. Subjects were sitting in 4 rows of a choir seats. There were fluorescent and flood light overhead. I also brought three flashes with me and set two on the sides pointed upwards into white ceiling and one on the camera body.   I was using Nikon D90 with 18-200mm Nikon lens. The pictures were taken at 22mm. This was my first time taking pictures of such large group. I never done anything more than 40 people in one shot. Basically the pictures came out really bad. The focus on the sides of the photo is just awful. The color of the photo is ok, but could be better.  In my defense I had no time to prepare. The friend called me late evening to take pictures next morning. Anyway, my question is what could I have done better in this situation? How does one take pictures of such large groups?


Java - Null Pointer Exception while parsing XML file

I'm trying to parse an XML file of employees, and with the data in the XML I want to create an array list of all of the employees, but when I run the program and try to parse the XML file, it gives me a Null Point Exception. This is my XML file:  <?xml version="1.0"?> <employees>     <employee>         <name>Roberta Robertson</name>         <manager>false</manager>     </employee>     <employee>         <name>Taylor Meyers</name>         <manager>true</manager>     </employee>     <employee>         <name>John Mayer</name>         <manager>true</manager>     </employee> </employees>   This is my code for parsing the XML file. I call the method when I press a certain button in my GUI.  public class employeesParser { private DocumentBuilder builder; private XPath path;  private void employeesParser()         throws ParserConfigurationException {      // create the documentbuiler and path     DocumentBuilderFactory dbfactory                  = DocumentBuilderFactory.newInstance();     builder = dbfactory.newDocumentBuilder();     XPathFactory xpfactory = XPathFactory.newInstance();     path = xpfactory.newXPath(); }  // read the file public ArrayList<Employee> loadEmployees(String fileName)     throws SAXException, IOException, XPathExpressionException {     //parsing the file      File f = new File(fileName);     Document doc = builder.parse(f);      //reading the file, extracting the employees, add employees to ArrayList     int employeeCount = Integer.parseInt(path.evaluate(         "count(/employees/employee)", doc));      for (int i = 1; i <= employeeCount; i++)     {         String employeeName = path.evaluate(         "/employees/employee[" + i + "]/name", doc);         boolean managerStatus = Boolean.parseBoolean(path.evaluate(                 "employees/employee[" + i + "]/manager", doc));         Employee employee = new Employee(employeeName, managerStatus);         employeeList.add(employee);     }      return employeeList;      } }   This is where I call the method:  private void addEmployeeXMLActionPerformed(java.awt.event.ActionEvent evt) {                                                    // TODO add your handling code here:     try {         employeesParser parser = new employeesParser();         employeeList = parser.loadEmployees("employees.xml");     }     catch (SAXException|IOException|XPathExpressionException e) {     } }               According to the exception message, the error occurs at this line of code:      Document doc = builder.parse(f);   which is found in my loadEmployees() method. Can anyone tell me what I'm doing wrong? I've used code very similar to this before and it has worked. Thanks a lot!


How can I set an environment variable which contains newline characters?

I'm trying to set an RSA key as an environment variable which, as a text file, contains newline characters.  Whenever I attempt to read from the file and pass it into an environment variable, it will just stop at the newline character on the first line. How can I prevent this?


How to find the transfer function F(w) for this circuit?

Hi,  My book on analogue circuits has this question and I have been stuck  at it for the past three days or so. I am supposed to figure out the transfer function for the network as well as the cutoff frequency and the angle. I am just having hard times figuring out how to solve it. I tried nodal analysis and the two poles theory but I get a different result every time.  Here are the values for resistors and capacitor: R1=R3=4.7KOHM, R2=10KHOM and C=4.7 nF


@RestResource(urlMapping='/v/restAPIKeyGeneration/*')  global with sharing class APIforKeyGeneration{      global class Account{        public String sname;        public String bp;     }      @HttpPost     global static String CallTo(Account[] account,String sourceSystemID){         system.debug('sourceSystemID');         system.debug('rtrtr');         return 'key' ;     } }   Guys, please help me,how to test this in postman,I used below to pass array but I also have to pass String   {     "account": [{         "sName": "REST Account"      }, {         "sName": "REST Account"      }] }


A faithful ideal in a Noetherian ring is a regular ideal

Recall that an ideal $I$ of a commutative ring with identity $R$ is called regular if it contains a regular element. An element of $R\setminus Z(R)$ is said to be regular, where $Z(R)$ denotes the set of zero divisors of $R$. Also, an ideal $I$ is faithful if $(0):I=(0)$.     There is a well-known fact that: In a Noetherian ring, every faithful ideal is regular. But I can't prove it.


Let $f(x) = x^3-5$. Let $L/\mathbb{Q}$ be the splitting field of $f$ over $\mathbb{Q}$. Compute $[L:\mathbb{Q}]$ and find the Galois group $G = \text{Aut}_{\mathbb{Q}}(L)$.  My current thought is since every $L/\mathbb{Q}$ is separable and since $L/\mathbb{Q}$ is the splitting field of $f$ over $\mathbb{Q}$, $L/\mathbb{Q}$ is Galois. By solving the roots of $f(x)$, I can see $L=\mathbb{Q}(\omega, \sqrt{3}[5])$. However, I don't know how to proceed from here.


here is a picture of the shape i would like to make in blender i have no clue how to even begin making it. what i want to know is how to make this shape in blender so i can use it for a project im doing. i tried adding a cylinder but then i could not figure out how to get the cylinder to be cut in half.


How can I change the Biblatex options `maxcitenames` and `mincitenames` temporarily in the text?

For a certain part of my document, I'd like to change the maxcitenames and mincitenames options of Biblatex. Afterwards, I'd like these options to go back to their default values.  I've dug around in the Biblatex manual and I think I'd like to use a command like \AtEveryCite. However, it's specified in the manual that this command only can be used in the preamble.    Update:  I have the following macro defined elsewhere:  % For creating \nparencite which create a parencite output without the parantheses. \DeclareCiteCommand{\nparencite}   {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2       \finalandcomma\fi\addspace\&\space}%    \usebibmacro{cite:init}%    \usebibmacro{prenote}}   {\usebibmacro{citeindex}%    \usebibmacro{cite}}   {}   {\usebibmacro{postnote}%    \usebibmacro{cite:post}}   I didn't write it myself, so I have no understanding of the logic behind it.  In  answer to another question, @David Puron defines a new macro where he messes around with parameters similar to those that I need to mess around with. Maybe if I could somehow incorporate his solution into my code?


I have my model and in the info bar its show this   May I need to know how many polygons it has, but  there is no option to find polygons. Verts, Edge and Faces nothing polygon option there. In the website its say that the upload limit is 400,000 polygons. I did not get over that limit or how many polygons my model has?


Java HashMap, hashCode() equals() - how to be consistent with multiple keys?

I have an ID class. It refers to identification for a unique person. There are two forms of ID. Username and user number. If either username matches or user number matches, the ID's refer to the same person. I want to use the ID class as a key in a hashmap for looking up persons. I overrided the equals method to make it clear that if two ID's are equal, that means they refer to the same person. I am under the presumption that I need to override the hashCode() method because I want a hashmap of < key: ID, value: Person >. But I don't know how. How do I make the ID class an acceptable key for my HashMap?  public final class ID {      // These are all unique values. No 2 people can have the same username or id value.     final String username_;     final long idNumber_;      public ID(String username, Byte[] MACaddress, long idNumber) {     username_ = username;     idNumber_ = idNumber;     }      /**      * Checks to see if the values match.       * If either username or idNumber matches, then both ID's refer to the same person.      */     public boolean equals(Object o) {     if (!(o instanceof ID)) {         return false;     }     ID other = (ID) o;     if (this.username_ != null && other.username_ != null) {         if (this.username_.equals(other.username_)) {             return true;         }     }     if (this.idNumber_ > 0 && other.idNumber_ > 0) {         if(this.idNumber_ == other.idNumber_) {             return true;         }     }     return false;     } }   Followup: What if I wanted to add a third field for unique social security number? How would that change my person lookup hashmap and the ID class?  Note that the Wikipedia page for hashCode says:   The general contract for overridden implementations of this method is that they behave in a way consistent with the same object's equals() method: that a given object must consistently report the same hash value (unless it is changed so that the new version is no longer considered "equal" to the old), and that two objects which equals() says are equal must report the same hash value.   Update  Best solution thus far: Make a separate HashMap for each immutable unique identifier and then wrap all the HashMaps in a wrapper object.


I am quite new with Ubuntu and I am not that good with computers at all. I had Windows 7, however due to some problems I didn't like that operational system because of that I decided to install Ubuntu.  My problem is: before installing Ubuntu via USB drive, it gives a chance to the program to be tested through it. However, by mistake, I started the installation of the operational system without giving any directory. As you all know Windows has two partitions "C" - where the system is written and "D" - the hard driver. By begging the installation my entire information and the drivers "C" and "D" were deleted. Furthermore  at the moment instead of showing "C" and "D" it shows up one partition with the entire memory of the computer.  At that point by stopping the installation of Ubuntu, the computer does not have any operational system only the BIOS (which i am not quite sure what it is). Furthermore the computer is running at the moment by using the Ubuntu operational system installed on the USB. Since it happen me that accident there was nothing over-saved on the computer.   My question is: Could it be restored the partition "D" (as a partition) or at least the data within that partition?  If you are going to ask me did I made a backup on some external hard, the answer is "no". Because of that please if some one knows how to restore the lost data to help me. I do believe is still possible to be saved. If you have any further questions please do not hesitate to ask.


Why index REBUILD does not reduce index fragmentatation?

I have used ALTER INDEX REBUILD to remove index fragmentation. In some cases REBUILD does not seem to remove this fragmentation. What are the reasons why REBUILD does not remove fragmentation? It seems that this happens especially with small indices.


Cant access NFS share with non-root user

I have mounted an NFS network share successfully using Webmin.  The share seems to be mounted correctly and working correctly.  If I login as root I can browse the share just fine.  However, I cannot seem to give another user access to read/write to this network share.  When I look at the permissions I can see that it is owned by root and the group crontab can use the share.    $ ls -las  4 drwxr-xr-x   3 root root    4096 Nov 11 23:35 . 4 drwxr-xr-x  23 root root    4096 Nov 11 23:35 .. 8 drwxrwx---+ 23 root crontab 4096 Feb 15  2013 private   So just to test thing out, I added crontab to my user scott.  $ groups  scott adm cdrom sudo dip plugdev crontab lpadmin sambashare   however I still can't access the share.  $ cd private/  -bash: cd: private/: Permission denied   Any ideas?


Additions of large integers in JavaScript

I met a very weird situation in JavaScript, which is that  9007199254740992 + 1 = 9007199254740992 9007199254740992 + 3 = 9007199254740996   Does anyone know the reason for this? Thanks a lot in advance!


Name the reputations and abilities to it

I’m asking this because, I want to know how many reputations I need to get a rank, and if there is the ultimate rank? And, can you name to every rank each ability for it? Like for example, I want to become a moderator and I need at to have 10.000 reputations and the ability for this are “this” and “this”. Can you name them including the reputations and abilities for each rank?


texMaker Mac Spell Checking not working before \parencite

more like a "Bug"-Report, but maybe anyone knows a good workaround?  I use latest texMaker on Mac, with biblatex and using \parencite{}. It seems the spellchecking ignores everything before the \parencite{}.  See example Image, marked text gets ignored and after \parentcite{} it works.    EDIT: Thanks for the quick response! Here are some more minimal tests.    Texmaker 5.0.2  Packages:  \usepackage[english]{babel} \usepackage[latin1]{inputenc} \usepackage[]{multicol} \usepackage[nameinlink,noabbrev, english]{cleveref} \usepackage{blindtext}   and a few PDF Packages, if needed I can give full list.  Cheers Hannes


How to display ToC without the dots and the page numbers?

I need to print a lightweight version of my ToC : without the dots and without the page index numbers. I've already tried with tocloft package and so on, but nothing works.  How can I achieve that ?  I'm using the report document class.  Thanks


Related to this question:   $E=mc^2$ - energy equals mass. So, if an object has gravitational potential energy relative to another object, it should have additional mass to represent that extra energy.  So, if I have an apple in my hand, it should have quite a large amount of gravitational potential energy relative to a black hole at the edge of the observable universe. I did a quick calculation of how much this gravitational potential energy would be (using Newton's Law of Gravitation) and it came out to be the equivalent of around 500 tons (and that's just for one black hole!).  So, why does my apple not weigh a lot more than it appears to?  EDIT: Here's my calculation of the GPE:  Assumptions:   The apple has mass $m_a=0.3 kg$ The black hole has a mass equal to 1000 solar masses, $m_b=2\times10^{33} kg$ Distance between the apple and black hole is 60 billion light years   Obviously $GPE=mgh$ can't be used, because the gravitational acceleration is not constant and varies with distance, so it has to be integrated.  I used Newton's Law of Gravitation to provide the acceleration:  $$ F=\frac{G{m_1}{m_2}}{h^2} $$  A small change in height produces a small change in energy, which can be used to integrate:  $$ \begin{eqnarray*} \delta E&=&F \delta h\\ \int_0^EdE&=&G{m_a}{m_b}\int_1^R\frac{1}{h^2}dh \end{eqnarray*} $$  I'm integrating the force starting at 1m from the center of the black hole, as the force goes to infinity at $h=0$. It's a little crude, but it should provide a conservative estimate.  $$ \begin{eqnarray*} E&=&G{m_a}{m_b}(1-\frac{1}{R})\\ E&\approx& G{m_a}{m_b}\;\;\;\;\;\;(R>>1)\\ G&=&6.673\times 10^{-11}\;\;N(\frac{m}{kg})^2\\ G{m_a}{m_b}&=&4\times 10^{22}\;\;Nm\\ E&=&mc^2\\ \Delta m&=&\frac{4\times 10^{22}}{(3\times 10^8)^2}\\ &\approx&444,000\;\;kg \end{eqnarray*} $$  So, a little short of 500 tons, but still pretty big!


I bought a bag of frozen blueberries 4 days ago. They have been out of the fridge for 2 days. They look good and there is no mold. Are they still good to use?


How can I avoid the battery charging when connected via USB?

I'm using my Samsung Galaxy S2 for development so I regularly plug it while it's not fully charged, and my phone starts charging over USB. I think this (charging while in use) can affect battery life (is that correct)? Is there any way to avoid charging while the phone is on and connected via USB?


What happens to a creature that changes size inside of Otiluke's Resilient Sphere?

If one was to reduce a creature, making them smaller and then casting Otiluke's  around them, what would happen when reduce has ended?  Would the creature get crushed by the sphere due to becoming big again, or would the sphere enlarge itself? If they would take damage, how much and what type?


Adding 0 after number and after decimal using javascript

I have a requirement where I should allow 0 after number and decimal number  Is there a way that I can let the user to show the number in $1.0 in this way and decimal number like $1.5 in $1.50 using JavaScript.  I tried this but it did not help me  addZero: function (q)     {         alert(q);         //var a = ("0" + q).slice(-2);         return q;     }   But I don't know how to add 0 after number and after decimal number using JavaScript.


Title bar settings missing in GNOME Tweaks on Ubuntu 20.04

I tried to move my "close, minimise and maximise" to the right + add the macOS theme to it. However, I have not been able to find any settings for that. In GNOME Tweaks > Windows the settings to put the buttons to the right are missing completely.


A person who wastes money could be called a ____. I saw this article that made me want this word, I can't believe governments are spending like 100x consumer price per unit.  Government workers are professional ______s.  I have considered "splurgers", but that seems more like throwing money around, and doesn't have strong enough connotations of being wasteful. Maybe a synonym for prodigal? It feels weird to me to use prodigal as a noun, even though it can be one. But I would definitely associate the word I want with a rich son showing off his wealth, like playboy style. Like the Batman Begins scene where Bruce Wayne rolls up to the hotel in his million-dollar car with his foreign escorts, and then buys the hotel so carelessly because he got told off that his escorts were bathing in the water fountain centrepiece. I want a word that means, this is a person who spends lots of money, without caring at all about whether they are getting appropriate value for it. They expend no effort at all in fighting for a fair price or doing market research, they are happy to let themselves get conned, they don't care at all if they're being charged thousands of times production costs, they waste money like whatever.


Find $n^{th}$ term of $\frac23,\frac35,\frac58,\frac8{13}\dots$

$$\frac23,\frac35,\frac58,\frac8{13},\frac{13}{21},\frac{21}{34},\frac{34}{55},\ldots$$  You would be able to find here a pattern that the denominator of previous term gets new term numerator and new term denominator gets the sum of numerator and denominator of previous term


How do you access the DLC content in Hollow Knight?

What are the steps to access each DLC content in Hollow Knight?


Why is the inclusion of the tensor product of the duals into the dual of the tensor product not an isomorphism?

Let $V$ and $W$ be vector spaces (say over the reals). There is a linear injection $V^* \otimes W^* \to (V \otimes W)^*$ which sends $\sum_i f_i \otimes g_i \in V^* \otimes W^*$ to the unique functional in $(V \otimes W)^*$ sending $v \otimes w \mapsto \sum_i f_i(v) \cdot g_i(w)$ for all $(v,w) \in V \times W$. In the finite dimensional case it is easy to see this is an isomorphism by comparing dimensions on both sides. I'm aware that this is not an isomorphism in the infinite-dimensional case (see Relation with the dual space in the  on tensor products) but I must admit that I'm not sure why. Cardinal arithmetic does not seem help here and, even if it did, I would be much happier to see an explicit example of a functional in $(V \otimes W)^*$ outside the range of this map. I'm having trouble cooking one up myself.  Added: Let me elaborate on my comment about cardinal arithmetic. Suppose that $X$ and $Y$ are infinite dimensional vector spaces over a field $k$. I'm confident that $\dim (X \otimes Y) = \dim X \cdot \dim Y$ holds. It is clear that $|X^*| = |k|^{\dim X}$ since we may identify a functional on $X$ with a function from a basis for $X$ to $k$. Also I think I've convinced myself that if $\dim X \geq |k|$ then in fact $|X| = \dim X$ ie. the cardinality and dimension of a vector space agree when the dimension is larger than the cardinality of the ground field. Consequently, assuming say that $|k| \leq \dim X \leq \dim Y$ it seems we have $$ \dim(X \otimes Y)^* = |k|^{ \dim X \cdot \dim Y} = |k|^{ \dim Y} = \dim Y^* = \dim X^* \cdot \dim Y^* = \dim (X^* \otimes Y^*)$$  which implies that in fact $(X \otimes Y)^*$ and $X^* \otimes Y^*$ are isomorphic but, rather frustratingly, the obvious map does not do the job. Did I make a mistake here? If not, is it generally true (ie without making assumptions about $|k|$) that there exists some isomorphism $(X \otimes Y)^* \to X^* \otimes Y^*$?


Steam/Ubuntu help - broken packages/unmet dependencies - can't upgrade

I've posted the same thing in Ubuntu Forums and Steam community but not found a solution. sudo apt update followed by sudo apt upgrade leads to the following: Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies. steam:i386 : Conflicts: steam-launcher but 1:1.0.0.64 is to be installed Conflicts: steam-launcher:i386 steam-devices : Conflicts: steam-launcher but 1:1.0.0.64 is to be installed Conflicts: steam-launcher:i386 E: Broken packages   I don't know if there's any connection between the two, but software updater works perfectly fine. Steam also updates upon launch as per usual. When I run sudo apt update I'm told there are 22 packages with requiring upgrades so I'm hopeful of finding a fix. I've also run: sudo apt-get install unattended-upgrades sudo dpkg-reconfigure unattended-upgrades  But nothing happened. Thanks in advance. *Version info - Ubuntu 20.04 LTS and Steam API: v020 Package versions: 1591251555


How prove this integral inequality $\int_{0}^{1}(f(x)+g(x))dx\ge\int_{0}^{1}f(g(x))dx$?

let two function $f(x),g(x):[0,1]\to [0,1]$ are Continuous function,and $f(x)$ strictly monotone increasing, show that $$\int_{0}^{1}(f(x)+g(x))dx\ge\int_{0}^{1}f(g(x))dx$$  I am not comfortable with compositions and don't have any idea on how to deal with the problem. Any help will be appreciated. Thanks! This problem is from analysis problem book excises by Min hui xie (This book exsice problem it is very hard)


My laptop screen is fairly small and gedit's side panel won't go smaller than about 400 px. It is a little exasperating because I can't have any other windows visible if I want to use anything in the sidebar, because it crowds out my document.  Is there a setting someplace that I can fiddle to make it smaller?  I've looked everywhere I can think of for it!    I can drag it down to the width you see below, but I can't drag it any farther than that.


Differences between "in order to", "so that" and "so as to"?

Are there any differences (general or regional differences) between "in order to", "so that" and "so as to"?  I've seen that they may be interchangeable, but I'm not so sure.


What's the significance of neutrino oscillations?

I read some about neutrino oscillations and flavour changing between three types of neutrinos. The question is, what is the significance of that observation? So far, we did not expect them to oscillate and change the flavour. But we do now. Are there any aspects that have changed in physics?


select value between particular date and time schedule

I have database "raj" with table "pagination"  In table pagination have "id", "actualtime" and "created" field  id - auto_increment actualtime- varchar created- datetime  that looks like this CREATE TABLE pagination(     id int auto_increment,     actualtime varchar(55),     created datetime )  I want to display all rows which are created on todays date and will display from today upto yesterday at 06:00 pm.  after that the content will be refreshed based on based on a DATETIME field called 'created' that holds the date and time of each record's creation.  this is my query to fetch rows but it display value after 06:00 pm on yesterday but i want to display all data before 06:00 pm from currentdate.  After 06:00 pm data will be refreshed and clear. plz help me......  SELECT actualtime  FROM pagination  WHERE created BETWEEN date_add(date_sub(curdate(), INTERVAL 1 day), INTERVAL 18 hour) AND curdate()";


I have a GFCI outlet in my powder room that needs to be replaced.  Is it significantly more difficult to replace a GFCI than an ordinary outlet?


How to correctly install Compiz on Xfce 4?

As I understand, Compiz can be installed as the compositing-manager on various desktop environments. I am using Ubuntu Studio 15.10 with Xfce 4.12 and I want to install Compiz in its basic configuration just to use simple fading, shadows and maybe the infamous Cube workspace-switcher, however I would like the visuals of my windows to stay as they are.  So far, I have only found old tutorials on how to install Compiz on Xfce that are sometimes dated multiple years back and often involve adding additional PPAs or plugins and applications that I do not want to use or can not understand the use of.  Is it possible to just install and use the Compiz version from the Ubuntu Software Center to get what I am looking for? Or will I still need some additional software to make it compatible to Xfce?  It would be great if someone could explain a current way of installing just the basic Compiz functionality or point to an up-to-date website which explains this.   [Edit]: I tried the installation myself and found out what is necessary to set up in the process. If you need a guide, please refer to the answer I posted blow.


My apologies if this is a basic question. In Latex, is it possible to set text in a triangular shape, as was often done at the end of chapters in Early Modern typography? I imagine it would be easy for a package to do. For an example of what I'd like to do, see this page from the Book of Common Prayer:


I have been using a P&S camera (Nikon Coolpix 4600) for about 5 years now. I usually take pictures at family events and at my outdoor trips. I got hooked onto photography once I started getting nice words from people who see those.  I have been reading about terminologies related to cameras (DSLR) and lenses. Though I'm quite happy with my camera, I got really excited once I saw got a chance to use my friends' high-end Canon P&S. I was amazed at how advance P&S's have become.  I would now like to upgrade my camera. My confusion is whether to go for a DSLR or to select a high-end P&S. Since I have already used a Nikon, I'm leaning towards the same brand. I have a budget constraint also. Atleast till I get a pay rise, which will not happen for another year, I do not want to go beyond $450.  I have two models in mind at this point. One is the P100, which is a P&S and fits my budget. The other one is the D3100,which is a DSLR that doesn't fit my budget. But the capabilities of DSLR are luring me towards buying  this, stretching my budget a bit. I do not have any contacts at my place where I can trust for getting a used one. I also have apprehensions about maintaining the lenses and the body properly. I live in Chennai, India which is quite humid. It may sound silly but I'm more concerned about the maintanence of the camera and lens.  Should I jump and buy a DSLR or go for a high-end P&S learn the tricks more thoroughly and then do it?


Prevent the insertion of figure after the footnote

How can I prohibit putting figure after the footnote? I have pretty simple LaTeX code that has a lot of figure environments, and I see the figure is inserted after the footnote.   \documentclass[10pt, onepage]{article}  \usepackage{graphics,graphicx} \usepackage{hyperref}  ... dependent code\footnote{You should use at least JRE 1.5 or later, but I highly recommend using JRE 1.6 or later}, you can safely use the JRE 1.5 or later.   \begin{figure} \centering \includegraphics[width=0.5\textwidth]{pic_install/4_configure_build_path.png} \caption{Configuration menu} \label{fig:config_build} \end{figure}


How can I send a shapefile to an SQL Server table?   I have searched and found a tool called  but I am developing a c# Windows application so I am looking for an Open Source solution.


What is the biological/evolutionary advantage to baldness?

Male pattern baldness is a common genetic trait. With a distinctive pattern/ density gradent (as apposed to general old age thinning as the body ages)  Hair has an advantage of protection from the sun/weather. So to lose it in a distinctive pattern (and lose that advantage) appears to have a reason*; and as it is a genetic trait, it seems like it would have been something that was selected for (or it would be more likely to be selected out). So why is it better to develop pattern baldness as someone gets older?  So what might be the biological/evolutionary advantage to developing baldness?  Traits get selected for good and bad reasons(in retrospect), however I am interested in the reason why this particular trait has been selected.  * Lets assume that there is a specific cause (causes) and it is not just a leftover evolutionary artifact.    The related question:  provides some interesting background, but doesn't specifically address the What causes in this question.


How do I get My ipad out of the vertical position

somehow I locked my ipad into the vertical position.  How do I get out of this??


The ability to link cross-site duplicates

Some questions might be asked on three different sites, each site needing three different answers. For example, a question about a text editor.  So perhaps there should be a way to link the questions on the three different sites. Adding a link manually in the questions is certainly possible, but perhaps a feature officially supporting this will be beneficial.


What does this question about dense subsets mean?

What does this question mean?  Let  $(X,d)$ be a metric space. which of the following is possible? (A) $X$ has exactly $3$ dense subsets (B) $X$ has exactly $4$ dense subsets (C) $X$ has exactly $5$ dense subsets (D) $X$ has exactly $6$ dense subsets


How do you add a counter to a list comprehension?

I'm trying to re-write the following in a list comprehension, but I'm struggling to add the counter in:  create_list = []     counter = 0     for x in my_list:         create_list.append(f(x+counter))         counter += 1   I've tried:  create_list = [f(x+counter) for x in my_list] but obviously this doesn't increase the counter.


Link created to `nodejs` with `node` not working

I'm creating 3 VM's. I set up the first two with nodejs/npm but am having problems with the third. (Note: I realize cloning would have been far more expedient, but that's outside of scope of question.)  In the third, I've installed nodejs and npm using the sudo apt-get install method for each. After installing both I ran sudo ln -s /usr/bin/nodejs /usr/bin/node to link node to nodejs. Unfortunately, after performing this node fails to work; node -v returns nothing while nodejs -v returns v0.10.25.  Any leads as to what error was made or how to resolve? I've tried both unlinking and removing and recreating /usr/bin/node multiple times.  Note: Similar problem listed here (), but mine is different enough to support a new topic, I believe.


How to upgrade ubuntu server 10.04 to 12.04

I have to upgrade Ubuntu server 10.04 to 12.04.  10.04 is not supported any more. So what step I have to do, for a clean upgrade?  I did the following steps:  sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list  sudo apt-get update && sudo apt-get dist-upgrade  sudo apt-get update  sudo do-release-upgrade   After some time, the upgrade is aborting: ...Restoring original system state  root@vupapzimbra01:~# sudo apt-get install update-manager-core Reading package lists... Done Building dependency tree Reading state information... Done update-manager-core is already the newest version. The following packages were automatically installed and are no longer required:   linux-headers-2.6.32-41-server linux-headers-2.6.32-41 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@vupapzimbra01:~#   root@vupapzimbra01:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 10.04.4 LTS Release:        10.04 Codename:       lucid  Get:51 http://us.archive.ubuntu.com precise/restricted Translation-en [2395 B] Get:52 http://us.archive.ubuntu.com precise/universe Translation-en [3341 kB] Fetched 19.9 MB in 6s (1873 kB/s)  Checking package manager Reading package lists... Done Building dependency tree Reading state information... Done Building data structures... Done  Calculating the changes  Calculating the changes  Error authenticating some packages  It was not possible to authenticate some packages. This may be a transient network problem. You may want to try again later. See below for a list of unauthenticated packages.  accountsservice apparmor . . wpasupplicant xkb-data   Restoring original system state  Aborting Reading package lists... Done Building dependency tree Reading state information... Done Building data structures... Done  === Command detached from window (Thu May  4 09:20:53 2017) === === Command terminated with exit status 1 (Thu May  4 09:20:53 2017) ===


Question of $u\in L^p(U)$ does not have a trace on $\partial U$.

Let $U$ be bounded, with $C^1$ boundary. Show that a "typical" function $u\in L^p(U)$ does not have a trace on $\partial U$. More precisely, prove that does not exist a bounded linear operator $$T:L^p(U) \to L^p( \partial U)$$ such that $Tu=u|_{\partial U}$ whenever $u \in C(\overline U) \cap L^p(U)$.  I have seen other questions about this problem. However, the hint I was given is first that the open set is a unit ball.  But I have no idea about how to do it, Can anyone give me some further hint or answer? Thanks!


Generate data if parameters for population are known

I know the mean and standard deviation of a population, and its minimum and maximum value.  How can I generate each data value from those parameters (using R) with the assumption that the data is normally distributed?  "rnorm" function in R can generate the data but it can not reflect the exact mean and standard deviation. Also, the data generated can be outside of the range between minimum and maximum value.


Error when using DejaVu Serif and Sylfaen fonts for Armenian language

I am trying to use Armenian language in Latex. I have read from  that I can use following commands to have Armenian font:  \usepackage{fontspec} \setmainfont{DejaVu Serif}   or  \usepackage{fontspec} \setmainfont{Sylfaen}   My document class is \documentclass[12pt, a4paper]{report}.  But I am getting following errors when compiling either with XeLatex or LuaTex:    The same for Xelatex    Log :     ! Undefined control sequence.     <argument> \LaTeX3 error:                                 Erroneous variable \c__fontspec_shape_n_n_tl used!     l.3806 \emfontdeclare{ \emshape, \eminnershape }  The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.  ! Undefined control sequence. <argument> \LaTeX3 error:                             Erroneous variable \c__fontspec_shape_n_it_tl used! l.3806 \emfontdeclare{ \emshape, \eminnershape }  The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.  ! Undefined control sequence. <argument> \LaTeX3 error:                             Erroneous variable \c__fontspec_shape_it_n_tl used! l.3806 \emfontdeclare{ \emshape, \eminnershape }  The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.   I have simple code I have the same error either writing in Armenian or English letters:  \documentclass[12pt, a4paper]{report} \usepackage{fontspec} \setmainfont{Sylfaen} \begin{document} Some Text Ինչ-որ բան \end{document}   Thanks,in advance.


Normalizer of UNIPOTENT Group in the General Linear Group

I know that this question has been asked already. But I am unable to understand the solution and hence I am trying another way. I am interested in computing the normalizer of Upper Triangular Matrices with diagonal entries $1$ in $GL_n(\mathbb{F}_p)$. Denote the subgroup of upper triangular matrices with diagonal matrices $1$ by $\mathbb{U}$ So I want to compute the following $\{M \in GL_n(\mathbb{F}_p) : M\mathbb{U}       M^{-1} \in \mathbb{U}\}$ So I am looking for elements $M$ such that $M(1+N_1)=(1+N_2)M$ where $N_i$ are the strictly upper triangular matrices. Thus we have $MU_1M^{-1}=U_2$. The restriction is that $U_1$ and $U_2$ are strictly upper triangular matrices. I wonder if I can conclude that M must be an upper triangular matrix from here? Because upper triangular matrices are closed under multiplication and since eigenvalues of $U_1$ are $0$, then $U_2$ is upper triangular and since eigenvalues are $0$ which follows by matrix simmilarity, it is strictly upper triangular I am sure that the answer will be the set of upper triangular matrices as they satisfy the condition $MU_1M^{-1}=U_2$. Any solutions following this way is appreciated.


When should a singular word ending in "y" end in "ies" plurally?

Words like "sky" and "money" have "ies" as a plural suffix (i.e. "skies" and "monies") but other words like "monkey" and "Emmy" do not ("monkeys" and "Emmys"). Is there a rule dictating the use of "ies"?


Canadian overstayed a US visit by one year what is the penality and when can he return to the US?

A Canadian was recently denied a weekend visit from Toronto to NY due to two previous overstays for about a year.   What is the the penalty for this overstay? How does he correct this so the next planned weekend doesn't get denied?


How does mirror reflect light (according to quantum mechanics)?

We all know that light is reflected from mirror but my question is that what happens at Quantum level when the process of reflection is happening?  does the photon first get absorbed and then re-emmited from surface of mirror or is the photon just bounce from the surface?


I was not able to save the file. How do I save the file? I ran:   vim /etc/apache2/sites-available/laravel.example.com.conf


How to use C# to sanitize input on an html page?

Is there a library or acceptable method for sanitizing the input to an html page?  In this case I have a form with just a name, phone number, and email address.    Code must be C#.  For example:  "<script src='bobs.js'>John Doe</script>" should become "John Doe"


Apply a Material just to the part of an object that was edited by a boolean modifier

I am want to apply a material just to the faces of an object that were edited by a boolean modifier set to subtract.     A would be one material and B would be another. I am also doing this in a animation, so the subtraction object is changing on every frame.


Displaying time and date next to part of the ping output

#!/bin/bash ping -c 1 8.8.8.8 | awk '{print $7}' date   So for the code above, I want it to display the date and time in this format below  Tue May 5 11:11:11 UTC 2020  time=0.838 ms   So far it prints this output  data. time=1.24 packet Tue May  5 23:31:33 UTC 2020   I want time=1.24 next to the UTC 2020


this code segment is an alteration to a question in the oca 7 study guide. dealing with array and arrayList. I am trying to wrap my head around how the object Box b1 is altered by the go method.  class Box {     int size;     Box (int s){size = s;} }  public class Laser {      public static void main(String[] args) {         Box b1 = new Box(5);         System.out.println("this is b1 at line 20" + " = " +b1.size);         Box[] ba = go(b1, new Box(6));         System.out.println("this is b1 at line 22" + " = " +b1.size);         ba[0] = b1;         for(Box b : ba) System.out.print(b.size + " ");     }     static Box [] go(Box b3, Box b4){         b3.size=4;         Box[] ma = {b4,b3};         return ma;    }  }   The output is   this is b1 at line 20 = 5  this is b1 at line 22 = 4  4 4  I expected the output to be  this is b1 at line 20 = 5  this is b1 at line 22 = 5  5 4


Why does water always take an already travelled path?

I asked this question because I want a 'physics' answer. Now let me clarify the question. Assume that we let a drop of water fall on a flat surface. It should theoretically stay still. Now let the surface be inclined at an angle. The water droplet now goes on a path. Now repeat the steps and the same path will be observed. Why?


My div elements are not completely centered. (They look like they are but are not.)

I am making my own login page. Just an HTML style for now.   As you might be able to see, via the jsfiddle below, the file I made is slightly off center. I want to completely center everything both vertically and horizontally.  Here is the JsFiddle,   Here is the source code,  <!DOCTYPE html>          <title>Login</title>     <meta charset="UTF-8">     <link rel="stylesheet" type="text/css" href="main.css">     <link href="https://fonts.googleapis.com/css?family=Raleway:100" rel="stylesheet">          <link href="https://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet">     <link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">

  Login       <input type="text" name="" class="username" placeholder="Username">     <input type="password" name="" class="password" placeholder="Password">       <class>     <button class="btn" onclick="myFunction()">Login</button>         <input type="submit" value="Create" class="btn2"/>              </class>

         And here is the CSS:  body, html  {   background:     linear-gradient(27deg, #151515 5px, transparent 5px) 0 5px,     linear-gradient(207deg, #151515 5px, transparent 5px) 10px 0px,     linear-gradient(27deg, #222 5px, transparent 5px) 0px 10px,     linear-gradient(207deg, #222 5px, transparent 5px) 10px 5px,     linear-gradient(90deg, #1b1b1b 10px, transparent 10px),     linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);   background-color: #131313;   background-size: 20px 20px;    overflow-x: hidden;   overflow-y: hidden; }  .username {   display: block;   margin: 0 auto;   background: #333;   color: #ccc;   width: 150px;   padding: 6px 15px 6px 5px;   transition: 500ms all ease;   border: 1px solid #333;   margin-bottom: 10px;   text-align: center;   vertical-align: middle; }  .username:hover {   box-shadow: 0px 0px 4px #000; }  .password {   padding-top: 3;   text-align: center;   display: block;   margin: 0 auto;   background: #333;   color: #ccc;   width: 150px;   padding: 6px 15px 6px 5px;   transition: 500ms all ease;   border: 1px solid #333; }  .password:hover {   box-shadow: 0px 0px 4px #000; }  .LoginBox {   top: 40%;   left: 50%;   margin: -100px 0 0 -150px;   position: fixed;   padding-top: 50 auto;   width: 300px;   height: 300px;   padding: 25px;   background-color: firebrick;   z-index: -3;   box-shadow: 0px 0px 9px #000;   display: flex;   align-items: center;   justify-content: center; }  .Login {   display: block;   width: 100%;   text-align: center;   font-size: 30px;   font-family: 'Roboto Condensed', sans-serif;   color: #FFF;   margin-bottom: 1em;   border-bottom: 2px solid #ccc; }  .btn {     margin-top: 3em;     top 70%;     width: 70px;     height: 30px;     background-color: #333;     border: none;     color: #ccc;     cursor: pointer;     margin-right: 2em; } .btn:hover {     box-shadow: 0px 0px 4px #000; } .btn:active {     box-shadow: 0px 0px 5px #000; } .btn:focus {outline:none;} .btn2 {     margin-top: 3em;     top 70%;     width: 70px;     height: 30px;     background-color: #ccc;     border: none;     color: #333;     cursor: pointer; } .btn2:hover {     box-shadow: 0px 0px 4px #000; } .btn2:active {     box-shadow: 0px 0px 5px #000; }


If $f \neq 0$ there exist $x_0$ with $|f(x_0)| < |f'(x_0)|$

I am facing the following problem.      Let $f$ be a continuous and derivable function from $[0, 1]$ to $R$,   such that $f(0) = 0$. Show that if $f \neq 0$ then there exist $x_0$   such that $|f'(x_0)| > |f(x_0)|$,   I have been thinking for a while on this problem but I have no idea how to demonstrate it. Can someone provide a hint?


To prove the $(\Bbb R , +)$ is isomorphic to $(\Bbb C , +)$ without using metric space?

Firstly, I want to show $(\Bbb R , +)$ is isomorphic to $\Bbb R^2$ (under component wise addition).  In this I used the mapping  $\phi_1$ :  $\Bbb R^2 \rightarrow \Bbb R$  Where,  $\phi_1(a,b) = 2^a3^b$  And then , show $\Bbb R^2$ is isomorphic to $(\Bbb C , +)$.  In this I used the mapping   $\phi_2$ : $\Bbb R^2 \rightarrow \Bbb C$  Where,   $\phi_2(a,b) = a+ib$  And then, use the transitive property of isomorphic groups to show  $(\Bbb R , +)$  is isomorphic to  $(\Bbb C , +)$  Now ,my doubts are that, whether the mappings i used are correct or not. Does this mappings makes the two groups isomorphic?  Please,  correct me wherever I am wrong?  Edit: I see that $\phi_1$ is not bijective. So , their is no way to prove ,$\phi_1$ :  $\Bbb R^2 \rightarrow \Bbb R$   is an isomorphism by just defining a mapping or without using the concept of metric space!


Why does DMM show AC and DC current when source is a battery? (How to calculate power in this case?)

The circuit is an altered Joule Thief of my design that is driven by an AA or AAA battery. I’m observing the current at the battery anode with my DMM in series. (Extech EX330) This circuit is extremely efficient (In relation to other Joule Thief I've build.) and does some weird stuff - like, it needs a pushbutton sometimes.    Measurements: It is drawing 9.21 mA DC and 6.48 mA AC in series with the battery. It shows 1.364 VDC and 0.010 VAC in parallel with the battery. Output on the LED is 2.572 VDC and 0.011 VAC with no measurable frequency. (with my DMM at least) All measurements are taken with the same configuration and voltage.    But how is it drawing AC and DC and how do I calculate power consumption? --> Could it be because the emitter pin of the NPN is directly connected to ground? --> Or is the circuit just "switching on and off"?     Download schematic:  (I tried to simulate the circuit in LTspice. Thanks for making me aware of this amazing program, Sredni Vashtar!)     What the pushbutton is used for: The pushbutton is used to "kickstart" the oscillation when it wont start by itself. For example: I have to manually "oscillate" using this button to start the circuit if the capacitor is too big and battery voltage is low. Pushing the button releases the energy in the transformer into the capacitor. If it reaches LED forward voltage the circuit keeps oscillating on it's own. It does work without manual intervention when then capacitor in parallel with the LED is not too big, like <5000 µF, and it's a fresh battery.    . Thank you for your answers! I'm learning so much! :D


how to redirect every request form user to local host

How to trap traffic going to 202.20.20.20 (the website ip/ any dynamic input of website from user) and redirect to localhost.


Use a greek personal font as a second font, the first one is the classic tex one

I need to write a tex file in french. But in this tex file, there will be also many characters in greek and I want to use a personal font for these ones. How could I do ?


What is the probability that a random walk starting at 0 will reach +2 in 2 steps, 3 step, 4 steps, etc.?

The random walk I am referring to is a symmetric, unbiased, 1D random walk.  In an answer given in the link below, the probabilities are given for S1, but I am trying to find out what it is for S2, and the more general case (Sn).


I am new to MySQL. I know that ROW_NUMBER() OVER (PARTITION) will not work in MySQL. I want to convert the code from SQL Server to MySQL:  SELECT  *,      ROW_NUMBER() OVER (         Partition By X.TPID,originTLA, destinationTLA           ORDER BY packageStartDate,totalPackageSavingsPct desc     ) AS ttl_perct_rnk  FROM TABLE   I want to convert this code to MySQL.  In Most of the cases the requirement to find rank is based on a single column. But here we have to find rank based on three columns. It is easy to find rank based on single column. But I am not sure how can we implement the rank based on three column or multiple columns.


What is the relativistic mass of one photon, i.e. what is $N$ here: $10^{-N}$ kg?


Should it be 'Globally recognised' or 'Recognised globally'? I think it should be globally recognised following the rule of- Adverb before verb- but am not sure. Also, should it be 'beautifully drawn' or 'drawn beautiflly'?


How to install package from newer distribution?

I have Ubuntu 10 server and want to update a package to newer version (update rrdtool from 1.3.8 to current 1.4.5). What should I do? Download and build sources or get package from newer distribution? And how to do that?


I have this code:  var object1 = {same:'test'} var object2 = {same:'test'};        console.log(object1 === object2)   It returns false in the console.   I also have this code:  var object1 = {same:'test'} var object2 = object1; console.log(object1 === object2)     It returns true in the console.  I know '===' is an equality operator, but I don't know how it works on objects.  Why does the first example return false?


I have this string and trying get phone number: +420 731 58 34 12.  How I can do this using php ?
Studio Diana
Lidická 25
Brno, 602 00
Tel.: +420 731 58 34 12
E-mail: diana@studio-diana.cz
http://www.studio-diana.cz
&nbsp;
Otevírací doba:
Po-Čt: 8:00–18:00&nbsp;
Pá: 8:00–15:00


Better method to measure the time period of a pendulum

My physics textbook states that in measuring the time period of a pendulum it is advised to measure the time between consecutive passage though the mean position in the same direction. This results in better accuracy than measuring time between consecutive passage through an extreme position.  Why is one method of finding the time period better than the other? How can this affect the accuracy of the final result? I think it shouldn't make any difference, as the time taken for one full oscillation is independent of the choice of the start/end point. Is the statement in the book really correct?


I'm a new Star Trek fan and I want to watch all the television series and the movies, but I don't know in what order the movies go. Please help. Thank you!


Isospin conservation for total isospin or third component of isospin?

In a strong interaction, is the total isospin or just its third component conserved? Or are they both conserved?


If $MM^{'}$ is positive definite, $M$ is invertible?

Supposing I have a square real matrix M. If $MM^{T}$ is positive definite,  is $M$ invertible?  I came up with the proof $MM^{T}=M\times I \times M^{T}$, that is equal to say $MM^{T}$ is congruent to an identity matrix, where $M$ is the transformation matrix. However, I couldn't prove why $M$ should be non-degenerating.  Can anyone gives me a hint on this?  Thanks a lot.


prove $a c^{-1} \equiv b d^{-1} \bmod m$

if $a \equiv b \bmod m$ and $c \equiv d \bmod m$ and $gcd(c,m) = 1$ prove that $a c^{-1} \equiv b d^{-1} \bmod m$ .


Internal drive says read only file system

I have an internal hard drive formatted as NTFS as a shared storage space between Linux and Microsoft with a duel boot setup, but Linux says is a read only file system and refuses to let me use it.  Being root makes no difference. I can read the contents, but nothing else.


Is it possible to be both a relative max/min and an inflection point?

Can anyone find a function $f$ with an $x$ such that $f'(x)=0$, $f(x)$ is either a relative max/min and $(x,f(x))$ is an inflection point? In other words, suppose you're using the second derivative test, see that $f''(x)=0$ and then note that it's actually an inflection point. Can you conclude that $(x,f(x))$ is not a relative extremum?  It's easy to find an example where $f''(x)=0$ and there is an extremum--take $f(x)=x^4$, but in that case, there isn't actually an inflection point at 0.  I'm certainly open to the possibility that an inflection point can never be an extremum, though it seems like something I ought to have discovered by now, were it true.


Finding the largest gap between the x coordinates of all points on an elliptic curve

Till now all we know is Hasse's theorem, which states that $|\#E(p)-(p+1)| \leq 2\sqrt{p}$, where $\#E(p)$ is the total number of points in $E_p(a,b)$.  Is there any other theorem which defines relation between points on elliptic curve $E_p(a,b)$ ?  I want to find the maximum interval of $x$ co-ordinates between two successive elliptic curve points. For example let us consider the elliptic curve $y^2=x^3+x+1$ mod $5$. This has $8$ points in total. These are $(0,1),(0.4),(2,1),(2,4),(3,1),(3,4),(4,2),(4,3)$. The maximum interval of $x$ co-ordinates in this curve is between $0$ and $2$. I need a generic solution to find the maximum interval of $x$ co-ordinates given $E_p(a,b)$.


In my introductory Analysis course, we learned two definitions of continuity. $(1)$ A function $f:E \to \mathbb{C}$ is continuous at $a$ if every sequence $(z_n) \in E$ such that $z_n \to a$ satisfies $f(z_n) \to f(a)$. $(2)$ A function $f:E \to \mathbb{C}$ is continuous at $a$ if $\forall \varepsilon>0, \exists \delta >0:\forall z \in E, |z-a|<\delta \implies |f(z)-f(a)|<\varepsilon$. The implication $(2)\implies(1)$ is trivial (though I will happily post a proof if there is sufficient interest).  The proof of the implication $(1)\implies(2)$ is worth remarking on, though. Proof that $(1)\implies(2)$: Suppose on the contrary that $\exists \varepsilon>0:\forall \delta>0, \exists z \in E:\left (|z-a|<\delta \; \mathrm{and} \; |f(z)-f(a)|\ge \varepsilon\right )$.  Let $A_n$ be the set $\{z\in E:|z-a|<\frac{1}{n} \; \mathrm{ and }\; |f(z)-f(a)|\ge\varepsilon\}$.  Now use the Axiom of Choice to construct a sequence $(z_n)$ with $z_n \in A_n \; \forall n \in \mathbb{N}$.  But now $a-\frac{1}{n}<z_n<a+\frac{1}{n}\; \forall n \in \mathbb{N}$ so $z_n \to a$.  So $f(z_n) \to f(a)$.  But $|f(z_n)-f(a)|\ge\varepsilon\; \forall n \in \mathbb{N}$, which is a contradiction. You will have noticed that the above proof uses the Axiom of Choice (the lecturer didn't explicitly spell out the dependence, but it's definitely there).  My question is: is it possible to prove that $(1) \implies (2)$ without using the Axiom of Choice.  I strongly suspect that it isn't.  In that case, can anyone prove that we have to use the Axiom of Choice?  I can think of three ways to do this: (A) Show that $\left( (1) \implies (2)\right)\implies \mathrm{AC}$.  I suspect that this statement is untrue. This is definitely untrue, as Arthur points out, because I only used the axiom of countable choice, which is strictly weaker than AC. (B) Show that $(1)\implies (2)$ is equivalent to some other statement known to require the Axiom of Choice (the obvious example being the well-ordering of the real numbers). (C) Construct or show the existence of a model of ZF in which there exist sequences which satisfy $(1)$ but not $(2)$. Of course, if anyone can think of another way, I would be very interested to hear about it. One final note - I am aware that very many theorems in Analysis use the Axiom of Choice in one way or another, and that this is just one example of such a theorem.  If there exists a model of ZF like the one described in (C), is the study of Analysis in that model interesting?


How can one convert rational matrices into integer ones?

Let $G$ be a finite subgroup of $GL_n(\Bbb{Q})$. I want to show the existence of a matrix $A\in GL_n(\Bbb{Q})$ with the property that $AGA^{-1} \subseteq M_n(\Bbb{Z})$.


Makefile do not reevaluate variable with every call

It seems like Make does not persist the value of a variable but instead re-evaluates it every time you call it. For example:  I have a Makefile where I define a variable MY_VAR as the first twelve digits of a hashed version of the current date. I have three targets target_1, target_2 and target_3 that:   echo $(MY_VAR) once echo $(MY_VAR) twice call target_1 and target_2   When I run make target_3, I expect the same hash to be printed three times. But instead, I get something like:  >>> make target_3 017af0c6483b 9873732118e7 7c78d1e4ba89   Here the complete Makefile:  MY_VAR=$(shell date +%s%N | sha1sum | cut -c1-12)  target_1:     @echo $(MY_VAR)  target_2:     @echo $(MY_VAR)     @echo $(MY_VAR)  target_3: target_1 target_2   What's the best way for persisting the value of a variable in Make, instead of re-evaluating? My current work around is that I write the first hash code into a file.


In 3D view i often find myself getting the perfect spot for the camera ,but Crtl alt 0 always ruins it,it always changes the view a lot,and trying to get the same angle by moving camera is also impossible and incredibly time conssuming.  How do i convert PERFECTLY any current view into an active camera?It's no big deal if it changes resolution(once again,align camera to current view is not what i am looking for since it do not replicate exactly the current view)


Append the code number's line for java.util.logging.Logger

I was looking for how to log the code line number for the class java.util.logging.Logger. In fact, I used to log my code using log4j that prints the line number that writes in the console. To use java.util.logging.Logger, I'm using this code:  Logger logger = Logger.getLogger(getClass().getName());   then:  logger.info("Hello, It's some log!");   Thanks


I'm writing some text for the website of my hosting company and I simply cannot figure this one out.  I currently have the following sentence:     We provide reliable hosting for creative professionals and X   I am very confused about X. I need a term for the following:     those who want their own website but do not have a creative professional hired, but rather handle everything on their own   Naturally, I cannot say:     We provide reliable hosting for creative professionals and non-technical people   Any help anyone?  My question is not a duplicate as the context is completely different. Normally this would not be a problem however in this case the term we're looking for is completely different than those already answered in the other question.


The correct expression of the Euler-Lagrange equation in Field Theory

In Field Theory I have always seen the Euler-Lagrange equation written as $$ \dfrac{\delta\mathcal{L}}{\delta \phi_s}-\partial_\mu\dfrac{\delta\mathcal{L}}{\delta\partial_\mu\phi_s}=0 $$ My doubt is about the partial derivative that appears in the second addend. Do I have to "interpret" this partial derivative as a total derivative? Let's suppose that Lagrangian density doesn't depend on $x$ directly, so $\mathcal{L}=\mathcal{L}(\phi_s,\partial\phi_s)$, where $\phi_s$ and $\partial\phi_s$ depend on $x$ of course. If I compute the functional variation of $\mathcal{L}$ with respect to $\partial\phi_s$, I do not have any reason to suppose that the result depend on $x$ directly, that is $$ \dfrac{\delta \mathcal{L}(\phi_s,\partial\phi_s)}{\delta\partial\phi_s}=G(\phi_s,\partial\phi_s) $$ Then, if I compute the partial derivative of $G$ with respect to $x^\mu$, the result should be $0$, while the total derivative of $G$ with respect to $x^\mu$ should be what I really want in the E-L equation $$ \partial_\mu\dfrac{\delta \mathcal{L}(\phi_s,\partial\phi_s)}{\delta\partial_\mu\phi_s}=\partial_\mu G(\phi_s,\partial\phi_s)=0\\ \dfrac{d}{dx^\mu}\dfrac{\delta \mathcal{L}(\phi_s,\partial\phi_s)}{\delta\partial_\mu\phi_s}=\dfrac{d}{dx^\mu}G(\phi_s,\partial\phi_s)=\dfrac{\delta G}{\delta \phi_s}\partial_\mu\phi_s+\dfrac{\delta G}{\delta\partial_\nu\phi_s}\partial_\mu\partial_\nu\phi_s $$ Example: Let's consider the Lagrangian density $$ {\mathcal L} = {1 \over 2} \partial_{\mu} \phi \partial^{\mu} \phi - {1 \over 2} m^2 \phi^2 $$ Using E-L equation I get $$ \dfrac{\delta\mathcal{L}}{\delta\phi}=-m^2\phi\\ \dfrac{\delta \mathcal{L}}{\delta \partial_\mu\phi}=\partial^\mu\phi=\eta^{\mu\nu}\partial_\nu\phi\equiv G(\phi,\partial\phi)$$ So formally if I compute $\partial_\mu G=0$, while I can get the result that I want (Klein-Gordon equation) if I compute $$ \dfrac{d G}{dx^\mu}=\dfrac{d}{dx^\mu}(\eta^{\mu\nu}\partial_\nu\phi)=\dfrac{\delta G}{\delta\partial_\alpha\phi}\partial_\mu\partial_\alpha\phi=\eta^{\mu\nu}\delta_\nu^\alpha\partial_\mu\partial_\alpha\phi=\partial_\mu\partial^\mu\phi $$ Is this correct? If it is, then why is it often used the partial derivative symbol, which leads to some misunderstanding (for example in the demonstration of the E-L equation you use the "partial derivative" as an actual partial derivative [i.e. if the Lagrangian density doesn't have a direct dependency on $x$, you say that this "partial derivative" on $\mathcal{L}$ is $0$] but at the end it appears in the final equation and, if my reasoning is correct, it is not an actual partial derivative)?


differentiation under the integral sign $\int_{0}^{\pi}\ln\left(1-2r\cos x +r^2 \right)dx$

Using differentiation with respect to the parameter,show that for $|r|<1$  $$\mathbf{F}(r)=\int_{0}^{\pi}\ln\left(1-2r\cos x +r^2 \right)dx =0$$  my attempt is $$\mathbf{F}'(r)=\int_{0}^{\pi}{-2\cos x + 2r \over1-2r\cos x +r^2}dx$$  let $u=\tan{x \over2}$ then $\cos x = {1-u^2 \over 1+u^2} $ and $dx={2du \over 1+u^2}$  Now  $$\mathbf{F}'(r)=\int_{0}^{\infty}{-2{1-u^2 \over 1+u^2} + 2r \over1-2r{1-u^2 \over 1+u^2} +r^2}{2du \over 1+u^2}$$ $$\mathbf{F}'(r)= 4\int_{0}^{\infty}{r+ru^2+u^2-1 \over 1+u^2-2r+2ru^2+r^2}{du \over 1+u^2}$$ but I do not know how to continue, I tried with partial fractions but it becomes too tedious.


I want a linked duplicate to keep form change but have separate material

My goal is to have two meshes that deform together as linked duplicate, but that each have it's own material. I tried to make single user material only but it does not work. It just makes both meshes to have the same new material. Either I manage to have both form and material being linked, or both unlinked.


TikZ arrow emanating from node at an angle for a distance

How do I draw a line of length l and at an angle of a from a circular node N in TikZ?


Find the supremum of the following set:  $$A:=\left\{{(n-1)\over(2n+3)} : n \in\mathbb{N}\right\}$$  So I have as my answer that $\sup(A) = \frac12$ but need to justify. We were taught to justify in two steps, first show our answer is an upper bound for the set then show it is a least upper bound.   For step $1$: if $a$ is a member of $A$ then $a = (n-1)/(2n+3)$ for some natural number $n$ and $\frac{n-1}{2n+3} \leq \frac{n}{2n} = \frac12$ so $\frac12$ is an upper bound for the set  Step 2 is where I am uncertain. I think I need to show that for any $y<\frac12$ there exists a member of the set between $y$ and $\frac12$ but not sure how to do this. Thanks for all the answers so far!


Cartesian product of finite sets can't be countably infinite

The problem is:  Show, assuming AC, that any Cartesian product of ﬁnite sets is either ﬁnite  or uncountable (can’t be countably inﬁnite).  My thought is: Finite product of finite sets is finite. This can be readily proved. Countably infinite product of finite sets is uncountable. This can be seen from the infinite sequence of 0 and 1. Uncountable product or with more than two elements is also uncountable. Trivially any Cartesian product of a set with only one element is finite. Then I'm done.  But I didn't use the ac. There should be a formal proof with ac. How to use ac? Please give me a hint.


Safari 12.0 macOS Mojave version 10.14 MacBook Pro (13-inch, 2017, Four Thunderbolt 3 Ports)  AS of today (2/11/2018) characters in Safari are being shown as boxed question marks.  The same websites are displayed perfectly in Firefox.  Emojis are not displayed in Messages main window but in the sidebar they are!  I have tried restore default fonts etc but no difference.  Any help appreciated.


I've been trying to find how the energy-momentum tensor changes if we add a total derivative to the lagrangian: $$L\to L+\mathrm d_\mu X^\mu.\tag{1}$$   From the answer key:  $$T^{\mu\nu}\to T^{\mu\nu}+\partial_\lambda F^{\lambda\mu\nu}\tag{2}$$ Where $$F^{\lambda\mu\nu}=\frac{\partial X^\lambda}{\partial(\partial_\mu\phi)}\partial^\nu\phi -\frac{\partial X^\mu}{\partial(\partial_\lambda\phi)}\partial^\nu\phi.\tag{3}$$ Is the above answer right? I'm not able to get this result! any help?


In ,  she says this at the end of the chorus:   You’re gonna hear me roar   Why did she use the bare infinitive form of the verb roar here instead  of that verb’s ‑ing form?   You’re gonna hear me roaring   In case the context helps, the entire chorus runs like this:     I got the eye of the tiger, a fighter     Dancing through the fire.        Cause I am a champion, and you’re gonna hear me roar     Louder, louder than a lion.      Cause I am a champion, and you’re gonna hear me roar.


I have a reference with a capital roman II in the title.  When I run bibtex the capital roman II shows as ii.  How does on fix this.  Thanks, Peaches


What do empty parentheses () after a function declaration do in javascript?

I'm trying to read the Prototype source. I've come to this part.(Unfortunately, this snippet is in the beginnning).  What does this () mean?    Browser: (function(){     var ua = navigator.userAgent;     var isOpera = Object.prototype.toString.call(window.opera) == '[object Opera]';     return {       IE:             !!window.attachEvent && !isOpera,       Opera:          isOpera,       WebKit:         ua.indexOf('AppleWebKit/') > -1,       Gecko:          ua.indexOf('Gecko') > -1 && ua.indexOf('KHTML') === -1,       MobileSafari:   /Apple.*Mobile.*Safari/.test(ua)     }   })(),   I am referring to the last line before the comma?


How do I split a string with multiple commas and colons in javascript?

How do I split a string with multiple separators in JavaScript? I'm trying to split on both commas and : colon but,  js's split function only supports one separator.  Example :  materialA:125,materialB:150,materialC:175   I want to split both these values into array like  materiaA,materialB,materialC   and second  125,150,175   Or anybody can give me idea how could I multiply these numbers with a constant to get like   materialA:1250, materialB:1500,materialC:1750.


I know the past tense carries the past tense in every dependent clause, but referring specifically to places or to things that are eternal, like the Earth, seems a bit weird and therefore we sometimes (I believe incorrectly) say     He didn't know that New Jersey was actually on the East Coast.   Because it still is. Or     He thought the Earth was round.   So is it square now?  Logically speaking, would you consider the use of past tense here a bit confusing in a day-to-day speech in these examples? Would you instinctively opt for using the present tense?


Find all the filenames in this directory that do not contain 'a' 'b' or 'c' in their name

I am trying to find all the files in my directory that does not contain the letters a,b or c; why does this command not work?  ls *[!abc]*   example:     eg: MATCH: xyz, dkh, file, foo; NOT MATCH: bar, bxc, azi,csk


Recently i started to do some home-made canning. The procedure I use is   Use a pressure cooker to build the jars (cristal ones) for about 10 minutes at 120C. Cook my vegetables (normally tomatoes, garlic, capsicum, eggplant, zuchini) the whole mix surely has a ph over 4.6 which is where the Clostridium botulinum lives. Put the cooked vegatables in the cristal jars (which will still be hot), close them, and put them back into the pressure cooker. Cook the closed jars for 20-25 minutes at 120C   My understanding is that botulism is a very serious disease, the most concerning part is that it does not alter the taste, color or texture of the food.  Currently I consume my canned food within 1 week.  The question is, given that I use 120C degrees when cooking, can I be reasonably safe? Is there a significant risk?   Follow up question: I would like to not only store my cooked vegetables, but also cook them with tofu or chicken and then preserve them using the same procedure, however I have not done so as I know tofu has quite a high PH. Would it be safe to use vegetables + tofu/chicken in the preserves?


How to access an object in another method in C#?

I am trying to access a Player's score and update it when a user answers a correct question? However, when I reference the instantiated object I get an out of scope error. I try to increment the user score within TriviaItem if they get the question correct. Here is my repl.it link:  // Game.cs using static System.Console; using System;  namespace Trivia {   class Game     {       public Game()       {         Setup();         Play();         GameOver();       }        public void Setup()       {         // get player name          Player user = new Player();         user.score = 0;       }        public void Play()       {           // check answer           playerInput = ReadLine();           WriteLine(question.checkAnswer(playerInput));         }       }              public void GameOver(){         // Show total score         WriteLine($"Your score is: ");       }     } }   using static System.Console;  class TriviaItem {   public string Question;   public string Answer;    //overloaded constructor   public TriviaItem(string question, string answer)   {     Question = question;     Answer = answer;   }    // check answer   public string checkAnswer(string userInput)   {     if(this.Answer.ToLower() == userInput.ToLower()) {       user.score++;       return "Correct!!!";     } else {       return $"\nIncorrect :(\n The correct answer is: '{this.Answer}'\n Your answer was: '{userInput}'";     }   }      }  namespace Trivia {     class Player     {         public string name = "Anonymous Person";         public int score = 0;     } }


$-1$ is a quadratic residue modulo $p$ if and only if $p\equiv 1\pmod{4}$

I came across this problem and I believe Lagrange's theorem is the key to its solution.  The question is:     Let $p$ be an odd prime. Prove that there is some integer $x$ such that $x^2 \equiv −1 \pmod p$ if and only if $p \equiv 1 \pmod 4$.   I appreciate any help.  Thanks.


I was trying to install the add-on Blam Master and for any reason was not showing up, and didn't show any action confirming the installation. I try to run it again an this error popped out:  Multiple addons using the same name found! likely a problem with the script search path. (see console details)   Looking at the console nothing shows up... Also, I tried to search for the duplicate file in the Program Files folder, and the AppData folder, but there is no duplicate add-on either.  How can I get rid of the warning? Is there a statement I need to execute in the console? I'm using Windows 10 i7 processor


Securely Storing Oauth Credentials for Apex Callouts

I am again trying to understand what is the best possible option to securely making the apex callouts from a trigger to external application which supports OAuth2. I am not building any application/package here.  I am very new to Salesforce and the integration with external system, so pardon me if I am asking a very lame question. I am kind of stuck not able to understand what is the right choice for my scenario. The end point supports the grant type Client credentials grant_type=client_credentials client_id=clientId client_secret=clientSecret tenant_id=tenant_id resource=resource  As a POC I was able to harcode all the credentials in Apex and I was able to call external system with out any issues. As this not secure I tried exploring the options mentioned   I tried to use the named credentials but found that grant_type client_credentials is not supported as asked in the question  I tried to create the Custom metadata type and stored the credentials like below  but looks like I cannot store the credentials like above as they are not very secure. Read that I could also use a Custom object with the encrypted field also having the FLS to store these credentials and use it APEX Custom settings - I am not sure if I can use the Custom settings as when I tried to create a it I see the warning message where salesforce recommending to use the Custom metadata type   We dont have the platform encryption turned on in our ORg, should we enable that to created the encrypted fields on the Cutom metadta dattype/object/ settings encrypt it and when we reterive in apex should we be decrypting them? Please suggest me what is the best option to use here and also store the access token retrieved so I can use it until it expired.


What font does Annals of Mathematics use for the journal cover?

The Annals of Mathematics is published bimonthly by the Department of Mathematics at  Princeton University. I would like to know what font they use for "ANNALS OF MATHEMATICS" on the cover page. If there isn't an exact one, is there anything similar? :


Over time I end up with a lot of completed reminders, and I haven't found an easy way to delete them out. Right now I have to go into each reminder and delete it - something that is particularly cumbersome on the iPad, but easier on the iPhone.  Is there an easy way to delete completed reminders, or have it do that automatically?


When would you use '@' expression to mute PHP error messages, rather than just debugging the issue?

Curious as to situations you would mask error messages in PHP using the "@" expression instead of fixing the error.


Manually transforming rotated lat/lon to regular lat/lon?

First I should clarify I don't have previous experience with the field, so I don't know the technical terminology. My question is as follows:  I have two weather datasets:    The first one has the regular coordinate system (I don't know if it has an specific name), ranging from -90 to 90 and -180 to 180, and the poles are at latitudes -90 and 90. In the second one, although it should correspond to the same region, I noticed something different: latitude and longitude were not the same, as they have another reference point (in the description is called a rotated grid). Together with the lat/lon pairs, comes the following information: southern pole lat: -35.00, southern pole lon: -15.00, angle: 0.0.    I need to transform the second pair of lon/lat to the first one. It could be as simple as add 35 to the latitudes and 15 to the longitudes, since the angle is 0 and it seems a simple shifting, but I'm not sure.  Edit: The information I have about the coordinates is the following    Apparently, the second coordinate system is defined by a general rotation of the sphere  "One choice for these parameters is:   The geographic latitude in degrees of the southern pole of the coordinate system, thetap for example; The geographic longitude in degrees of the southern pole of the coordinate system, lambdap for example; The angle of rotation in degrees about the new polar axis (measured clockwise when looking from the southern to the northern pole) of the coordinate system, assuming the new axis to have been obtained by first rotating the sphere through lambdap degrees about the geographic polar axis, and then rotating through (90 + thetap) degrees so that the southern pole moved along the (previously rotated) Greenwich meridian."   but still I don't know how to convert this to the first one.


Schadenfreude is the joy or pleasure derived from the misfortunes of others. What is the word for joy or pleasure derived from the happiness of others?


How are the classical and quantum picture of electromagnetic radiation related?

The classical picture of EM radiation is the picture of a wave with electric and magnetic field oscillating perpendicularly to each other and to the direction of propagation. Let us neglect the magnetic field part. The energy carried per unit time by such a wave is proportional to the intensity of the wave which is defined as E^2. Here E is the electric field. Away from the source, E of the EM wave falls off by (1/r) where r is the distance from the source. So the energy carried by the EM radiation falls off by (1/r^2). The quantum picture of EM radiation is the picture of a Photon. The energy of a photon is defined as (h*f) where h is Plank's constant and f is the frequency of the radiation. So the energy of Photon is fixed.   Correspondence If in in classical description, one says that an EM wave has high amplitude or high intensity or high energy then the quantum mechanical way of interpreting is to say that the EM wave has high number of photons. So amplitude/intensity/energy of EM wave corresponds to number of photons.  Question: It is possible that at a point far away from the source, the electric field which falls of as (1/r) will attain a value such that k*(E^2)=h*f. where k is the proportionality constant between energy and intensity of the EM radiation. i.e. the energy of EM radiation will correspond to single photon. What will happen beyond this particular distance r? Beyond this distance E will fall off as (1/r) and energy will fall off as (1/r^2) in the classical picture. But the energy of the photon which only depends on frequency should remain constant (there can be no division or waning of the photon). How then is it possible to have the classical and quantum pictures consistent to each other beyond the distance r ?.


Manually Override Power Settings in Windows 7 with a Group Policy in place

I am using a number of laptops which are connected to a domain which has Power Options put in place as part of the Group Policy. Is there anyway (registry, etc.) to override these settings?  Primarily, I want to change what the power and sleep buttons do, but to have control over the lid is also preferable.   The laptops are running Windows 7 Enterprise 64-bit.


help with a calculus Integration Problem

Let $f : [0; 1] \rightarrow \mathbb{R}$ be a continuous function such that $$\displaystyle \int_0^1 f(x) \,dx=1$$ Show that there exists $c \in [0, 1]$ such that $f(c) = 3c^2$


what Makefile to produce slides and handouts a common file

a handy feature of beamer is to be able to produce slides or a handout. you "just" have to change a line in the source. a known solution is to use 2 different files forthe different options with a common input to the slides, but find this solution non economic.  however, I wished to produce the slides and the handout more naturally using a Makefile.  Is it possible to pass at the command line (for instance to lualatex) an option that can be used by beamer and include that in a Makefile?


Metropolis-Hastings Algorithm for Numerical Integration

I'm attempting to implement a Metropolis-Hastings Algorithm to evaluate integrals of the following form:  $$I =\frac{1}{\sqrt\pi}\int_{-\infty}^{\infty} {f(x)\exp(-x^2)} \text{d}x$$  Now we can rewrite this as:  $$I =\int_{-\infty}^{\infty} {f(x)P(x)} \text{d}x$$  Where:  $$ P(x) =  \mathcal{N}(\mu=0,\,\sigma^{2}=\frac{1}{\sqrt2}) $$  Now I believe we should generate $X^*$ from some density $q(X^*|X_n)$  Generally we use $q(X^*|X_n) \sim \mathcal{N}(X_n,\,\sigma^{2}) $  We accept $X^* \ as\  X_{n+1}$ with probability:  $ \alpha(X^*, X_n)= min(1, \frac{P(X^*)}{P(X)})$  Else  $X_{n+1} = X_n$  So that's how we sample values.   Will the integral then tend towards:  $I \approx \frac{1}{N} \sum f(X_i)$


Collection of numbers always in increasing or decreasing order

Anyone have any ideas on this question? I think you have to use the pigeon hole principle..but I am not sure about that?     The numbers $1,2,3,\ldots,101$ are written down in a row in some order. Is it always possible to cross out $90$ numbers in a way such that all $11$ numbers left will stay either in increasing or decreasing order?


What are the best techniques for photographing overweight people?

I'm not the most lean person on the planet, and many pictures seem to really point this out.  While I wish I was simply in better shape,  it is simply not the case for me or unfortunately, many people.  Are there poses, lighting techniques, focal lengths, etc. that will work better to reduce some of the common overweight features (large stomach, double chin, etc.)?      Update: Ok, so I incorporated a few of the suggestions that I could into a self portrait in the limited space I have.  I didn't have suitable room or patience for a three-quarters shot, so here's just a headshot.  Some of the suggestions really, really made a noticeable difference.      Its a picture of me I actually like! (I pushed the DOF a little shallow though, and the back of my ear is out of focus.)    Second Update:  So here's another shot that takes into account a few more of the suggestions yet (including Jay's suggestion of slightly rotating the light a bit more).  The only thing I think I'd additionally do is make sure to where a higher collared shirt to help hide neck rolls.  Also, I found straightening my back fairly rigidly helped a lot.    And in finale, here's a before picture of how bad it could look. This was taken about 30-40 pounds lighter, by another photographer. (This is a lowres crop, unfortunately.)


Disable “snap” sound when taking pictures?

Is it possible to completely disable the “snap” sound when taking pictures with an iPhone? I find this sound very irritating.


Does Ubuntu work on laptops, and if so, which download do I choose?


Is it possible to use natbib together with the alpha style? It doesn't seem to be supported directly in the natbib package. What I mean is that there is no specific alpha-like natbib style, and if I use alpha directly I lose the possibility of citing author names and such with \citet... Does anybody know of an alpha style that would work with natbib?


I recently upgraded by QGIS from 2.18 to 3.4. Apart from a bunch of issues, I am not able to find the add feature tab. I want to create a set of polygons based on points.  Can someone help me with either letting me know what the issue is or a workaround?


How come a function in a var is not hoisted?

I am currently studying the intricacies of JavaScript with the book "You don't know JavaScript". I have come to understand the fact that vars are hoisted and lets are not. However: if I bind a function to a var, for some reason it is not hoisted. Since I am a teacher I would very much like to really grasp the logic to this language, so can anyone explain to me the logical reason why the code below wouldn't work?  foo();  var foo = function() {     console.log("Foo!"); };   I would expect to be able to call the function, since not only would a regular function expression be allowed to be defined below to calling of that function, but also I am binding it to a var in this instance.  Help would be very much appreciated!


Why is it that $\lim_{h \to 0} \frac{\Delta_h^n}{h^n}=\frac{d^n}{dx^n}$.

In  post there is a faulty derivation of:  $$f''(x)=\lim_{h \to 0} \frac{f(x+2h)-2f(x+h)-f(x)}{h^2} \tag{1}$$  What I would like to do is derive it soundly. Although Taylor series and L'hopitals rule are great for conforming the limit, I don't think they are great for finding the formula from scratch.   I've always noted something about this limit and the other limits for the other derivatives. If we define $\Delta_h$ to map  $f(x) \to f(x+h)-f(x)$. Then it seems as though $\lim_{h \to 0} \frac{\Delta_h^n}{h^n}=\frac{d^n}{dx^n}$. My question is why, and does this provide any insight as to how we may derive $(1)$ from scratch?


Prove that for all positive integer n, the inequality $2n\choose n$ $<4^n$ holds

How do I prove that for all positive integer n, the inequality $2n\choose n$$<4^n$ holds?  Thank you!


Calculate $X_A(x) $ and $m_A(x) $ of a matrix $A\in \mathbb{C}^{n\times n}:a_{ij}=i\cdot j$

Caclulate the characteristic & the minimal polynomial of the matrix:  $$A\in\mathbb C^{n\times n}:a_{ij}=i\cdot j ,\forall i,j=1,..,n$$ $$\text{i.e for $n=3$,  } $$ $$A=\left[\begin{matrix}1 & 2 & 3\\2 & 4 & 6\\3 & 6 & 9\end{matrix}\right]$$  $$\text{I've calculate $X_A(x),m_A(x)$ for the following cases:}$$ $$ \left[\begin{matrix}1 & 2\\2 & 4\end{matrix}\right], \quad \left[\begin{matrix}1 & 2 & 3\\2 & 4 & 6\\3 & 6 & 9\end{matrix}\right], \quad \left[\begin{matrix}1 & 2 & 3 & 4\\2 & 4 & 6 & 8\\3 & 6 & 9 & 12\\4 & 8 & 12 & 16\end{matrix}\right], \quad \left[\begin{matrix}1 & 2 & 3 & 4 & 5\\2 & 4 & 6 & 8 & 10\\3 & 6 & 9 & 12 & 15\\4 & 8 & 12 & 16 & 20\\5 & 10 & 15 & 20 & 25\end{matrix}\right], \quad \left[\begin{matrix}1 & 2 & 3 & 4 & 5 & 6\\2 & 4 & 6 & 8 & 10 & 12\\3 & 6 & 9 & 12 & 15 & 18\\4 & 8 & 12 & 16 & 20 & 24\\5 & 10 & 15 & 20 & 25 & 30\\6 & 12 & 18 & 24 & 30 & 36\end{matrix}\right]$$ $$\xrightarrow{X_A(x)} \left [ x \left(x - 5\right), \quad - x^{2} \left(x - 14\right), \quad x^{3} \left(x - 30\right), \quad - x^{4} \left(x - 55\right), \quad x^{5} \left(x - 91\right)\right ]$$ $$\xrightarrow{m_A(x)} \left [ x \left(x - 5\right), \quad x \left(x - 14\right), \quad x \left(x - 30\right), \quad x \left(x - 55\right), \quad x \left(x - 91\right)\right ]$$  $$\text{Hence, i assumed that if }A\in\mathbb{C}^{n\times n}:$$ $$\fbox{$X_A(x)=(-1)^nx^{n-1}\big( x-\operatorname{tr}(A)\big)$},$$ $$\fbox{$m_A(x)=x\big( x-\operatorname{tr}(A)\big)$} .$$ How can i prove this in general case?  any suggestions?


What is the DC behavior of the switched BJT emitter follower configuration

There is a circuit shown below where we have a sub-circuit I marked in red. I know that it is a source follower with the AC behavior shown below. As you can see the circuit has DC voltage input only. What is the DC behavior of the part I marked with the red arrow?


Would depositing large cash amounts cause problems?

I saw  recently where a man withdrew $600,000 USD in cash from his bank.  I'm sure many folks here would advise against this move for obvious (and perhaps not-so-obvious) reasons.   My question: suppose you did this and then, some months later, changed your mind and wanted to re-deposit with a bank.  I assume the gent cannot simply walk into a bank with $600,000 USD and deposit it, right?  Wouldn't money-laundering alarms be raised?  Wouldn't the IRS like to know where the money came from?


I found a donation machine in a shop.    What does it do apart from take my money, if anything? I noticed it seems to break after a few coins.


What version of Ubuntu is right for my computer?

I want to change operating systems from Windows XP to Ubuntu.   System Info • Microsoft Windows XP Professional 2002 Service Pack 3 • Pentium 4 CPU 2.80GHz • 5GB RAM    What is the best version of Ubuntu to install on my computer?


Is there a merchant that sells the Boar Skin resource?

I'm in need of the Boar Skin resource, and am wondering if I can purchase it from a merchant, and if so which one in particular?  Or do I have to roam the wilds randomly killing boars until one drops this resource?


Given an $n \times n$ matrix $A$ with real entries such that $A^2 = -I$, prove that $\det(A) = 1$.  This question is multi-part, but I happen to be stuck on this one. The previous parts showed: $A$ is nonsingular, $n$ is even, and $A$ has no real eigenvalues.  I know that $\det(A)^2 = 1$ since $A$ has real entries and $n$ is even, but am not sure how to show that $\det(A)$, which can be either $1$ or $-1$, is not $-1$. Does anyone know how to continue from here?


What happens if both players have the ability to pump their creature an unlimited number of times?

Say that both players each had 2 , 2 , and a . (Or any other way to get unlimited mana, and a Nantuko Shade).  Player 1 attacks with his , and player 2 blocks with his . Before damage is assigned, each has chances to pump up their  as much as they want. They can't just declare them to be "infinite," but each can always one-up the other player. What happens?  It seems there would be a loop of events, but would one player eventually be forced to break the loop as per rule 714.3? Is it considered the same game state after each player pumps their creature a bunch as it was before?  This was discussed at length on the Draw3Cards Magic Q&A site (which is no longer available), but no conclusion was reached. Some felt that the game would simply be a draw, others felt that the active player would be forced to make a different decision to break the loop. Others felt that you would just have to call a judge and see what he decides.


If you were staring to the sky in a big city and electricity is turned off in a big area around you, would you be seeing the sky with little light pollution instantly?


How can I define more than one spawn point?

Is it possible to have more than one spawn point (Red and Blue spawn points) in a map I am creating? It might be uploaded to a server, but I'd like to know a server and a client way.


How can I save my hardcore map after I die?

My brother jumped into the voice of the doom in my Hardcore Creative map. I didn't press the ΄΄Delete This World΄΄ button yet.


Is there a way for more then three view name to appear?

Currently I have only three views appear is there a way for all the view names to appear or more then three?


Young's Double Slit Experiment and particle nature

What happens if we really dim down the light in young's double slit experiment? How does the result relates to particle nature of light?


Clarity needed on stackoverflow.blog comments

I'll be honest, yesterday's blog post, , didn't sit well with me. So much so that I decided to comment. My comment represented the very first time I've spoken up about what I've seen going as of late on SO.  Unfortunately, my comment has been awaiting moderation since 06:17 EST on January 23rd.  I believe that we need some documented comment guidelines.  I don't like the idea that a slightly critical, but respectful comment doesn't make it through the moderator filter.  What's the end goal of the blog? Is it simply to disseminate information without critical (in the best sense of the word) interaction? Great...let us know.  It's certainly not lost on me that a comment which discusses trust issues does not get posted.  How about those comment guidelines?  Comment in question:     Recent events have made it difficult to trust the SO team. With that   in mind, publishing content like this, without any information   regarding how this survey was conducted, how the questions were   framed, and to whom the survey was sent (and how those people were   chosen), makes me seriously doubt the results.      I’ve been a member for 8 years and 8 months. I don’t have the highest   rep on the site, but I’ve answered 692 questions, and have a reach of   ~10.4 million people. I didn’t receive the survey, but if I did, I   would have answered “Unwelcoming community” as well, but not for the   reason(s) that this post is indicating.      As a long-time contributor, I feel unwelcome by leadership. The   tremendous effort and care that we as a community have invested to   make SO successful almost seems despised by the current regime. From   the outside looking in, SO appears to be imploding, and the   destruction is blamed on an “unwelcoming community” and   “over-moderation” instead of poor leadership decisions. Odd, isn’t it,   that the unwelcoming community that’s being vilified is what made SO   what it is today?


Remove et al listing in bibliography; list all authors by full name

I'm currently using TexMaker and Biber on a Ubuntu machine. I'm quite happy with just using the standard numeric citation style, safe for 1 thing: it shortens all authors in my bibliography to "First author et al". I was wondering how to set it to list all authors with their full name? The answer is probably pretty straight forward, but I can't seem to find it.  \usepackage[backend=biber, style=numeric, sorting=none]{biblatex}  \newpage  \printbibliography


line tool photoshop not getting the dotted propertie

I'm trying to change a line created with the line tool into a dotted line but I can't find the property for that. I've tried resetting the line tool but I still don't get the option. At the moment it looks like this.    Instead of this


I am an Indian passport holder travelling from China to India via Kuala Lumpur, on Air Asia tickets bought separately. The layover is 4 hours and 30 minutes.  Do I need a transit visa?


How to choose fonts with different optical sizes with fontspec

The font  is a font that provides (at the moment two) different optical sizes. The  package will automatically choose the appropriate optical size (cf. the manual under section 8.6.).  But how can one do this when fonts are explicitly selected with path specifications? In the first MWE below, fontspec loads the system font EB Garamond, and notice the differences in the fonts in the tiny size and the normal size. In the second MWE, fontspec loads an explicitly declared font, and in this case, the font is simply scaled down.  \documentclass{standalone} \usepackage{fontspec} \setmainfont{EB Garamond} \begin{document} {\tiny{1234567890}} 1234567890 \end{document}     \documentclass{standalone} \usepackage{fontspec} \setmainfont     [         Path = M:/MyStuff/Fonts/EBGaramond-0.015d/otf/,         UprightFont = EBGaramond12-Regular.otf     ]     {EB Garamond} \begin{document} {\tiny{1234567890}} 1234567890 \end{document}


How the each set $[-1,0)$ , $(0,1]$ are open in Y?

Let Y denotes the subspace $[-1,0)\cup(0,1]$ of real line $\mathbb{R}$. How the each set $[-1,0)$ ,  $(0,1]$ are open in Y . The definition of Open Set is that it must not contain its boundaries. the author (Munkres) says that the Sets $[-1,0)$ ,  $(0,1]$  are open in Y but not in $\mathbb{R}$.The question may sound easy but please try to explain. thanks !. what i think is that if i take a point $-1$ and  make a open ball of radius $\epsilon$ then it will cross the boundary $-1$ hence the set can't be open.


Please look at the following code-   public class Program {    public static void Main()   {     A ob = new A();     ob.x = 120;     ob.Name = "No";     GO(ob);     Console.WriteLine(ob.x);   }    public static void GO(A obj)   {     obj.x = 50;     obj.Name = "Local";     obj = null;   } }   in console It prints the value of x 50. but when I am using ref keyword it is giving null reference exception. My question is if object is reference type it should give null reference exception even if I don't use ref. and if it is not then value of x in console should be 120. I am unable to understand this behavior. Please explain whats happening here when we use ref and when we don't.