I want to obtain record type info like:  List&lt;RecordType&gt; lstrecord = new List&lt;RecordType&gt;([Select id,Name from RecordType where sObjectType = 'Move__c' and Name = 'Draft' ]);   using schema
public static map&lt;id,RecordType&gt; MapRecordtype = new Map&lt;id,RecordType&gt;([SELECT id, DeveloperName FROM RecordType where sobjecttype ='move__c' and                                         Developername in('Assignment','Draft','Domestic_Draft','LTST_Draft','MX_Domestic','MX_Domestic_draft','Termination','International_Relo','Localization','J1',                                        'Back_To_Back','Repatriation','PAM','US_Domestic_Relo','CHN_Domestic_Relo','CHN_Domestic_Draft')])   Can we write schema for above query?
Show that $a^2 \bmod b = (a \bmod b)^2 \bmod b$ Show that  $$a^2 \mathrm{\ mod \ } b = (a \mathrm{\ mod \ } b)^2 \mathrm{\ mod\ } b$$ for $ a, b \in \mathbb{Z}^+ $.  this was derived from an Informatics olympiad question. My question was closed for being a "shopping list question", even though it was very much related to the topic of the site. Why? My MWE:  \documentclass{report}  \usepackage{amsmath}  \begin{document}  \begin{align} y &amp;= a \\ =&amp; -2c_1\bar{z}_1^2 + 2\bar{z}_1\bar{z}_2 + 2\bar{z}_2 \left ( -\bar{z}_1 -c_2z_2 - \frac{3\epsilon}{2}\bar{z}_2 -\sigma_{2,1}\cos(x_1)\Delta x_1 \notag \right. \\ \left. &amp;- \sigma_{2,2}\Delta x_2 -\sigma_{2,3} \Delta u +c_2 \chi_2 \vphantom{\frac{1}{1}} \right ) - 2\gamma \sigma_{2,1}^2\cos^2(x_1) \Delta x_1^2 - \gamma \sigma_{2,2}^2 \Delta x_2^2   - 2\gamma \sigma_{2,3}^2 \Delta u^2 \end{align}  \end{document}   The error I get:  Extra }, or forgotten \right.   The expected result: JavaScript curry: what are the practical applications? I don’t think I’ve grokked currying yet. I understand what it does, and how to do it. I just can’t think of a situation I would use it.  Where are you using currying in JavaScript (or where are the main libraries using it)? DOM manipulation or general application development examples welcome.   mentions animation. Functions like slideUp, fadeIn take an element as an arguments and are normally a curried function returning the high order function with the default “animation function” built-in. Why is that better than just applying the higher-up function with some defaults?  Are there any drawbacks to using it?  As requested here are some good resources on JavaScript currying:    Crockford, Douglas (2008) JavaScript: The Good Parts  (Takes a detour into ML so skip the whole section from “A crash course in ML” and start again at “How to write curried JavaScript”)    (Mr. Resig on the money as per usual)    I’ll add more as they crop up in the comments.    So, according to the answers, currying and partial application in general are convenience techniques.  If you are frequently “refining” a high-level function by calling it with same configuration, you can curry (or use Resig’s partial) the higher-level function to create simple, concise helper methods. What is $\gcd(0,a)$, where $a$ is a positive integer? I have tried $\gcd(0,8)$ in a lot of online  gcd (or hcf) calculators, but some say $\gcd(0,8)=0$, some other gives $\gcd(0,8)=8$ and some others give $\gcd(0,8)=1$. So really which one of these is correct and why there are different conventions? What does kill 0 do actually? In the man page, it says:  kill [ -s signal | -p ] [ -a ] [ -- ] pid ...  pid... Specify the list of processes that kill should signal.  Each pid can be one of five things:           0      All processes in the current process group are signaled   And I tried like this in bash:  $ man kill &amp; [1] 15247 $ [1]+  Stopped                 man kill $ kill 0 $ ps 15247 pts/41   00:00:00 man   Here 0 is used as pid. As I understood, kill 0 will kill all processes in the current process, which includes pid15247. However, it didn't do anything in this example. Does anyone have ideas about how to use it? Assume   $$\lim_{n\to \infty}{x_ny_n}=0$$  then  $$\lim_{n\to \infty}{x_n}=0$$ or $$\lim_{n\to \infty}{y_n}=0$$  I couldnt find two series who disprove that.. just hint please thanks Are there any countable Hausdorff connected spaces? Do countable Hausdorff connected topological spaces exist? Does inverting the "if" improve performance? Is it shell portable to run a command on the same line after variable assignment? Is there any standard that covers the portability of running a command after variable assignment on the same line?  APPLE="cider" echo hi   How portable is something like that? Where will it work and where won't it?   Also: my shell scripts start with #!/bin/sh if that makes any difference. So, after a few sessions, the new player I'd invited has been a bit of a disaster. He doesn't get on well with any of the other players, laughed when someone's character died (in our campaign that's permanent at the moment), and generally has been a nuisance. However, he doesn't seem to notice this. I've talked to him about his behaviour, but it hasn't helped. Several other players have also approached me on their own to register concerns.  The long and short of it is, he's not a good fit for our game or social group, due to his abrasive personality/playstyle (as I and the other players perceive it). He's also not interested in roleplaying (something my group does heavily, at the moment) and continually pushes to place himself in the limelight - which he does by instigating combat and trying to skip over what he sees as 'boring' scenes. His character is a Minotaur barbarian, and the most exotic race in the game, but he only uses it for the stat bonuses, and doesn't even have a backstory - he simply says he doesn't need one. However, I don't want to be rude or otherwise unkind to him, as I will still see him around after he leaves the group, and so will the other players.  How can I politely ask him to leave the group, without being dishonest but avoiding embarrassment for anyone? I also want to avoid seeming to 'abandon' him, or 'go behind his back'.  Note: There are few/no in-game problems with adding or removing characters, and I don't need advice for that. This is strictly about handling the player. The system (not that it's all that relevant to the problem) is What does a two overlapping circles symbol mean in an electrical schematic/diagram? How to load a .NET assembly for reflection operations and subsequently unload it? I have a corrupt tarball on my hands. My first attempt at recovery went like this:  $ tar --ignore-failed-read --ignore-command-error -xf tarball.tar tar: Skipping to next header tar: Archive contains ‘180738 0’ where numeric mode_t value expected tar: Archive contains ‘0.445647 -9.’ where numeric time_t value expected tar: Archive contains ‘.259273 ’ where numeric uid_t value expected tar: Archive contains obsolescent base-64 headers tar: Archive contains ‘-0.94874’ where numeric gid_t value expected tar: text from a text file is here: implausibly old time stamp 1969-12-31 18:59:59 tar: more text file contents are here: Unknown file type 'p', extracted as normal file tar: Skipping to next header tar: Skipping to next header tar: Exiting with failure status due to previous errors   This didn't extract much from the tarball before erroring out. The exit status is 2 which the tar man page says is a fatal error.  The documentation for "" suggested this:  cpio -F tarball.tar -i -v   This extracted 1.2G of a 1.8G tarball, which is pretty good. It stops with a bunch of garbage entered after the terminal prompt -- it isn't printed to the screen, it's as if I had typed it and didn't hit return yet.  Is there a way to do any better? Is there a way to try and "jump over the bad chunks" of the tarball?  With --ignore-zeros tar seems to be reading through the entire tar file.  tar -R --ignore-failed-read --ignore-command-error --ignore-zeros -xvf tarball.tar [...] block 3670356: ** Block of NULs ** block 3670357: ** Block of NULs ** block 3670358: ** Block of NULs ** block 3670359: ** End of File ** tar: Exiting with failure status due to previous errors   There are a lot of Block of NULs errors so it looks like the contents might be irretrievable. Are +1/+1 counters different from +1/+1 effects? Is a +1/+1 counter I get from, say Unleash or Undying different than +1/+1 from something like  or ? This is a general question that was asked indirectly multiple times in here, but it lacks a single authoritative answer. It would be great to have a detailed answer to this for the reference.  , the proportion of correct classifications among all classifications, is very simple and very "intuitive" measure, yet it may be a . Why does our intuition misguide us here and are there any other problems with this measure? Are punches with Gauntlets of Ogre Strength magical, improvised weapon attacks? My Gnoll Paladin just got the Gauntlets of Ogre Strength from Phandelver the other day, and it got me wondering:    Would it be possible/make sense for punches using them to count as an improvised weapon? (Since I'm not punching with empty fists, I'm wearing magical gauntlets) If so, would punches from a person using them count as magical weapon damage? I have a significant 2x2 interaction in a between-subjects design.  I would normally report omega-squared as my effect-size measure, but I've been asked to provide Cohen's d instead?  Can Cohen's d be computed for an interaction?  If so, how? Why didn't the basilisk bite in Chamber of Secrets destroy the Horcrux? WinError 32 error when trying to delete shapefiles with QGIS python