Currently reading  and I really like the way theorems, definitions, etc. are emphasized by a lower right corner symbol (). For reference        I have tried recreating this formatting by manually inserting \hfill$\rlcorner$ in the following way  \documentclass[a4paper, 10pt]{article} \usepackage{amsmath, amssymb, amsthm} \usepackage[singlespacing]{setspace}  \theoremstyle{definition} \newtheorem{exam}{Example} \newtheorem{definition}{Definition}  \DeclareMathOperator{\im}{im}  \begin{document}  \begin{exam} A complex $$\cdots\longrightarrow M\overset\beta\longrightarrow N\longrightarrow0\longrightarrow\cdots$$ is exact at $N$ if and only if $\beta$ is an epimorphism.\par Indeed, the complex is exact at $N$ if and only if $\im\beta=$ kernel of the trivial homomorphism $N\to0$, that is, $\im\beta=N$.\hfill$\lrcorner$ \end{exam} \begin{definition} A {\it short exact sequence} is an exact complex of the form $$0\longrightarrow M\overset\alpha\longrightarrow N\overset\beta\longrightarrow0.$$\hfill$\lrcorner$ \end{definition}  \end{document}         Anyway, I am not happy with this solution as, on the one hand, it does not seem efficient and, one the otehr hand, I am not able to adjust the height of the second \rlcorner to match the excerpt (writing $$[Diagramm].\hfill\rlcorner$$ does not work).     Could someone help me out? I would prefer to declare this style within the preamble for all kinds of theorem enviroments at once.   Thanks in advance!
I have a question about making an ending symbol.  It is a LaTex-default that every proof environment has an ending symbol. I want to make every theorem-alike environment such as the example environment have also an ending symbol. But how to manually set this up? Specifically, I want to make all these environments ended by a square symbol.  \newtheorem{thm}{Theorem} \newtheorem{lem}[thm]{Lemma} \newtheorem{cor}[thm]{Corollary} \newtheorem{pro}[thm]{Proposition} \newtheorem{assump}{Assumption} \newtheorem{axiom}{Axiom} \newtheorem*{conj}{Conjecture} \theoremstyle{definition} \newtheorem{defi}[thm]{Definition} \newtheorem{exam}{Example} \newtheorem{exer}{Exercise} \newtheorem*{rem}{Remark} \newtheorem*{notation}{Notation} \newtheorem*{note}{Note}   I am looking for, with gratitude, a comprehensive setup.
Creating mask file from shapefile using ArcGIS for Desktop? I have a shapefile of Lakes over my study area. Each polygon has attribute information of each lake, name, shape etc. Actually I want to eliminate all lakes from analysis. In other word, I want lakes to have 0 value and the area that out of boundary of lake to have their orginal pixel values. when I do subset using this shapefile, the output is not I want because my shapefile deoesn't have any value outer boundary of lake.   How can I build a proper mask file (inner part of lake has 0 value, outer is 1) using this shapefile in ArcGIS Desktop? Airplane ground speed and direction, given airspeed and wind An airplane heads northeast at an airspeed of 900 km/hr, but there is a wind blowing from the west at 60 km/hr. In what direction does the plane end up flying? (angle). What is its speed relative to the ground?   I drew a picture. I think I am having a hard time understanding how to solve the problem. I want to add the wind vector to the plane vector - is that as simple as 840 km/hr? After really adding the vectors together, do I do: (added vectors)cos(45)? Why are these sites cloning my content, and how do I stop them? So I was searching for one of my own websites on Google: http://www.botlibre.com  and to my surprise found some clones of my website, like:  http://83waystowasteyourtime.adidas.com  and:  http:// mediaiq.astral.comm  My question are:   Why are they creating clones of my website?  Some kind of SEO scheme or what? What gain could they be getting? How do they have a URL at adidas.com and astral.comm?  I assume it's not Adidas steeling my content. How do I shutdown these sites and stop people from stealing my content? (on Tomcat) Blender 2.8 - AWS EC2 command line EEVEE render I have been trying to get this to work for a couple days now. I have an EC2 P2 instance with NVIDIA CUDA configured by default, its a Deep learning Ubuntu AMI. This OS does not have a GUI so everything is via terminal.  I downloaded Blender's 2.8 TAR file for Linux and set it up on the EC2 instance. And ran the following command from the directory where the TAR file is extracted:   ./blender -b -noaudio /home/ubuntu/file.blend --render-output . --engine BLENDER_EEVEE --render-format PNG --verbose 4   All I see in the output is this:  Blender 2.80 (sub 75) (hash f6cb5f54494e built 2019-07-29 17:17:04) found bundled python: /mnt/blender/blender-2.80-linux-glibc217-  x86_64/2.80/python Read blend: /home/ubuntu/file.blend  Blender quit   Don't know why its quitting but I am unable to debug this any further. Any help would be appreciated.  UPDATE: As per @rjg's recommendation, ran the following command:  ./blender -b -noaudio /home/ubuntu/file.blend --render-output . --engine BLENDER_EEVEE --render-format PNG -f 1 --verbose 4   Got the following error:  Blender 2.80 (sub 75) (hash f6cb5f54494e built 2019-07-29 17:17:04) found bundled python: /home/ubuntu/blender/blender-2.80-linux-glibc217-  x86_64/2.80/python Read blend: /home/ubuntu/file.blend Unable to open a display Aborted (core dumped) Separate long math text under sum symbol into different lines? How long does it usually take for published articles to show up on Google Scholar? The title pretty much says it all - what's the typical delay with which Google Scholar indexes newly published articles? (Note I'm not talking about citations, but about the article showing up at all.)  Edit: the article in question went for over six months after being published (in a well-regarded Springer journal with its own Wikipedia page) without appearing on Google Scholar, until it received a citation, at which point it was added to Google Scholar almost immediately. One more motivation to write papers that get cited. :)  Edit 2: Another article in an even more mainstream journal took a little over seven weeks. I am working on setting up a Minecraft server on a machine I have at home. This particular machine has two quad-core CPUs running at 2.0Ghz so I would like to take advantage of the number of cores and run a server with 4 or 6 of the cores. My server of choice is CraftBukkit, the latest version of which is craftbukkit-1.4.7-R1.0 and launched with a start-up script of:  "C:\Program Files\Java\jre7\bin\java.exe" -Xms1G -Xmx8G -jar craftbukkit-1.4.7-R1.0.jar"   The  says:     Minecraft servers, as of 1.1.0, can use multiple cores, so now they will not sit idle.   but does not really expand on this.  My questions, then:   Is it possible to set the number of cores the server uses? How do I do it - via start-up options, or other methods? Is it really worth it and would it make that much of a difference with a lot of players? I am testing the new  &lt;lightning:datatable&gt;, it is really good, and is a good replacement for most of my use cases which today I use a custom list component that I have developed.  I am getting data from my server through apex method, to populate it into the &lt;lightning:datatable&gt; component. I can bind the returned list directly to the data attribute and if the column names are same as the field names, all data is bound correctly.  The problem occurs when I get data from a parent record. For example - I want the Account name of my contact.  This example can show the problem:  Component Markup    &lt;aura:handler name="init" value="{!this}" action="{!c.doInit}"/&gt;  &lt;aura:attribute name="mydata" type="Object"/&gt; &lt;aura:attribute name="mycolumns" type="List"/&gt; &lt;aura:attribute name="sortedBy" type="String"/&gt; &lt;aura:attribute name="sortedDirection" type="String"/&gt;  &lt;lightning:datatable data="{! v.mydata }"                      columns="{! v.mycolumns }"                      keyField="Id"                      onrowselection="{! c.getSelectedName }"                      onsort="{!c.updateColumnSorting}"                      sortedBy="{!v.sortedBy}"                      sortedDirection="{!v.sortedDirection}"                      hideCheckboxColumn="{!false}" /&gt;        Component Controller  ({     doInit: function (component, event, helper) {         component.set('v.mycolumns', [                     {label: 'Id', fieldName: 'Id', type: 'id', sortable:"true"},                     {label: 'First Name', fieldName: 'FirstName', type: 'text', sortable:"true"},                     {label: 'Last Name', fieldName: 'LastName', type: 'text', sortable:"true"},                     {label: 'First Name Hebrew', fieldName: 'First_name_Hebrew__c', type: 'text', sortable:"true"},                     {label: 'Last Name Hebrew', fieldName: 'Last_name_Hebrew__c', type: 'text', sortable:"true"},                     {label: 'Account', fieldName: 'Account.Name', type: 'text', sortable:"true"},                     {label: 'Email', fieldName: 'Email', type: 'email', sortable:"true"},                     {label: 'Phone', fieldName: 'Phone', type: 'phone', sortable:"true"}                 ]);          var action = component.get("c.getRecordsFromDb");         action.setParams({             sObjectName: "Contact",             commaDelimitedFieldNames: "Id,FirstName,LastName,First_name_Hebrew__c,Last_name_Hebrew__c,Account.Name,Email,Phone",             filter: ""         });         action.setCallback(this, function(response){             var state = response.getState();             if (component.isValid() &amp;&amp; state === "SUCCESS") {                 var data = response.getReturnValue();                  component.set("v.mydata", data);             }         });         $A.enqueueAction(action);     } })   APEX Aura Enabled Method  @AuraEnabled public static List&lt;sObject&gt; getRecordsFromDb(String sObjectName,         String commaDelimitedFieldNames,         String filter) {      system.debug('\n\n\n\ngetRecordsFromDb sObjectName: ' + sObjectName + ', commaDelimitedFieldNames: ' + commaDelimitedFieldNames + ', filter: ' + filter + '\n\n\n\n');      // create a dynamic soql to get the value of the field     String sql = 'SELECT ' + commaDelimitedFieldNames + ' FROM ' + sObjectName;      if (!String.isBlank(filter))         sql += ' WHERE ' + filter;      system.debug('\n\n\n\ngetRecordsFromDb sql: ' + sql + '\n\n\n\n');     List&lt;sObject&gt; records = Database.query(sql);     system.debug('\n\n\n\ngetRecordsFromDb: ' + records + '\n\n\n\n');      return records; }   The problem is with the Account.Name field - the &lt;lightning:datatable&gt; component does not display the column data.   I know that the data is returned ok, and I know that in the object that is returned, the Account is contained like an object (probably this is the problem):    Is there a good way to show parent record data with this component? Does anybody know of a method to trigger an event in Prototype, as you can with jQuery's trigger function?  I have bound an event listener using the observe method, but I would also like to be able to fire the event programatically.  Thanks in advance How do you prove a number is prime? I am a software engineer but try to keep up with maths as I really enjoyed the subject at school. I just saw a great TED talk:   The talk states that the current largest known prime is $2^{57885161}-1$  This got me thinking - how does one actually prove whether a number this large is prime or not?  Is it just done by brute force via a computer algorithm or are there any well known mathematical techniques for doing so?  I would be really grateful for any pointers as I am eager to learn about these techniques (if they exist). Is it possible to have multiple bevel objects along a curve? I'm wondering if it's possible to define multiple bevel objects along a curve and have Blender interpolate between the bevels like keyframes. Why can't I left click on my Macbook Pro? Bibliography with BibLaTeX: Do not abbreviate first given (first) name and abbreviate all further given names The first given name of an author or editor in my bibliography should be written out, but all further first names should be abbreviated (initials with a period -- and space if there are multiple first names/initials, see below). I am using style=authoryear with BibLaTeX (v. 2.7) and Biber (v. 1.7).  My bibliography looks like this:     Doe, John Arthur Kyle (2013). The secret life of John Doe.   It should look like this:     Doe, John A. K. (2013). The secret life of John Doe.   Minimal example:  example.tex  \documentclass{scrartcl}  \usepackage[ngerman]{babel} \usepackage[babel,german=quotes]{csquotes} \usepackage[backend=biber,style=authoryear]{biblatex} \bibliography{bibliography}  \begin{document}  \cite[123]{Doe} \printbibliography  \end{document}   bibliography.bib  @book{Doe,     title = {The secret life of John Doe},     author = {Doe, John Arthur Kyle},     year = {2013} }   (Worked with said versions of BibLaTeX and Biber, Texmaker (v. 4.0.3) and MiKTeX (v. 2.9.4813).)  I could not find a solution in biblatex.def and firstinits=true abbreviates all first names, including the first one. Can you use Wish to duplicate a spell at a higher level? Wish allows you to duplicate the effects of any spell L8 or lower. Does that include a lower-level spell, cast at L8? Say, as a Wizard, casting Heal at L8.  I'm leaning towards yes, but it wouldn't be the first time I assume the wrong answer... Do I have to create vector files at the correct print size? proof that every finite matrix has an annihilating polynomial Add new JDBC Driver to connect Mathematica to SQL database In Python, what's the difference between 'except Exception as e' and 'except Exception, e' Silencing "Your disk is almost full" notification After upgrading to macOS Sierra, I'm getting the notification that "Your disk is almost full. Save space by optimizing storage.":    The options appear to be to store my files in iCloud, automatically delete files, or manually delete files:    My problem/irritation is that I have 80GB free of my 440GB volume.  The question: is there a way to silence this notification in a (semi-)permanent fashion, or to change the threshold it uses for the notification? right (opposite of left) connected to right (legal term)?