In the code given below  content.field_image_link[0]['#url']  is empty but it still enters the if condition and adds html what is incorrect in the below code due to which it enters the if condition whereas it should enter the second if condition given below  {% if content.field_image_link[0]['#url'] %}  {% block paragraph %}       &lt;div{{ attributes.addClass(classes) }}&gt;      {% block content %}      {% if content.field_image_link[0]['#url'] %}  &lt;a href="{{ content.field_image_link[0]['#url'] }}"&gt;  {{ content.field_image_2 }} &lt;/a&gt;        &lt;h2&gt; &lt;a href="{{ content.field_image_link[0]['#url'] }}"&gt; {{ content.field_image_link[0]['#title'] }} &lt;/a&gt; &lt;/h2&gt; {% endif %} {% if content.field_image_link[0]['#url'] == '' %} {{ content.field_image_2 }} &lt;h2&gt;                                                                                                                                                                                                      {{ content.field_image_link[0]['#title'] }}                                                                                                                                                                &lt;/h2&gt; {% endif %}     {% endblock %}   &lt;/div&gt;  {% endblock paragraph %}
I am trying to check if the user_picture field is empty using the twig template, but I am not able to do this.  I tried lots of ways:-  {% if node.user_picture.value %} {% if node.user_picture.entity %} {% if content.user_picture.value %} {% if content.user_picture|render.entity %} {% if content.user_picture|render %}     Sample of code:    {% if node.user_picture.value %}     &lt;p&gt;User-picture 02&lt;/p&gt;     {{ user_picture }}   {% else %}     &lt;p&gt;Anymonus-picture 02&lt;/p&gt;     &lt;div&gt;       &lt;a href="#"&gt;&lt;img src="{{base_path}}/WEBSITE/themes/THEME/images/anonymous.jpg" alt=""&gt;&lt;/a&gt;     &lt;/div&gt;   {% endif %}
Can anyone help me with a solution? Best way to create an system of equations environment? Are software titles italicized? The titles of freestanding works (books, movies, plays, albums, etc.) are italicized; smaller parts within these works (chapters in a book, articles in a magazine, songs within an album) are not (they are put in quotes, instead).  How are software titles treated?  My understanding is that if a particular program resembles a book or a dramatic work (like a video game), its title is italicized -- otherwise, it is treated as a proper noun, just like any other product.     I played Grand Theft Auto, instead of reading "Democracy in Ancient Greece" in Microsoft Encarta and preparing my presentation in PowerPoint.   Is this approach correct? How to enter the Default Keyring password via the command line? Is there a way to enter the default keyring password using the command line?   For instance:  You have a remote setup of Ubuntu 10.10 thats set to auto login. You don't want to remove  the keyring password.  All right the system boots up and logs in automatically, then asks for the keyring password now at this point you can create ssh connections but you can't remote desktop.   What can you do to enter the keyring password at this point?  Also, to better clarify, this is from a remote connection using the command line. Close Vote Review, additionally filter off-topic close reasons No 'Open with' option to open/run jar file with openjdk Is there any way to make a custom page.html.twig template in Drupal 8?  By default, Drupal generates some suggestions, but I'm looking for something like page--node--content-type.html.twig. On the recent changes to flagging and limits Looks like flagging has been affected by releases today. Are these intended effects?   Higher daily limits (appear doubled for me, flagging of posts limit also doubled).  Explained by Shog9 below. Soft comment deletion  - e.g. for "accept rate" obsolete comments - it does in fact work, but the immediate feedback is gone.  This is fixed now. Has the throttling rate changed?  Seems possible to repeated flag without waiting 5 seconds.  If it was broken, it isn't anymore. Old soft deletions that were neither categorised as "helpful" or "declined" have all become "helpful".   If limits have been updated, can we get the new formula published? Not changed, as confirmed by Shog9. How to manage and restore a modern iPhone or iDevice on ubuntu with iTunes This question—how to install iTunes on ubuntu—has been asked many times before on this site, but the answers are all outdated and involve Wine or some other tool that no longer works for the most recent version of iTunes. Put simply, I need to regularly back up and occasionally restore the firmware on an iPhone 6.   I cannot:   dual boot Windows—for some reason installing one OS makes the other unbootable &amp; after days of headache &amp; dozens of reinstalls I’ve decided to just leave Ubuntu be &amp; not try to preserve Windows. Plus “just use Windows” is not really a solution on an Ubuntu forum. use libimobiledevice-dev. libimobiledevice-dev doesn’t let you manage iOS updates or sync music anymore. Buy another phone. This one should be obvious but for some reason some asshat always comments “too bad lmao shouldntve bought an iphone ;P”. why this code can run ? double a[3]; a[1,1]=1; Punctuation in an indirect quotation Consider the brief passage:     "I love your work, but calling you 'the artist' {1} just doesn't seem to be   cutting it anymore. What shall I call you?"      "OK. Call me George." {2}   So my instincts tell me to put {1} in single quotes as opposed to no punctuation (or perhaps even italics) but to do the opposite for {2}. Is this right? Why?  Let me expand this one further iteration:     "Wow, that's a great name, especially with this crowd. Maybe for your next book    you should call yourself Ringo."{3} How to make a bibliography (for total beginners)? I'm really having a hard time with this topic in probability theory and I was wondering if someone has any tricks, tips or anything useful to help me understand it. In my notes I am told that $X\sim$Uniform$[0,1]$ and $Y\sim$Uniform$[0,1]$. My professor wrote:      $f_{X+Y}(Z) = \int_0^Z f_X(x) f_Y(Z-x)\;dx \neq Z$   Then somehow he came up with these cases where $Z$ is defined, and used that in making the pdf. I'm just not sure of how he did this or how he also came to find $P(X_1+X_2\le 2)$. Can someone help me fill in the blanks? I went to him directly but he just said the same thing as in lecture and wasn't helpful. Don't let the association bonus be given away as bounties When a user with at least 200 rep on any Stack Exchange site registers a new account on another SE site, they immediately receive 100 rep on that site as an .  This is a deliberate feature to give users who are already familiar with how the SE platform and community works a bit of an extra boost (e.g. letting them upvote and comment immediately), and it's pretty much working as intended. What's probably not intended is that, currently, this bonus rep can be given away as . In fact, because awarding bounties currently requires only 75 rep, any user with 200+ rep on at least one site can join another site, receive the 100 rep bonus, and immediately award it all as a bounty to another user, without having to earn any actual rep on the site at all.  Not only does this seem contrary to the design intent of bounties (and of the association bonus), but it also seems ripe for potential abuse. (In fact, the only thing stopping a sockpuppet ring from gaining unlimited rep this way is the fact that the bounties would likely be sooner or later noticed by mods.) It's also possible for experienced users to (more or less) accidentally bounty their reputation so low that that they lose access to basic site features that they'd normally have due to the bonus.  Arguably, of course, this is entirely the user's own fault, but it can still be .  Also, this behavior , which currently require 110 rep to answer for users with the association bonus. The fix I'd like to suggest is simple:  If a user has been awarded the association bonus, don't let them award a bounty that would take their rep below 100.  Of course, it would still be possible for users with the bonus to drop below 100 rep via other means, e.g. by having their posts downvoted.  But they wouldn't be able to just give away this baseline rep to other users any more. I read in a book &quot;Physics - Resnik and Halliday&quot; the explanation of Type-I Superconductors {cold ones} that:  The Electrons that make up current at super-cool temperatures move in coordinated pairs. One of the electrons in a pair may electrically distort the molecular structure of the superconducting material as it moves through, creating  nearby short-lived regions of positive charge.the other electron in the the pair may be attracted to the positive spot. According to the theory the coordination would prevent them from colliding with the molecules of the material and thus would eliminate electrical resistance  Is this the only explanation or can somebody give me a more intuitive explanation that also takes into the problem of defect scattering as in the case of resistance and also explains the Type-II superconductors {hot ones} P.S. What are &quot;coordinated pairs&quot;? Can't use Shortcut key on linux mint 19 XFCE I've just recently started playing D&amp;D 4e through the Red Box, and I am confused about how to fill in the power cards.  So, take Nimbus of Holy Shielding for instance. I understand the Target and Hit components as well as the effect, but my question is about the Attack component. It reads:     Attack: Wisdom vs Will.   Does the mean whatever my Wisdom score is, without the modifier, is compared to the Will score of the enemy? Would I then not even have to roll a d20 to see if it works? How to suppress scientific notation when printing float values? Here's my code:  x = 1.0 y = 100000.0     print x/y   My quotient displays as 1.00000e-05.  Is there any way to suppress scientific notation and make it display as 0.00001? I'm going to use the result as a string. LuaLaTeX protrusion problem with Negative value If I multiclass into 2 or more spellcasting classes, how do I determine my known/prepared spells?