How do I render a custom block type (block_content) programmatically with a specific display view?
I'm developing a site using Drupal 8 beta-14. I've created a view block of different terms and now I want to display it using code. How can I display it programatically?  I used to do it in Drupal 7 using this code but I'm confused about Drupal 8.  $block = module_invoke('block', 'block_view', '4'); $text_block = render($block['content']);
Let us go   is a correct construction in the English language and definitely not:     Let we go   However, the question is: since us is an object-case pronoun, what is the subject of this sentence? I have a JavaScript object. Is there a built-in or accepted best practice way to get the length of this object? const myObject = new Object(); myObject[&quot;firstname&quot;] = &quot;Gareth&quot;; myObject[&quot;lastname&quot;] = &quot;Simpson&quot;; myObject[&quot;age&quot;] = 21; About free quarks and confinement I simply know that a single free quark does not exist. What is the reason that we can not get a free quark?  If we can't get a free quark then what is single-top-quark? I will soon buy a new iPhone. If I log in with my Apple ID in my new phone could I still access my Clash of Clans village without starting from scratch? This is relating to the movie. Frodo finally relinquishes his desire for the ring, and it melts in the fires of Mount Doom. The next scene shows the eruption of Mount Doom and the destruction of Barad Dur. Gandalf looks up with tears in his eyes.  I have read the books, and can't seem to remember this being explained or described. I'm just wondering why they depicted Gandalf as being so emotional about the event, when throughout the story it depicts Gandalf as having unparalleled wisdom, faith and knowledge. Out of all the Ainur he listened to Eru's song the longest and contemplated it's meaning.   It strikes me that Tolkien portrayed Gandalf as all knowing, and has ultimate faith that Frodo would carry out the task at hand. So why was he so emotionally surprised that it happened? Especially when he had seen far more surprising things happening throughout the War of the Ring and in the movies he was depicted as emotionally immovable, an almost cold hearted awareness of the evil that lurks within the world.   I understand this is probably going to be down-voted as it has alot of opinion based statements. The TL:DR is: Was Gandalf described in the book as being so emotional at Sauron's fall? Or was this simply for effect in the screenplay? I own a Windows 10 K or N Edition which doesn't include the media player package. My problem is: I want to have preview thumbnails in the explorer for my MP3s and videos.  I had the issue before when I updated to Win10 but there  saved me. Since the Anniversary update they are gone again.   Now I can install the old update but I still don't get the media player nor the preview images.  I tried most of the things Microsoft offers me but they are either not installable or don't work.  Any ideas what might be the correct update package?  Thx!  Ron Let $K$ be any field. Is it true that:   If $f_1,\dots, f_k \in K[x_1,\dots,x_n]$ are polynomials of degree $1$, then $I=(f_1,\dots, f_k)$ is all $K[x_1,\dots,x_n]$, or, if it is a proper ideal, then is it prime? In particular, is it true that $K[x_1,\dots,x_n]/I$ is isomorphic to a polynomial ring (in the case that $I$ is proper and hence prime by the statement above)?   If they are true, how can i prove these statements in an elementary but rigorous way?  P.S.: Birth of my question: I found on my book that "affine varieties given by linear equations are irreducibile", so I translated (I don't know if I have made it right) this geometric statement into the analogous algebraic version. After reading , the most popular answer use the identity $$\sum_{t=0}^n \binom{t}{k} = \binom{n+1}{k+1}.$$  What's the name of this identity? Is it the identity of the  modified.  How can we prove it? I tried by induction, but without success. Can we also prove it algebraically?  Thanks for your help.    EDIT 01 : This identity is known as the  because, on Pascal's triangle, when the addends represented in the summation and the sum itself are highlighted, a hockey-stick shape is revealed. How do you correctly use a meat thermometer? How to get object size in memory? I need to know how much bytes my object consumes in memory (in C#). for example how much my Hashtable, or SortedList, or List&lt;String&gt;. How do I add a new language? The aftermarket ROM I use seems to have the language list parred down to just a couple selections, probably to save space.  I would like to add a language back into the system. I can already set the locale using programs such as  so that applications with my language support start with the right locale code, however that doesn't add missing system languages. Having the system in another language would be nice, but the main thing is getting the dictionary files for the keyboard auto-complete. How does one go about adding the language support files for an input language to a system or ROM?  I can access other ROM's or the AOSP project to rip things out, but I don't know where to start. What files do I need and what modifications need to be made? Is there an easy way to do this with say a language-pack or is it hackery all the way?  My ROM is fully rooted and I have adb access if necessary. It's Android 2.3.7 () and I'm using the stock Android keyboard. The language I want is Turkish, although unless somebody has a download to point me to it's mostly the process I'm looking for here. How to allow to run su instantly after I added the user to the appropriate group Least rank of a matrix Let $A$ be a $7\times 7$ matrix such that it has rank $3$ and $a$ be $7\times 1$ column vector.  Then least possible rank of $A+(a a^T)$ is? ($a^T$ is transpose of the vector)  Intuitively I think it's $2$ as $a a^T$ has rank $1$, and the most it could affect is one row of $A$. loading a view in popup hi i'm trying to display a view in a popup but unable to get a solution. i tried   colorbox node module popup views integration module   Is there any better way to display a view as a popup ? Why does an atom remain uncharged after emission of an alpha particle? When an alpha particle is emitted, two protons and two neutrons leave the nucleus but the electrons remain the same in number. Why does the atom remain uncharged although it appears it should have a net charge of $-2e$? How do you debug through a compressed JavaScript file? This question is a duplicate of  (but this question can't be marked as a duplicate because that question is on meta.stackoverflow.com, and this question is on meta.stackexchange.com).  I'm seeing a bug on stackoverflow.com. I'm not sure if the culprit is Stack Overflow, Google Chrome, or macOS.  (Below I refer to a "code box". By that I mean some text that begins with 4 spaces when editing a question or answer.)  When I hover over a code box that contains one long line of code, a horizontal scrollbar appears. When I stop hovering over the code box, very frequently (maybe 3 out of 4 times) the scrollbar does not disappear. Clicking elsewhere on the page also does not dismiss the scrollbar. The only way to dismiss it is to refresh the page.  ...After experimenting more, it appears to always happen if I enter the box from below, but not always when I enter from above. It seems to be triggered by hovering over the lower half of the box.  Also if I enter from the top and scroll to the right, then until I refresh the page again that scrollbox will behave normally (only show a scrollbar when scrolling, and disappear after). In that case the scrollbar also has a different appearance, being much less tall (maybe a quarter of the height of the code box rather than half as tall).  Further, if I get a box and scrollbar into that functional state and then hover over the lower part of the box for a bit, then sometimes eventually it will break and stay broken until refresh again.  And in any case hovering over the lower part of the box causes the scrollbar to get taller.  Here is a screenshot of the issue:        Google Chrome 71.0.3578.98 (Official Build) (64-bit)  macOS High Sierra 10.13.6  Here is a code box that repros the issue for me:  fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo   Here is another:  foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo A few days ago I was recalling some facts about the $p$-adic numbers, for example the fact that the $p$-adic metric is an ultrametric implies very strongly that there is no order on $\mathbb{Q}_p$, as any number in the interior of an open ball is in fact its center.  I know that if you take the completion of the algebraic closure of the $p$-adic completion you get something which is isomorphic to $\mathbb{C}$ (this result was very surprising until I studied model theory, then it became obvious).  Furthermore, if the algebraic closure is of an extension of dimension $2$ then the field is orderable, or even real closed. Either way, it implies that the $p$-adic numbers don't have this property.  So I was thinking, is there a $p$-adic number whose square equals $2$? $3$? $2011$? For which prime numbers $p$? How far down the rabbit hole of algebraic numbers can you go inside the $p$-adic numbers? Are there general results connecting the choice (or rather properties) of $p$ to the "amount" of algebraic closure it gives? Finding minimum-area-rectangle for given points? Say I have a Zombie token, , and  on the battlefield. Can I sacrifice the Zombie token to activate both the Altar's and Seer's abilities?  Similarly, if I have one card in hand, and  and  on the battlefield can I discard the one card to both of their abilities?  If I have a  with 3 charge counters can I activate both of its abilities by tapping it to add a counter, and tapping it to remove 3 counters and destroy a permanent without untapping it in between?