Latex Table (Graphix) Help! Is it possible to draw?
Can I put \fbox along the diagonal so that they touch each other?
I am looking for a way to get the 15 character entity ID for a custom field on my Lead object in an Apex controller. I have tried this:  private String getEntityIdFor(String fieldName) {         Map&lt;String, Schema.SObjectField&gt; fieldMap = Schema.SObjectType.Lead.fields.getMap();         return fieldMap.get(fieldName).getDescribe().getId();     }    Of course, there is no getId() method, but this is the closest I got.   Thanks for any help. How to sort two lists (which reference each other) in the exact same way mod [= remainder] operation (and relation), name and meaning I am trying to write the Euclidean algorithm in the following way:  $A = \lfloor A \div B \rfloor \times B + (\text{remainder of}) \: A \div B $   Now is there any symbol I can use  to say "remainder of A $\div$ B"? I know that in the C programming language there is the operator % for modulus; is that a valid symbol in maths? Can I write A % B? Or is there some other way? What is the optimum button size of touch screen applications? There was a not so recent blog post about the ideal button size of touch screen control sizes (sorry there is no link, the website is now a spam trap) that was based on the  form the MIT touch lab that gives some measures of the size and sensitivity of the finger. If found that averages for finger pads are between 10–14mm and fingertips are 8–10mm. This would make 10mm x 10mm a good minimum touch target size.  As the author of the blog pointed out, this ideal contact size is much larger than the suggested size for Windows and Apple devices that is in their design guides. I am wondering why there is such a difference, and whether it makes more sense to increase the size of controls on touch screen applications, or if this is not really a usability issue at all? Also, it seems that many mobile websites and apps seem to completely ignore these principles. I am sure the screen size poses a limitation to how big the interface controls can be, so is this simply a trade-off between being able to fit in as much information versus how easy it is to interact with the control? It feels as if the stylus is not something that is in much use. A similar question has been raised on the minimum/smallest size that you can get away with, but I would consider this to be a different question to what the optimum size should be, because the smallest size accommodates the minimum usability requirement, whereas the optimum size caters for the best usability requirement. Archived link of the blog (original domain shows spam)  And here is another reference it to (just to show that it is not the problem with the link but the website () UPDATE #1: another new reference that has a very precise figure of a minimum of 44 x 44 points, not sure how it is derived exactly but interesting (). Read Section 2. Provide Large Clickable Elementss. UPDATE #2: another reference, this time from  citing touch target size to 9 mm square or greater (48x48 pixels on a 135 PPI display at a 1.0x scaling plateau). They also suggest avoid using touch targets that are less than 7 mm square. UPDATE #3: something from the  that I referenced recently citing 44 x 44 points. UPDATE #4: NN/g has published an article on  and the information/conclusion remains unchanged. UPDATE #5 A really nice write-up on the need to enhance the  of common UI elements, citing the  that the &quot;minimum target size for touch or mouse should be 44×44 pixel&quot; (2.5.5 - Target Size - Level AAA). How to fix the MBR for Windows 7? How long do Tenacious and Unsung Hero badges take to be awarded? Just curious whether the process takes a while, and whether it scrapes through history to determine if it was once valid or not. Currently, I have 6 0-vote accepted answers and 20 1+-vote answers (), and that makes it > 5 and > 20% but not for long if voting goes up or down from here. ;-P  Update:  Special thanks to Grace Note for pointing out the  to follow. I upgraded this to a bug because it's been 48 hours during which the criteria supposedly were met. 6 0-votes, 20-23 1+ votes during the whole period. The criteria only last so long, so it may go out of scope soon. If it only checks every 3 days, I'm not sure if that's intentional or a bug. SQL function as default parameter value? I tried changing a default parameter value with this:  ALTER PROCEDURE [dbo].[my_sp] @currentDate datetime = GETDATE()   and all the SQL pre-compiler gave me was this error:     Msg 102, Level 15, State 1, Procedure my_sp, Line 8 Incorrect syntax near '('.   I have already created the procedure. (I'm not sure if that's relevant.) I was using a null default value and checking for that later, but that doesn't seem proper. Can I do this in one line?   Update: I was going off of :      [ = default ] Is a default value for the parameter. If a default value is defined, the function can be executed without specifying a value for that parameter.            Note:     Default parameter values can be specified for CLR functions except for the varchar(max) and varbinary(max) data types.         When a parameter of the function has a default value, the keyword DEFAULT must be specified when the function is called to retrieve the default value. This behavior is different from using parameters with default values in stored procedures in which omitting the parameter also implies the default value.   Am I reading this wrong?  Many thanks. Abelianization of free group is the free abelian group Page 105 of D. Burton's A First Course in Rings and Ideals reads     It is not difficult to show that if (I'll call them $n$ and $m$ instead of $n_1$ and $n_2$) $n$, $m$ are square free integers, then $\mathbb{Q}(\sqrt{n}) \cong \mathbb{Q}(\sqrt{m})$ if and only if $n=m$.   Well, it is getting difficult for me, any help or would be appreciated.    My progress so far: Suppose $\phi :\mathbb{Q}(\sqrt{n})\to\mathbb{Q}(\sqrt{m})$ is an isomorphism. Then $\phi(u)=u$ for every $u \in \mathbb{Q}$, so that $\phi(\sqrt{n})^2=\phi(n)=n$. If $\phi(\sqrt{n})=a+b\sqrt{m}$ for some $a,b\in\mathbb{Q}$, then $(a+b\sqrt{m})^2=a^2+b^2m + 2ab\sqrt{m}=n$ implies $$a^2+b^2m = n$$ and $$2ab=0.$$  Then $b=0$ cannot happen since that would imply that $\sqrt{n}\in\mathbb{Q}$, where $n$ is a square-free integer. Also $a=b=0$ cannot happen. Hence $a=0$ and we have $$b^2m=n.$$ If $\psi:\mathbb{Q}(\sqrt{n})\to\mathbb{Q}(\sqrt{m})$ were an isomorphism then there would exist some $s\in\mathbb{Q}$ such that $$s^2m=n,$$ then $s=b$ or $s=-b$. Therefore the only isomorphisms from $\mathbb{Q}(\sqrt{n})$ to $\mathbb{Q}(\sqrt{n})$ are $\phi(u+v\sqrt{n})=u+vs\sqrt{m}$ and $\psi(u+v\sqrt{n})=u-vs\sqrt{m}$.    I don't know if there's an easier way and I don't know if I'm in the correct way here. Thanks beforehand :) Problem with PDO MySQL Google AdSense Policy Non Compliant "Site Behaviour: Navigation" I want to refresh the entire service console on clicking of the save button on the visual force page. The button is an inline visual force page. Any ideas?  &lt;apex:includeScript value="/soap/ajax/26.0/connection.js"/&gt; &lt;apex:includeScript value="/support/console/26.0/integration.js"/&gt; &lt;script type="text/javascript"&gt; function focusAndSave() {     document.getElementById('focusMe').click(); }     &lt;/script&gt;     &lt;apex:form &gt;     &lt;apex:pageBlock id="pb"&gt;         &lt;apex:pageMessages id="errMsgsId"&gt;&lt;/apex:pageMessages&gt;         &lt;input type="text" id="focusMe" style="display:none" /&gt;         &lt;apex:pageBlockTable id="table" value="{!candidateMap}" var="c"&gt;             &lt;apex:column value="{!candidateMap[c].Contact__r.Name}"/&gt;             &lt;apex:column value="{!candidateMap[c].Submitted_at__c}"/&gt;             &lt;apex:column value="{!candidateMap[c].Interview_Availability__c}"/&gt;             &lt;apex:column value="{!candidateMap[c].Notice_Available__c}"/&gt;             &lt;apex:column headervalue="Stage"&gt;                 &lt;apex:outputfield value="{!candidateMap[c].Stage__c}"&gt;                     &lt;apex:inlineEditSupport event="ondblclick"/&gt;                 &lt;/apex:outputfield&gt;             &lt;/apex:column&gt;             &lt;apex:column headervalue="Ideally looking for"&gt;                 &lt;apex:outputfield value="{!candidateMap[c].Ideally_looking_for__c}"&gt;                     &lt;apex:inlineEditSupport event="ondblclick"/&gt;                 &lt;/apex:outputfield&gt;             &lt;/apex:column&gt;             &lt;apex:column headervalue="Action"&gt;                 &lt;apex:commandLink value="Save" action="{!saveCandidate}" rerender="errMsgsId,table" onclick="focusAndSave()" oncomplete="testGetFocusedPrimaryTabId()"&gt;                     &lt;apex:param name="candidateId" value="{!candidateMap[c].Id}" assignTo="{!candidateId}"/&gt;                 &lt;/apex:commandLink&gt;             &lt;/apex:column&gt;         &lt;/apex:pageBlockTable&gt;         &lt;apex:panelGrid columns="7" style="margin: 0 auto;"&gt;             &lt;apex:outputLabel value="{!noOfRecords} records found"&gt;&lt;/apex:outputLabel&gt;             &lt;apex:commandButton status="fetchStatus" reRender="pb" value="|&lt;" action="{!first}" disabled="{!!hasPrevious}" title="First Page"/&gt;             &lt;apex:commandButton status="fetchStatus" reRender="pb" value="&lt;" action="{!previous}" disabled="{!!hasPrevious}" title="Previous Page"/&gt;             &lt;apex:commandButton status="fetchStatus" reRender="pb" value="&gt;" action="{!next}" disabled="{!!hasNext}" title="Next Page"/&gt;             &lt;apex:commandButton status="fetchStatus" reRender="pb" value="&gt;|" action="{!last}" disabled="{!!hasNext}" title="Last Page"/&gt;             &lt;apex:outputLabel value="Page {!pageNumber} of {!pagecount}"&gt;&lt;/apex:outputLabel&gt;         &lt;/apex:panelGrid&gt;     &lt;/apex:pageBlock&gt; &lt;/apex:form&gt; How to install mysql? This is a question from the book Methods of Real Analysis by R. R. Goldberg.     If $(s_n)$ is a sequence of real numbers and if $$\sigma_n=\frac{s_1+s_2+\cdots+s_n}{n}$$ then prove that: $\operatorname{{lim sup}}\sigma_n \leq \operatorname{lim sup} s_n$.   I don't have any idea how to start working on this problem. Please help. Thanks. How to make a file executable? How can I make my file so that I can double click on it, and it runs. It is a .sh script, but I also have files that say:  executable (application/x-executable)  in the description of what they are.  I can't run any of these from terminal, or by double clicking.  If possible, I would like a way using either the GUI or a Terminal, but not a combination of the two.  Here is a screenshot of what I see when I right click then go on properties. The file first:    And the shell script here:    NB: I accept that this is a duplicate (I was looking for it, and couldn't find it, so asked + answered it, hoping that I would find it) however, I don't think the question about .desktop files is a duplicate. Please provide a way to download SEDE data via an API I recently suggested on the Stack Apps site that , and it was suggested I reference the feature request here, for visibility.  My use case is a query that the API does not support, so I thought it would be interesting to get it programmatically from SEDE instead. I wonder if this feature might be of interest to others here?  outlines the current ways that SE data is available via various APIs and UIs.  I wonder if my use case (retrieving revisions filtered by user) might have been supported by OData,  since April of this year.  This question has sort-of , though that was not an explicit feature request, and is now rather out of date. It would be good to find out what the current views are on this topic, and indeed whether there is much demand.  My use-case does not urgently require this, since I can use public SE screen scraping or SEDE CSV downloading. From reading around the SE Meta network, both of these approaches seem to be tolerated, as long as it is done with careful regard to frequency and bandwidth. Is it possible to pagebreak aligned equations? The report I'm writting features a lot of long, multiple lines equations. To reduce visual polution I've been using an aligned environment nested inside equation. This way (unlike just using an align environment) I get only a single label for all the lines.  The problem is that so many long equations often need to be broken into two pages, otherwise I get lots of blank vertical space in the document. However the aligned environment does not allow the \displaybreak command.  Is there an alternative way to achieve a pagebreak inside an aligned equation?  Here's a sample ofthe equations I'm using  \begin{equation}     \begin{aligned}     ...\\     ...\\  %I need to pagebreak here     ...\\ \end{aligned}\end{equation} I am trying to prove the following statement.     If a field $K$ is not algebraically closed, then any $K$-variety $V\subset\mathbb{A}^n$ can be written as the zero set of a single polynomial in $K[X_1,X_2,...,X_n].$     Suppose $V=V(f_1,f_2,...,f_n)$, and I would want to find a polynomial $g\in K[X_1,X_2,...,X_n]$ such that $V=V(g)$.  I know that if I can find a polynomial $\phi\in K[X_1,X_2,...,X_n]$ whose only zero is $(0,0,...,0)$, then it is done, since we could take $g=\phi(f_1,f_2,...,f_n)$.  For $n=1$, then I would just choose $\phi=X$, but I do not even know how to proceed to the case $n=2$. Maybe we could choose an irreducible polynomial of degree $&gt;1$.  Any help will be appreciated. I recently upgraded my CPU from an Athlon II X2 250 to the Athlon II X4 610E(45W 4 cores -- can't beat the efficiency).  Is an ubuntu reinstall required? PostgreSQL, SELECT from max id