We have a requirement to get all Object 's ListView of the organization in apex code and display it on the page. This is easily possible with the query on the ListView.  Select Id,Name,SobjectType From ListView      But ListViews that are private to specific users are also coming in the query. We don't want to show the ListView which is private to user.   So basically we need some kind of filter on ListView to differentiate it by User. Can someone please suggest, if it is possible in Salesforce Apex or not? Or if there is any workaround for the same?
Is there any table or any other way(metadata/rest api) we can query the list views of a particular object that a user/group  has access.  Example:  SELECT Name FROM table_x WHERE UserOrGroupId = '1234..' AND  SobjectType = 'Account'   I can see an object named UserListView in workbench, but query on that returns no data. Is it deprecated?
What apps are people using to record voice meetings on the iPad? I'm looking to do some light recording of voice conversations and field recordings on my iPad using the built in microphone.    seems to be the obvious Apple solution, but is too heavy for my needs. By the time I set up a new project, turn off the metronome, etc..., I find myself wishing I just had  running on my iPad.   I don't mind paying for the app, but wondered what people are using for both light voice recording as well as longer and more numerous recording / light editing where some tagging and filing might be possible. I hope it is alright to ask something like this here, I am having trouble keeping up with all the special cases and my book is being kind of vague.  I know how to do the standard method of finding diagonal matrices, but I know that triangular matrices are special and my book makes a connection, but it is hard to tell what it is.  Thanks. Prove that if $a+b+c$ divides $abc$, then $a+b+c$ must be composite. Converting a DC motor to a generator Can ANY DC motor become a generator if torque is applied to the shaft? example:   And by any, I mean the really cheap ones too.  Or is there a specific type of motor (of which I do not know the name) that can work in both directions (battery to power the shaft OR torque-on-shaft to create a voltage difference between the terminals). How to query More than 50000 records from sObject i need to count total number of records in an sObject which can have around one million records. Will the code below work ? If no, how can this be done ? I dont need to use this in a vf page.   I will be using this COUNT() SOQL Query in a batch class which is scheduled to run at specific time.  AggregateResult results = database.query('SELECT COUNT(id) result FROM someSObject');     System.debug('No of ids are: '+results.get('result')); Can someone tell me what is wrong with this loop?    The error that I have is on the line 107 (first line of the loop). It says:      [V2016057174800: command not found.    I am trying to associate two the same filename from two different documents (if that makes sense). Lighting in a Minecraftian World Minecraft is a game that is largely based on a heightmap and uses that heigtmap information to flood the world with light.  From my understanding the highest point in the heightmap is the end of the sunlight influenced area.  Everything above that is lit by sunlight, everything below that just is influenced by light nearby in a radius of 8 blocks.  Thus if you have a floating island on the top of your world everything below that will be seen essentially as a cave.  When two lights influence the same point the brighter light wins (unsure about that).  Either way there are a couple of problems with minecrafts lighting model: first of all, if your world does not have a heightmap it becomes trickier to figure out what exactly is supposed to emit sunlight and what not.  A simple way would be to assume that the world is (in my case) a floating rock and then traverse each axis from both directions and figure out where the rock starts and ends.  But this does not fully eliminate the problem as dents in the rock are not supposed to be in darkness.  Minecraft itself will cache the light information in its chunks together with the information about the material of a block.  Thus only if the world is modified the lighting has to update.  Unfortunately that process is still pretty slow on updates and on quick light changes one can see the lighting lag behind.  That's especially true if a lot of blocks change (TNT, sunset etc.) and you're not running the fastest computer (Or Java on Mac).  From my still limited understanding of 3D graphics lighting a world like minecraft shouldn't be the biggest issue.  How would you tackle the problem?  I think the basic requirements for lighting in a voxel world would be   update fast enough that it could happen in a single frame.  One might be able to do the lighting in the graphics device and download the changed light information to the main RAM. light information must be quickly available for the main game logic so not entirely based on the graphics device: reasoning: light affects the growth of grass, spawning of monsters etc. light updates would have to be local to a chunk or have some other limit so that one does not have to relight the whole world which might be very large in size.   The main idea would be to make the light updates fast, not necessarily more beautiful. For general light rendering performance improvements one could easily add SSAO on top of that which should result in much nicer worlds. What is the inverse function of $e^x +x$? Why was Enterprise on a five-year mission in TOS? There is a small difference between intro texts in TOS:     Space: the final frontier. These are the voyages of the starship Enterprise. Its five-year mission: to explore strange new worlds, to seek out new life and new civilizations, to boldly go where no man has gone before.   and in TNG:     Space: the final frontier. These are the voyages of the starship Enterprise. Its continuing mission: to explore strange new worlds, to seek out new life and new civilizations, to boldly go where no one has gone before.   (emphasis mine)  It's pretty obvious that no man was changed to no one to include women. But, is there any explanation why was five-year changed to continuing? Also, why was it a five-year mission at all?  My only assumptions are:   Gene Roddenberry hoped to get funding to run the show for 5 seasons. Gene Roddenberry just made up a number without any special meaning. Gene Roddenberry was a .   Is there any official explanation, in universe or not? What is the center of $D_{2n}/Z(D_{2n})$ What is the center of $D_{2n}/Z(D_{2n})$. I see that when $n=2^k$ then I have a $p$-group so the center is not trivial. But when $n$ is not power of $2$ how can i know what is the center of this group?. Surely when $n$ is odd then the center is trivial. How do I pre-populate a jQuery Datepicker textbox with today's date? I have a very simple jQuery Datepicker calendar:  $(document).ready(function(){     $("#date_pretty").datepicker({      }); });   and of course in the HTML...  &lt;input type="text" size="10" value="" id="date_pretty"/&gt;   Today's date is nicely highlighted for the user when they bring up the calendar, but how do I get jQuery to pre-populate the textbox itself with today's date on page load, without the user doing anything?  99% of the time, the today's date default will be what they want. How to use \def to redefine \end{split}? When I use \def to redefine \end{split}, there is an error.  \documentclass{article} \usepackage{amsmath}  \begin{document} \def\be{\begin{equation}} \def\ee{\end{equation}} \def\bs{\begin{split}} \def\es{\end{split}}  \be     \bs         a\\         b     \es \ee  \end{document}   The error is:      Runaway argument?      a\ b \es \ee       ! Paragraph ended before \split was complete.   However, if I don't use \def\es{\end{split}} and just modify the code to be  \documentclass{article} \usepackage{amsmath}  \begin{document} \def\be{\begin{equation}} \def\ee{\end{equation}} \def\bs{\begin{split}} \def\es{\end{split}}  \be     \bs         a\\         b     \end{split} \ee  \end{document}   it's OK. What's the problem? Thank you! Currently, the only way to vote to delete (and undelete, since you can't see deleted posts) in the Android app is to open the post in a browser, and then vote to delete from there.  Can we get delete vote functionality within the app, as well as the ability to delete our own posts?  Worth to mention: users , so it's possible in the API.  Related: What's a better way to define individual link colours for a url in a macro? I've got a document where I'd like two colours of links - cyan for links in headers that since it's brighter, and navy blue for links in the main body which is more subtle/less distracting. I already tried using the xcolor package and changing the text colour with textcolor, like \textcolor{cyan}{\href{url.com}{link name}}, but it doesn't override whatever link or url colour I have defined in hypersetup.   So this is what I've done:   I've defined the colour navy:   \definecolor{navy}{HTML}{2F729C}    And also imported the hyperref package and defined commands to set the global link/url colours to cyan / navy.   \usepackage{hyperref}                         \hypersetup{colorlinks=true,linkcolor=navy,urlcolor=navy}                        \newcommand{\navylinks}{\hypersetup{linkcolor=navy,urlcolor=navy}}               \newcommand{\bluelinks}{\hypersetup{linkcolor=cyan,urlcolor=cyan}}     Then I've defined another command specifically for the header links, where I turn on cyan links globally, include the header text and link, and then turn on navy links again:   \newcommand{\headerlink}[1]{\bluelinks\href{#2}{#1}\navylinks}   My issue with this is that I feel like there could be a better way to do it than to set the global link colour every time I use a link macro; is there a way to define the link colour just for one link, like one would do with \textcolor{...}, that would be able to override hypersetup? How can I remove the qed symbols from all lemma proofs? the following code will only make the qed not appear in the second proof. However, it it possible to make the qed symbol never appear at the end of the proofs without having to specify it locally every time?  \documentclass{article} \usepackage{amsthm} \begin{document} \begin{proof} This has the QED symbol. \end{proof} \begin{proof}\renewcommand{\qedsymbol}{} This hasn't. \end{proof} \begin{proof} And this has it again. \end{proof} \end{document} Baking with oven without bottom heating element My mom wants to do baking but her oven doesn't have bottom heating element. It only has an element on top, with a fan at the back.  She told me that she can't make me a good pizza or cake without it.  Is there any way around? What are good out of the box alternative geocoding solutions to Esri's services? Esri's  will retire at the end of the year, what are good GIS services that can replace the North American and US Streets geocoders?  I have totally excluded Esri's replacement, the  as it is a subscription service. Let $\displaystyle f$ be differentiable, $\displaystyle f(x)=0$ for $|x| \geq 10 $ and $g(x)=\sum_{k \in \mathbb Z}f(x+k).$ Every Function in a Finite Field is a Polynomial Function From a bank of past master's exams I am going through:     Let $F$ be a finite field. Show that any function from $F$ to $F$ is a polynomial function.   I know that finite fields are fields of $p$ elements for $p$ prime [EDIT: It's actually $p^n$ for $p$ prime; see comment below]. Since I have $p$ choices for the $p$ elements to map to, then I have $p^p$ distinct functions. I think every function can be written in the form $f(x) = a_{p-1}x^{p-1} + \dots + a_0x^0$. For then given the values $f(0), f(1), \ldots f(p-1)$, I can solve for the coefficents by the linear system of equations  $$ a_0 + \sum_{i=1}^{p-1} n^i a_i = f(n).$$  This then gives me a $p-1 \times p-1$ square matrix over the field $\mathbb{F}_p$:  $$\left( \begin{array}{ccccc} 1&amp; 0 &amp; 0 &amp; \ldots &amp; 0 \\ 1&amp; 1 &amp; 1 &amp; \dots &amp; 1 \\ 1&amp; 2 &amp; 4 &amp; \dots &amp; 2^{p-1} \\ \vdots &amp; \vdots &amp; \vdots &amp; &amp; \vdots \\ 1 &amp; p-1 &amp; (p-1)^2 &amp; \dots &amp; (p-1)^{p-1} \end{array} \right) \left( \begin{array}{c} a_0 \\ a_1 \\ a_2 \\ \vdots \\ a_{p-1} \end{array}\right)  = \left( \begin{array}{c} f(0) \\ f(1) \\ f(2) \\ \vdots \\ f(p-1) \end{array} \right)$$  If I can show this matrix is invertible, then I can always find the $a_i$. But I am a bit stumped on how to show this (partially because I don't think I've ever done linear algebra in a vector space over a finite field). It does not seem easy to show linear independence, or nonzero determinant, or full row rank.    Alternatively (I just thought of this), can I show this is true by arguing that the map between the two sets (the set of polynomials of degree $p-1$; and the set of functions $F \to F$) is injective, and that it must be a bijection because the sets have the same cardinality $p^p$? Verb agreement with "what" This came up when reviewing a written English exercise, and I realized that I don't entirely trust my intuition on the answer.  Which of the following is correct?  Or are both valid?  (Or is it strongly advisable to rewrite the sentence in some other way?)   "I see what appears to be a man and his son." "I see what appear to be a man and his son."