I use a '/services/data/v41.0/tooling/sobjects/RecordType/'. But picklistValues is always empty, I need it to edit from code
Can you please guide me best way to retrieve all active picklist values of all recordtypes of object. Can it be possible through API or any Apex Script.  I want something like below and i will write them in my file:  Obect Name, RecordTypeName, PicklistValues   Thanks
Let's say I fire a bus through space at (almost) the speed of light in vacuum. If I'm inside the bus (sitting on the back seat) and I run up the aisle of the bus toward the front, does that mean I'm traveling faster than the speed of light? (Relative to Earth that I just took off from.) Show $a^p \equiv a \mod 2p$ I've stucked at the following problem:  Let $p$ be an odd prime number. Show that for all $a\in\mathbb{Z}$  $$a^p \equiv a\ (\mathrm{mod}\ 2p)$$  How can I prove it? I know within Fermat's theorem that $a^p \equiv a\ \mathrm{mod}\ p$. Why are PATH variables different when running via sudo and su? On my fedora VM, when running with my user account I have /usr/local/bin in my path:  [justin@justin-fedora12 ~]$ env | grep PATH  PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/justin/bin   And likewise when running su:  [justin@justin-fedora12 ~]$ su - Password:  [root@justin-fedora12 justin]# env | grep PATH PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/justin/bin   However, when running via sudo, this directory is not in the path:  [root@justin-fedora12 justin]# exit [justin@justin-fedora12 ~]$ sudo bash [root@justin-fedora12 ~]# env | grep PATH PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/sbin:/bin:/usr/sbin:/usr/bin   Why would the path be different when running via sudo? Is there a C++ decompiler? I have a program in which I've lost the C++ source code.  Are there any good C++ decompilers out there?  I've already ran across . I heard that there was a twitter bot which automatically posted questions and asked for answers for specific questions on every site. How do they work? Is there an algorithm for doing this or is it purely random? I know that it doesn't tweet closed questions, but that's it. Salesforce query on profile not working on user language change I have a query on profile like  profilename = [Select name from profile where id=:userinfo.getUserprofileid ].name  Now I have a check in  VF page  like  profilename  == 'System Administrator' . this works fine if the logged in user language is english. If the user language is different then profile name will be  'System admin' in that language . So how to prevent this beahviour?   Also  is there any particular field in profile which I can use  to identify the profile is system admin? so that I can have check on that field instead of checking for name which is causing the problem, for example I think modifyall filed is only checked for system admin. How to select polygons facing camera instead of polygons located in the opposite side I want to select marked face:    however back face gets selected:    Is there an option in blender to only select facing polygons camera ? Website giving pronunciations of English words recorded in different dialects? I'm aware that there are certain websites around that provide recorded examples of English words pronounced in different accents/dialects.  Could anybody list some of them? Are there rules for disassembling a slain creature, especially dragon? Are Living Beings Turned Into Horcruxes Suceptible to Age, Disease, or Injury? From the HP books I know that Horcruxes grant a form of immortality. So, it is not possible for someone who created a Horcrux to die from old age or succumb to diseases. I guess the same is true for living beings turned into a Horcrux. But do living Horcruxes age normally? Is it possible to cripple them or sever their limbs, head or something like that, or do they instantly "repair" themselves like inanimate Horcruxes? Study the convergence of the following series: $$\sum_{n=2}^\infty \frac{1}{n^\alpha \cdot\ln^\beta(n)} \text{ where }\alpha,\beta \geq 0 $$   Applying d'Alembert criterion I have that $$ \lim_{n\to\infty} \frac{n^\alpha  \ln^\beta(n)}{(n+1)^\alpha  \ln^\beta (n+1)} = \lim_{n\to\infty} \left(\frac{n}{n+1}\right)^\alpha\left(\frac{\ln(n)}{\ln (n+1)}\right)^\beta = 1$$ so the nature of the series is inconclusive.  If $\alpha = \beta = 0$, then the series diverges, since $\sum_{n=2}^\infty 1 = \infty$.  Should I study the rest of the cases (i.e. if $\alpha = 0, \beta &gt; 0$ the root test and the ratio test are also inconclusive). What is the best form to study the series?.  Thanks in advance Rogue DHCP Server Can't be found Over the last 3-4 weeks I have been trying to find a rogue DHCP server on my network but have been stumped! It is offering IP Addresses that do not work with my network, so any device that needs a Dynamic Address is getting one from the Rogue DHCP and then that device stops working. I need help to find and destroy this thing! I think it might be a Trojan of some sort.  My Main Router is the only valid DHCP Server and is 192.168.0.1 which offers a range of 192.160.0.150-199, and I have this configured in my AD as Authorized. This ROGUE DHCP claims to be coming from 192.168.0.20 and offering an IP Address in the range of 10.255.255.* which is messing up EVERYTHING on my network unless I assign a static IP Address to it. 192.168.0.20 does not exist on my network.  My network is a single AD Server on Windows 2008R2, 3 other physical servers (1-2008R2 and 2 2012R2) about 4 Hypervisor VM's, 3 laptops and a Windows 7 box.  I can't ping the rogue 192.160.0.20 IP, and I can't see it in the ARP -A output, so I can't get its MAC address. I'm hoping that someone reading this post has come across this before. What does increased caster level affect? Why won't the location of the light affect the direction of the shadows? So I'm new to blender, and I've been working on a project with a tutorial. (some of you might know this)   I was going through quite smoothly until I noticed that no matter where I place my light, the rendered version appears the same. (directly above the objects) I tried different types of lighting, different brightnesses, (light is currently at around 4.000 brightness) nothing works. But if I delete the light, it becomes dark and grainy. (I checked on the side bar, there are no other light sources or objects..)  Even if I put the light source under my objects, the rendered version appears the same.  Am I doing something wrong? Why can't I change the direction of the light?        Uh.. Since I'm not allowed to post more than 2 links, I'll just post extra info here (also replying to @bertmoog)  I tried changing the light types, but they all do nothing (except for Sun, of course, and Hemi, which is interpreted as Sun for some reason) The brightness is set on 4.200, color set to white, shadows enabled, etc. But it still won't do anything. As you can see, nothing appears in the preview.    EDIT: I found that by rotating the sun to point where I want it to, it works almost like normal point lighting (sorta). This pretty much solves my problem, but still, why won't the other lighting modes work? Glassware with scratched/etched surfaces generate more bubbles (, ). Why these rough surfaces allow easier heterogeneous nucleation? How can I format to show text inside ""? I've posted a lot to StackOverflow, and I've noticed something kind of irritating with the formatting in writing questions and comments. If I need to put something inside a &lt; and a >, without spaces in the middle (like right there), it will think it's code and not show up, like this   (obviously it won't come up what I wrote there, or else this wouldn't be an issue, but if you open up the question to edit you can see what's written there.)  If I want it to show up, right now I have to add an extra set of brackets inside of the originals with a junk variable, like right &lt;here> (again, open in edit window to see).  This is really annoying when trying to show variables like lists that require those brackets, and I feel like the junk variables could confuse people looking at the edits. Is there a way to get around this formatting? Thanks! Xerces error: org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl I realize this is a long shot, but my phone was lost or stolen a few hours ago.  At the time it was stolen, I didn't have any specific applications installed to track it or wipe the data. So... my bad. I'm hoping the fact that I have a pattern lock will at least prevent anyone from accessing my data.  My question is, do I have any options for tracking or data wipe after the fact? (I'm more interested in tracking.)  Note: I have read similar questions, but unless I'm mistaken, they all address the question in terms of preparation before losing the phone. I'm asking about fallback options after losing the phone. What is the best way to repeatedly execute a function every x seconds? We know $$i^2=-1 $$then why does this happen? $$ i^2 = \sqrt{-1}\times\sqrt{-1} $$ $$ =\sqrt{-1\times-1} $$ $$ =\sqrt{1} $$ $$ = 1 $$  EDIT: I see this has been dealt with before but at least with  I'm not making the fundamental mistake of assuming an incorrect definition of $i^2$.