Invalid selectOptions found. Use SelectOption type in Apex (why?)
Invalid selectOptions found. Use SelectOption type in Apex
I need to include a couple of Python code listings, where the indentation of the lines (using some number of spaces) is significant. I would like for the code listings to be copyable, so the spaces at the beginning of the line need to be be copied along with the text.  This question has been asked in various ways before (e.g. , or ). Those questions focus on making line numbers uncopyable, though.  Making the spaces at the beginning of a line copyable seems to be harder: "I am not sure it is possible to specify in the PDF (at least in a viewer-independent way) that the indentation should be copied too" (). At , Philippe Goutet suggests a solution (turning the spaces into visible spaces, and coloring them in the background color so that they appear invisible) that works using Acrobat Reader, but not all readers. He says "It works under Acrobat Reader and it's extremely pleasant to be able to quickly copy/paste code without problem (perhaps the problem can be circumvented by writing direct PDF code to tell that it's a space, I've never had the time to try)".  Is it possible to produce a PDF with a code listing with copyable real spaces at the beginning of a line?  Minimal example: The line return x should start with four spaces.  \documentclass{article}  \begin{document} \begin{verbatim} def myfunction(x):     return x \end{verbatim} \end{document}   I know that I could attach the code to the PDF as a file, but that's not what I want. Does black hole formation contradict the Pauli exclusion principle? A star's collapse can be halted by the  due to the Pauli exclusion principle. In extreme relativistic conditions, a star will continue to collapse regardless of the degeneracy pressure to form a black hole. Does this violate the Pauli exclusion principle? If so, are theorists ok with that? And if it doesn't violate the Pauli exclusion principle, why not? What is the difference between a telephoto lens and a zoom lens? Looking at the , I notice a distinction between telephoto lens and zoom lens.  What is the difference between the two?  Why would I want one over the other?  I  but remain confused about this distinction.  Please talk to me like I'm stupid. :) I am hoping for a completely lay explanation.  In particular, I'd like to understand in what situations I'd use a telephoto lens, and in what (other) situations I'd use a zoom lens. LG Nexus 4 compatibility Airtel India Possible Duplicate:          I plan to purchase the LG Nexus 4 from the US on the release date (13th November). The phone claims to be unlocked. But will it be compatible with Airtel in India for both data and call services? How do I write a correct micro-benchmark in Java? How to draw a return arrow from node-3 to node-1 Previously I thought this is a universal theorem, for one can prove it in the one dimensional case using variational principal.   However, today I'm doing a homework considering a potential like this:$$V(r)=-V_0\quad(r&lt;a)$$$$ V(r)=0\quad(r&gt;a)$$ and found that there is no bound state when $V_0a^2&lt;\pi^2\hbar^2/8m$.  So what's the condition that we have at least one bound state for 3D and 2D? In which scenario do I use a particular STL container? I've been reading up on STL containers in my book on C++, specifically the section on the STL and its containers. Now I do understand each and every one of them have their own specific properties, and I'm close to memorizing all of them... But what I do not yet grasp is in which scenario each of them is used.  What is the explanation? Example code is much prefered. Show that holomorphic $f_1, . . . , f_n $ are constant if $\sum_{k=1}^n \left| f_k(z) \right|$ is constant. While studying for an exam in complex analysis, I came across this problem. Unfortunately I was not able to solve it. Any help would be greatly appreciated.  Let $U ⊂ \mathbb{C}$ be a domain and $f_1, . . . , f_n : U \rightarrow \mathbb{C}$ holomorphic functions, such that $\sum_{k=1}^n \left| f_k(z) \right|$ is constant on $U$. Show that $f_1, . . . , f_n$ are constant. How can I easily encrypt a file? Is there any simple (IE: right click in Nautilus) way to password protect a particular folder/file in Ubuntu? I've got a few files containing sensitive info and I'd much prefer that if/when I leave my computer alone, they aren't accidentally accessed by someone else.  The secruty does not have to be extremely tight. My only concern is that when family/friends come over, I don't really like the idea of them looking at my bank details, accounts or, you guessed it, porn collection.  A simple, effective way to let me put my machine in the hands of someone else knowing that said machine can not cause me embarresment is the sole reason why I'd like to see this in Ubuntu. Why is it bad practice to test for item names? I've heard that testing for item names and lores in Minecraft JE is bad practice. For example, the following commands are not good: execute if entity @e[nbt={Inventory:[{tag:{display:{Name:'[{&quot;text&quot;:&quot;Test Thing&quot;}]'}}}]}] clear @p minecraft:diamond{display:{Name:'{&quot;text&quot;:&quot;Shiny…&quot;}'}} 0 clear @p minecraft:netherite_sword{display:{Lore:['{&quot;text&quot;:&quot;A Mysterious Sword&quot;}']}} 0  Why are these commands considered bad practice? Are they prone to failure and may not work? And what can I do to fix them? Note that this only applies to reading item names, not setting them. The following are not considered bad practice and in fact are the only ways to accomplish these tasks: give @p minecraft:diamond{display:{Name:'{&quot;text&quot;:&quot;Shiny…&quot;}'}} replaceitem @p weapon.mainhand minecraft:netherite_sword{display:{Lore:['{&quot;text&quot;:&quot;A Mysterious Sword&quot;}']}} Review counts in top-bar and /review don't match Adjust space between entries in LoF and LoT Extracting extension from filename in Python Reputation block layout after earning new privilege On the mobile web after new privilege is earned, reputation block contains some design issues:   no margins poor text color inside bar         By tapping on "track the next one" link, page have been refreshed:   no margins empty block in the middle obscure content         Only after manual refreshing, page looks fine again:        It is hard to reproduce because you need to earn next privilege which takes a lot of time. But I believe it's no too hard for developers :) Tikz: setting options for pin I just found the pin option to drawing, and it looks useful in some of the things I want to draw. How do I format it though? I've tried pin=[red]60:{Hey!} and I get the error Cannot parse this coordinate.  \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes,arrows,positioning} \begin{document} \begin{tikzpicture}[node distance=2cm,&gt;=latex, every node/.style={     font=\sffamily\scriptsize     },       circtext/.style={draw,circle,minimum size=8pt,inner sep=2pt},     dot/.style={draw,circle,fill=black,minimum size=0.6mm,inner sep=0pt} ] { \node[rectangle, fill=green!10!white!90!black, minimum width=6cm, minimum height=3cm] at (2,0){}; \node[circtext, fill=yellow](A) at (0,0) {A}; \node[circtext, fill=yellow, right=of A](B){B}; \draw[-&gt;] (A) -- node[dot, pos=0.5, pin=[red]60:{Hey!}](C){}(B); } \end{tikzpicture} \end{document}     The default style looks like it's a gray thin arrow, and I want to change it to a black thin dotted line with no arrow.    update: I figured out how to add style to the pin node:  pin={[red]60:Hey!}]  But I can't figure out how to change the linestyle though. How to open a new Terminal with shell prompt and running multiple commands in Command Line? I want to Open a new Terminal in from within terminal.  It should have Shell prompt as well as already run few commands.  How to do it ? Why didn't Dumbledore just hunt Voldemort down? What size difference is there between the PSP 1000, 2000 and 3000 for applying Skin Stickers? I remember reading a while back about arithmetics with only a single operator that did all the work of the familiar $+ - \times /$ operators. If there is such a thing, could someone point me to it?  As background: I have a side project where I'm playing with neural nets and genetic search algorithms. Right now it's the good old kind, with matrix multiplication and addition. I thought it would be interesting to implement a sort of neural network that used a combined or "all in one" operator.  I've googled like heck and can't pick up the trail of where I thought I saw that before.  Is there study in that area, or am I mis-remembering, or worse, just making it up? I'd appreciate any pointers.