In the .theme file of my custom Drupal 8 theme, how do I customize the default search block so that I can add custom classes and also alter the input label to remove the word "search" but instead have a search icon from fontawesome?  Pretty much, I'd like the final output code to look like this:  &lt;div class="infoBar-search"&gt;   &lt;form action="#!" class="searchForm"&gt;     &lt;input type="search" name="sitesearch" placeholder="Search..."&gt;     &lt;input type="submit" class="searchForm-submit fa" value="&amp;#xf002;"&gt;   &lt;/form&gt; &lt;/div&gt;    Would the .theme approach be the best way to go about this? I tried altering a few template files but noticed this would affect the other forms on the site as well.
I would like to replace the search submit button with a Font Awesome character like the Magnifier (Search Icon) character, and put Search the site inside the search box.  How can I achieve something like this?
How get eigenvectors without phase jump? How to add a user to sudoers file? I have an account named as Chankey (local user). I had to use some commands like viewing the shadow file etc. I tried it using sudo command     sudo vim /etc/shadow   It said:      Chankey is not in the sudoers file. This incident will be reported.   How can I add this user Chankey to the sudoers file? How do I determine the size of an object in Python? I want to know how to get size of objects like a string, integer, etc. in Python.  Related question:   I am using an XML file which contains size fields that specify the size of value. I must parse this XML and do my coding. When I want to change the value of a particular field, I will check the size field of that value. Here I want to compare whether the new value that I'm gong to enter is of the same size as in XML. I need to check the size of new value. In case of a string I can say its the length. But in case of int, float, etc. I am confused. Why my DAC works without GND and VCC? This is the most interesting thing I have seen! I have built a  that sends data (D0-D7) to a DAC (ADV2175). The design worked fine and I just have a low frequency alias noise (). This noise was present on all my ground planes (This is in prototyping stage and that's not unexpected from the test PCB).  I started tracing the noise path by disconnecting wires to see when the noise is gone. Surprisingly even after disconnecting all VCC and GND connections (+ all VREF and logics gone to 0 or 1) the noise was present yet. The more unexpected behavior is when the DAC is just connected to DATA port+ CLK pin (all coming from the source FPGA, NO VCC or GND), it continues working and a sine wave is produced (but with the same noise)!!!  First I thought it may receive its VCC/GND form the logic 1/0 fed into it but if it was correct, it should not have produce 0x00 and 0xFF levels, but it makes those levels correctly (I changed 0xFF data stage to another level and a notch appeared on top of the waves. this shows it can build oxFF correctly).    This is a big challenge for my PCB design, as if this device really takes its GND from the data port, instead of the dedicated pins, I will have a hard time for designing a reliable ground plane for it (the return voltage should go back to a logic noisy environment and analog-digital ground plane isolation may be impossible).  Can anyone explain what is happening there? I am taking my first dive into testing a mobile app.  It will be available to iOS and Android.  I've been searching for a way to test and automate iOS without having an actual iPhone or any other Mac device.  We run Windows here at the office.  I was looking to use iPhone emulators but it doesn't seem possible.  I saw Appium Studio/SeeTest but it seems even that requires iTunes and a real device.  I know you can set up a Mac vm on a Windows machine but are there any other ways to test iPhone without having to do this? Number of solutions of $x_1+2x_2+\cdots+kx_k=n$? How can particles be emitted from particles? In a scene with two particle system configured as boids and boids brain set to fight, one swarm attacks the other. I would like to emit child particles as lines (laser or something) to visualize some fighting action. I couldn't find a way to setup the line emitting particle system, either they are created from the plane or further cones will be added. Is there a way to do this as I saw on a  but I didn't get the trick? Blend file   At blendersushi  the author says:  PARTICLE INSTANCE MODIFIER &gt; PARTICLES With this stacking thing, we can now pretty much emit Particles from emitted Particles, &gt; if you know how to set it up. Not very obvious, but basically you Instance some meshes &gt; (using Instance Modifier) and then add Particle System to the object with Instance &gt; Modifier. Make sure you have &quot;Use Modifier Stack&quot; turned on.  But I can't get this to work. What's the best way to develop old, exposed film? A friend of mine just found 3 rolls of exposed 135 (i.e. 35mm) film. They are at least 10 years old. He'd like to know if it is even worth taking them to the local hour photo lab but also if he should give them any special instructions. I initially thought that dark energy must in some way violate conservation of mass and energy since the component of the energy density of space that comes from dark energy is constant, and space is expanding. Therefore, as space expands the energy in the universe that comes from dark energy would increase. I presumed the source of this energy was not coming from the conversion of other types of energy to dark energy, so it must violate conservation.  I decided to Google this and came upon this article:    It says that dark energy does NOT violate conservation and quotes Carroll, Press, and Turner (1992):  "…the patch does negative work on its surroundings, because it has negative pressure. Assuming the patch expands adiabatically [i.e. without loss or gain of heat], one may equate this negative work to the increase of mass/energy of the patch. One thereby recovers the correct equation of state for dark energy: P = – ρ c2. So the mathematics is consistent."  Is there a way to explain this in layman's terms? (The blog attempted to do this, but it was very unclear to me.) More specifically, can you explain where my initial train of thought described above fails when I erroneously concluded that dark energy violates conservation?  Thank you. Version Control: Entire site or just pieces? I've been using git to track changes in the plugins and themes I've developed for different sites. Each plugin or theme has their own repository in whichever local install of WordPress I happen to be using for that project. This works fine when I'm just working on one solitary plugin or theme.  But when I have a local version of an entire site which is a collection of different plugins, themes, WordPress core, etc. Should I be keeping that entire directory under version control?  Is there a best practice to always have a collection of repositories for each theme/plugin, or for each client site to have one monolithic repository that includes all the code used in the project (including the latest copy of WordPress via svn.) Do I need Intel Smart Response when installing Ubuntu? With lots of guides and setup variations all over the internet, I find it confusing which is which to really follow. Normally, in Windows 8 my setup would be install everything in the HDD and use Intel Smart Response for a speedy setup. However as I am new to Linux I really don't know what to do.  My ideal setup would be something similar to this, but I know for a fact that IRST is not available in Linux so what I intend to do is keep the OS files in the SSD instead and keep my media on the larger HDD. A step by step procedure would be extremely helpful.     Edit: I want a system running solely on Ubuntu, with the SSD to speed things up but setting it in such a way that it does not hasten its lifespan.    # /etc/fstab: static file system information.  # # Use 'blkid' to print the universally unique identifier for a  # device; this may be used with UUID= as a more robust way to name devices  # that works even if disks are added and removed. See fstab(5).  #  # &lt;file system&gt; &lt;mount point&gt; &lt;type&gt; &lt;options&gt; &lt;dump&gt; &lt;pass&gt;  # / was on /dev/sda1 during installation  UUID=80289460-5983-4349-8afc-6f3119938ee9 / ext4 errors=remount-ro 0 1   # /files was on /dev/sdb5 during installation  UUID=c1678c88-5100-41bc-8090-7887f1622c7f /files ext4 defaults 0 2   # swap was on /dev/sdb6 during installation  UUID=608e3ec2-c76e-4657-af6d-80793b5f50f6 none swap sw 0 0 Creating non-reverse-engineerable Java programs Assume you have already completed your undergrad and have been working for a number of years. Does one need to be part of a university or a learning institution to publish papers? How should I calculate $\lim_{n\rightarrow \infty} \frac{1^n+2^n+3^n+...+n^n}{n^n}$ How should I calculate the below limit  $$\lim_{n\rightarrow \infty} \frac{1^n+2^n+3^n+...+n^n}{n^n}$$ I have no idea where to start from. How to prove $ \prod_{d|n} d= n^{\frac{\tau (n)}{2}}$ How can I find a saved Wi-Fi password? Is there to make the login screen appear on the external display in 18.04? On Ubuntu 18.04, I have connected my laptop to an external display and I am able to set the external display as primary and external display only mode. But when I turn on my laptop or log out from my session the display login screen is displayed only on my(internal) laptop screen. But once I login the display switches to external only and my laptop screen turns off as expected. Is there a way I can make the login screen appear only on the external screen on bootup or on logout as in 16.04? Also the login screen does not follow my cursor as in 16.04. Gauss's Lemma for polynomials claims that a non-constant polynomial in $\mathbb{Z}[X]$ is irreducible in $\mathbb{Z}[X]$ if and only if it is both irreducible in $\mathbb{Q}[X]$ and primitive in $\mathbb{Z}[X]$.   I wonder if this holds for multivariable case.      Is it true that a non-constant polynomial in $\mathbb{Z}[X_1,\dots,X_n]$ is irreducible in $\mathbb{Z}[X_1,\dots,X_n]$ if and only if it is both irreducible in $\mathbb{Q}[X_1,\dots,X_n]$ and primitive in $\mathbb{Z}[X_1,\dots,X_n]$?    Thank you for your help. Is $\mathbf{Q}(\sqrt{2}, \sqrt{3}) = \mathbf{Q}(\sqrt{2}+\sqrt{3})$? Is $\mathbf{Q}(\sqrt{2}, \sqrt{3}) = \mathbf{Q}(\sqrt{2}+\sqrt{3})$ ?    $$\mathbf{Q}(\sqrt{2},\sqrt{3})=\{a+b\sqrt{2}+c\sqrt{3}+d\sqrt{6} \mid a,b,c,d\in\mathbf{Q}\}$$   $$\mathbf{Q}(\sqrt{2}+\sqrt{3}) = \lbrace a+b(\sqrt{2}+\sqrt{3}) \mid a,b \in \mathbf{Q} \rbrace  $$  So if an element is in $\mathbf Q(\sqrt{2},\sqrt{3})$, then it is in $\mathbf{Q}(\sqrt{2}+\sqrt{3})$, because $\sqrt{6} = \sqrt{2}\sqrt{3}$.  How to conclude from there? consider the following subsets of complex plane $$\Omega_1=\left\{c\in\Bbb C:\begin{bmatrix}1&amp;c\\\bar c&amp;1\\ \end{bmatrix}\text{ is non-negative definite } \right\} $$  $$\Omega_2= \left\{c\in\Bbb C:         \begin{bmatrix}         1 &amp; c &amp; c \\         \bar c &amp; 1 &amp; c \\         \bar c &amp; \bar c &amp; 1 \\         \end{bmatrix} \text{ is non-negative definite } \right\}$$  Let $$\bar D=\{z\in\Bbb C:|z|\le1\}$$ Then 1) $\Omega_1=\bar D,\Omega_2=\bar D$  2). $\Omega_1\neq\bar D, \Omega_2=\bar D$  3). $\Omega_1=\bar D, \Omega_2\neq\bar D$  4). $\Omega_1\neq\bar D, \Omega_2\neq\bar D$  How to proceed? Thank you.