My journal publisher’s class file uses newtx fonts, so I’ve tried to update my MikTeX installation. The MikTeX package manager reports that all of newtxtt, newtxsf, minion2newtx and newtx itself (only the last is new) are installed. I’ve run (as administrator and as myself) updmap as well as FNDB. A simple hello world file (appended) will compile and produce a dvi, but converting it to pdf or viewing it in yap or … tries to run miktex-makepk to make pk fonts and these fail. Compiling with pdflatex (which is what I’d really like to do) fails in the same way:   Trying to make PK font ntx-Regular-tlf-t1 at 600 DPI... Running miktex-makemf.exe... miktex-makemf: The ntx-Regular-tlf-t source file could not be found. Running ttf2pk.exe... miktex-makepk: PK font ntx-Regular-tlf-t1 could not be created.    Yap->Document Properties reports that it finds:   ntxmi, txmi in Program Files (x86)\MikTex 2.9\fonts\vf\public\newtx\... rtxmi and rtxptmn in Users\steve\AppData\Local\MikTex\2.9\fonts\pk\mo… mtxmi and ntx-Regul.. are Not loadable    My settings show the following roots  c:ProgramData\MikTex\2.9     [CommonData] d:\sjs_d\Documents\localtexmf c:\Program Files (x86)\MiKTeX 2.9   [CommonInstall]   updmap reports:  $ updmap --verbose | grep newt C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/newtx: skipping, existing cache is valid: 73 fonts, 0 dirs C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/newtxsf: skipping, existing cache is valid: 4 fonts, 0 dirs C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/newtxtt: skipping, existing cache is valid: 4 fonts, 0 dirs C:/Program Files (x86)/MiKTeX 2.9/fonts/opentype/public/newtx: skipping, existing cache is valid: 4 fonts, 0 dirs   I’m not a font guru at all. With type1 and opentype fonts, are pk fonts needed (this question no doubt reveals my ignorance)? I’m not sure, of course, whether I have all the T1 fonts here. Googling suggests I need the .mf files to create the pk fonts, but .mf files are not present in the installed packages AFAICT.    \documentclass{article} \usepackage{newtxtext} \usepackage{newtxmath} \begin{document}  Hello world.  \[ Hello maths world \]  \end{document}


How to null a derived object as the base class

The code that I want to use is  private void removeInstance (BaseClass b) {     // some more code     b = null; }   b can be of an instance of a subclass of BaseClass. For example  public class C extends BaseClass {/* Some Code */}   This is what should be possible.  C c = new C (); // some code removeInstance (c);   However it currently does not set c to null as c is cast to BaseClass in this example.  I want to be able to set an instance to null from the base class in one way or another.


Can I opt in to get the Ubuntu 17.10 daily builds from within I Ubuntu 17.04 or will I have to install the daily build/ beta from a USB bootable device?


Ubuntu Stays on Desktop BackGround Picture

When I turn my PC on it works until bacground picture comes. But than nothing comes. No desktop icons, no upper line settings, no left short-cut icons. Nothing.   I can move mouse pointer on an empty screen but can do nothing with my keyboard. Ctrl+Alt+Del does not work, CTRL+Alt+T does not work, Alt+F4  does not work...  I don't want to reinstall Ubuntu and format my PC.  Hope smeone would help me. Thanks in advance.


Should the noun be in singular or plural form after "some"?

I usually use the plural form after "some."   Example:     I bought some books about France   But I would also say some source states that France is best toured in fall.  Is there a specific grammar rule? May I say that in the second sentence I am really thinking at a very specific source, so singular is needed?


Environment Variable - how does properly set them (bashrc or profile)

I am very new in Ubuntu and I am lost about Environment Variable. I have read  some Forums but I didn't understand yet.  If I type java -version I got the java confirmation but if I type echo $JAVA_HOME there is nothing or echo $PATH there is nothing related to java.  In some forum I read to create /etc/profile.d/java.sh file and add the export commands. Other one tells to edit /etc/environment, other tells to add export commands in /etc/profile and even other one tells to edit bash.bashrc.  Currently, there is the java in my Ubuntu in /usr/lib/jvm/java-8-oracle/jre and I am able to run some java tools (eg. Eclipse) but I am trying to add Maven and I am very confused how do the environment variables work in Ubuntu. I came from Windows and basically I would like to set these variables as simple as possible.


I have one problem, i wan't to add image and vertical center align image. This looks like this   I wan't to look like this:   My code:
Test
   I tried this, but is there some better way to fix this problem?  p {     display: inline-block;     margin-bottom: -1.76em;   }


My question is pretty simple.  Since $n! \gt n!!$, it's clear by the comparison test that $\sum_{n=0}^\infty \frac {1}{n!!}$ converges.      But what value does the sum converge to? How does one go about determining its value (if possible)?


Android app rep widgets: only last added is clickable

When I add multiple rep widgets, only last added is clickable (edx in my case, if I add another, edx become unclickable and the newly added is the only clickable rep widget).    Is it a bug?


Managing Multiple Connections in Windows 10

I have 2 Ethernet connections coming to my desktop (Windows 10) as follows: connection 1: Fiber (gives me low ping on games) connection 2: 5G (gives me high speed download) so, how can i play games using connection 1 and at the same time downloading other games using connection 2?


How do I find and copy an arbitrary list of files in terminal?

I'm trying to get my head around finding files in terminal at the moment. I've found a lot of answers about how to find files to a specific pattern, such as files ending in a certain extension, or from a certain timeframe, etc.  What I've been trying to figure out, though, is how to find and copy multiple arbitrary files, like a list of specific files.  Say, for example, I have the following folders and files  /Documents/Folder_1/ with contents:   file1.txt file2.txt file3.txt file4.txt   /Documents/Folder_2/ with contents:   file5.txt file6.txt file7.txt   /Documents/Folder_3/ with contents:   file8.txt, file9.txt   and what I want to do is to make a new folder called Folder_4 and copy file2.txt, file5.txt and file9.txt to that new folder.  Is there any way to do this through terminal?  What I've tried to do is to make a text list of the file names and call it something like list.txt, e.g.  file2.txt file5.txt file9.txt   and loading that text file into the Find command, for example like this:  find /home/usr/Documents -name $cat list.txt   with the thinking that I would then feed the output to either a text list or a copy command, but this doesn't seem to work.  I'm wondering if there is any way to find multiple arbitrary files through the Find command, or am I thinking about this in the wrong way?  EDIT: Just wanted to say thanks for the answers and summarise the way that I ended up approaching this problem. I especially appreciate that someone explained to me that the find command is not designed to accept more than one input without the -o flag, it made me feel a bit less stupid for not being able to figure it out!  What I ended up doing was to make a little shell script and ask for user input and use an array and a for loop to iterate through the list.  Basically the script that I ended up with is more or less like this:  #!/bin/bash  #take user input echo "Please enter list of filenames to search" read list echo "Please enter the folder path to search" read path echo "Please enter the destination folder path" read destination  #use inputted list as input for array, and then use a for loop to find each item on list one by one array=($list) for i in "${array[@]}" do     find "$path" -iname "i" -exec cp '{}' "$destination" \; done


Accidentally formatted the partition which contains my back up

I dual boot Ubuntu and Windows 10 but I accidentally formatted the Windows partition which contains all my backup. How can I recover data on that partition?


Random placement of rooks on a chessboard

$8$ rooks are placed randomly on an $8\times 8$ chess board.  What is the probability of having exactly one rook each row and each column?  I guess there is no meaningful order here?


How do you design UI automated tests to pick alternative steps randomly in a flow?

Background: In cases(mainly in End to End UI tests), where a number of test paths(selection of alternative test steps) can be huge due to combinations however expected results are same and few. In those scenarios, I strongly feel the need to introduce an element of randomness to pick a test path as we are finding more and more issues manually while following a particular random path whereas the standard automated E2E test mostly passes following the primary flow.  Context:  In the end-to-end scenario consisting steps let's say [A-Z] where any of the steps may have alternative sub steps[a- g] can be run either on web/mobile app so if we vary any of the sub-steps in user journey, we are finding issues on some specific sub-steps selection but not in general.Also we cannot afford to run each unique combination of selection due to huge combinations either manually or by automation.  Problem statement: What is the standard/accepted common wisdom to design the randomness in alternative sub steps selection in end to end UI tests?  Edit: Adding more meaningful example  Example: An long user journey, consisting of multiple steps where each step independently can be done on either web or mobile app. And cases were found where doing some step in mobile doesn't reflect back in web app or vice versa.


I have a running log, it outputs a lot to the terminal. Unfortunately, when I try to scroll up and view older output, it appears there is a limit. And I am unable to scroll past a certain point. On the Mac, the terminal allows you to scroll up to the start of the session. Is there a way to do this in ubuntu terminal?


Euler's $\phi$ function: Find all $n$ such that $\phi(n)=n/3$

I need help finding all $n$ such that $\phi(n)=n/3$.    I understand how to do it for $n/2$ but not for $n/3$. Thank you.


Get text-file word occurrence count of all words & print output sorted

I had a command which would work through a text file, count all the occurrences of the words and print it out like this:  user@box $˜ magic-command-i-forgot | with grep | and awk | sort ./textfile.txt 66: the 54: and 32: I 16: unix 12: bash 5:  internet 3:  sh 1: GNU/Linux   So it does not search line-by-line, but word by word, and it does it for all the words, not just for 1 word. I'd found it somewhere on the internets a long time ago, but I cannot find or remember it..


For prime $p\equiv 1(\operatorname{mod} 4)$ , can $\dfrac {p^p-1}{p-1}$ be a prime?

Let $p$ be a prime of the form $4k+1$ , then can $\dfrac {p^p-1}{p-1}$ be a prime number ?


How can I animate the Restrict Visibility property of an object?

I've been trying to create an animation where an object blinks on and off.   For example, I have a Cube and I set a keyframe on it's Restrict Visibility icon (the "eye" icon) with I, then I toggle off that "eye" so my cube doesn't show in the Viewport and again I press I to record that keyframe. Then, when I preview the animation in the Viewport, I see my cube appears and then disappears like I want, but when I render it, the cube does not disappear at all.  What am I doing wrong?


The symbol of dot has been replaced in parameter names on the underscore (PHP)

I send POST param with name "param.name" If I read the php://input everything ok, but if I try to get param from an array $_POST['param.name'] that it is absent because the dot was replaced to underscore and I need to get param this way $_POST['param_name']. Maybe some settings in PHP I should tune... I use PHP 7.4.15


What is the Python code to create a password encrypted zip file?  I'm fine with using some apt-get'able utilities using system on the command line.


In order for Territory Assignment rules to fire on Account creation and Update, I have got 2 Classes working (with Triggers), however I am struggling to create a Test class for these, any help would be greatly appreciated. Class that calls the queueable callout: public class RunTerritoryRulesCallout {      public static void RunTerritoryRulesCallout(List<Account> AccsToUpdate){          //run ETM assignment rules         Map<ID, Account> AcctMap = new Map<ID, Account>(AccsToUpdate);         Set<String> AccIDs = new Set<String>((List<String>) New List<ID>(AcctMap.keyset()));           if(!System.isQueueable()){                           RunTerritoryRules Job = new RunTerritoryRules();                 Job.accntIds = AccIDs;                                     System.debug('Queuing ETM assignments');                 System.enqueueJob(job);         }        }    }  The callout class: public class RunTerritoryRules implements Queueable, Database.AllowsCallouts  { public Set<String> accntIds = null; private String sessionId = null;     public void execute(QueueableContext context) { sessionId = Page.GetSessionId.getContent().toString();          List<String> lstAccString = new List<String>();     if(accntIds != null){         for(String accId:accntIds){             lstAccString.add(accountTag.replace('{ACCID}', accId));          }     }      requestTemplate = requestTemplate.replace('{ACCLISTS}', String.join(lstAccString, ' ')) ;     requestTemplate = requestTemplate.replace('{SESSID}', sessionId) ;             HttpRequest request = new HttpRequest(); request.setEndpoint(System.URL.getSalesforceBaseUrl().toExternalForm()+             '/services/Soap/u/41.0/'+UserInfo.getOrganizationId());     request.setMethod('POST');     request.setHeader('Content-Type', 'text/xml;charset=UTF-8'); request.setHeader('SOAPAction', '""');     request.setBody(requestTemplate); String s = String.valueOf(new Http().send(request).getBodyDocument());     System.debug(s); } String accountTag = '<urn:sObjects> '+                         '<urn1:type>Account</urn1:type>  '+                 '<urn1:Id>{ACCID}</urn1:Id>   '+                     '</urn:sObjects> ' ;     String requestTemplate = '<soapenv:Envelope '+             'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"'+             ' xmlns:urn="urn:partner.soap.sforce.com"'+             ' xmlns:urn1="urn:sobject.partner.soap.sforce.com">'+                             '<soapenv:Header> '+                               '<urn:AssignmentRuleHeader> '+                                   '<urn:useDefaultRule>true</urn:useDefaultRule> '+                                  '<urn:assignmentRuleId></urn:assignmentRuleId> '+                               '</urn:AssignmentRuleHeader>  '+                               '<urn:SessionHeader> '+                     '<urn:sessionId>{SESSID}</urn:sessionId> '+                               '</urn:SessionHeader> '+                            '</soapenv:Header> '+                            '<soapenv:Body> '+                   '<urn:update> '+                    ' {ACCLISTS}'+                                '</urn:update> '+                            '</soapenv:Body> '+                         '</soapenv:Envelope>';}


Is this triangulation of klein bottle right? I need to make a 10 vertices triangulation of klein bottle and i don't know almost anything about triangulation but tried to do one anyway and not sure if it's right. What i know is triangles must not connect more than one vertice or one edge. And an edge only be edge of one or two triangles. But AF edge is edge of four triangles if i get that right, so i don't know what am i supposed to do. (there is an F on the right middle too i forgot to write it)


How does space affect the human body (no space suit, no space craft)

How does "outer space" affect the human body? Some movies show it as the body exploding, imploding or even freezing solid.   I know space is essentially a vacuum with 0 pressure and the dispersion of energy makes it very cold. So are the predictions above accurate?


Check constraint for phone number format

I keep getting an error:     [2020-01-27 10:37:04] [23000][4025] CONSTRAINT CONSTRAINT_1 failed   When I insert the following row:   '(01)236-4589'   For the following column:  CHECK (phone LIKE '(0[0-9])[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]')   Please tell me what I'm doing wrong.    Thank you very much for the help.


How often do new contracts appear in the TF2 gunmettle update?

It saids it on the tin, how often do new contracts appear if you've purchased the coin in the new Team Fortress 2 Gunmettle update?


Is it possible to get content of a file from downloadable URL?

I am trying to send email with attachments. My goal is to get the content of a file from downloadable URL, then build the attachment for sending email. There is a standard solution provided by Salesforce for downloading file to local machine. /sfc/servlet.shepherd/version/download/<CONTENT_VERSION_Id>  Is it possible to get its file content as Blob for building email attachment Here is my code so far String url = '<MY_BASE_URL>/servlet.shepherd/version/download/<CONTENT_VERSION_Id>'; // my download URL Http http = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint(url); req.setMethod('GET'); HttpResponse res =  http.send(req); // After sending request, it downloads file instead. Blob contentBody = res.getBodyAsBlob(); // It doesn't return file's content body as expected since the url is redirect to other page.  Build Email Attachment Messaging.EmailFileAttachment attachment = new Messaging.EmailFileAttachment(); attachment.setFileName('Test.zip'); attachment.setContentType('application/zip'); attachment.setBody(contentBody);  If there was a similar question please suggest me. Thanks in advance


Assume someone shares a folder with me, he remains the owner of the folder. Then I put some (many) files into this folder, of which I am and remain the owner. Then that someone revokes my access to said folder.  Now, where can I access these files in a useful way? I know that I can still access the file from the "Quota" list, but only the large ones can be accessed in a useful way, the smaller ones are somewhere much further down and mixed into all other files.


if $x > 0$, show that  $$f(x)=\int_0^\infty \frac{\cos(xt)}{1+t^2} \, dt= \frac{\pi}{2}e^{-x}$$  The problem appears in the book , under the chapter derivative and integral of Laplace transformation. So I tried to apply the equation   $$\int_0^\infty \frac {f(t)} t \, dt = \int_0^\infty F(p)\,dp,$$  where $F(p) = L[f(x)](p)$, the Laplace transformation of $f(t)$. However, I failed to manipulate the expression to apply this equality.  I need your help. Please not be misled by my approach, it might be totally wrong.


Limit point Compactness does not imply compactness counter-example

I think that I understand why compactness implies limit point compactness:  Suppose $A \subseteq X$  has no limit points. Then $A^{\prime} \subseteq A$. Thus, $A$ is closed. Then for all $a \in A$, there exists some neighborhood $U_a$ of $A$ s.t. $U_a \cap A= \{a\}$. But then since $X$ is compact and $A \cup (X-A)=X$, it is an open covering. [$X-A$ has to be open, since $A$ is closed].  Then by compactness, there is a finite open covering and since $(X-A) \cap A = \emptyset$, It is clear that $A$ is finite. The result follows  However, the converse of the statement is supposedly incorrect. This definitely seems weird, particularly in $R$ (equipped with usual topology.)  Can somebody provide me with a counter-example?


I'm trying to figure out what make this bike is

This bicycle was given to me and I'm not sure was the make of it I've tried look in the serial number up on Google but I came up with nothing so hopefully you can help me with trying to figure out what kind of bike this is the Serial number is SNHFD10K02145


Probability Question: Would A always have a greater chance of $A\cap B$?

My professor assigned a completely random question on our problem set. Basically, it goes:  Sophie is 30 years old and majored in philosophy. As a student, she participated in anti-nuclear demonstrations and was deeply concerned with social justice. Which is more probable?  1. Sophie is a bank teller. 2. Sophie is a bank teller and is active in the feminist movement.  I'm guessing the point the prof was trying to get across is that assuming you have two different events $A$ and $B$,  $A\cap B$ would always have a smaller probability than either. Is this correct?


I know how tow draw the:   \triangle{ABC}  it will show    but how can I draw the:


If $\psi h$ is in $L^2$ for all $h\in L^2$, must $\psi$ be essentially bounded?

If $\psi:[a,b]\to\mathbb C$ is a (measurable) function such that $\psi h$ is in $L^2[a,b]$ for all $h\in L^2[a,b]$, then must $\psi$ be essentially bounded?  The converse direction is clear: If $\psi$ is essentially bounded, then $\|\psi h\|_2\leq \|\psi\|_\infty\|h\|_2$ for all $h\in L^2$, and thus the multiplication operator $M_\psi:h\mapsto \psi h$ is defined and bounded.  The question here is whether, without prior assumptions on $\psi$, simply having $M_\psi(L^2)\subseteq L^2$ implies that $\psi$ is bounded.


change background color of lightning tab LWC

LWC don't allow to change color with css and there document guide don't say anything about this ?    Can anyone help here?


Zero visibility while editing a message in a chat room

I was having a conversation on one of the questions with a member of stackoverflow.com and I came across to edit my message and after clicking on edit I was presented with this.  You can see that the text inside the message box isn't visible at all and it's really hard to edit a message. It would be good if we can update the section to change the font color or the bg-color at least when the edit button is clicked. EDIT I was using Chrome Version 66.0.3359.139 (Official Build) (64-bit) at the time I was having the chat, and I don't have any themes installed in the browser.


My minecraft will not start on only that version, I have a Windows 7 computer with Java 8u20 installed, because the latest java 7 update will not work at all(plus imma dev for other stuff).   [22:26:39] [main/INFO] [LaunchWrapper]: Loading tweak class name   cpw.mods.fml.common.launcher.FMLTweaker  [22:26:39] [main/INFO] [LaunchWrapper]: Using primary tweak class name   cpw.mods.fml.common.launcher.FMLTweaker  [22:26:39] [main/INFO] [LaunchWrapper]: Calling tweak class   cpw.mods.fml.common.launcher.FMLTweaker  [22:26:40] [main/INFO] [FML]: Forge Mod Loader version 7.10.25.1208 for Minecraft   1.7.10 loading  [22:26:40] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version   1.8.0_20, running on Windows 7:amd64:6.1, installed at C:\Program   Files\Java\jre1.8.0_20  [22:26:40] [main/INFO] [LaunchWrapper]: Loading tweak class name   cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker  [22:26:40] [main/INFO] [LaunchWrapper]: Loading tweak class name   cpw.mods.fml.common.launcher.FMLDeobfTweaker  [22:26:40] [main/INFO] [LaunchWrapper]: Calling tweak class   cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker  [22:26:40] [main/ERROR] [LaunchWrapper]: Unable to launch  java.util.ConcurrentModificationException     at java.util.ArrayList$Itr.checkForComodification(Unknown Source) ~[?:1.8.0_20]     at java.util.ArrayList$Itr.remove(Unknown Source) ~[?:1.8.0_20]     at net.minecraft.launchwrapper.Launch.launch(Launch.java:117) [launchwrapper-  1.9.jar:?]     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]  Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and   will likely be removed in a future release


Is there any specific term for someone who has lost something? The person who finds something can be called a finder but what about the person who has lost something? What should the appropriate term be?


Unexpected behavior with python list of dictionary when setting values for dictionaries with same key

This behavior in Python 3.7.2 (did not check other versions) surprises me. The goal is to have a list of dictionaries with the same keys and be able to manipulate individual values. Using list index and dictionary key, the expected behavior is that I should be able to set value of a key of a specific dictionary.   Here's a sample code:      lst = []      lst.append({"A" : 0, "B" : 0 })     lst.append({"A" : 0, "B" : 0 })      lst[1]["B"] = 11     print(lst)      lst2 = [{"A" : 0, "B" : 0 }]*2      lst2[1]["B"] = 11     print(lst2)   Here's the result:  [{'A': 0, 'B': 0}, {'A': 0, 'B': 11}] [{'A': 0, 'B': 11}, {'A': 0, 'B': 11}]   The second result surprises me, why would it set value of key "B" to 11 for both dictionaries? Why is there a difference between initializing as lst and lst1.


$a_n $- sequence of all natural numbers which in notation doesn't use the digit 6  $\sum \frac{1}{a_n}$   I have already tried to compare $\sum(\frac{1}{6}+\frac{1}{16}+\frac{1}{26}+...)\ge\sum \frac{1}{10n}\to \infty$  So this gives me nothing.


Why is my Hard-Drive filling up quickly?

I am running macOS Catalina, on a 2017 MacBook Air Recently I moved the I-Movie Library off of my mac, and onto an External Hard Drive. So I checked My storage and it said 30 gigabytes free. Then 3 days later, I checked again, and the storage was almost full. I hadn't downloaded any big items, so I was very confused. Here I am now with Final Cut Pro, telling me my hard drive is full. Is something eating up my hard drive? Apologies for poor use of StackExchange, this is my first post.


In physics as we understand it today,  can an electron be made to move faster than the speed of light in vacuum?  Whether by natural causes, or man-made means?


How does Carrying Capacity work with bonuses?

For example: Bugbear (with Powerful Build) and a class feature similar to that (I do believe a bear totem barbarian can do that) would that give them a carrying capacity of a huge creature? Or just a large creature?


Preventing Memory Leaks with Attached Behaviours

I've created an "attached behaviour" in my WPF application which lets me handle the Enter keypress and move to the next control. I call it EnterKeyTraversal.IsEnabled, and you can see the code on my blog .  My main concern now is that I may have a memory leak, since I'm handling the PreviewKeyDown event on UIElements and never explicitly "unhook" the event.  What's the best approach to prevent this leak (if indeed there is one)? Should I keep a list of the elements I'm managing, and unhook the PreviewKeyDown event in the Application.Exit event? Has anyone had success with attached behaviours in their own WPF applications and come up with an elegant memory-management solution?


Adding coordinate system to layout in QGIS composer?

I would like to know if there is a way to add a dynamic coordinate system field into a QGIS composer layout.  I can use an expression to add many items such as document name, file path, etc but I can;t seem to figure out how to add the coordinate system?


Drawing Venn diagrams that is not specifically always two circles

I am wondering about package or a simple way to draw Venn diagrams. I need to draw the following examples:  and as you can see my hand drawing skills are not up to the task :) I have found the package named venndiagram and it seem to be able to help me with 4 and 5 but not the rest. I mean sometimes I want to only show one of the circles, sometimes none of the circles, sometimes overlapping, sometimes not and so on. I also found a package named just venn but it seems to have a not so satisfactory documentation so I don't know if it could help me or not. To me this seems like something people would do from time to time so I was hoping someone could suggest something else?


How to change boot order from within Windows OS?

I'm in a situation that I don't know how to solve.  I have a machine in another country where I only access remotely, and eventually in rare cases someone can go there to help me. In this case I wanted to avoid as much as I had to ask someone to go there.  My question is, I have in this machine 2 HDDs connected. One with Windows 7 and another with Windows 10. Today, while I was working on Windows 10, I needed to reboot the machine and it started up from Windows 7 HDD, and continuing to reboot it always does the same.  Is there any way I can change this order through Windows without having to access the BIOS locally?


Find the second focus of an ellipse given one focus, the point furthest from it, an arbitrary other point on the ellipse

I have the following three points:   A: One focus of an ellipse C: The furthest point from this focus (the far side of the major axis) D: Some other arbitrary point on the ellipse   From there, it's trivial to find:   E: The "mirror point" of D across the major axis of the ellipse   I know it should be simple trigonometry from here to find B, the second focus of the ellipse, but I can't pull it off for whatever reason. Can anyone help me out here?  I'm working in polar coordinates and have the known focus of the ellipse at the origin.  Edit: Added point "E", which one can trivially find in my scenario. I think my scenario is distinct from , since we've added the restriction that one point is necessarily as far as possible from the focus along the major axis.  Edit 2:  I think I solved it. The distance between the two foci is given by: $$ \frac{4r_Cr_D-4r_C^2}{2r_D+2r_Dcos(\theta)-4r_C} $$ Where theta is the (positive) angle between C and D. I used law of cosines and the ellipse property if anyone wants to check my work.


I am not able to login to Ubuntu shell , because I am not given any chance to write my password

Sir I was not able to see my login screen so I switched to shell. Whenever I enter my username and press enter, the cursor never stop or wait for me to enter password, so I can not enter my password. And a loop of login incorrect occurs for 4 times. When I am in recovery mode it's fine.


Can I leave France without an OFII stamp on a student visa?

I'm an Indian citizen and I'm currently studying in France. Unfortunately, my school is pretty bad and I'd like to terminate my studies and return back to India, If I leave France just over three months after my arrival, will I be refused exit from the country?   Will the French police not allow me to return to my country? I actually came to France on October 2nd but I think it's very hard for me to leave within three months of my arrival since air tickets during the holiday seasons are expensive. If I leave on the 5th or 6th of January, can the French border guards detain me for not having an OFII stamp and actually "deport" me instead of granting me exit?   Also, can my school tell the border agency of France to stop me from leaving the country or to start deportation proceedings against me?   They don't like me that much - that's the reason why I'm asking this question. I'm sorry if I sound naive, but I'm not very well aware of French laws and regulations.


After the upgrade of salesforce to Spring 15, I am getting this error "Error: You have exceeded the maximum number (5) of Apex scheduled jobs." when scheduling more than 5 batches. I have this issue in several environment. I used to more than 20 batches scheduled at once.   On the link below, it says that I can schedule up to 100 batches but I am being restricted to 5 only.   I can't have more than 5 jobs here.


Run applications as administrator by default in Windows 10

I have just got a new laptop with Microsoft Windows 10. My previous laptop ran Windows 7.  I'm trying to get applications to "run as administrator" by default, so that I'm not constantly having trouble saving/overwriting files, etc. The priority here is to be able to modify my own files on an external hard drive; I wouldn't have expected that I'd have to do anything special to be able to do this. My user account on the laptop is an "Administrator" account, and I have set the User Account Control setting to "Never notify". I thought that this would achieve the effect I want (as also suggested in  in relation to Windows 7).  Here's a screenshot of my setting to disable UAC in Windows 10:   Still, Notepad++ (for one) is not automatically starting with administrative rights. What else do I need to do, or what am I overlooking?  Thanks  PS. I'm aware that what I'm trying to do is a security risk, but that's not the point of this question; whether I should or should not do something is different to whether I can or cannot do something.


Why isn't a Photon justified in concluding that it is at rest and everything else is moving past it at c?

Why isn't a photon moving at c not justified in concluding that it is at rest and everything else is moving past it at c since relativity postulates that the laws of physics are invariant (i.e. identical) in all inertial systems (non-accelerating frames of reference)? Which part did I overlook?


Assign name to Hyper-V guest for Windows 10 host?

I have installed Ubuntu 18.04 in Hyper-V on a Windows 10 host and exposed functionality on some ports, which are available to other programs running on the host when accessing http://vm-ip-number:port (i.e. http://192.168.0.1:12345). Works very well.  I would like to use a name instead of the ip-number of the VM to connect to it (for all the usual reasons as this will go in configuration files).  For full Linux or MacOS servers I would let the host announce itself using zeroconf, but some searching indicated that this doesn't work well for Windows 10 across VM boundaries.    Another approach might be having Hyper-V assign the VM a name provided by me which is then available when the VM is up, but I am not familiar enough with Hyper-V to know if this is possible or not.  Installing additional tools just for this in the guest is acceptable, in the host only if necessary.  All I want is to be able to use http://my-own-name to access the VM when running without hardcoding the IP-number anywhere.  Suggestions?


How can I get Amazon Instant Video to work?

I have flash, which seems to have dead ended at 11.2.  I have the latest chrome 23.xxx.x..x, but neither of those allow me to watch Amazon Instant video.  I can disable pepper, but then the 11.2 on my system is out of date.   Is there any way I can get Amazon Instant video to work?


Error on paint method when extended canvas's class

Could somebody help me please? I've done this     Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException   at Frame.Painter.paint(Main.java:399) at   sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)  at   sun.awt.RepaintArea.paint(RepaintArea.java:240)   at   sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:358)   at   java.awt.Component.dispatchEventImpl(Component.java:4965) at   java.awt.Component.dispatchEvent(Component.java:4711) at   java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at   java.awt.EventQueue.access$500(EventQueue.java:97) at   java.awt.EventQueue$3.run(EventQueue.java:709) at   java.awt.EventQueue$3.run(EventQueue.java:703) at   java.security.AccessController.doPrivileged(Native Method) at   java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)   at   java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)   at java.awt.EventQueue$4.run(EventQueue.java:731) at   java.awt.EventQueue$4.run(EventQueue.java:729) at   java.security.AccessController.doPrivileged(Native Method) at   java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)   at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at   java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)   at   java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)   at   java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)   at   java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)   at   java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)   at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)   and code in row 399 is :  class Painter extends Canvas{     Image image;     private URL url;     public void setImage(String file) {         url = null;         try {             url = new File(file).toURI().toURL();         } catch (MalformedURLException ex) {             System.out.println(ex.toString());         }         image = getToolkit().getImage(url);         repaint();     }     public void paint(Graphics g) {         double d = image.getHeight(this) / this.getHeight();         double w = image.getWidth(this) / d;         double x = this.getWidth() / 2 - w / 2;         g.drawImage(image, (int) x, 0, (int) (w), this.getHeight(), this);     } }   I dont know exactly what's going on there. My program work correctly but I felt disturbing with this error every run. Please tell me what should I do.


What happens to the semiconductor in an LED when it is given voltage that it cannot handle?

Let us suppose we have an LED with the allowed voltage range of 1.5V to 4.5V and we gave it somewhat 12V. Now we know that the LED will instantly stop forever. But I want to know what will happen to the material (the semiconductor, etc) when this happens.


How to generate a core dump in Linux on a segmentation fault?

I have a process in Linux that's getting a segmentation fault.  How can I tell it to generate a core dump when it fails?


Why does inelastic collision obey the conservation of momentum?

Generally, when an inelastic collision occurs, the nonrelativistic energy of two observable objects is not conserved because some energy has been transformed into other forms such as heat and sound. I understand the fact that the energy of the entire isolated system is conserved if the total mass of the system is a constant. However, why should not some momentum of the two objects transform to the air molecules to generate airflow and sound?   Please note that I am asking the reason why momentum is conserved while energy is not conserved in terms of the collision of two observable objects.


How to get value inside many regex keys?

I am trying to get the values that are in braces as below:  {{{{{{{{{{{{{{{{{{value1 here!}}}}}}}}}}}{value2 here!}}}}}}}}}{value3 here!}}}}}}   I would like you to be selected as a group:  {value1 here!} {value2 here!} {value3 here!}   I'm doing the expression on the site  and applying it to my Java project.  Pattern p = Pattern.compile("\\\\{.*\\\\}"); Matcher m = p.matcher("{{{{{{{{{{{{{{{{{{value1 here!}}}}}}}}}}}{value2 here!}}}}}}}}}{value3 here!}}}}}}"); if (m.find()){     String value1 = m.group(1);     String value2 = m.group(2);     String value3 = m.group(3); }   How can I solve this problem?


Asking on Multiple Sites: "Soft-Migration"

See also:   Many of the newer sites have a certain degree of overlap. With the creation of Chem.SE, I noticed quite a few questions on Physics.SE which could have benefited from the chem community and vice versa. There also are a few that could benefit from bio.SE.. Now these questions don't warrant a migration. They can be double-posted, but this doesn't lead to a smooth experience. Even when cross-linked, changes to either post (new answers,new comments,etc) aren't effectively relayed to the other site, and the two questions are just that-- two, separate questions. One solution that came to my mind was a "soft migration" option for mods. By this, a question on site A stays on site A. But, it appears in the site B question list as well. Edits/answers should bump it. Basically, there will be a placeholder item in the questions list of site B. It shows the votes/views/answers of the post on site A, along with the tags (maybe stylized differently). These should be an unobtrusive way to quickly identify what the site is. The post should also be bumped whenever the post is bumped on Site A, and it should display the rep/time/etc of the bumping user as usual. Here's a quick mockup of what happens on the site B question list:  Without being obtrusive or in-your-face (stuff like [migrated] is sort of in-your-face), the post is elegantly shown to be on Physics.SE (well, if you know the icon, anyway). The tags are italicized to show that they link to a different site tags, and the "bumping user" (me) has his/her rep on that site shown. We can also add an indicator on the question on site A () that shows that it was soft-migrated. We can use tooltips as well on the icons to tell us why they're here. After all, half of SE documentation is in tooltips.  Now I know that these issues will probably be raised:  Rep: An avid user on Site B gets no Site B rep for giving a good answer on Site A. Frankly, I don't care about this to much, but others may.  Implementation: It may get complicated. Internally, I'd propose that none of the question data is copied, rather Site A pushes the vote/bump data whenever a vote/bump happens. The easiest way to then implement the soft merge would be to have a table of questions soft-merged "to" site B on site B itself, with columns for all the vote/etc data. The questions table should have an extra column for "soft-migrated to"--that way Site A can determine where to push new data to on every vote/bump. Now, all Site B has to do is take the JOIN of the questions table and the soft-merge table and display them in the new questions list (or any list, for that matter). With some extra formatting, maybe. Of course, I may be oversimplifying this and I don't really know what I'm talking about ;-)  Is there a need? : Yes, I would say so. Such questions can get awesome answers is both the communities participate, but our don't-cross-post-much policy deters this. In the end, this will result in better post quality, making the Internet better. Also, as area51 grows, we will see this problem more and more, and this will become more and more necessary.   Thoughts? Any better ideas? Waffles?  Update: Another use case for this would be to soft migrate all MSO  questions over to child metas, effectively solving


I'm not sure if the following question is correct in formal English: "Why not do it?" Would it be better to say "Why don't you do it", but then the question is related to the sentence "if you can afford it". Thank you!


I am going to remake a server with Ubuntu 20.04 It will have 6 GB of RAM, a 20 GB SSD for the operating system, and a 100 GB SSD for data. Should we make a SWAP partition ? If so, how many GB are needed ? Thank you


GNOME 3.26 - Clicking one window brings another in the foreground (Ubuntu 17.10)

I'm on Ubuntu 17.10 with GNOME 3.26.  Often I have windows tiled on the left and right side of the screen. A typical setup is to have a browser and text editor on the left, a PDF reader and terminal on the right.  Something I've seen happen very often: I'm reading the PDF on the right, having the window in focus. The text editor on the left. When I click on the text editor to write something, it brings forward another window on the right (say the file browser), covering the PDF reader.  This seems to have something to do with the Alt-Tab view history.  My question is: Is it possible to remove the automatic bring-to-front of windows? I don't understand why unrelated windows are brought to the front when I click on another application.


I am trying to find out a thomas cook flight number which was supposed to fly out of tenerife to UK (Manchester?) on friday 25th feb 2011 but did not go till saturday 26th.


What are offical requirements for Ubuntu 13.04?

I have A Pentium Dual Core 2.50 Ghz and having  2GB DDR2 ram and 512 MB Nvidia 8 Series graphic card. Will Ubuntu 13.04 run on my system faster than Windows 7. Would I be able to run 64 Ubuntu on my PC?


Upgrade an unsupported release of Ubuntu(Ubuntu 10.04)!

I want to upgrade my computer from Ubuntu 10.04. But when I go to open the Update Manager, it says that my version is old (as if I didn't already know that) and that I need to update, but the manager won't run. I honestly have no idea what to do from this point, so any help would be greatly appreciated!


I would like to vectorize a PNG containing lines (DN=1 for line, DN=0 for transparent background). See below. As the data is georeferenced I'm asking it here. I would like to automate the vectorization and I'm currently looking into Python/GDAL/QGIS solutions with a vector result in the form of a shapefile. I found gdal_polygonize but this tools creates a polygon shapefile while I would like to create polylines. Does anyone have an idea how to make this work?  UPDATE: Searching for an open source solution, so without using ArcGIS like  solution.


vi / vim - extra indents when pasting text?

I can copy characters in other apps such as browsers with ctrlc.  I can then press i to enter insert mode in vim and press shiftctrlv to paste the text in.  The problem is that each line gets indented a bit more so I end up with:    but what I want (and end up manually editing to achieve) is:


Spivak's Calculus - Exercise 4.a of 2nd chapter

4 . (a) Prove that   $$\sum_{k=0}^l \binom{n}{k} \binom{m}{l-k} = \binom{n+m}{l}.$$   Hint: Apply the binomial theorem to $(1+x)^n(1+x)^m$.   I'm having a hard time trying to solve the problem above. I've done all of the previous exercises of the 2nd chapter with little difficulty, so far. I think I might be missing a trivial point somewhere.    The answer I got from the Answer Book, and is not very helpful either... :(      4. (a) Since $(1+x)^n(1+x)^m = (1+x)^{n+m}$  we have  $$\sum_{k=0}^n \binom{n}{k}x^k\cdot\sum_{j=0}^m \binom{m}{j}x^j\cdot=\sum_{l=0}^{n+m} \binom{n+m}{l}x^l$$  But the coefficient of $x^l$ on the left is clearly $$\sum_{k=0}^l\binom{n}{k}\binom{m}{l-k}.$$  One term of the sum occurring for each pair $k$, $j = l-k$.     I couldn't get the last part of the answer: why is it that the "coefficient of $x^l$ on the left is clearly $\sum_{k=0}^l\binom{n}{k}\binom{m}{l-k}$."?


If $3 \sin B + 5 \cos B =5$, prove that:

If $3 \sin B + 5 \cos B =5$ then prove that $3\cos B-5\sin B=\pm 3$.  My Attempt  Given: $$3\sin B+5\cos B=5$$ Dividing both sides by $\cos B$: $$3\tan B+5=5\sec B$$ Squaring on both sides: $$9\tan^2 B+30\tan B+ 25=25 \sec^2 B$$  Now, what should I do next?


Getting incorrect answers when computing $\int_{0}^a \frac{\cos(\pi n x/a)}{x^2+a^2}\ \! \mathrm dx$?

Please do not try to close this question.  doesn't have the answer I want. I found this integral in a book (I forgot the name). $$\int_{0}^a \dfrac{\cos(\pi n x/a)}{x^2+a^2}\ \! \mathrm dx $$ Where $a>0$ and $n\in \mathbb{Z^+}$. I tried differentiating under the integral sign w.r.t. $n$ and preparing a differential equation, but here is the problem. Let's prepare differential equation from the raw form. $$I(n)=\int_0^a \dfrac{\cos(\pi n x /a)}{x^2+a^2}\ \! \mathrm dx $$ Differentiating both sides twice w.r.t. $n$, $$\begin{align}  \dfrac{\mathrm d^2}{\mathrm d n^2}I(n)&=-\dfrac{\pi^2}{a^2}\int_0^a \dfrac{x^2\cos(\pi n x/a)}{x^2+a^2}\ \! \mathrm dx  \\ &= -\dfrac{\pi^2}{a^2}\int_0^a \cos(\pi n x /a) \ \! \mathrm dx +\pi^2 \int_0^a \dfrac{\cos(\pi n x /a)}{x^2+a^2}\ \! \mathrm dx \\ &= -\dfrac{\pi}{an}\sin(\pi n )+\pi^2I(n)\end{align}$$ As we know, $\sin(n\pi)=0 \ , n\in \mathbb{Z}$, so we end up with $$\dfrac{\mathrm d^2}{\mathrm d n^2}I(n)=\pi^2I(n)$$ Now, let's start with the substitution $x=at$. $$I(n)=\dfrac{1}{a}\int_0^1 \dfrac{\cos(\pi n t)}{t^2+1}\ \! \mathrm dt$$ Again differentiating twice w.r.t. $n$, $$\begin{align} \dfrac{\mathrm d^2}{\mathrm d n^2}I(n) &=-\dfrac{\pi^2}{a}\int_0^1 \dfrac{t^2\cos(\pi n t)}{t^2+1}\ \! \mathrm dt \\ &=-\dfrac{\pi^2}{a}\int_0^1 \cos(\pi n t)\ \! \mathrm dt+\dfrac{\pi^2}{a}\int_0^1 \dfrac{\cos(\pi n t)}{t^2+1}\ \! \mathrm dt \\ &= -\dfrac{\pi}{an}\sin(\pi n)+\pi^2I(n) \\ \dfrac{\mathrm d^2}{\mathrm d n^2}I(n)&=\pi^2I(n)\end{align}$$ In both the cases, the results are the same. But they don't work for different values of $a$ and $n$. How can I do this integral using the method I displayed? As the comments have suggested we have to reconsider the domain of $n$, and solve the integral for $n \in \mathbb{R}$. In that case, the differential equation will be $$\dfrac{\mathrm d^2}{\mathrm dn^2}I(n)=\pi^2I(n)-\dfrac{\pi}{an}\sin(\pi n)$$ We have to solve this differential equation.


Regex or jquery replace all string matches in another string

CODE:  var searchedTerm = "test"; var returnedString = "National testing Plant testers"; var replacedString = returnedString.replace(/\searchedTerm/g, ''+searchedTerm+'');   In other words I'm after replacing a searched string, from a returned longer string, to highlight wherever the searched string matched the returned one. Keeping in mind to highlight if it matches more than once in the same returned string aka global.


Beamer: Rounded shadows not displaying correctly in XeLaTeX

Yesterday I decided to install "vanilla" TeXLive after a couple of months with the Ubuntu repositories version. Everything works great, except that shadows at the corner of Beamer are not displaying when compiling with XeLaTeX, just as the image. I already tried with Okular, Evince and TeXMaker's viewer. It used to work just fine with the Ubuntu version. I have not been able to find something similar. MWE \documentclass{beamer} % \title{This is a test} \usetheme{Madrid}%%         Tried other themes, they're also broken \usecolortheme{default}%%   Tried other colors, they're also broken % \begin{document}  \frame{\maketitle}  \end{document}  Images with the result:   EDIT: Forgot to mention, i'm compiling with XeLaTeX. pdfLaTeX works fine.


I am learning regular expressions and as aa practice I tried grep'ing an ip address but it fails to get any results. I tried it out on VSCode and it works. Anyone can enligheten me where did I go wrong? echo 192.168.1.1 | grep -e '\d+\.\d+\.\d+\.\d+'


Sources for common laboratory Saccharomyces strains?

I'm used to working with bacteria - some of the more common laboratory strains sometimes come with an order from some vendors.  What's the most convenient source to order  for lab work?


How to prove if $n$ is prime and $n | a^2$ then $n | a$?

My professor assigned this for homework but I don't understand how to connect the dots. He suggested using the fact that $\gcd (x,y) \cdot \operatorname{lcm} (x,y) = xy$ but I'm not sure how that's relevant.


Combine command output along with the input

I'd like to print command output along with its input. For example for such call as  echo "Hello world" | wc -c   I want the following output:  12,Hello world   Is there any way to do this using standard Unix (or GNU) tools?


Do any versions of Apache allow for a different declaration of SSLProtocol for different Virtual Hosts?

We are currently using Apache 2.4.10. For various reasons we need to drop support for TLS 1.0 and 1.1 on some domains, but leave 1.1 support on others.   I've been reading but can't find a definitive answer. Do any versions of Apache support different declarations of SSLProtocol for different VirtualHosts?   2.4.10 as I am sure you know only respects the first VirtualHosts declarations.  This question isn't a duplicate of the other one as it deals with Apache 2.4. The other question resulted in the answer that 2.2 does not support what I am asking about. I am asking if any version of 2.4 supports what I am asking about.


Trouble frying an egg on a stainless steel pan

I recently purchased a stainless steel pan from AllClad, but I'm struggling to use it. Food, and in particular eggs, seem to stick readily to the pan, making it hard to use. There is a question on Seasoned Advice that pertains to cooking an omelette on a stainless steel pan, but I think the challenges of frying an egg are different and more challenging. I've been able to cook an omelette in this pan, but have yet to succeed with a fried egg.  Looking online, I learned that stainless steel pans, like cast-iron, need to be seasoned in order to be non-stick. The process that I followed to season my pan was as follows:   Pour in 1/4 cup walnut oil.  Heat pan on medium heat until the oil begins to smoke. Turn heat off and let the pan cool completely. Remove the oil and wipe the pan dry.   I tried this process, but when I try to fry an egg in the pan, it still sticks readily. There is some improvement, but it is still not possible to cook an egg without sticking that destroys the egg in the end.  I'm not sure what I may be doing wrong, or is a stainless steel pan just not something that one can use for frying eggs? Should I just expect that there will be some stick whenever I use this pan?  Update  After watching , I tried to pre-heat my pan, using the water-test as a guide, and adding just a bit of oil to the pan before dropping the egg in. The results were the same. The egg stuck to the pan thoroughly. So again I'm not sure what I'm doing incorrectly. Maybe the oil I'm using isn't right? I've been using ghee.  Update 2:  I've yet to succeed in frying a egg on this pan, but a few additional questions/issues have surfaced:   Some answers here have suggested that despite the presence on the web of tutorials for "seasoning" stainless steel pan this is not necessary and may not be advisable. The trick may be to fry the egg starting at a much lower heat then you might with something like a piece of meat. For meat, you often encounter the suggestion to use the "water test", but as at least one answer has suggested here that may not work with a fried egg.    These are the possibly insights I've gleaned so far, but I've also yet to succeed, so these may turn out to be wrong as well.  Satisfying Answer (May be others)  The solution that I have settled on here -- i.e. what finally worked for me -- was to work with lower heat than I thought was needed, and not to season the pan. There is definitely a lot of conflicting information out there about stainless steel pans. There are a great number of blog posts and YouTube videos that talk about how to season a pan. Seasoning may still be a useful thing to do, but I was able to fry an egg on an unseasoned pan finally.  The method I used is more or less as follows:   Clean pan thoroughly. Take egg out of refrigerator and let it sit in warm water for five minutes or so. (This may not be necessary.) Put pan on stove on medium flame/heat. (I only tried this on a gas stove.) Let pan pre-heat until it is warm when you hold your hands over the pan. Warm, not hot! This might take 20-30 seconds, maybe less.  Add the oil (1-2 tbsp), and lower the flame to low. Let the oil heat a bit, perhaps another 10-15 seconds, or less. Crack the egg into the pan. The whites should stay clear, only slowly whitening. If the egg begins to turn white immediately, the pan is too hot. And the egg should also not stick at this point. There may be a bit of sticking, especially around the edges. You can dislodge the sticking gently by hand, but don't mess with the egg too much. Cook until done or ready to flip. Make sure heat stays low. If you see some sticking it may be (I'm not sure about this) because the pan has become too hot.   So that's the best I've been able to do with help from the selected answer.


Running an rsync server on an Android device over a non-WiFi, cell-based connection?

I asked a somewhat similar question to this recently (see ), but what I'm asking here is a little bit different.  Also, if this question belongs in a different forum, I apologize in advance, and am happy to repost it elsewhere.  I want to set up an actual rsync server on my Android device, but one which works without a WiFi connection. In other words, I want it to work over a normal "cell phone" data connection. The only ways I've been able to get an rsync server to work so far is over a WiFi connection.  I know how to determine the device's assigned IP address in real time (even with a cell-based, non-WiFi data connection) and how make that IP address available to sources outside of the device. But I haven't been able to get the device to listen on that specific IP address when I do not have a WiFi connection.  Does anyone know if this is even possible?  Thank you in advance.


CSS alignment issues on close reasons with pending votes

"Should" word in italics is shifted down in the vote-to-close popup when there is at least one pending close vote.  Just have a look at this:        Now without close votes:        So the issue occurs when there is a close vote on it. It doesn't look good.    Tested on Chrome 27.0.1453.116 m, Windows XP. And it looks fine on Firefox 21.0 and Opera 12.02 (Windows XP)  Here is an example of a slightly different but obviously related problem in Windows 7 SP1 and Firefox 21.0:    This seems to have something to do with how line-height and/or margin attributes are being interpreted.  Can this be fixed?


apt-get update hangs on a repo addr that should be responsive

--DUPLICATES  --RESOLVED same as in link above... general env ( a new isp 2 weeks ago 'web-pass.com' ) ubuntu 12.04 no local dns cache ( config entries count =0 ) problem apt-get update is bad , hangs up at repo addr below .... [Connecting to us.archive.ubuntu.com (2001:67c:1562::15)] [Connecting to security.ubuntu.com (2001:67c:1562::15)  given the diagnostics from my system below , i dont understand the issue ( why is apt-get not seeing/connecting to a repo that should be reachable?? rob@ ~$ nmcli dev list iface eth0 | grep IP4  IP4.ADDRESS[1]:                         ip = 100.65.108.17/23, gw = 100.65.108.1 IP4.DNS[1]:                             208.80.68.212 IP4.DNS[2]:                             204.14.152.2 IP4.DNS[3]:                             204.14.152.5 IP4.DOMAIN[1]:                          web-pass.com  so go get the repo from the first dns entry listed above... rob@ ~$ dig -t a us.archive.ubuntu.com @208.80.68.212  ; <<>> DiG 9.8.1-P1 <<>> -t a us.archive.ubuntu.com @208.80.68.212 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20474 ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 4  ;; QUESTION SECTION: ;us.archive.ubuntu.com.     IN  A  ;; ANSWER SECTION: us.archive.ubuntu.com.  10  IN  A   91.189.91.24 us.archive.ubuntu.com.  10  IN  A   91.189.91.13 us.archive.ubuntu.com.  10  IN  A   91.189.91.14 us.archive.ubuntu.com.  10  IN  A   91.189.91.15 us.archive.ubuntu.com.  10  IN  A   91.189.91.23  ;; AUTHORITY SECTION: ubuntu.com.     3402    IN  NS  ns4.p27.dynect.net. ubuntu.com.     3402    IN  NS  ns2.p27.dynect.net. ubuntu.com.     3402    IN  NS  ns3.p27.dynect.net. ubuntu.com.     3402    IN  NS  ns1.p27.dynect.net.  ;; ADDITIONAL SECTION: ns1.p27.dynect.net. 2123    IN  A   208.78.70.27 ns2.p27.dynect.net. 2095    IN  A   204.13.250.27 ns3.p27.dynect.net. 2095    IN  A   208.78.71.27 ns4.p27.dynect.net. 2123    IN  A   204.13.251.27  why the issue on connecting to the ubuntu repo when it shows up fine on a 'dig' issued to the first dns entry from 'ns_n.webpass.net' ?? Ive assumed  IPv4 in the above (noobie on IP6)... this may be my problem. ifconfig for eth0 below seems to indicate IP6... eth0      Link encap:Ethernet  HWaddr e8:03:9a:b5:d2:1c             inet addr:100.65.108.17  Bcast:100.65.109.255  Mask:255.255.254.0           inet6 addr: 2604:5500:f:69:ea03:9aff:feb5:d21c/64 Scope:Global           inet6 addr: fe80::ea03:9aff:feb5:d21c/64 Scope:Link           inet6 addr: 2604:5500:f:69:f946:f08:1a94:4a23/64 Scope:Global           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:617023 errors:0 dropped:0 overruns:0 frame:0           TX packets:313902 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:657715484 (657.7 MB)  TX bytes:68766408 (68.7 MB)


If you are hurrying to flag this question as a duplicate of  or    questions, please stop, the answers on those questions do not   provide an answer to the question here.   After I asked  I found that title and file name are pretty much different, so then I tried changing the pdf document's title to whatever I want to?.  I tried with Okular, but it doesn't let me change the title, I also tried GIMP but it just don't seem to have the option. I even tried verifying the document properties with Dolphin and it does not work either. How to change the title then?.


After swapping the positions of the hour and the minute hand, when will a clock still give a valid time?

At 12 o'clock, the hour hand and minute hand of the clock can be swapped, and the clock still gives the same time, but at 6 o'clock, it can not be swapped. So in what cases when we swap the hour and the minute hand position does a clock still give a valid time?


memory tuning with rails/unicorn running on ubuntu

I am running unicorn on Ubuntu 11, Rails 3.0, and Ruby 1.8.7.  It is an 8 core ec2 box, and I am running 15 workers. CPU never seems to get pinned, and I seem to be handling requests pretty nicely.  My question concerns memory usage, and what concerns I should have with what I am seeing. (if any)  Here is the scenario:  Under constant load (about 15 reqs/sec coming in from nginx), over the course of an hour, each server in the 3 server cluster loses about 100MB / hour. This is a linear slope for about 6 hours, then it appears to level out, but still maybe appear to lose about 10MB/hour.  If I drop my page caches using the linux command echo 1 > /proc/sys/vm/drop_caches, the available free memory shoots back up to what it was when I started the unicorns, and the memory loss pattern begins again over the hours.  Before:                total       used       free     shared    buffers     cached Mem:       7130244    5005376    2124868          0     113628     422856 -/+ buffers/cache:    4468892    2661352 Swap:     33554428          0   33554428   After:                total       used       free     shared    buffers     cached Mem:       7130244    4467144    2663100          0        228      11172 -/+ buffers/cache:    4455744    2674500 Swap:     33554428          0   33554428   My Ruby code does use memoizations and I'm assuming Ruby/Rails/Unicorn is keeping its own caches... what I'm wondering is should I be worried about this behaviour?   FWIW, my Unicorn config:   worker_processes 15  listen "#{CAPISTRANO_ROOT}/shared/pids/unicorn_socket", :backlog => 1024 listen 8080, :tcp_nopush => true timeout 180  pid "#{CAPISTRANO_ROOT}/shared/pids/unicorn.pid"  GC.respond_to?(:copy_on_write_friendly=) and  GC.copy_on_write_friendly = true  before_fork do |server, worker|   STDERR.puts "XXXXXXXXXXXXXXXXXXX BEFORE FORK"   print_gemfile_location    defined?(ActiveRecord::Base) and ActiveRecord::Base.connection.disconnect!   defined?(Resque) and Resque.redis.client.disconnect    old_pid = "#{CAPISTRANO_ROOT}/shared/pids/unicorn.pid.oldbin"   if File.exists?(old_pid) && server.pid != old_pid     begin       Process.kill("QUIT", File.read(old_pid).to_i)     rescue Errno::ENOENT, Errno::ESRCH       # already killed     end   end    File.open("#{CAPISTRANO_ROOT}/shared/pids/unicorn.pid.ok", "w"){|f| f.print($$.to_s)}  end  after_fork do |server, worker|   defined?(ActiveRecord::Base) and ActiveRecord::Base.establish_connection   defined?(Resque) and Resque.redis.client.connect end   Is there a need to experiment enforcing more stringent garbage collection using OobGC ()? Or is this just normal behaviour, and when/as the system needs more memory, it will empty the caches by itself, without me manually running that cache command? Basically, is this normal, expected behaviour?  tia


Is there a simple way to save a QGIS project and all associated files to a zip folder so that another person could unzip the folder and open the project?    Or is there a better way to share a project with another person?


How to search a string in the list of answers added by me on Stack Overflow?

I am able to view all the answers given by me and questions asked by me, but not able to search a string in them?  Currently I have no other choice than clicking each ques/ans link manually (very hectic) ?


What are meaningful deciding factors when deciding between Canon 5D mark III vs mark II?

I am intermediate student on photography. I am intending to buy a full format Canon camera and I am between Canon 5D mark III and mark II. I would like to be able using ISO numbers of 800 or 1600 or even more with less noise. I chose full frame, because I am pursuing better image quality of what my current Canon 550D offers. For this reason bigger sensor would be excellent. Finally I chose Canon as a brand, as it is financial wise to go on using Canon cameras, and because I got used to Canon.  I have made a research on the internet about some specifications I would like my camera to have:  High ISO performance: Canon 5D mark III is better at high ISO numbers. Why is that though, since its pixel size is slightly smaller than the pixel size of the mark II? Have the manufacturers made some other improvements on that?  AF-points: Canon 5D mark III has 61, whereas mark II only 9. I only want this for tracking objects or when I do not want to focus and recompose.  HDR: Mark III has this option I would like to try.  Pixel size: As I mentioned, mark 2 has slightly bigger pixels, but there is very little difference between the two cameras.  Do you know any other specifications of the two cameras, that can somehow help me decide eventually?  What do you think about either cameras? What would you choose if you want to go more professionally, gaining more image quality over your images?


Will a query which may take hours to execute keep executing on remote server if I close the connection after executing the command?

If I connect to a remote database server via ssh, start mysql client and execute a query which may take a couple of hours to execute, then close the connection, will the query continue to execute until completed? Can I mysqldump in this way on a huge database, go back a few days later and expect it all to be complete?  thanks!


Given I have two File objects I can think of the following implementation: public File convertToRelative(File home, File file) {     final String homePath = home.getAbsolutePath();     final String filePath = file.getAbsolutePath();      // Only interested in converting file path that is a      // direct descendants of home path     if (!filePath.beginsWith(homePath)) {         return file;     }      return new File(filePath.substring(homePath.length()+1)); }  Is there some smarter way of converting an absolute file path to a relative file path?  Possible Duplicate:


Does $\frac12+\frac14+\frac18+\dots$ equal $1$?

Suppose I have something with length one unit. I divide it to two equal length $0.5$ unit and put left one in my left side and right one in my right side. I then do same for my right side and contact result's left one to my left side and replace my right side with it's right one.  Even if I do these infinitely, there's something at my right side remaining. So it seems that $$\frac12+\frac14+\frac18+\dots$$ never taste value $1$. Right?  NOT DUPLICATE: Actually  does not answer my question. because if I accept them then I have $$\frac12+\frac14+\frac18+\dots=\frac23+\frac29+\frac2{27}+\dots=1$$ Then I can define $$A_n = \frac12+\frac14+\frac18+\dots+\frac1{2^n}$$ And $$B_n = \frac23+\frac29+\frac2{27}+\dots+\frac2{3^n}$$ Then, it's quite can be seen that: $$A_n<B_n , n\in\mathbb N$$  Then how could I accept that both series can reach each other at value $1$?!


"Reputation to the max" isn't working fully

I just bought "Reputation to the max". I bought this first, because I really want to help the cleanup of the vote-to-close queue, which, despite the efforts I've been hearing about, is still quite large. According to SO, my reputation is now 15,750, but that queue still says I need at least 3k rep to review! That is clearly a bug!


Find sum to infinite terms of the series $S=\frac{4}{5}+\frac{4.7}{5.8}+\frac{4.7.10}{5.8.11}+\cdots$


As I was taught in school and , the T ending sound of words is unvoiced and should be pronounced with air, but recently I met a friend from the US, those aired T sounds were missing from her speaking, like "hat", "hot", "right". She speaks like /hæ/, /hɑː/,/raɪ/.   So I wonder if it's common to miss those sounds for Americans?


I am getting below error when I am trying to insert records using data loader.I see file contains Week__c column with value as 6/29/14 and Week__c is Date field in the custom object.What may be the issue ?     "FIELD_INTEGRITY_EXCEPTION:Week: invalid date: Fri Jun 29 00:00:00 GMT 14   Error fields: Week__c "


Difference between installing SuperSU using Play Store versus a custom recovery that installs it from a file?

I see that some  say that rooting involves:   Download a SuperSU as a zip file that would be accessible to the phone (e.g. the sdcard). Unlock the phone's bootloader. Booting into a "custom" recovery mode. E.g. TWRP or CWM. Either temporarily booting using fastboot or flashing the custom recovery to the phone and then booting. Use the custom recovery mode to install the downloaded SuperSU zip file. Reboot the phone into normal mode and root access should be A) available and B) managed by the SuperSU program.   However, I also see that SuperSU is also on the . Installing from the Play Store does not promise any root access. (It actually assumes you already have it.)   So, my questions are:   What is different between these installation methods practically? What is are the technical differences in actions or restrictions?  And how can/does the custom recovery installation method provide root access whereas the Play Store method can not?


New close/flag dialogs have much smaller draggable title areas

The new close/flag dialogs have much smaller draggable title areas. We used to be able to click between the dialog title and the top border in order to move the dialog, now clicking in that area will select text instead. It looks to be about 20px high. If that area at the top of the dialogs could be made draggable again that would be great.


What do they mean when they say "random variable"?


How to check the value of a single pixel in QGIS?

I was wondering how to check the value of a pixel at a mouse click in QGIS (as of 2.4).  In ArcGIS, the Identify tool does the job for both rasters and vectors. However, in QGIS, the Identify tool seems to be greyed out when only one raster layer is loaded.


How to restore old behaviour for CTRL+ALT+DEL on Windows 7?

At least on Windows XP that combination opened the Task Manager directly, without any delay.  I want to see the Task Manager when I press CTRL+ALT+DEL, and not that useless window which I never use anyway.  How can I change this behaviour?  PS. I know CTRL+SHIFT+ESC opens Task Manager too, but I dont like it. (harder to use, and also because I have used the other method for ~20 years now).


Query is returning a single concatenated string of values THEN the rows it found

I'm getting some really weird results from my QUERY() Here is an image with an example:    I'm querying for the name where No Show = "No Show". It find the correct name Name 5 but also returns a concatenated list of names separated by a space.   Why is this happening? How do I fix it?


Trying to select an item from a listView that is populated from an xml string array

So originally I had a string array in my mainactivity.java that populated a listview and I was able to click on an item in the listView and it would open up a new activity. I've now replaced that string array with an xml string array resource to populate the listView. But now I cannot select items from the listView. I hope I explained that well. Thank you for any help!  package com.example.zach.listview;  import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListAdapter; import android.widget.ListView; import android.widget.TextView; import  android.widget.Toast;   public class MainActivity extends AppCompatActivity {  //public static String[] routes = {"Information","Crag Map","Main Wall","1.   Shark Bait - 5.9", "2. Rain Check - 5.8", "3. Rain Check Direct - 5.7+",         //"4. Arocknophobia - 5.7", "5. Balls Deep - 5.9+", "6. Jingle Bells - 5.9", "7. Itching to Climb - 5.8-", "8. Hog Nose 5.10+",         //"9. Slab Dance - 5.10", "10. Don't Screw with My Disco - 5.11c"};  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);        //ListAdapter routeAdapter = new CustomAdapter(this, routes);          //Adapter with refernce to xml string array resourcde     ListAdapter routeAdapter = new CustomAdapter(this,     getResources().getStringArray(R.array.routeList));     final ListView routeListView = (ListView) findViewById(R.id.routeListView);     routeListView.setAdapter(routeAdapter);        routeListView.setOnItemClickListener(             new AdapterView.OnItemClickListener() {                 @Override                 public void onItemClick(AdapterView<?> parent, View view,     int position, long id) {                      // working way for selecting certain listview row from     above commented out string array                     //String route =     String.valueOf(parent.getItemAtPosition(position));                      //attempt                     String route =     String.valueOf(getResources().getStringArray(R.array.routeList)[position]);                      if (route == "1. Shark Bait - 5.9") {                          Intent intent = new Intent(view.getContext(),     RouteDetails.class);                         intent.putExtra("route", "Shark Bait");                         startActivity(intent);                     }                      if (route == "Information") {                          Intent intent = new Intent(view.getContext(), RouteDetails.class);                         intent.putExtra("route", "Birdsboro Rock Climbing     Quarry");                         startActivity(intent);                     }                 }              }     ); } }


I have a question about what $w$ means in the wave equation $A$$cos$($kx-wt$). From what I've understood, in classical physics, angular velocity has to be taken about a point or about an axis about which something spins around, so I'm not clear as to what angular velocity means in terms of a wave. Is it how many radians per second any one point on the wave is rotating with respect to the origin?


What do infinitives mean in news headlines?

I can't wrap my head around some English news titles with infinitives (I have tried to Google this, hopelessly). Some examples:   Russia's Head Athletics Coach to Step Down After Doping Revelations Russia to Create Government Job to Fight Doping in Sport Russian Olympic Champion Kaniskina to Quit Executive Role Over Doping Scandal   What is this use of infinitives called, and what does it mean?


GNU as compiler shows this error while running my executable ./hello which I get as a result of the proper compilation. The output is unexpected. Pls help using wsl for windows


The space-time invariance principle states that:  $(c^2)(\Delta t^2) - l^2 = \rm invariant$ for any inertial frame.  Consider two events that occur at the same time in inertial frame $S$, and frame $S_1$ moves with translational speed $v$ relative to $S$. It seems that by the length contraction, the distance between these events should be shorter in $S_1$ because the events are moving, yet since these events do not happen simultaneously in frame $S_1$, then $(c^2)(\Delta t^2) - l^2$ for frame $S_1$ is larger than for $S$, which is a contradiction. Can someone please explain the issue in this contradiction (without using Minkowski diagrams)?


IPv6: Are There Actual Differences Between Local Addresses ::1 and ::ffff:127.0.0.1?

Couldn't find a clear answer to this question here or on Google. What are the actual functional, assignability, routability etc. differences between IPv6 addresses ::1 and ::ffff:127.0.0.1, if any?  When should you use one and not the other? If they are equivalent, why two of them?


How can I prove that $(n^2+11n)/6$ has no remainder?

I must prove, that when dividing the following by 6 it yields no remainder: $$n^2+11n $$  Is this done with mathematical induction method? and what other technique can I use?  Update: some may find this question as a potential duplicate of the correct case when we have $n^3$ instead of $n^2$. I want to clarify that this is not true.


Let $P(x)=4x^2+6x+4$ and $Q(x) =4y^2-12y+25$. If $x,y$ satisfy the equation $P(x)Q(y)=28$, then find the value of $11y-26x$.

Let $P(x)=4x^2+6x+4$ and $Q(y) =4y^2-12y+25$. If $x,y$ satisfy the equation $P(x)Q(y)=28$, then find the value of $11y-26x$.      I know this question has been asked earlier  but the answer given states "Note that we have...". I want to know how we can arrive at that statement mathematically instead of trial and error method, because I wasn't able to get that while trying to solve it.      Any other way of solving this question would also be helpful.


Me and my highschool teacher have argued about the limit for quite a long time.  We have easily reached the conclusion that integral from $0$ to $x$ of $e^{-t^2}dt$ has a limit somewhere between $0$ and $\pi/2$, as we used a little trick, precisely the inequality $e^t>t+1$ for every real $x$. Replacing $t$ with $t^2$, inversing, and integrating from $0$ to $x$, gives a beautiful $\tan^{-1}$ and $\pi/2$ comes naturally.  Next, the limit seemed impossible to find. One week later, after some google searches, i have found what the limit is. This usually spoils the thrill of a problem, but in this case it only added to the curiosity. My teacher then explained that modern approaches, like a computerised approximation, might have been applied to find the limit, since the erf is not elementary. I have argued that the result was to beautiful to be only the result of computer brute force.  After a really vague introduction to fourier series that he provided, i understood that fourier kind of generalised the first inequality, the one i have used to get the bounds for the integral, with more terms of higher powers.  To be on point: I wish to find a simple proof of the result that the limit is indeed $\sqrt\pi/2$, using the same concepts I am familiar with. I do not know what really Fourier does, but i am open to any new information.  Thank you for your time, i appreciate it a lot. I am also sorry for not using proper mathematical symbols, since I am using the app.


This is the second time it's happening and the first time it went away by itself, so this time I thought that it was a matter of rebooting my system, or maybe an issue with the default PDF viewer. None of those fixed it, so I'm asking here not only because someone might know the solution but also because it sets a precedent.  Also, my Tex Live is up to date. Switching between XeLaTeX and pdflatex yields no different results.   Basically applying a shading/path fading to any given shape (which one seems to be irrelevant), the result will always be a rectangle on the bottom of the shaded shape filled with the top colour. Here's an example:        And here's the code:  \documentclass[tikz]{standalone}     \begin{document} \begin{tikzpicture}  \shade[bottom color=blue!50!black, top color=cyan!50] (-1,-1) rectangle (1,1);  \end{tikzpicture} \end{document}   What is wrong with it?  Edit: Now pdflatex gives the expected result, but XeLaTeX still shows the problem. Also, here is the result of \listfiles   *File List* standalone.cls    2012/09/15 v1.1b Class to compile TeX sub-files standalone ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)    ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)  ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional  xkeyval.sty    2014/12/03 v2.7a package option processing (HA)  xkeyval.tex    2014/12/03 v2.7a key=value parser (HA) standalone.cfg    2012/09/15 v1.1b Default configuration file for 'standalone'  class  article.cls    2014/09/29 v1.4h Standard LaTeX document class   size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)     tikz.sty    2013/12/13 v3.0.0 (rcs-revision 1.142)      pgf.sty    2013/12/18 v3.0.0 (rcs-revision 1.14)   pgfrcs.sty    2013/12/20 v3.0.0 (rcs-revision 1.28) everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)   pgfrcs.code.tex  pgfcore.sty    2010/04/11 v3.0.0 (rcs-revision 1.7) graphicx.sty    2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR) graphics.sty    2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)     trig.sty    1999/03/16 v1.09 sin cos tan (DPC) graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live    xetex.def    2015/03/25 v4.04 LaTeX color/graphics driver for XeTeX (TeX Liv e/RRM/JK)   pgfsys.sty    2013/11/30 v3.0.0 (rcs-revision 1.47)   pgfsys.code.tex pgfsyssoftpath.code.tex    2013/09/09  (rcs-revision 1.9) pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)   xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)    color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive  pgfcore.code.tex pgfcomp-version-0-65.sty    2007/07/03 v3.0.0 (rcs-revision 1.7) pgfcomp-version-1-18.sty    2007/07/23 v3.0.0 (rcs-revision 1.1)   pgffor.sty    2013/12/13 v3.0.0 (rcs-revision 1.25)  pgfkeys.sty      pgfkeys.code.tex  pgfmath.sty      pgfmath.code.tex   pgffor.code.tex     tikz.code.tex


Why charges should go to the surface of conductor?

How can we show that charges should go to the surface of a conductor, assuming that system should minimize its energy? (With no additional assumptions and maybe using variation method!)


Why is pressure in a liquid the same in all directions?

I'd like answers both in the more intuitive side an on the more precise side.   Thinking of water as "cubes" of water, for example, would allow pressure in the z axis to be independent of the y or x axis. Choosing other "shapes", like a  triangular prism, yield different results. Will this fact, then, be dependent on the format of the molecules of the liquid ?  I've heard of the rotational symmetry of liquids. What is its precise statement ? Why is it true ?


I'm a Latex beginner, could you please help me to draw these diagrams? Thank you very much!


$server_name not matching domain when multiple subdomains listed in nginx

I have the following server block defined:  server {   server_name jsonip.com www.jsonip.com ipv4.jsonip.com ipv6.jsonip.com;   add_header x-domain-name "$server_name $http_host $host" always; }   I'm setting the 'x-domain-name' header simply as a way to test what nginx is seeing and reflecting it back to the browser.  The issue I'm having is that if I access , then $server_name is matching 'jsonip.com' rather than 'ipv4.jsonip.com'.  Conversely, both $http_host and $host are matching the domains correctly.  Is there a different way to configure the server_name domains in the server block to get $server_name to match correctly?


Can a Sorcerer/Wizard prepare spells from another person's spellbook?

Sam is a level 8 sorcerer that takes 1 level of wizard for his 9th level. He now has a wizard spellbook and all that.  Walter the level 9 wizard has a thought. Walter hands Sam his own spellbook for a day.   Can Sam prepare the 5th level wizard spells in Walter's book? He has the spell slots and the book has the spells.      Not in the scope of the question:  Number of spells preparable. Sam is a level 1 wizard with Int 14 - so, three spells.  Walter is a curious wizard who is willing allowing this to happen.  Sam can read the language in Walter's spell book.


Fixed point iteration is $p_n={p_{n-1}\over{2}}+{1\over p_{n-1}}$ $n=1,2,...$. As it is fixed point iteration $p_n=g(p_{n-1})$. Hence, $g(x)={x\over 2}+{1\over{x}}$.Can someone give me a head start and that could start this problem. I tried induction but got some really complicated expressions which I cannot simplify. I tried proving $\sqrt{2}<p_n<p_{n-1}$ by induction when $p_0$ is not $\sqrt{2}$. Maybe I am doing something wrong in my induction method.


Kubuntu GUI on server 20.04-the NAS-Edit: In fact it was a mirror list problem

So I tried several manuals to install and start at boot KDE Plasma on 20.04. Namely:     Even:  HW: Graphics: Sapphire PULSE RX550 2GB (64) aktiv D H DP Processor: AMD, Trinity A4-Series X2 5300 Processor BOX, soc. FM2, 65W, Radeon TM HD 7480D Not sure if the dual graphics is disabled. command startX results a blue screen with movable mouse cursor


Images Look Blurry in Blender No matter how high the render samples are or that the settings in sampling is final

When I render with the camera in blender, no matter how high the render samples are or that the sampling is final rendering it still looks blurry.(unless it's the grass)


Are the terms probability density function and probability distribution (or just "distribution") interchangeable?

Like the title says, are the terms probability density function and probability distribution (or just "distribution") interchangeable? If not, what is the difference?


Why would Antimatter behave differently via Gravity?

Confinement of antihydrogen might help provide a future answer.


In each round of the board game "The Resistance" three players are randomly and secretly chosen to be spies while the rest of the players are part of the resistance. The spies are then made aware of each other while the players do not know the identity of the rest.   Imagine that 8 persons are playing the game and that three rounds have been completed. A new round has just begun. Among the players are Ted and Bob. Bob thinks that Ted is a spy and tries to convince the other players: "I think that Ted is a spy", he says. Ted replies: "I have been a spy in the last three rounds. It is very unlikely that I am a spy four times in a row. It is more likely that I am good in this round. If you let $X$ denote the number of times I am a spy in the four rounds, then X will be binomially distributed. The expected value of $X$ is then $3/8\cdot 4=1.5$. So in two of the rounds I should be good and in two of the rounds I should be a spy. Thus I should be good in this round." Bob then says: "Your status in each round of the game is independent of your status in the other rounds, so your reasoning is wrong. The probability of you being a spy in this round is $3/8$." Which player is correct?


This is my code, where the problem comes up.   public void onClick(View arg0) {     switch (arg0.getId()){         case R.id.login:             String nama = user.getText().toString();             String sandi = pass.getText().toString();             new AttemptLogin().execute(nama,sandi);             break;  }   and then this is my code on the AttemptLogin()  class AttemptLogin extends AsyncTask<String,String,String>{     boolean failure = false; protected String doInBackground(String... args) {         int success;         String username = args[0] ;         String password = args[1];         try {             List<NameValuePair> params = new ArrayList<NameValuePair>();             params.add(new BasicNameValuePair("username",username));             params.add(new BasicNameValuePair("password",password));              ...etc             }   and this is the LogCat,     So, I want get the String from onClick(), and pass the value to the doInBackground() on attemptLogin(). What is the solution about it? I'm sorry, it's newbie's question, please help us Thank you so much for your atention :)


I had to prove on a test that if $R$ is a PID then every surjective endomorphism of $R$ is an injection. To do this, I supposed there was a surjective endomorphism $\varphi:R\to R$. Then  $$R/\ker\varphi\cong R$$  and I had to use the fact that $R$ is a PID to show $\ker\varphi=\{0\}$. Prior to this test, I would have assumed this implied a zero kernel regardless if $R$ were a PID or not. Therefore      I'm wondering if anybody has an example of a ring $R$ and a nontrivial ideal $I$ such that $R/I\cong R$?


Construct a polynomial over $k$ whose zero set is $(0,\ldots,0).$

Suppose $K$ is a field which is not algebraically closed. Given any natural number $n$ how can I construct a  polynomial in $n$ variables whose zero set in $K^n$ is $(0,\ldots,0) (n-tuple).$  Give me some hint. Will characteristic play a role here ?


GNUstep directory keeps being created when removed

In my home directory there's a directory called “GNUstep”. As I don't use GNUstep I want to remove this directory, but it keeps being created when I do so:  $ tree GNUstep GNUstep └── Defaults 1 directory, 0 files $ rm -rf GNUstep $ tree GNUstep # executed after a few seconds GNUstep └── Defaults 1 directory, 0 files   I already removed every related package so that apt search gnustep | grep installed now doesn't show anything. I also did apt autoremove without any avail. I use Lubuntu 16.04.  How can I determine which process creates the directory every time I removed it, and how can I prevent it from doing so?  This is not a duplicate of:    – Other than “just delete it” (which I did) it contains no information about how to permanently remove the directory.  – I already did that and it didn't solve the problem.      suggests:     As a workaround you can change the value of GNUSTEP_USER_DEFAULTS_DIR in /etc/GNUstep/GNUstep.conf file.   Unfortunately there's no such file on my machine, not even /etc/GNUstep exists.


Very short story: two sentient clouds converse; one remembers being a human

I read in an old sci-fi anthology a very short story, about two sentient clouds/jets of energy having a conversation and one of them eventually remembering it used to be a human being. The story was about 2 pages long and from an anthology from around the 50's if I had to guess.  Any idea on the name of the story?


Find the value of : $\lim_{x\to\infty} \sqrt{x+\sqrt{x}}-\sqrt{x}$

I tried to multiply by the conjugate:  $\displaystyle\lim_{x\to\infty} \frac{\left(\sqrt{x+\sqrt{x}}-\sqrt{x}\right)\left(\sqrt{x+\sqrt{x}}+\sqrt{x}\right)}{\sqrt{x+\sqrt{x}}+\sqrt{x}}=\displaystyle\lim_{x\to\infty} \frac{x-x+\sqrt{x}}{\sqrt{x+\sqrt{x}}+\sqrt{x}}=\displaystyle\lim_{x\to\infty} \frac{\sqrt{x}}{\sqrt{x+\sqrt{x}}+\sqrt{x}}$  I don't even know if my rewriting has helped at all. How would I go about doing this?


Are duplicate chains OK, or just close directly against one canonical?

On found exact duplicates, should these be voted to close directly against a preferred, or ultimate, canonical question?   Or is a chain of possible duplicates (where one question is closed as duplicate of another, which itself is a duplicate of another, and so on and so on) allowable or OK?  One example of this situation can be found .


When you twist your glass, the ice stays still

When you twist your glass and the ice cube stays still, what causes that?  (Example: you put an ice cube in your glass, and then spin the glass to see the other side of the ice cube, but it won't spin with the glass, instead it stays still.)


How big does a circular geofence need to be for the curvature of the earth to matter?

I'm working on adding geofences to a mobile application. I know the proper way of calculating distance between two points on a sphere is using the  or  formula. I don't know if using those formulas are needed for relatively small scale applications. This leads to my question. At what point does the distance given by a great-circle calculation diverge significantly from a planar calculation?   For the purposes of this discussion assume greater than 5% error is significant.  The geofence is simply a center point and a radius. If the point is within the radius, by distance, it is considered within the boundaries of the fence.  I am not sure if it matters, but I'm just worried about circular geofences at this time with a user defined radius between 50 and 200 meters.


How To Download Youtube Videos With Two Or More Subtitles Youtube-DL

I was wondering is there a way to download a Youtube videos with 2 or more Subtitles using Youtube-DL and ignore auto-generated subtitles?


What do you call a response which does not address the question?

When some one is asked a question, sometimes if they are trying to avoid answering the question, they respond with something unrelated. What is the word for that response?  Eg. A: Why were you late?     B: This bagel tastes good.  What I am looking for is the name of that response, not the action.


Why not use "from" to replace "with" in the sentence"He suffers terribly with his feet."?

He suffers terribly with his feet.   Why not use the preposition "from"?  What is the meaning of "with" here?


How come the stargate doesn't burn through the iris?

I may just not remember this, but doesn't the Stargate horizon destroy everything in its way when the gate is activated? How then, can the Stargate's Iris stay in tact?


Should actors in a game be responsible for drawing themselves?

I am very new to game development, but not to programming.  I am (again) playing around with a Pong type game using JavaScript's canvas element.  I have created a Paddle object which has the following properties...   width height x y colour   I also have a Pong object which has properties such as...   width height backgroundColour draw().   The draw() method currently is resetting the canvas and that is where a question came up.  Should the Paddle object have a draw() method responsible for its drawing, or should the draw() of the Pong object be responsible for drawing its actors (I assume that is the correct term, please correct me if I'm incorrect).  I figured that it would be advantagous for the Paddle to draw itself, as I instantiate two objects, Player and Enemy. If it were not in the Pong's draw(), I'd need to write similar code twice.  What is the best practice here?  Thanks.


After a download yesterday my computer crashed. I updated today and checked for rootkits. I found a packet sniffer  eth0: PACKET SNIFFER(/sbin/dhclient[3966])   How can I remove this?


How delete records that are not the maximum of a group from an SQL table

I have a table with the following schema:  ID NVARCHAR(10) Message NVARCHAR(300) UpdateTime DATETIME   where ID is a foreign key. New message records are added in clusters with the same UpdateTime. An example would be (sorted by ID and UpdateTime):  ID   | Status        | UpdateTime --------------------------------- 42     Cluster1-Msg1   2012-12-25 42     Cluster1-Msg2   2012-12-25 42     Cluster2-Msg1   2013-10-10 42     Cluster2-Msg2   2013-10-10 43     Cluster4-Msg1   2011-11-27   Here ID #42 is associated with 4 messages, clustered in two groups on different dates, while ID #43 is only associated with one message.  From time to time I wish to purge this table by, for each group with the same ID, deleting all message records whose UpdateTime is less than the maximum within the group. The end result in the example above would be:  42     Cluster2-Msg1   2013-10-10 42     Cluster2-Msg2   2013-10-10 43     Cluster4-Msg1   2011-11-27   The following SQL query locates all the records I want to delete:  SELECT Msgs.ID, Msgs.UpdateTime FROM Messages Msgs JOIN (SELECT ID, MAX(UpdateTime) AS MaxTime FROM Messages GROUP BY ID) MaxTimes ON Msgs.ID = MaxDates.ID WHERE Msgs.UpdateTime < MaxTimes.MaxTime   Now I wish to write a DELETE statement that removes the items that match those returned by the query above. The records must be removed based on the ID and UpdateTime values. I'm just not understanding how to express this in Transact-SQL.


How do I show apt-get package management history via command line?

Is there a way to show the history of packages that were changed by apt-get via command line?


charAt doesnt work right now i cant find the failure

My code doesnt work at line 64 i wanted that the compiler shows me the first index of the firstName n even of the lastName but it just says "java.lang.NullPointerException".  i dont know what i ve done wrong it would be nice if someone could help me to find the failure n explain me what i ve done wrong.  thx :)  import util.IO; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.Month; import java.time.Period; import java.time.chrono.ChronoLocalDateTime; import java.time.format.DateTimeFormatter; import java.util.*; import java.time.temporal.ChronoUnit; public class PersonUtils {                   public static void main(String[] args) {                 PersonUtils prg = new PersonUtils();                 prg.execute(); }     {         final int PERS_ANZ_MAX=100;         final int TAGE_MAX = 20;         final String KLINIK ="Lausitzer Gesundbrunnen.\nCottbus und Senftenberg"; }    void execute()         {             patientenAbruf();             dateCalc();             getNextKey(null, null, null);         }        public void patientenAbruf()      {     String name = IO.readString("Bitte den Nachnamen des Patienten eingeben:");     String vorname = IO.readString("Bitte geben Sie den Vornamen des Patienten an:");     }       public LocalDate dateCalc()     {      LocalDate today = LocalDate.now();     LocalDate termin=LocalDate.of(2020, 3, 1);     Period zeit = today.until(termin);     int yearsOftime= zeit.getYears();     int monthsOfTime= zeit.getMonths();     int daysOfTime= zeit.getDays();          System.out.println("es verbleiben noch "+daysOfTime+ " Tage und "+monthsOfTime + " Monate sowie "+yearsOftime +" Jahre bis zum nächsten Termin.");         return today;       }       public void getNextKey(String name, String vorname, LocalDate termin)     {          char firstName = vorname.charAt(1);         char lastName = name.charAt(1);         System.out.print(firstName + lastName);       } }>      Exception in thread "main" java.lang.NullPointerException         at praktikum7.PersonUtils.getNextKey(PersonUtils.java:64)         at praktikum7.PersonUtils.execute(PersonUtils.java:34)         at praktikum7.PersonUtils.main(PersonUtils.java:16)>