I want to explain to the Spanish developers of a website why this text label sounds wrong:     If your column isn't country data, where's it?   IMHO, you have to say "Where is it?" - but I don't know why.  EDIT  For context, the meaning of "where's it" here is "in which country are the regions represented by the data in your column?"  And to be clearer, I'm not asking about when it's ok to use contractions in semi-formal English. To my (native Australian) ear, "Where's it?" sounds wrong in any context. Not "informal", but wrong.   EDIT 2  There is a near-duplicate question . I think the difference between "what" and "where" is significant enough to not want to merge the two.

Can anyone give a cogent, simply described explanation of why the verb BE in:  What is it?  ... doesn't seem to be able to be contracted with the subject:  What's it? *  Compare the sentences above with:  What's this? What's that?  These are perfectly fine. In fact, the contractions here should be expected in almost all examples of spoken English. Answers with references to authoritative vetted sources would be greatly appreciated.


I am based on Chennai and currently living in Toronto. I am planning to go to Switzerland from Chennai after some months ( once I back to Chennai).  Currently I am estimating my vacation cost ( 3-4 days stay in Switzerland , 4 members family).   Approximately, Switzerland is halfway from Chennai to Toronto ( based on distance ), So I expect the airfare to Swiss should be around 50-60% of the airfare of Chennai-Toronto. ( Assume, other than distance all factors are same ie. travel dates, weekdays, off/on season etc).  But I noticed that Chennai-Zurich costs almost 80% of Chennai-Toronto airfare. ( CAD 850+ compared to CAD 1100, if travel dates falls in Oct 2019).  How the airlines decide fares? As per my understanding distance is the most important factor.  Or Am I missing anything?

A flight from Los Angeles to ABQ is about 2 hours but is ~670.2 miles  A flight from San Jose to Chicago is 4 hours but is ~1859.0 miles  Can anyone explain why the travel time from San Jose to Chicago is not longer and closer to 5.75 hours?  If the distance increase by 2, shouldn't the time increase by a factor of 2 as well?


I have a question about drivers, should I use the ones, provided by ubuntu(14.04 - 331.38), or should I install the latest ones from nvidia(331.79)? which would work better? Nvidia page says this:      Note that many Linux distributions provide their own packages of the   NVIDIA Linux Graphics Driver in the distribution's native package   management format. This may interact better with the rest of your   distribution's framework, and you may want to use this rather than   NVIDIA's official package.   So, I'm kind of scared to try that since I had bad experience with installing the latest AMD Radeon drivers before. I know, it's not the same but still...  And if I should choose 331.38 which one of that?  331.38 - updates what difference is between this and 331.38  Thanks!

What's the difference between the , and  packages?  The former has a higher version number, and the description of the packages are the same.    Which do I use? Which is the most recent one What's the purpose of this split packaging?


I earned the  for , which has since been removed.    Searching MSO, I found one  that indicates that I should be able to find out why the question was deleted, or at least whether it was a community or moderator decision to delete.  However, the links on the deleted question's page only provide a link to a FAQ of possible reasons.  As the OP, how can I find out definitively why my question was removed (aside from finding the closing moderator)?

What circumstances can cause a question or answer to be deleted, and what does that actually mean?    How can a post be deleted? When can't I delete my own post? Can I still see my post even after it's deleted? Can I see a list of my deleted posts? How can I undelete one of my posts? What does deletion mean for a post? How do votes to delete work? What are the criteria for deletion? What else should I know about deleted posts? If I flag my question with a request to delete it, what will happen?       For more information, see the articles about  and  in the .


I have a wordpress site which I have set up on my localhost. I've just uploaded it to my hosting and imported the database but all the ' are displaying as � . I thought it might just be my posts as you can see from this example .  However if you look at the below image you can see that its even happening in the wordpress admin panel.    I thought it might be related to the way the database is set up but I have checked and they have all the exact same settings. I tried setting up a new database and importing the data to that and it didnt help.   Does anyone have any ideas would could be causing this as its the exact same as the localhost server? They both have utf8mb4_unicode_ci set up on all tables.  SOLUTION:  Cannot post this as an answer since this question was closed as a duplicate.  However, for anyone else who has this problem the below fixed it for me. It wasn't related to the database. The wp-config.php needed updating. I changed define('DB_CHARSET', 'utf8mb4'); to define('DB_CHARSET', 'utf8');

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I want to sculpt in a minimal set up with a reference image loaded in another area. I will toggle views to change settings when needed. But, I'm having trouble with the steps to set this up.  I understand how to split areas in Blender. I also know how to hide areas with: 't', 'n' and 'shift+space'. I understand that F11 will give me full screen, getting rid of the window chrome. But, I'm having trouble combining these steps in a way that will create the minimal sculpting set up I have provided below. I don't want the areas with the red x's. I only want the areas with the orange check marks.    What steps will achieve this set-up?

I would like to close some view windows that I opened accidentally.  See the image below:    Edit: another note: I tried searching for the solution, but only found things like "Join Area", which don't seem to work in this situation.


Assume that $f: [0, \infty) \rightarrow \mathbb{R}$ is differentiable    for all $x>0$ and $\lim_{x \rightarrow \infty} f'(x) = 0$. Prove that    $\lim_{x \rightarrow \infty}[f(x+1)-f(x)] = 0$   I was hinted that I should use the mean value theorem here. My attempt is as follows. Consider the closed interval $[x, x+1]$ where $x>0$. Clearly, $f$ is continuous on $[x, x+1]$ and also differentiable on $(x, x+1)$ by the assumptions of the question. So we can apply the MVT and conclude that there exists a $c \in (x, x+1)$ such that $f(x+1) - f(x) = f'(c)$. Now if I take the limit to infinity on the left hand side, I can see the $\lim_{x \rightarrow \infty} f(x+1) - f(x)$ come into play, but what is $\lim_{x \rightarrow \infty} f'(c)$?   I thought about something like this, but not sure if it is right. Clearly, $c = x+t$ for some $0<t<1$, so $f'(c) = f'(x+t)$, so $\lim_{x \rightarrow \infty} f'(c) = \lim_{x \rightarrow \infty} f'(x+t)$. Now I am not sure how to bring $\lim_{x \rightarrow \infty}f'(x) = 0$ into the picture.

Having some trouble proving this:     If $f:\mathbb{R}\rightarrow \mathbb{R}$ is differentiable and $\lim_{x\to \infty } f^\prime(x)=0$ show: $\lim _{x\to \infty } (f(x+1)-f(x))=0$   Attempt: from $\int \lim _{x\rightarrow \infty } f^\prime(x) \mathrm{d}x=0$ we can say that $f^\prime(x)=const$ would we then have to show that  $\lim _{x\to \infty } (f(x+1))$ is also a constant? From there if we show that both are equal then the difference is zero. I am on the right track?  Thank you for the help.


final ImageView imageView = (ImageView) findViewById(R.id.imageView); imageView.setImageResource(R.drawable.temp);   Error:     java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setImageResource(int)' on a null object reference                             at com.example.administrator.correct.MainActivity$1.onItemClick(MainActivity.java:65)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I've been watching many different speed runs of all my favourite games; Horizon Zero Dawn, Legend of Zelda, Dark Souls, etc.  However one thing I've noticed is that they often use a different language to run the game in, often when they don't speak the language (or at least don't appear to, like playing in German, while speaking English with an American accent).  Why is this?

In most speed-running videos, the person playing the game will usually play the Japanese version, with or without any knowledge of understanding Japanese. Is there a reason why they do this?   In particular, I am talking about traditionally Japanese games being speed ran, like Cave Story or Legend of Zelda.


I need to iterate each value of a HashMap in my method but it gives me a syntax error at the for each loop      Library.java:12: error: for-each not applicable to expression type         for(String book : library){                           ^   required: array or java.lang.Iterable   found:    HashMap   This is the relevant code   public void getFinishedBooks(HashMap<String, Boolean> library) {   if(library.size()<1)    {     System.out.println("Library is empty!");   }   else    {     for(String book : library)     {       if(library.get(book) ==true)       {         System.out.println(book);       }     }   } }

If I have an object implementing the Map interface in Java and I wish to iterate over every pair contained within it,  what is the most efficient way of going through the map?  Will the ordering of elements depend on the specific map implementation that I have for the interface?


I was at a conference recently as a member of the audience and during the Q & A segment, an audience member (unsolicited) jumped up and said that the presentation was 'absolutely wrong' quite aggressively. The presenter (junior scholar) was mortified.  Can I ask if you have a particular way of responding to questions that are aggressive or ad hominem attacks without being seen as defensive particularly if the person asking the question is someone senior and respected?

I've attended a lot of seminars and lectures by now, and it's typical for the chair of the seminar to offer audience members a chance to ask questions of the speaker about their work after the presentation.  Most of the time, the questions seek clarification of some aspect of the presentation or focus on a more comprehensive understanding of the research involved.  However, occasionally, I've noticed that questions are purposefully designed to embarrass the speaker.  Things along the lines of "That method won't work at all for what you're trying to do.  Your results are completely invalid" or "So-and-so's group already did that work years ago.  Did you not read their paper?"  Perhaps more disturbingly (I just got back from a really large conference if you can't tell), is that women seem to be more harshly criticized than men, and over trivial issues.  For instance, in a few sessions I went to, female graduate students were given really hard times over their presentations while the male grad students were not.  All presentations were about the same quality.  I guess I'm a little shocked; I'd heard of sexism in academia but hadn't actually seen it (or noticed it) until this conference.  Oddly enough, I've observed that it's typically prestigious professors or researchers that are asking these ostentatious questions.  I suppose they figure they have enough "fame" or whatever that their job isn't in jeopardy, and there's no easy way to really prove they're being rude or sexist.  I don't know what's going on here, but it seems to me that these questions, even if they do have technical merit, should be held until after the seminar, where they can be discussed privately with the researcher.  My question here, specifically, is what can be done to minimize these (uncomfortable for everyone) instances?  My thoughts are that a session chair should remind the audience to refrain from questions that are accusatory in nature.  As a presenter, I'm not sure what can be done in advance to preempt and avoid these questions.  Any ideas?


I consider myself a pretty strong javascript coder and am familiar with most all of the javascript syntax. But have been puzzled by the following syntax:  function() {     return function() {      } } ();   Can someone explain what the parenthesis at the end is supposed to be used for?

I'm new to both JavaScript and . In YUI library examples, you can find many uses of this construct:  (function() {     var Dom = YAHOO.util.Dom,     Event = YAHOO.util.Event,     layout = null,         ... })();   I think the last couple of parentheses are to execute the function just after the declaration.  ... But what about the previous set of parentheses surrounding the function declaration?  I think it is a matter of scope; that's to hide inside variables to outside functions and possibly global objects. Is it? More generally, what are the mechanics of those parentheses?


I'm using a Canon EOS Rebel with 1.6 crop factor. In terms of focal length- Is an EF 16-35 mm full frame lens on a full frame camera equivalent to an EF-S 10-22mm lens taking into account my crop factor? The math works at least but is the effective focal length essentially equal?

As an example, a 35mm lens on a crop body (such as Nikon DX) is said to be "equivalent" to a 50mm lens on a full frame body. Equivalent here means that they will have the same field of view, but what other aspects will change or stay the same between the two? I'm thinking about things like perspective, bokeh, and depth of field (assuming the same aperture being used on both lenses).


I am trying to implement a method within a 'Library' class that allows a member to take out an object of Book that has the Title and Author that the user specifies. It first checks to find a book that matches the title&author, and then checks to ensure the member does not already have that book on loan. Here is the code for  my method, please let me know where I am going wrong. The borrowBook and if(memberName.getBooks().contains(...) methods both work independently, however when I use them in this block of code they do not seem to execute.  public void memberBorrowBook1(Member memberName, String title2, String author2) {     //Test each book object in the library class to see if the parameters match     for(Book a:books) {         if(a.getTitle() == title2 && a.getAuthor() == author2); {             //If title and author match, check to see if the member already has a copy of this book on loan             for(Book b:memberName.getBooks()) {                 if(memberName.getBooks().contains(a)) {                     System.out.println("Member already has a copy of that book loaned out");                 //Otherwise, loan the book out to the member                 } else {                     memberName.borrowBook(a);                 }             }         }     } }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I am trying to add a validation rule for jQuery validate  $validator.addMethod('footer-email', function (value) {   if (value == ''){     return true;   } }, '');   Where footer-email is class selector. Is there a way I can use a ID selector instead?

How do you create a simple, custom rule using the jQuery Validate plugin (using ) that doesn't use a regex?  For example, what function would create a rule that validates only if at least one of a group of checkboxes is checked?


I try to make an app in FXML.For the beginning I have one stage with 2 scenes.The scenes should change when i press a button When i press the button i have this error:  Exception in thread "JavaFX Application Thread" java.lang.NullPointerException     at application.Controller.lambda$0(Controller.java:43)   This is my controller classs:  public class Controller{  public Stage primaryStage; @FXML private Button button;  public void plm(Stage primaryStage){     try {         System.out.println(primaryStage);         BorderPane root = (BorderPane)FXMLLoader.load(getClass().getResource("Sample.fxml"));         Scene scene = new Scene(root,400,400);         //scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());         primaryStage.setScene(scene);         primaryStage.show();         this.primaryStage = primaryStage;         System.out.println(this.primaryStage);     } catch(Exception e) {         e.printStackTrace();     } }  @FXML public void cc() throws IOException{     Parent root = FXMLLoader.load(getClass().getResource("SampleB.fxml"));     Scene scene = new Scene(root,400,400);     primaryStage.setScene(scene);  //  primaryStage.close(); }   This is my FXML file:  <?xml version="1.0" encoding="UTF-8"?>  <?import javafx.scene.control.*?> <?import java.lang.*?> <?import javafx.scene.layout.*?> <?import javafx.scene.layout.BorderPane?>  <BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.Controller">    <center>       <Button fx:id="button" mnemonicParsing="false" onAction="#cc" text="Button" BorderPane.alignment="CENTER" />    </center> </BorderPane>


NEWS could this word be derived from: N orth E ast W est S outh  The news comes from the four points of the globe.

I'm just wondering where does the word "News" come from. Is it from the word "New" which means things that did not exist before?


Why don't things like tennis balls create interference patterns when thrown at double slits?  Where's the limit where it stops interfering?

In double slit experiment only small sized particles were used. however if we use large objects such as a tennis ball, the expected pattern is not observed.   Why the wave nature is not visible for large objects in double slit experiment ? How do I then prove that large objects also have wave nature?


Let $f(x):\mathbb R\to \mathbb R$ be a continuous function. How to prove that $f$ can have at most countably many strict local maxima?   I've been thinking about choosing a rational point for each local maxima in $(x_0 -\delta;x_0 + \delta)$ where $f(x_0) > f(x)$ for any $x \in (x_0 -\delta;x_0 + \delta)$. But how to do that so for different $x_1$ and $x_2$ stand different  points?

I am working through a bank of previous exams and couldn't figure a problem out to my satisfaction.     Let $f(x) : \mathbb{R} \to \mathbb{R}\,$ be a continuous function.         Show that $f$ can have at most countably many strict local maxima.   Assume that $f$ is not monotone on any interval. Then show that the local   maxima of $f$ are dense in   $\mathbb{R}$.


I am an international student from San Francisco who is travelling to Belgium to attend a conference. I have an interview scheduled with the Belgian consulate tomorrow in Los Angeles. On my return flight, I won't have any government-issued identification, as I will have to submit my passport for visa processing, and I don't have a government issued driving license.   What form of alternate identification can I produce for airport security so that they can let me through?

I am flying in 10 days to another state to apply for a travel visa. As a foreigner, my passport is the only ID I have at the moment. How will I be able to travel back to my current state?  Will a photocopy of my passport and American visa, perhaps a letter, driver's license, and/or a temporary state ID work? (I don't think I will be able to get my state ID in time!)


If a sock puppet votes on a question or an answer, how many times can it do that before the account gets suspended or deleted?

A high-reputation, highly-active user has already been dinged once for a sockpuppet, and I just dinged him again. He probably has another sockpuppet as well.   What are the guidelines for handling users who game the system in this fashion? Specifically,   How can I be sure I'm looking at a sockpuppet? When should sockpuppets be considered a problem? How should moderators handle problematic sockpuppets once they've been identified? I was suspended for sockpuppetting and feel this is unfair


Ok, so I know that this question has been asked a million times, but it seems that using the solutions from questions like this has not helped me so far.  How do I set default permissions for new files uploaded through vsftpd?  As of now the files will get the following permissions:  -rw-r--r-- 1 pi   pi      7 Jun 28 13:21 FILENAME   But I need the file to be executable. I could manually chmod the files, but that would not include files in the future. What i have tried:   Setting umask in login.defs - Even after a restart, if I then type umask I will get umask 0022 (not what I set) Setting local_umask=022 and file_open_mode=0644 in /etc/vsftpd.conf   Does anyone have a solution for this? The permissions for future files should be somewhat like:      -rwxr--r--   Hope you understand. I'm new on linux.

I followed  for setting default file permissions in my web root folder.  I am trying to set all files/dirs to 775 by default. This works fine when creating files within linux and also when creating files directly on the web root through the samba share but it doesn't seem to work when files are created on the windows disk and ftp'd over.  When I do this the file permissions are set as read/write owner only [-rw-------] so apache cant even read them.  My setup is that I'm running Ubuntu in a virtualbox with a Windows 7 host. I have a local directory on the host where I store the files and I ftp them to the Ubuntu machine using netbeans for testing.   When I ftp to the VM I am connecting as an authenticated user (the same one that owns the web root and everything in it - who is also in the same group as apache and this is the group all the files are part of).  How can ensure that files are created with 775 permissions when ftping? (I am using vsftpd)


I have tried this following code:  result = (x for x in range(3))   for y in result:     print(y)   I am getting the following Output:   0 1 2   But when I am using this code :  result = (print(x) for x in range(3))   for y in result:     print(y)   I am getting the following output:  0 None 1 None 2 None      Can anyone explain, Why this **None** is coming in output in second code?

What is the use of the yield keyword in Python? What does it do? For example, I'm trying to understand this code1: def _get_child_candidates(self, distance, min_dist, max_dist):     if self._leftchild and distance - max_dist < self._median:         yield self._leftchild     if self._rightchild and distance + max_dist >= self._median:         yield self._rightchild    And this is the caller: result, candidates = [], [self] while candidates:     node = candidates.pop()     distance = node._get_dist(obj)     if distance <= max_dist and distance >= min_dist:         result.extend(node._values)     candidates.extend(node._get_child_candidates(distance, min_dist, max_dist)) return result  What happens when the method _get_child_candidates is called? Is a list returned? A single element? Is it called again? When will subsequent calls stop?   1. This piece of code was written by Jochen Schulz (jrschulz), who made a great Python library for metric spaces. This is the link to the complete source: [Module mspace][1].


just discussion what tool is the best for monitoring Linux servers? I have experience with Zabbix, Icinga and Kibana, but is it some better monitoring tool where is possible to have all-in-one solution? Requirements:  with web interface simple easy to config rich for config, or possibility to use your own bash scripts, for example if I want monitor pg_stat_activity and have output from some own sql nice to look (I mean for example monitor graph of CPU have points, and when you click on this point (peak), it shows for example 5 processes from top command related to cpuload, mem in some popup or in text on some side of the graph no host agent install needed (for example like zabbix), just connection via RSA SSH and collect data, simple  What's your favourite? UPDATE It is very nice to see that somebody asked about that before, of course I found it, BUT there is no all-in-one app (monitor system, collecting logs and web interface) and opensource/free. If somebody want give -1 to this question, please read it carefuly first. Thanks.

For a more comprehensive list of monitoring tools and their features, check out .   As the question states, what are the most commonly used tools used for this task and what are their strengths and weaknesses?


I was flying from Kiev through Munich and Frankfurt to US. In Kiev I was refused a registration for the flight by airport official due an absence of Schengen visa. I had also just a carry on language, no check in. I presented my green card, but he said it did not matter. I had to buy another ticket, which was expensive, directly to USA. Was that a correct action of the official?

I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows:  Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland


In Star Wars: A New Hope Owen talks about how he needs Luke for the next harvest and stuff, but it's not like they're tilling crops or anything. Don't machines just suck water out of the atmosphere, then you just haul in barrels into town?

This question has been bothering me since I was six years old- we know that Aunt Buru and Uncle Owen are moisture farmers, but what is it that they do?  What is the process?  Is it profitable?  What is the yield and who buys it, or are they more self-sustaining than commercial?  What types of jobs did the droids do?


Is there any historic reason? Stat stores last accessed time, last modified time and last changed time , but not the creation time! Isn't that important information.   I can't understand why the developers would leave out such an important piece of information. Some filesystems do store the data, as pointed in this . But clearly the importance of this information has been downplayed. Why is it so?  Note:  stat -c %W <filename>   Returns 0 in my system (fedora 22).

Are there any (good known, reliable) file systems on Linux that store the creation time of files and directories in the i-node table?   If there are, is the "changed" time replaced by the creation time of an i-node in a stat call?


I am writing a document in LaTeX and since I use quite often the command ${\rm d}$ for inserting the differential in the integrals , I decided to make a new command and insert in the preamble.   I wrote it as: \newcommand{\d}{d} but it does not compile. It say "your command has been ignored. What am I doing wrong here? How can I insert the command to work properly ?

I can't seem to find any consensus on the right way to typeset a differential operator, whether it is:   in a standalone context:  as part of a derivative:  as part of an integral:    In all of these cases, I have seen them sometimes italicized like variables (as in the second and third examples above) and sometimes not italicized like operator names (as in the first example above). There is also additional variation in how much spacing goes between the "d" and whatever it is acting on.  Seeing as this is an incredibly common symbol in many branches of mathematics, I am curious about the lack of standardization -- I've seen all possible combinations used in all possible contexts by many respected authors and publishers.  Are there any rules of thumb that I can follow? I personally tend to prefer the non-italicized version with very little space next to it, so I add:  \renewcommand{\d}[1]{\ensuremath{\operatorname{d}\!{#1}}}   to my default preamble, and use that everywhere, but I'd like to know if I'm breaking any hard-and-fast rules here.


I read it as a child, a sci-fi book. It started with a government program that discovered an alternate universe, and every person save one went crazy, and could not speak about it. She got pregnant, and took her son into it. He was raised being able to swap between worlds.   After a while, he became employed by the government to use the abilities and he discovered there were other people in this dimension. They started transporting goods, but the shipments sometimes ended in the wrong place. It was because they lacked the mathematics to transport correctly.

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


PuTTY has stopped opening on my machine today. I've never had this problem before.  When I click on the .exe, PuTTY appears in the taskbar, but I cannot use it. It won't open. Like it's a frozen application or something.  I tried downloading a new version and the same thing happened. I tried downloading KiTTY and the same thing happened (see image). I can open FileZilla and Adobe etc so I don't think it's a permissions type thing or that .exe is suddenly blocked from opening. I can FTP using FileZilla as well.  It's a company machine and the OS is Windows Vista.  I'm not sure what to try next and no idea what the problem could be.    I should clarify, it's the configuration part of PuTTY that won't even open. PuTTY starts you off in that config section before you can proceed to the black box/window part.

Recently I found that I could launch PuTTY but that no window was displayed. The Task bar has putty as a running application and I can right click on that to get the move and close option.  If I choose 'move', I get the outline of the PuTTY window to move but still no actual putty configuration window.   If I remote desktop to the same machine, I can launch PuTTY without any issues.


I was looking for battery related applications in Brew and found  which refers to an  as justification why this application matters. Referring an old page as justification it's a bit suspicious for me. Depleting battery frequently - the page says monthly is a good cadence - still something I have to pay attention to?

I have two Mac book Pros:    A 2013 Unibody retina that I use every day An older 2006 model with removable battery that I use a couple of times a month (when not in use, it's not connected to the AC. I recently replaced the battery, as the old one swelled apart).   I use them as desktop replacements, so I don't use the battery that often.   What's the best way to prolong battery lifespan? - If keeping the machines hooked up to the AC is a bad idea, then for how many hours each day should I use the battery?    Here is my research: There's a lot of conflicting advice.   Calibration  A lot of sources, say you should calibrate the battery by letting it run down to 0% each month. For example, this , this  article. All these articles were written in 2013/12 and cite Apple.com as the source for this advice.  However, the  page makes no reference to calibration. Is this because calibration is a bad idea, or is it because Apple no longer sells devices with removable batteries and so the advice is different?  Deep discharge  Other sources, such as this  question, imply that letting the battery drain is a bad idea, so using the AC whenever possible is actually a good thing.   Please note I am talking about the overall battery life span (e.g. the time the battery has before it needs to be replaced) and not increasing the day-to-day hours of the battery.


Im trying to test if a polygon either a) touches or b) is only semi-contained by another polygon. The first is self-explanatory i guess, but the second could be many of the different predicates offered in QGIS.  I was therefore wondering if there are any more indepth explanations of the geometric predicates used in QGIS' select by location. (the only slightly basic explanation is  which doesn't give any real clue as to what the terms cover)

I wonder if there is somewhere an explanation for the parameters that can be set when running the Algorithm "Join Attributes by Location" in QGIS 2.18.  I had a look here:       but there is no explanation. Any hints?


In the Harry Potter movies, Ron, Harry and Hermione joke about how old Dumbledore is, but end up laughing. I wondered how old he was, since he 'invited' tom riddle to Hogwarts....etc.

I have tried to figure this out but I cannot come to a specific conclusion. I am just asking this to confirm my own theory.  In Half-Blood Prince, Dumbledore's memory proves that he was the headmaster when Tom Riddle came to ask for a professor's job at Hogwarts. He also tells in the same part that he was a professor at Hogwarts when he met the young Tom Riddle.  Also keeping his friendship with Grindelwald in mind, I would say that he was around 100 years old when he died.  Any more ideas?


I'm currently taking a nuclear physics class, and of course, earlier courses taught me how electrons "moves" in orbits around the nucleus. In that case, it is their wave function that is spread out in s, p, d and so on, orbitals, and therefore can exist in those regions.  But now, after having this course a while, is it really just the same for the nucleus ? For electrons each electron can be in a different state, we know that, but is it the same with a nucleus ? Is the individual protons and neutrons in different states, just as electrons, or is it only the whole nucleus that are in some specific state. And the last thing: Is the orbitals for the nucleus, pretty much the same as for electrons, with s begins spherical, and p being the "flower" and so on.  I don't know why I'm so confused. But I've just always seen the nucleus as a rigid entity that does not behave like an electron would do. But I'm probably mistaken, or...?

An example of the nucleus of an atom being in an excited state is the , which was a theory devised by the Astronomer Fred Hoyle to help describe the vast quantities of carbon-12 present in the universe, which wouldn't be possible without said Hoyle State.  It's easy to visualise and comprehend the excited states of electrons, because they exist on discrete energy levels that orbit the nucleus, so one can easily see how an electron can excite from one energy level into a higher one, hence making it excited.  However, I can't see how the nucleus can get into an excited state, because clearly, they don't exist on energy levels that they can transfer between, but instead it's just a 'ball' of protons and neutrons.  So how can the nucleus of an atom be excited? What makes it excited?


I am creating a object (bb) of Box class.and storing  25 to its attribute value. The object will be created and it will have memory.Now I want to create new instance of Box class but i want it to point it to the same object created for bb and not allocating it new memory again.For example if write Box cc new Box(); and print out cc.value it should print 25.It should not allocate new memory.That is every time we create object it should refer to bb .For example Box newOne = new Box(); and newone.value should give us 25.Is this possible? I don't know if i have described the problem well.I came across this type of question recently in an exam.  Box bb = new Box(); bb.value = 25; Box cc = new Box();//It should not allocate new memory it should refer to  //the previous memory that we used for bb. System.out.println(cc.value);//It should give us 25  class Box{   int value; }

What is an efficient way to implement a singleton pattern in Java?


I've got a question. I thought about it so much, but cant get an idea how can I do that.  I want to create neural network in Encog framework. The neural network is about shopping. I have a database with shopping lists with products. All users have their private lists. I need to create a neural network that will generate new list based on lists in db. For example based on lists from 2 months.  But in Encog to input i have to send array of dobules. I read about normalization in documentation and was trying to search some ideas in internet but found nothing.  How can i "convert" the products to double? I mean to use it in neural network.  Many ppl just uses the Equation that will calculate the value between 0 to 1 or -1 to 0. But in my example, it's hard.  Thanks for help!

In regression, you encode a categorical variable with n possible values using n-1 indicator variables. How about for neural networks?


there was an almost the same question , but there was no appropriate answer(the answer there was incomplete and not to the point). now there is an updated answer to the question.

How exactly does  about the propagation of wavefronts account for interference?


On Ubuntu 18.04 (x64), I've added my account myusr to /etc/sudoers as follows:  myusr ALL=(ALL:ALL) NOPASSWD:ALL   However, I still need to supply a password for using sudo after inactivity/reboot.

I need to run something as sudo without a password, so I used visudo and added this to my sudoers file:  MYUSERNAME ALL = NOPASSWD: /path/to/my/program   Then I tried it out:  $ sudo /path/to/my/program [sudo] password for MYUSERNAME:    Why does it ask for a password? How can I run/use commands as root with a non-root user, without asking for a password?


I'm trying to make my two switched outlets to be half hot. I tried breaking the brass tab on outlet 1 to accomplish that but that didn't work. It only made one receptacle work from the switch while the other didn't work at all. It also caused outlet 2 to not work at all. I don't know if it's the current wiring or if it's just not possible at all. Help please!!

I am trying to change a switched outlet to a half-hot outlet. If you can see the picture, the outlet currently only has a white, black, and ground wire coming to it.   The switch is on the other side of the wall and it would be eextremely difficult and ugly to run another wire to it. (no crawl or attic space). So my question is, can I change the current outlet/wiring within the outlet to make it a half-hot? My understanding is that removing the brass connector will just make half of it dead.


Suppose $p,q,r \in[1,\infty)$ and $ 1/r = 1/p +1/q$. Prove that   $$\|fg\|_r \leq \|f\|_p*\|g\|_q.$$  I am assuming that this proves involves using Hölder inequality , but so far I am unable to proceed in the proof. Maybe so because this is my first problem about using the Hölder/Minkowski inequaltiy.

On , one can see that   $$\|fg\|_r\leq \|f\|_p\|g\|_q,$$ when $$\frac{1}{r} = \frac{1}{p} + \frac{1}{q}, \ p,q\in(0,\infty].$$  I have two questions,   Is the statement true? If so, is it stated in some references? I need it for my thesis.


I would like to know how to rename the same log file which is in different path. I mean, the log file is in /main/rel/1.2, /main/rel/1.3, /main/rel/1.4, /main/rel/1.5 etc. I want just do it from /main/rel to all the path.  Could this be possible?

Say I have a long path such as:  /a/b/c/d/e/f   I would like to run a command only on each of the subpaths of the path:  e.g. If my command is cmd, I am looking for a one-liner that can do (perhaps using a one-line loop)  cmd /a cmd /a/b cmd /a/b/c cmd /a/b/c/d cmd /a/b/c/d/e cmd /a/b/c/d/e/f   One of the reasons why I need this (I need it for other things as well), is because I would like to give somebody from my unix group the ability to cd incrementally her way to /a/b/c/d/e/f. To do this, I think I need to run chmod g+x on each of these subpaths (not sure if there is an alternative). Note that I want to avoid chmod -R g+x /a.  I work primarily on zsh so I wonder if there is anything that takes advantage of specific zsh features.


I have a script that counts down from 5 to 0:  for a in {5..0}; do echo $a | tr -d \\n; sleep 1; echo -e \\b | tr -d \\n; done  and tacking on tr -d just looks redundant and not very elegant to me. Is there a way to echo on one line without having to delete the newline?

I'd like to do it in Python. What I'd like to do in this example in C: #include <stdio.h>  int main() {     int i;     for (i=0; i<10; i++) printf(".");     return 0; }  Output: ..........  In Python: >>> for i in range(10): print('.') . . . . . . . . . . >>> print('.', '.', '.', '.', '.', '.', '.', '.', '.', '.') . . . . . . . . . .  In Python print will add a \n or space, how can I avoid that? Now, it's just an example, don't tell me I can first build a string then print it. I'd like to know how to "append" strings to stdout.


Let $a,b$ be positive integers. Suppose $(a^n-1)\mid(b^n-1)$ $\forall n\in\mathbb{Z}^+$. Can we conclude that $b$ is a power of $a$?

We can prove that there is no integer $n>1$ such that $2^n-1\mid 3^n-1$. This leads to the following question:     Is it true that for every pair of primes $p<q$ there are only finitely many integers $n$ such that $p^n-1\mid q^n-1$? Are there two primes $p<q$ and an integer $n>p+q$ such that $p^n-1\mid q^n-1$?Is it true that if $n>6$ then $2^n-1\nmid 5^n-1$?   Edit: Here are some examples: \begin{array}{ll} 2^{36}-1\mid 41^{36}-1, &3^{12}-1\mid 97^{12}-1,\\ 5^{6}-1\mid 37^{6}-1, &7^{4}-1\mid 151^{4}-1. \end{array}  Now I prove there is no integer $n>1$ such that $2^n-1\mid 3^n-1.$  Proof: Denote $A=2^n-1$ and $B=3^n-1$. If $n$ is even then $3$ divides $A$ but not $B$, a contradiction.  If $n$ is odd then $A\equiv -5\pmod {12}$. Since every prime greater than $3$ is $\equiv \pm1,\pm5 \pmod {12}$, some prime factor $p$ of $A$ must be congruent to $\pm5 \pmod {12}$. As $p \mid B$, we have $3^{n+1}\equiv 3 \pmod p$. Since $n+1$ is even, we get $(\frac{3}{p})=1$, a contradiction again.


I created a linux user using a script .Also i want the newly created user to access only certain folders in the (/ )root directory.For that i changed the permission of root directory to 0750.     chmod -R 0750 /*  After that when i tried to login to the newly created user with login command i am getting   cannot chdir to home directory '/home/newuser'   cannot execute '/bin/bash ' :permission denied .  i changed the permission of /bin/ folder to 0777 ,also set /home/newuser / permission to 0777 .still i am unable to login .  Is it possible to login with the new root permission .

I was trying to run chmod -R 777 ./ but ended up typing chmod -R 777 / and set 777 on my entire machine. What can go wrong? How can I fix it?


Does speed of light depends upon the velocity of source in a medium (like water) other than space? if yes, does the speed gets added up when the light source moves in direction of light?

Let's say I shine a laser from a stationary medium into a moving medium (suppose the water is moving very quickly) perpendicular to the interface and back to a stationary medium like this:    (Note: left and right sides of the image are stationary mediums, center is a medium moving in the direction indicated by the arrow)  Which of the above scenarios (A, B, C, or "I'm way off") correctly reflects the path the light will take (even if the translation is incredibly small)?  Edit:  To answer some good questions (and things I left out of the original question):   The center (moving) medium is water The left and right medium (stationary) is air The first angle of incidence (on the left) between the air and the water is perpendicular


If I shoot directly in to the (sun)light, I get a green reflection in my photos. Is this because of the UV filter? How should I solve this?  Camera: Sony A7ii Lens: Sony 55mm 1.8 UV filter: Hoya HMC UV (C) Lens (49mm filter) [Amazon link][1]

I have a few pictures of this anomaly, the fluorescent bulb has seemed to move into another location of the picture when took perfectly still photos. I used a Fuji Finepix-S.   What could of caused this anomaly?


Often times it happens, that someone answers a question in its original and specific kind. Also often times it happens, that the questioner edits the question when he realizes the given answer(s) is/are correct, but don't answer what the really wanted to know.  The such called Ninja Edit.  I propose that there should be a special notification for anyone who posted an answer to a question, which gets edited afterwards.

Consider this situation. I post a legitimate and correct answer to a question and receive a few upvotes. Then the OP realizes that's not what they wanted to ask, and significantly rewrites the question, rendering my answer irrelevant and useless. Ideally the OP would comment on every answer saying "check my edit" but some people don't know to do that.  This leaves two possibly bad situations:   I never know, the answer stays, and the votes don't reflect the usefulness of the answer anymore. All of a sudden I get an influx of downvotes because my answer isn't helpful anymore. If I'm checking and notice my rep has dropped, I come back after the fact, edit the answer, and bring it back to the original quality. This is great, but 9 times out of 10, the downvoters never come back and notice the answer has been edited. It might get more upvotes, but it still doesn't reflect the true value of the answer.   If we can get notified when the OP gets edited, we can nip it in the bud and go back to edit our answers to match - thus maintaining the quality of the answers on SO.


I'm trying to cut back on dairy, and the storebought plant milks are either overpriced, not very good, or both. I figured the coconut flavoured stuff has to be some suspension/emulsion of coconut flesh in water, and tried getting somewhere just blending a can of coconut cream with four times the amount of water. (Any homemade tree nut milk like hazelnut doesn't really work out to save money.) This took a few minutes of blending then waiting to get all the fatty flesh to stop settling immediately, and tasted well enough with a little honey, but overnight it settled again and it's a nuisance to blend out everytime I want to make myself a protein shake. Is there any way I can stabilize this mixture to keep it pourable for a while longer?

I made some coconut milk. After a day in the fridge there was two layers of liquid in the jar, coconut water and solid coconut which I found out afterwards that it is called coconut butter! When I stir them together to  have my coconut milk back, it didn't work. Is there a way to prevent this? If not, is there a way to have coconut milk again?


What instance that this equation would be true?  $|x+y|=|x|+|y|$ Given that $x$, $y$ are elements of real numbers.

How do we show that equality holds in the triangle inequality $|a+b|=|a|+|b|$ iff both numbers are positive, both are negative or one is zero? I already showed that equality holds when one of the three conditions happens.


I'm trying to make a back-up of my Windows machine to an external usb-connected SSD. However, when I click "Add a drive" in "Backup Settings" I'm informed that "No usable drives found". Additionally, no drive is found via Control Panel\System and Security\File History\Select Drive.  I can see and access the drive in File Explorer, so I don't think it's a problem with the drive. The drive is formatted with NTFS, but is slightly smaller than the drive it's backing up. However, the data it's backing up is smaller than it's maximum capacity, so I would be surprised if that's the problem.  What are the requirements for a hard-drive to be used as a backup in Windows 10?

I'm trying to update my backup image, which should only includes the C drive.... except now Windows backup is forcing me to include my D drive and labeling it as a system drive, even though it doesn't do anything special (hosts a large VM and some other files) - shown below.  I've also include an image from disk management, in case it helps.  Any help would be appreciated.


I brought some interesting problem.  It is about Nullpointer exception and it is only occur at specific phone, Samsung Galaxy Note3-5.1.0. Since I didn't checked all the other phones, however, running on genymotion-samasung-galaxyS5-4.4.4 was fine.  The code is following.  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);        setContentView(R.layout.activity_main);     final LinearLayout btn_search = (LinearLayout) findViewById(R.id.searchBtn);     final LinearLayout btn_mypage = (LinearLayout) findViewById(R.id.mypageBtn);     final LinearLayout btn_map = (LinearLayout) findViewById(R.id.mapBtn);     Log.d("NULLPOINTER",": " + btn_search + " " + btn_map + " " + btn_mypage);  }   Then, the log is like,  D/NULLPOINTER: : null android.widget.LinearLayout{2ae0be1a V.E..... ......I. 0,0-0,0 #7f0e007d app:id/mapBtn} android.widget.LinearLayout{1db90d4b V.E...C. ......I. 0,0-0,0 #7f0e007e app:id/mypageBtn}   I checked all the R.id.*** and layout and since they are implemented in same way, I don't know what is the problem. Strangely, only the first one, which was lastly added is always null. However, on the other phones I can get the object well.  Do you know any idea?

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I know that $137 \times 73 = 10001 $. I am looking for a properly reasoned approach.  I believe that there is some general result also which says that all numbers of the form $10^k + 1$ (for $k>2$) are NOT prime. Why? I mean can the general expression for the factors of such numbers be found?

I have observed that all numbers of the form $10^{k} + 1$ are composite for $k{\gt}2$, and am trying to prove the same.   Progress  For odd $k$ , it is fairly obvious, as we get 11 as a divisor.  I am having difficulty with $k$ even. Have no clue how to approach. Would prefer a non-inductive approach, if possible  Developments  Thanks to crostul, we can say it is composite for $k$ having an odd divisor. Hence, it only remains to prove it for $k = 2^n$


Looking for a science fiction short story, probably published in 1960's or 1970's.  War has been formalized to a battle in a valley sized arena between two armies that is fought until only one soldier is left.  That solder is called a "Winner" and he is immune from all laws for the rest of his life. The wars are televised. Final scene is the "Winner" breaking into the house of a big fan of watching the wars and walking up the stairs to where his daughter is... anyone remember it?

I'm trying to help a teacher friend of mine with finding a short story he read when he was a teenager and has not been able to find since.  He described the story in the following way:  In a post-war world there is a setup in which Soviet/Russian soldiers are required to fight against American soldiers in an arena in which both sides have equal setup: a forest, a lake, etc. The winner of the 'game' has the right to govern for the next several years.  It's told from a first person point of view like you're watching the Olympic games and one American soldier gets shot, but is not killed.  He falls and other bodies fall on top of him so it seems the soviets win, however their last two soldiers happen upon him and he kills them first, rendering the United States victorious.  Given that he was the only survivor he has a sort of political amnesty in which he can do no wrong legally. He returns home and he essentially suffers from a form of PTSD.  The story ends with him watching a young girl next door get off the school bus; he walks to the neighbor's home, goes inside and, in front of the girl's parents follows the girl into her room and shuts the door, leaving the reader to assume whatever happens behind the door.  He's been looking for this story in different anthologies for some time.  Can anyone help?  Thanks so much! :)


Follow up question to . Problem is, if I add an extra y tick then the y label is shifted although it is not necessary at all (in my opinion). I try to make it very clear by adding an extra y tick that has the same size than the normal y ticks. In my opinion, this may be a bug.     \documentclass[tikz]{standalone}  \usepackage{pgfplots} \pgfplotsset{compat=newest} % <-- Causes dancing y label when adding  'extra y ticks'  \pgfplotsset{myDefaultStyle/.style =      {     width = 160mm,     height = 90mm,     axis x line = bottom,     axis y line = left,     ylabel = y Label,     xlabel = x Label,        grid = major,     }}  \begin{document}  % ######### Plot ######### % ######################## \begin{tikzpicture}     \begin{axis}[         myDefaultStyle,         xmin = 0,         xmax = 32,         ymin = 24.5,         ymax = 30.1,                 xtick = {0,10,20,30},            ytick = {25,26,30},          ]     % Plots      \addplot[domain=0:10,red]{x^2};          %        \end{axis} \end{tikzpicture}  % ######### Plot ######### % ######################## \begin{tikzpicture}     \begin{axis}[         myDefaultStyle,         xmin = 0,         xmax = 32,         ymin = 24.5,         ymax = 30.1,                 xtick = {0,10,20,30},            ytick = {25,26,30},              extra y ticks={25.5}, % <-- Added     ]     % Plots          \addplot[domain=0:10,red]{x^2};      %     \end{axis} \end{tikzpicture}  \end{document}

I have a series of graphs with similar formatting, but I'm finding some of the labels are positioned too far from the axis numbers, as shown in the screenshots below.     The below code reproduces the problem. If you comment out the extra y ticks line, the issue is corrected, which suggests these are somehow interfering in the calculation used to determine the correct position for the labels.   How can I get the labels to all be placed at the same distance from the axis? It should all look like the image on the right, regardless of whether the extra ticks are present or not.  \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document}  \begin{figure}[tp]     \centering     \begin{tikzpicture}     \begin{axis}[     xlabel={Absorption Energy ($cm^{-1}$)},     ylabel={Fluorescence Energy ($cm^{-1}$)},     xtick distance=5,ytick distance=10,minor y tick num=9,     extra y ticks={37425,37435,37445,37455,37465,37475,37485,37495,37505,37515,37525},     extra tick style={major tick length=0.15cm, xticklabels={}, yticklabels={}},     width=12.5cm,height=9.45817cm,     scale only axis=true,font=\footnotesize,enlargelimits=false,axis on top,xtick pos=left,ytick pos=left,tick align=outside,major tick length=0.2cm,tick style={black},scaled ticks=false,/pgf/number format/.cd,  1000 sep={\thinspace},     every axis y label/.style={at={(ticklabel cs:0.5)},rotate=90,anchor=near ticklabel},     every axis x label/.style={at={(ticklabel cs:0.5)},anchor=near ticklabel},     ]      \addplot graphics[xmin=37537.2353, xmax=37566.88252, ymin=37424.51271, ymax=37526.87033, includegraphics={keepaspectratio}] {example-image};      \end{axis}     \end{tikzpicture}     \caption{text} \end{figure}  \end{document}


I have a script for Engineer and Spy. For Spy I have an ambassador script. How do I prevent the ambassador script from spy.cfg from carrying over to the engineer.cfg?

I just started scripting and have a bunch for spy (to modify the cursor, remove view model, modify sensitivity, rebind keys, etc.).  How do I prevent scripts in the spy.cfg class file from spreading to all my other classes?


Let $f\colon \Bbb R^p \to \Bbb R$ be a continuous function and $B\subseteq \Bbb R$ be a Borel set. Show that $f^{-1}(B)\subseteq \Bbb R^p$ is a Borel set.

Let $f:\mathbb{R}^m\rightarrow\mathbb{R}^n$ be a continuous map. Show that if $A$ is a Borel subset of $\mathbb{R}^n$, then $f^{-1}(A)$ is a Borel subset of $\mathbb{R}^m$.   I know that for $A$ open subset of $\mathbb{R}^n$, then $f^{-1}(A)$ is open. Likewise for closed. A Borel subset is a countable unions/intersections of these sets, done repeatedly. From those facts, combined with $f^{-1}(A\cup B)=f^{-1}(A)\cup f^{-1}(B)$ and $f^{-1}(A\cap B)=f^{-1}(A)\cap f^{-1}(B)$, the statement should be intuitively true.  But to do it rigorously, I want to write $A$ as open and closed sets. But since the countable union/intersection can be done repeatedly, I don't know how I can write it that way.


I tried Ubuntu 18.04, Budgie, and both have the same probelm when using nvidia dirver 390 & 396. When resume from suspend the system logout and every program I was working on is closed. It seems that nvidia driver is not supporting any change I make on xorg. When switch back to nouveau, the system works normally, and suspend resume is not logging out. I have almost every solution on the web, including nvidia forum and SE, none of them works. UPDATE: I reset recursively org.gnome using dconf-editor and now it works probably till now, it seems to be a gnome-shell problem NEW  This problem is not a swap error, since I tried to turnoff the swap, in addition, I read the journal output, I is related to gnome-shell dealing with nvidia leads to kill the session when turning on the screen, or waking from sleep. note: I know this question may be duplicated but for some reason I can't post any answer or put any comment. Please Please If you realy know the answer share it otherwise don't comment any off topic comment

After the laptop has been in sleep mode for a couple of hours,when I try and resume my session I get the following error:     Read-error on swap device    It takes about 30 seconds for the login screen to load post this happening. Once I log in, the screen blanks out once or twice for a second, and none of my programs are open anymore. I get a "System problem detected" prompt. When I click on "Send Report", another notification pops up saying:     Sorry the program "Xorg" closed unexpectedly. Your computeer does not have enough free memory to automatically analyze the problem and send a report to the developers.   What I have tried so far is to increase the swap space available. It was around 2 GB initially and I created another swap file of 9 GB. This hasn't helped. The occupied swap space ( as per the swapon command ) after the crash is always around 170MB.  The DMESG for when I resume my session, up to the read error on swap device is as follows:       [64046.474054] ACPI: Low-level resume complete [64046.474162] ACPI: EC: EC started [64046.474162] PM: Restoring platform NVS memory [64046.475139] Enabling non-boot CPUs ... [64046.475196] x86: Booting SMP configuration: [64046.475196] smpboot: Booting Node 0 Processor 1 APIC 0x2 [64046.475663]  cache: parent cpu1 should not be sleeping [64046.475859] CPU1 is up [64046.475910] smpboot: Booting Node 0 Processor 2 APIC 0x4 [64046.476330]  cache: parent cpu2 should not be sleeping [64046.476506] CPU2 is up [64046.476539] smpboot: Booting Node 0 Processor 3 APIC 0x6 [64046.477071]  cache: parent cpu3 should not be sleeping [64046.477255] CPU3 is up [64046.477274] smpboot: Booting Node 0 Processor 4 APIC 0x1 [64046.477721]  cache: parent cpu4 should not be sleeping [64046.477922] CPU4 is up [64046.477947] smpboot: Booting Node 0 Processor 5 APIC 0x3 [64046.478371]  cache: parent cpu5 should not be sleeping [64046.478571] CPU5 is up [64046.478591] smpboot: Booting Node 0 Processor 6 APIC 0x5 [64046.479018]  cache: parent cpu6 should not be sleeping [64046.479229] CPU6 is up [64046.479247] smpboot: Booting Node 0 Processor 7 APIC 0x7 [64046.479675]  cache: parent cpu7 should not be sleeping [64046.479899] CPU7 is up [64046.485913] ACPI: Waking up from system sleep state S3 [64046.639206] ACPI: EC: event unblocked [64046.639711] sd 2:0:0:0: [sda] Starting disk [64046.873289] usb 1-11: reset full-speed USB device number 2 using xhci_hcd [64046.976869] ata4: SATA link down (SStatus 4 SControl 300) [64046.976892] ata2: SATA link down (SStatus 4 SControl 300) [64047.149289] usb 1-6: reset high-speed USB device number 40 using xhci_hcd [64047.437370] psmouse serio1: synaptics: queried max coordinates: x [..5660], y [..4570] [64047.476302] psmouse serio1: synaptics: queried min coordinates: x [1364..], y [1284..] [64047.922603] OOM killer enabled. [64047.922605] Restarting tasks ... done. [64047.928727] thermal thermal_zone1: failed to read out thermal zone (-61) [64047.930036] Bluetooth: hci0: Bootloader revision 0.0 build 2 week 52 2014 [64047.935036] Bluetooth: hci0: Device revision is 5 [64047.935037] Bluetooth: hci0: Secure boot is enabled [64047.935038] Bluetooth: hci0: OTP lock is enabled [64047.935038] Bluetooth: hci0: API lock is enabled [64047.935039] Bluetooth: hci0: Debug lock is disabled [64047.935040] Bluetooth: hci0: Minimum firmware build 1 week 10 2014 [64047.935042] Bluetooth: hci0: Found device firmware: intel/ibt-11-5.sfi [64047.944372] PM: suspend exit [64048.050329] Read-error on swap-device (8:0:1543400288) [64048.460888] [drm] RC6 on   Please let me know if any other information is needed.


I'm new in this forum; I've got an Asus s56 laptop with Windows 8 installed and UEFI bios; I have to use Ubuntu to work, so i installed it on an external hard drive; Few days ago i had to uninstall Ubuntu, and when i entered the boot menu i realised that maybe i installed the boot loader in windows hard disk, because in the boot list there is the ubuntu option;if I try to boot from it ,the grub doesn't find the partition (and this is what I expect, because Ubuntu was on an external disk); somebody on this forum suggested to delete the directory EFI/ubuntu , but i don't find it in my EFI partition; so, the question is : how can i delete the unused boot option without making mistakes?  Thanks and sorry for the errors, I'm from Italy

See this   I have this on my Lenovo s205 too.   Is there some way to remove "ubuntu" from the menu? I don't even have it installed anymore.


Can we change the cell text color based on value? for example: if a cell value is "Active" then make the color green, if not then make it red.    I have checked cellAttribute for lightning:datatable documentation, but it's not helpful.

Canonical Question  I want to do <some really cool thing> with a lightning:datatable, but I can't seem to figure out how to do it. I checked the , but I did not see a way to implement <this really cool feature I need>.  Perhaps I want to provide tooltips, or a pick list, or alter the behavior of the menus, or display images, or show a custom component I created, or define a new row-level click behavior, or alter the keyboard event handlers, etc.  Can I somehow do this?


I was wondering, what would Kant and the categorical imperative say about the following situation?  Person A has made a promise to person B that Person A would not tell of a crime of stealing in a shop that Person B was to commit. However, Person A also happens to know the shopkeeper and has in the past promised the shopkeeper to report any crime that Person A knew was committed in the shop.   Now, we are living in the moment just after B has committed the crime of stealing (unnoticed by others).   The question is now, from a Kantian view, what is the right thing morally for A to do?

Suppose a German SS officer knocked on my door, asking me whether I had any Jews. And suppose further that I had two Jews in a secret compartment in the attic that he'd never be able to find. Everybody will agree that I must lie and say I haven't any Jews in my house. But I'd have to disobey Kant's categorical imperative "do not lie", because I felt obliged to "not betray innocent people leading to their death". Both imperatives can be supported if I ask myself the question "what if everyone did it?". If everyone lied whenever they felt like it, society and civilization would collapse. Therefore I must never lie. But society would be a grim, inhumane place if everyone cooperated in killing the innocent. Therefore I must never betray those under my protection. How can this be solved? I remember hearing two "solutions":  I must heed both imperatives and choose a third option, thereby violating neither: "I refuse to answer you". This would result in my death, but I would have upheld both imperatives. I find this absurd; I do not think Kant would have wanted this. And yet, when challenged by Constant with a similar situation, he said that one should challenge the murderer or refuse to answer. In this case, that would lead to my house being burned down, the Jews dying an even more horrible death.  The "do not lie" imperative is too broadly formulated: it should be "do not lie, except when your lie would save another's life". I find this very weak: the power of a categorical imperative would be that it is a broad statement. It should be a universal law. The fundamental problem would seem to be that each rule saying "I wouldn't want everyone to do this" has a reasonable exception, and that it should not be left to each single person to determine what the exceptions are depending on a particular situation. I believe Schopenhauer offered similar criticism.   How did Kant solve this problem while keeping his categorical imperatives intact? Or, if he didn't, how could it be solved hypothetically?


I have an excel workbook that I would like to implement in SQL.  The workbook has three sheets:   Sheet 1 is Options Sheet 2 is Data Sheet 3 is Results   In Excel, the results sheet performs an index match with three criteria and returns values (matches) from the data sheet. Two of the three criteria are on the options sheet, the other on the results sheet.  1) Can SQL columns update based on criteria in other tables and can it do it automatically as the values in the other tables change?  2) Can SQL match data across multiple columns so that results look like the data below.  Hopefully the Dummy Data below helps explain things.    Thanks  Karen

I have two tables with date and id fields. I want to join on both fields.  I tried   JOIN t2 ON CONCAT(t1.id, t1.date)=CONCAT(t2.id, t2.date)   that works, but it is very slow. is there a better way to do this?


On main sites downvotes are usually used to show that answer is incorrect. On meta sites downvotes  to express agreement or disagreement.  On main sites downvotes cost reputation so that people downvote only posts that  it as it may give bad feelings to answerer. But it can't be a reason on Meta as it's explicitly said that votes mean another thing here.  So why downvotes cost reputation on Meta?

Voting on Meta sites generally express agreement and disagreement with a proposal, unlike on the Q&A sites where they indicate useful/good vs. non-useful/bad content.  It seems to me that a down-vote on Meta Stack Exchange should not carry a -1 rep penalty, which only discourages down-voting. With this discouragement, questions on Meta SE will be biased towards agreement, since for every up-voter, there may be several in disagreement who don't want to lose the rep for down-voting.  Can the penalty for down-voting on Meta SE be removed?


In its page on  Wikipedia says      It follows from the prime number theorem that for any real    $\varepsilon >0$ there is an $n_0 > 0$   such that for all $n > n_0$    there is a prime $p $  such that $n < p < ( 1 + ε )n$  .   I need to quote this result for  $\varepsilon = 1/2$. I'd like a reference more formal than Wikipedia.

Is there is metric to know how far we are from the nearest prime number. For example if my number is 38, then we are 3 numbers away from 41?  If such a metric doesn't exist, is there an upper bound saying that we must find a prime number before (say) the next 300 numbers?


I have JRE installed on my PC, however in chrome Java plugins are missing, it was working fine, since today, Java plugin is missing from Chrome browser.  I have installed JRE, but problem still persists.   What could be the reason and how can I resolve this issue?

As stated in :     In April 2015 (Chrome 42) NPAPI support will be disabled by default in   Chrome and we will unpublish extensions requiring NPAPI plugins from   the Chrome Web Store. All NPAPI plugins will appear as if they are not   installed, as they will not appear in the navigator.plugins list nor   will they be instantiated (even as a placeholder). Although plugin   vendors are working hard to move to alternate technologies, a small   number of users still rely on plugins that haven’t completed the   transition yet. We will provide an override for advanced users (via   chrome://flags/#enable-npapi) and enterprises (via Enterprise Policy)   to temporarily re-enable NPAPI (via the page action UI) while they   wait for mission-critical plugins to make the transition. In addition,   setting any of the plugin Enterprise policies (e.g. EnabledPlugins,   PluginsAllowedForUrls) will temporarily re-enable NPAPI.   So, April came and Google Chrome disabled NPAPI plugins, including Java.  How to re-enable them on Windows machines?


debian8@hwy:~$ sudo cat /etc/sudoers |grep debian8 debian8  ALL=(ALL:ALL) NOPASSWD:ALL   It means debian8 is a permitted user to execute a command as the superuser. I want to write something into a log file.  debian8@hwy:~$ trafficlog="/var/log/traffic.log" debian8@hwy:~$ sudo echo -n `date "+%Y-%m-%d %H:%M:%S"` >> $trafficlog bash: /var/log/traffic.log: Permission denied   debian8 has root permission,why can't write date record into the trarric log?

When you attempt to modify a file without having write permissions on it, you get an error:  > touch /tmp/foo && sudo chown root /tmp/foo > echo test > /tmp/foo zsh: permission denied: /tmp/foo   Sudoing doesn't help, because it runs the command as root, but the shell handles redirecting stdout and opens the file as you anyway:  > sudo echo test > /tmp/foo zsh: permission denied: /tmp/foo   Is there an easy way to redirect stdout to a file you don't have permission to write to, besides opening a shell as root and manipulating the file that way?  > sudo su # echo test > /tmp/foo


Today I faced this kind of situation. Suddenly I get repeated up votes from a particular user (4 up votes) and today I reached the reputation limit of 200.  Assume if those votes are reversed, would I be gaining the up votes/reputation I got after reaching 200?    Is there not a mechanism to report this kind of serial upvotes?

I just noticed that I lost a bunch of points from my reputation score, and I used the "reputation" tab on my user profile page to try and track down the cause.  During my investigation, I noticed there was an unusual event of type "reversal". In the normal place of a question title, it says "voting corrected".     What does this mean, and what caused it?  Did I do something wrong? Why did I lose all of that reputation? Is the system punishing me for leaving too many good answers?  Is there any way to earn it back?


What are the (philosophical) implications  (if any ) of     experimental result, in relation to the Bohr - Einstein debates and hidden variable theories of quantum mechanics? A related question can be found

new finding by Minev et al. seems to suggest that transitions between atomic states are not instantaneous, but continuous processes wherein a superposition smoothly adjusts from favoring one state to another (if I understand it correctly). The authors also claim to be able to catch a system "mid-jump" and reverse it. Popular articles are  and .  I am curious if this finding rules out any interpretations of QM. It seems to generally go against the Copenhagen attitude, which describes measurements as collapsing physical systems into a definite classical state. The popular articles indeed claim that the founders of QM would have been surprised by the new finding.  The link with the asterisk mentions that something called "quantum trajectories theory" predicts what was observed. Is this an interpretation, or a theory? And are they implying that other interpretations/theories don't work?


According to the definition a  is defined as the      duration of 9,192,631,770 periods of the radiation corresponding to   the transition between the two hyperfine levels of the ground state of   the cesium-133 atom.   Why specifically 9,192,631,770? Is there a scientific purpose for such?   And if there is a scientific purpose, why is this method (cesium atomic clock) the most accurate for it?

The earth's rotation around itself (one rotation around Earth's own axis) doesn't take exactly 24 hours. It off by some seconds which becomes somewhere around 6 hours per year and 1 day in 4 years(leap year), which brings the question why didn't we modify the measurement of 1 second ever so slightly so as to avoid leap years altogether.   Well how is 1 second measured exactly?  says      the duration of 9,192,631,770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium 133 atom. []   Well, why is it measured that way? Is there any technical reason like it is easy to measure and can be standardized easily? Or is it really possible to modify the measurement of time?


If I resolve a , can I crack a  before I draw?

I cast  on my opponent, whose hand has two Mountain cards. Wistful Thinking resolves and my opponent draws a  and another Mountain.  Can my opponent cast Shock before discarding it?


The question states:  Prove that $|(0,1)| = |(-e, \pi)|$.   I am assuming this has something to do with the Cantor-Bernstein-Schröeder Theorem, but I don't really have a good understanding as to how to apply it.  How would I show this proof?

I have to prove that $(2,4)$ and $(-1,17)$ have the same cardinality.  I have the definition of cardinality but my prof words things in the most confusing way possible. Help!


Is there any figure possible with infinite area but finite perimeter or finite area but infinite perimeter? If yes, then what's the proof of its existence.

Is this really possible? Is there any other example of this other than the Koch Snowflake? If so can you prove that example to be true?


The equation of a line is of the form:  \begin{align*} Ax + By + C = 0 \end{align*}  My question is, how has this equation been obtained? Why, for example, does the term $A$ multiply $x$, instead of dividing it or simply not being? Why does this equation describe all those points and what is the proof that this is true?  Thanks in advance.

I know the equation, $y = mx + b$ where $m$ is slope and $b$ is $y$-intercept, is a straight line. But I know also that $Ax + By = C$ is a straight line equation, but how does it represent a straight line?


Function $f(x)$ is defined as: $f(x) =0$ when $x=0$, and $f(x) = n$ when $x \in (\frac{1}{n+1}, \frac{1}{n}]$. Calculate $\int_0^1 f(x) dx$.  Assuming that we can safely ignore when $x=0$, then when $x\in (\frac{1}{n+1},\frac{1}{n}]$, we essentially have  $$1\times\left(1 - \frac{1}{2}\right)+2\times\left(\frac{1}{2}-\frac{1}{3}\right)+\cdots=\sum_{n \ge 1} n\left(\frac{1}{n}-\frac{1}{n+1}\right)=\sum_{n \ge 1}\frac{1}{n+1}$$  But then the series diverges by integral test. So I am confused.

Calculate $\int_0^1f(x)dx$,where $$\ f(x) = \left\{    \begin{array}{l l}     0 & \quad \text{if $x=0$ }\\     n & \quad \text{if $x\in(\frac{1}{n+1},\frac{1}{n}]$}   \end{array} \right.$$  How we can calculate this integral?  Is this simply  $$\int_0^1f(x)dx=\int_{\frac{1}{n+1}}^{\frac{1}{n}}ndx=n\left(\frac{1}{n}-\frac{1}{n+1}\right)=\frac{1}{n+1}$$?


When I'm browsing questions and I come across an answer that fits one of the Recommend Deletion reasons from the Low Quality review queue, I'm not able to flag the answer with one of those reasons.  For example, when a user posts an answer along the lines of "thank you @user, your answer helped me", in the review queue you can recommend deletion with This is a “thank you” comment and it will automatically post a comment saying “Please don't add "thank you" as an answer. Instead, vote up the answers that you find helpful.”  I guess this is intentionally not available outside of the review queue, but why is that?    Just noticed, some answers have a it is very low quality flag reason available while other's don't. What controls the availability of this flag reason?

What is the "Not an Answer" flag and what is its purpose? When should I use this flag? When should I not use this flag? But I'm still not sure if I'm using the flag correctly... An answer is "Not an Answer", but the flag was declined or disputed!   See also:


The question is: "Prove that if G is a connected planar simple graph, then G has a vertex of degree at most five."  It baffles me because a connected planar simple graph CAN have a vertex of degree more than five.  Am I misunderstanding the wording?  I mean what if I just draw a hexagon with 6 vertices and connect them all to a 7th vertex in the centre?

I'm trying to study (by myself) planar graphs. On the book I'm reading, I came across this sentence about the 5-coloring problem that I really don't understand:  Lemma 5.8.15. Every planar graph has a vertex of degree at most five. Proof. By contradiction. If every vertex had degree at least 6, then the sum of the vertex degrees is at least 6v, but since the sum of the vertex degrees equals 2e, by the Handshake Lemma (Lemma 5.2.1), we have e  3v contradicting the fact that e  3v <= 6 < 3v by Theorem 5.8.6.  I don't get why a planar graph has a vertex of degree at most five. If I take the 9-star graph there will be a node with degree 9 and the graph will still be planar so the maximum degree is greater than 6. Can anyone explain this to me? Thank you.


I am looking for a closed form for $\displaystyle S= \sum_{k=0}^n x^k \binom{n}{k}^2$. Does there exist such closed form?

I am trying to evaluate the finite sum \begin{equation} f(u)=\sum_{k=0}^n{n\choose k}^2u^k,\quad 0<u\le1 \end{equation}  In an first attempt, I think of the generating function \begin{equation} (1+x)^n(u+x)^n = \sum_{k\ge0}{n\choose k}x^k\sum_{k\ge0}{n\choose k}u^kx^{n-k}=\cdots+x^n\sum_{k\ge0}{n\choose k}^2u^k+\cdots \end{equation}  which means that $f(u)$ is the coefficients of the term $x^n$.  Expanding $(1+x)^n(u+x)^n$ into $[1+(1+u)x+x^2]^n$, and using the multinomial expansion, I get an expression for the coefficient of $x^n$. However, such an expression is more complicated than $f(u)$. It seems I am making the problem even more difficult.  Can someone help me find the value of $f(u)$.  Thank you.


I'm trying to install  on my Ubuntu box (11.04). The website has a Ubuntu .deb available for download (for 10.10 and 10.04 so I chose 10.10).   However,   sudo dpkg -i mysql-workbench-gpl-5.2.34-1ubu1010-amd64.deb   yields:  (Reading database ... 194069 files and directories currently installed.) Preparing to replace mysql-workbench-gpl 5.2.34-1ubu1010 (using mysql-workbench-gpl-5.2.34-1ubu1010-amd64.deb) ... Unpacking replacement mysql-workbench-gpl ... dpkg: dependency problems prevent configuration of mysql-workbench-gpl:  mysql-workbench-gpl depends on libctemplate0; however:   Package libctemplate0 is not installed.  mysql-workbench-gpl depends on libpython2.6 (>= 2.6); however:   Package libpython2.6 is not installed.  mysql-workbench-gpl depends on libzip1 (>= 0.8); however:   Package libzip1 is not installed.  mysql-workbench-gpl depends on python-paramiko; however:   Package python-paramiko is not installed.  mysql-workbench-gpl depends on python-pysqlite2; however:   Package python-pysqlite2 is not installed. dpkg: error processing mysql-workbench-gpl (--install):  dependency problems - leaving unconfigured Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for desktop-file-utils ... Processing triggers for python-gmenu ... Rebuilding /usr/share/applications/desktop.en_US.utf8.cache... Processing triggers for python-support ... Errors were encountered while processing:  mysql-workbench-gpl   My question is, is there a way to tell dpkg to automatically fetch missing dependencies, or do I need to manually apt-get install missing packages like libctemplate0 and  libpython2.6?   (Or alternatively, is there some other way to get MySQL Workbench easily up & running?)

Say, I have foo-1.2.3.deb which depends on perl and python, however, running command:  dpkg -i ./foo-1.2.3.deb   won't install these dependencies. So I must apt-get install perl python by hand.  How to make dpkg -i install these dependencies for me automatically?


In the Dark Knight Rises during the ending scene, we see that Alferd is crying in front of Gordon and Blake at Bruce Wayne's Funeral. After sometime we see that Alferd sees Brue Wayne and Selina Kayle at a place (as he had imagined once). So I want to know that when did Alfred come to know about the reality of Bruce's death?  Had he known it all before because if that is the case then his crying at funeral was just a mask to fool Gordon and Blake.  Or is it that at that time he genuinely believed that Bruce is dead and only later he came to know that he is alive and where to find him?

Near the end of The Dark Knight Rises, Alfred is fed up with Bruce's inability to let go of Batman and quit despite Alfred saying to him      "I've buried enough members of the Wayne family"   so Alfred leaves Bruce.  In the final moments of the film, we see Alfred, sipping his drink in Italy, as he spots Bruce with Selina Kyle-- just as he said he dreamed to one day.  In the interim, Alfred is gone to who-knows-where. His whereabouts are never discussed, never explained or intimated about.  So: was Alfred in on Bruce's plan to 'kill' both Batman and Bruce Wayne, so that Bruce could finally be free? Would they assume the League of Shadows had a way of keeping tabs on their actions, so their fight was just an act?


I'm at my wit's end please help me. I have done all the things I needed to do with the controller and it still won't pick up. It does charge it but won't let me do anything with the PS4 even when I put it in safe mode.

I was playing my PS4 two days ago and then packed it up with two controllers that were both connected to this PS4.   I got to where I was going, set everything up and now the controllers won't connect. They show pulsing orange when they plug in, but when I hit the PS Button to connect, it blinks white 1-2 times and goes back to orange.   I have tried resetting them both.  Can anyone help?


I know very little about general relativity. I know that objects with mass bend space. How would you arrange objects to get a wormhole? My main problem is that I do not understand how you would change the topology of space to make the hole part in the wormhole.

We regularly get questions about wormholes on this site. See for example  and . Various wormhole solutions are known, of which my favourite is  because it's closest to what every schoolboy (including myself many decades ago) thinks of as the archetypal wormhole.  The trouble is that Visser has pulled the same trick as  of starting with the required (local) geometry and working out what stress-energy tensor is required to create it. So Visser can tell us that if we arrange exotic string along the edges of a cube the spacetime geometry will locally look like a wormhole, but we know nothing about what two regions of spacetime are connected.  My question is this: suppose I construct a Visser wormhole by starting in Minkowksi spacetime with arbitrarily low densities of exotic matter and gradually assembling them into the edges of a cube, how would the spacetime curvature evolve as I did so?  I'm guessing that I would end up with something like Wheeler's bag of gold spacetime. So even though I would locally have something that looked like a wormhole it wouldn't lead anywhere interesting - just to the inside of the bag. I'm also guessing that my question has no answer because it's too hard to do any remotely rigorous calculation. Still, if anyone does know of such calculations or can point me to references I would be most interested.


Suppose $g\in C^1 [a,b]$. Prove that for all $\epsilon > 0$, there is $\delta > 0$ such that $|{g'(c)} - {{g(d)-g(c)} \over {d-c}} |{< \epsilon }$ for all points $c,d \in [a,b]$ with $0 <|d-c|< \delta$  First, I don't know what  $|{g'(c)} - {{g(d)-g(c)} \over {d-c}}|$ mean. Does $g\in C^1 [a,b]$ imply, $g'(c)$ is zero? Also how does $g'(c) = \lim_{d\rightarrow c}{{g(d)-g(c)} \over {d-c}}$ apply to the question?  To prove the statement in the question, I guess I need to have $||f(d)-f(c)|| \in \epsilon$ whenever $||d-c|| < \delta$, for $c,d \in [a,b]$. Then how do I show $|{g'(c)} - {{g(d)-g(c)} \over {d-c}}|$ = $||f(d)-f(c)||$.  Hints please!  Thanks!

Suppose $g\in C^1 [a,b]$. Prove that for all $\epsilon > 0$, there is $\delta > 0$ such that $|{g'(c)} - {{g(d)-g(c)} \over {d-c}} |{< \epsilon }$ for all points $c,d \in [a,b]$ with $0 <|d-c|< \delta$   First, I don't know what $C^1 [a,b]$ means.  Some ideas:  By Mean value theorem, $g'(c) =  {{g(b)-g(a)} \over {b-a}} $ since $c\in[a,b]$.   To show $|{g'(c)} - {{g(d)-g(c)} \over {d-c}} |{< \epsilon }$ whenever $0 <|d-c|< \delta$ for $ c,d \in [a,b]$. I guess I have to use the definition of limit of continuous function. But, I don't know how to connect all of these ideas.


I am reading an article in which the author states that given two i.i.d random variables $X,Y\sim\mathcal{N}(0,1)$, we have $\mathbb{P}(\frac{X}{Y}\le t)=\mathbb{P}(\frac{X}{|Y|}\le t)$ since the random varaibles $\frac{X}{Y}$ and $\frac{X}{|Y|}$ are identically distributed by the symmetry of the standard normal distribution.  But I don't really understand why the random variables $\frac{X}{Y}$ and $\frac{X}{|Y|}$ are identically distributed. Can you provide a reason for why these two random variables are identically distributed?


My file here below has issues with referencing and do not know the problem is: Check this link to see output:   \documentclass[titlepage, 12pt]{article}  \usepackage{geometry} %set page margins \geometry{left=1.5in, right=1in, top=1in, bottom=1in} \usepackage{afterpage}  \usepackage{setspace} %set line spacing  \doublespacing \usepackage{ragged2e} %control centering and justifying  \usepackage[utf8]{inputenc} %set page numbering style  \usepackage{booktabs} %set table format \usepackage{multirow} \usepackage{caption} \usepackage{threeparttable}  \usepackage{float} %set graphics format \usepackage{graphicx} \usepackage{caption} \usepackage{subfig} \usepackage{rotating} \usepackage{tabularx}  \usepackage{amsmath} %allow use of math text \usepackage{apacite}  %I added this for references \usepackage{amssymb} \usepackage{bm} \usepackage{units}  \usepackage{listings} %allows for R code   \usepackage{color, soul} %allows to highlight text when editing   \usepackage{cite} %establish citation connection  \usepackage{blindtext} %allow dummy text for template      \begin{document}   \section{}  I am trying to make my citations work \cite{albert2014} \centering \renewcommand{\refname}{\normalsize \normalfont LIST OF REFERENCES}  %\bibliographystyle{plain} \bibliographystyle{apacite} \bibliography{refff}   %Section 14.  \newpage \pagenumbering{arabic} \setcounter{page}{17} \newgeometry{left=1.5in, right=1in, top=2in, bottom=1in} \afterpage{\aftergroup \restoregeometry} \doublespacing \centering  APPENDIX A  APPENDIX A TITLE  %Section 15.  \newpage \pagenumbering{arabic} \setcounter{page}{18} \newgeometry{left=1.5in, right=1in, top=2in, bottom=1in} \afterpage{\aftergroup \restoregeometry} \doublespacing \centering  APPENDIX B  APPENDIX B TITLE  \end{document}   refff.bib  @article{albert2014,   title={Estimating overall exposure effects for zero-inflated regression models with application to dental caries},   author={Albert, J.M. and Wang, W. and Nelson, S.},   journal={Statistical Methods in Medical Research},   volume={23},   number={3},   page={257--278},   doi={{10.1177/0962280211407800}},   year={2014},   publisher={SAGE Publications} }

I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists.   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   My bibliography (Bib.bbl)  @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }    Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg  \begin{thebibliography}{}  \end{thebibliography}


I install Ubuntu on my notebook bought in USA but I'm from Brazil, the problem is, because of the keyboard model, I have to run this command every time I turn on my system:  "setxkbmap -model abnt2 -layout br -variant abnt2"  How can I turn this process automatic, or maybe install a keyboard model. Sorry for bad enlgish.

How can I run scripts automatically when Ubuntu starts up so I don't have to run them manually after startup?


I've written my own class (some kind of student research project).    As far as I tested it with TeXlive 2017 and MiKTeX (up-to-date) it is working fine. Now a colleague tried to compile with TeXlive 2015 and run into an error. I could reproduce the same error by installing TeXlive 2015 sudo apt-get install texlive-full under Ubuntu LTS 16.04.  I created the following MWE  \documentclass{iodhbwm} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \begin{document} Hello World \end{document}   and got the error  ! Illegal unit of measure (pt inserted). <to be read again>                     f l.263 \definecolor{DHBW-blue}{HTML}{026f93}   My problem is why do I get this error with TeXlive 2015 and not with TeXlive 2017 or with MiKTeX? How can I start debugging at this point?  You can find the color definition inside  at line 263.

I am trying to write a script (that will be easy) to create a  for the package xcolor. Look at this MWE:  \documentclass{article} \usepackage{xcolor} % \definecolorset{HTML}{xkcd}{}{%     OneColor,fcc2d9;%     LastColor,56ae57% } \begin{document}     \textcolor{xkcdOneColor}{OneColor} \textcolor{xkcdLastColor}{LastColor} \end{document}   ...this will fail with:   This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) [...] ! Missing number, treated as zero. <to be read again>                     f l.6 }  ?    If I change the first f in OneColor to a, for example:   \definecolorset{HTML}{xkcd}{}{%     OneColor,acc2d9;%     LastColor,56ae57% }   ...now it works ok.   I understand I can circumvent this easily (seems that uppercase F does not create any problem), but I am curious: is it a bug or a driver (/me) error?


I have a vb.net 4.6.1 Windows Forms application.  In it, a SQL stored procedure is called.  That stored procedure then deletes a record from a table.  This is all working fine.  That table has a delete trigger that sends an e-mail.  That trigger fails because of a permissions issue to the msdb database.  What's going on here?  I'm guessing the trigger is trying to use the app user's SQL user to send e-mail.  I don't want to set up every user in the msdb database.  I want the trigger to run and send an e-mail no matter what user causing the trigger to fire.  Is there a way for the trigger to send e-mail without using the app user's permission? Here's the error message: The EXECUTE permission was denied on the object 'sp_send_dbmail', database 'msdb', schema 'dbo'.  Here's the vb.net code.  It just calls the stored procedure:             Dim cmd As SqlCommand = MSSQL_CONN.CreateCommand              cmd.CommandType = CommandType.StoredProcedure             cmd.CommandText = "sp_cancel_backlog_detail"             cmd.Parameters.Add("@id", SqlDbType.Int).Value = backlog_detail_id              Call cmd.ExecuteNonQuery()  Here's the connection string the app is using: SERVER=sql01;DATABASE=MyDatabase;Integrated Security=SSPI;Connect Timeout=10;Pooling=false;MultipleActiveResultSets=True;  Here's the stored procedure.  Again, pretty simple in that it just deletes a record form the table: CREATE PROCEDURE [dbo].[sp_cancel_backlog_detail] @id int  DELETE FROM backlog_details WHERE id = @id;  Here's the delete trigger on the table.  This is where the e-mail is sent: ALTER TRIGGER [dbo].[delete_backlog_details] ON [dbo].[backlog_details] AFTER DELETE AS BEGIN  DECLARE @body NVARCHAR(MAX) DECLARE @subj VARCHAR(255), @rcpt VARCHAR(MAX), @atch VARCHAR(255), @q VARCHAR(255), @profile VARCHAR(255)            SET @rcpt = 'xxxxx'           SET @subj = 'Deleted'            SELECT @profile = value           FROM dishbooks.dbo.settings           WHERE name = 'event_manager.dbmail_profile'            EXEC msdb.dbo.sp_send_dbmail                @execute_query_database = 'MyDatabase',                @profile_name = @profile,                @blind_copy_recipients = @rcpt,                @subject = @subj,                @body = @body,                @body_format = 'HTML'  END

Is there a way to provide access to users in my database to execute  msdb.dbo.sp_send_dbmail without needing to add them to the MSDB database and the DatabaseMailUserRole?  I've tried this:  ALTER PROCEDURE [dbo].[_TestSendMail] (   @To NVARCHAR(1000),   @Subject NVARCHAR(100),   @Body NVARCHAR(MAX) ) WITH EXECUTE AS OWNER AS      BEGIN         EXEC msdb.dbo.sp_send_dbmail @profile_name = N'myProfile',             @recipients = @To, @subject = @Subject, @body = @Body     END   But I get this error:  The EXECUTE permission was denied on the object 'sp_send_dbmail', database 'msdb', schema 'dbo'.   Thanks!


bool func(double &u, double &v){     .     .     .     if((u+v) <= 1.0)         return false;     cout <<"u:  " << u << "  v:  " << v << endl;     return true; }   I have a function like this.  Output is:  u: 0.914812  v:  0.0851877   Their sum is: 0.9999997. However the program does not go in the if statement. It returns true. Why?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I need to replace a string in a file by another string which is stored in a variable. Now I know that   sed -i 's|sourceString|destinationString|g' myTextFile.txt   replaces a string but what if destination String was a combination of a hard coded string and a variable?  myString="this/is_an?Example=String" sed -i 's|sourceString|${myString}destinationString|g' myTextFile.txt   The latter doesn't work, since $myString is not interpreted as a variable.

I tried the following code to replace QQ with ZZ, but it doesn't do what I want:  var1=QQ sed -i 's/$var1/ZZ/g' $file   However, this code does what I want:  sed -i 's/QQ/ZZ/g' $file   How do I use variables in sed?


Let $X$ denote an open subset of $\mathbb{R}^n$. Suppose $n \in \{0, 1, \dots\}$, $0 < \gamma \le 1$. Does it necessarily follow that $C^{n, \gamma}(\overline{X})$ is a Banach space?

I am trying to show that the Hölder space $C^{k,\gamma}(\bar{U})$ is a Banach space. To do this, I successfully proved that the mapping $\| \quad \| : C^{k,\gamma}(\bar{U}) \to [0,\infty)$ is a norm, by proving its properties.   But how do I show that the sequence $\{u_k\}_{k=1}^\infty \subset C^{k,\gamma}(\bar{U})$ converges to $u \in C^{k,\gamma}(\bar{U})$, that is, how do I show that $$\lim_{k \to \infty}\|u_k-u\|=0,$$ which would mean the normed linear space is complete, and hence a Banach space?  Here are the following taken from PDE Evans, 2nd edition, page 255:     Definition. The Hölder space $$C^{k,\gamma}(\bar{U})$$ consists of all functions $u \in C^k(\bar{U})$ for which the norm $$\|u\|_{C^{k,y}(\bar{U})}:= \sum_{|\alpha|\le k} \|D^\alpha u \|_{C(\bar{U})}+\sum_{|\alpha|=k} [D^\alpha u]_{C^{0,\gamma}(\bar{U})}$$ is finite.   Also from page 254,     Definitions. (i) If $u : U \to \mathbb{R}$ is bounded and continuous, we write $$\|u\|_{C(\bar{U})}:=\sup_{x\in U}|u(x)|.$$      (ii) The $\gamma$th-Hölder seminorm of $u : U \to \mathbb{R}$ is $$[u]_{C^{0,\gamma}(\bar{U})}:=\sup_{\substack{x,y\in U \\ x \neq y}} \left\{\frac{|u(x)-u(y)|}{|x-y|^\gamma} \right\},$$ and the $\gamma$th-Hölder norm is $$\|u\|_{C^{0,\gamma}(\bar{U})}:=\|u\|_{C(\bar{U})}+[u]_{C^{0,\gamma}(\bar{U})}.$$   This is all I got so far: \begin{align} \|u_k-u\|_{C^{k,\gamma}(\bar{U})}&=\sum_{|\alpha|\le k} \|D^\alpha u \|_{C(\bar{U})}+\sum_{|\alpha|=k} [D^\alpha u]_{C^{0,\gamma}(\bar{U})} \\ &= \sum_{|\alpha|\le k} \sup_{x\in U} |u_k(x)-u(x)|+ \sum_{|\alpha|=k} \sup_{\substack{x,y\in U \\ x \neq y}} \left\{\frac{|[u_k(x)-u(x)]-[u_k(y)-u(y)]|}{|x-y|^\gamma} \right\}. \end{align} Now, where can I go from here, to show that $\lim_{k \to \infty}\|u_k-u\|_{C^{k,\gamma}(\bar{U})}=0$? The sequence is Cauchy, and I have to use that fact somehow.