I have attachments (images) for an object and here's how I am querying for my data from the object.   public List&lt;SObject&gt; getResults () {     Id id = ApexPages.currentPage().getParameters().get('id');     List&lt;SObject&gt; results = [SELECT Id,                                      Name,                                      URL__c,                                     (SELECT Id, Name FROM Attachments)                                     FROM MyCustomObject__c                                      WHERE                                      Id = :id];     return results; }   This is how I am rendering this data in visualforce  &lt;apex:repeat var="c" value="{! results }"&gt;                 &lt;div class="typeHeader"&gt;                     {! c.Name}                 &lt;/div&gt;                  &lt;apex:outputText rendered="{! c.URL__c != null }"&gt;                     &lt;h3&gt;URL&lt;/h3&gt;                     &lt;div class="vulnDescrip"&gt;                         {! c.URL__c}                     &lt;/div&gt;                 &lt;/apex:outputText&gt; &lt;/apex:repeat&gt;   How can I render the attachments similar to how I am rendering URL__c and Name?
I need to display attachments on a visual force page for the Case object.  This is the code I am using. I had it working for awhile, but it somehow broke down. It gets all the attachments, but it will not show the images.   &lt;apex:repeat value="{!Case.attachments}" var="att"&gt;             &lt;apex:panelgrid columns="1"&gt;                 &lt;h1&gt;Image/h1&gt;                 &lt;apex:image url="/servlet/servlet.FileDownload?file={!att.Id}"/&gt;             &lt;/apex:panelgrid&gt; &lt;/apex:repeat&gt;
Can't install xposed framework I want to install the xposed framework on my Nexus 5 and in the framework, the install/update option doesn't work.  My Nexus 5 runs Android 5.0 (Lollipop). Stack Exchange & Area 51 sign up/ log in update How to Sort Multi-dimensional Array by Value? Is using "fruits" as the plural of "fruit" acceptable? So, as the title read I happened to overstayed my Schengen visa for 6 months does anyone know what the consequences could be. If I wanted to return back to Saudi Arabia. Ubuntu gets stuck in a login loop Rename all the files within a folder with prefix “Unix_” Rename all the files within a folder with prefix “Unix_” i.e. suppose a folder has two files a.txt and b.pdf than they both should be renamed from a single command to Unix_a.txt and Unix_b.pdf Difference between Groovy Binary and Source release? How to keep the console window open in Visual C++? I'm starting out in Visual C++ and I'd like to know how to keep the console window.  For instance this would be a typical "hello world" application:   int _tmain(int argc, _TCHAR* argv[]) {     cout &lt;&lt; "Hello World";     return 0; }   What's the line I'm missing? Unit testing a method that calls another method Is there anyway I can connect resistors to allow them to take more power such as using 4 1/4 watt resistors to get a 1 watt resistors. Or do i just have to use 1 1 Watt resistor. Let $f: M \to N$ be a mono in $\mathsf{Mon}$. I want to prove that the underlying function $U(f): U(M) \to U(N)$ is injective.   How can this be done ? Thanks in advance. Whenever I access Stack Exchange the tab appears busy Which is the correct question ("Who has" vs "Who have")? The situation is that:  We've already read three English novels.  Which is the correct question for that situation?   Who has already read three English novels?  Who have already read three English novels?    Or could both be correct? Please also provide the grammatical reasons for your answers. Lily Potter chose to die instead of sacrificing her son Harry to Voldemort. In doing so, protective enchantments were created that protected Harry and made him less vulnerable to Voldemort and Voldemort's attempts to kill Harry.   Yet, I don't understand how Lily's enchantments, when Voldemort stole Harry's blood in the graveyard scene in Goblet of Fire (chapter 33, The Death Eaters), were helpful to Voldemort at all.     ‘He took my blood,’ said Harry.   ‘Precisely!’ said Dumbledore. ‘He took your blood and rebuilt his living body with it! Your blood in his veins, Harry, Lily’s protection inside both of you! He tethered you to life while he lives!’   Deathly Hallows - page 568 - Bloomsbury - chapter 35, Kings Cross   Yet I wonder about the following canon information:    Lily's enchantment was contingent upon Petunia Dursley giving Harry a home, which Petunia     grudgingly did&#185;. It was the blood bond between Harry and Petunia, plus the fact that Petunia gave Harry a home, where he could return to once per year, that sealed Lily's   protective enchantments and made them strong. Voldemort was never granted a home at the Dursleys, and in fact never stepped foot into the Dursleys' home at any point in canon. Never having been given a home at the Dursleys, how, then, did Lily, Petunia, and Harry's blood bond exist within Voldemort? Or did it? If it did, would it be because ? Lily's enchantments broke the moment Harry turned 17 and could not protect Harry any more&#178;. According to the 's page on Voldemort, Voldemort was 69 years old when he stole Harry's blood. If Lily's enchantment broke for Harry at age 17, why would the enchantments work for Voldemort when he was 69? Dumbledore tells Harry in Order of the Phoenix that Voldemort would not possess Harry because the love that fills Harry -- Lily's love -- is a force that Voldemort detests so greatly that he cannot bear to come into contact with it&#179;. Yet the love Lily infused into Harry runs in his veins; Voldemort took Harry's blood, the blood that is imbued with Lily's love. How can he bear to be in contact with the love given to Harry in his own veins?   Given this canon information, why did Lily's enchantments work for Voldemort?  &#185;Half-Blood Prince - chapter 3, Will and Won't and Order of the Phoenix - chapter 37, The Lost Prophecy &#178;Half-Blood Prince - chapter 3, Will and Won't &#179;Order of the Phoenix - chapter 37, The Lost Prophecy Sometime I see many application such as msn, windows media player etc that are single instance applications (when user executes while application is running a new application instance will not created).  In C#, I use Mutex class for this but I don't know how to do this in Java. Is it possible to search for down voted questions? I want to search for new downvoted questions to improve or flag them.   I tried in the searchbar: votes:-1 is:question   but votes:XX only works with positive numbers. I can't query for downvoted questions. Is there a work-around to this? If there's not, should this feature be added? I used the upgrade manager to upgrade from 17.04 to 17.10. When I start the machine, I only get a black flickering screen now. I was using the nvidia binary drivers before the upgrade.     NOTE: This question (and answer) relate to a specific issue when upgrading from 17.04 to 17.10 while using Nvidia or AMD binary drivers. You might experience a completely different issue. For that please see the more general question . Typeset two styles of the same text over top each other I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.