I've tried using the bootstrap 4 classes 'align-middle' and 'align-content-center' to make the contents of the parent div vertically align in the middle. But applying these classes does not give the result I want. The contents are still positioned at the top.    &lt;div class="embed-responsive embed-responsive-1by1" style="background:blue; height:10000px"&gt;   &lt;div class="embed-responsive-item"&gt;     &lt;div style="vertical-align: middle;"&gt;       &lt;span class="h4" style="color:white; font-size: 34px;"&gt;The text I want to vertically align in the middle&lt;/span&gt;&lt;/div&gt;   &lt;/div&gt; &lt;/div&gt;
I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers? &lt;div id=&quot;header&quot;&gt;   &lt;img src=&quot;..&quot; &gt;&lt;/img&gt;   &lt;h1&gt;testing...&lt;/h1&gt;   &lt;img src=&quot;...&quot;&gt;&lt;/img&gt; &lt;/div&gt;
Using AMPScript, I want to pass from a URL Attribute lookup variables and use these variables in my LookupOrderRows function.   The challenge is that not all lookup variables have to be passed by the URL e.g I might lookup just 'office' or I could also lookup both 'office' and 'score.   I've tried several approaches of Concat the string etc - but can't see to make the lookup work.  Has anyone had any success performing similar?   IF not empty( Requestparameter("office") ) then  Set @field1_name = "OFFICE" Set @field1_value = Requestparameter("office")  EndIf  IF not empty( Requestparameter("specialism") ) then  Set @field2_name = "SPECIALISM" Set @field2_value = Requestparameter("specialism")  EndIf  IF not empty( Requestparameter("score") ) then  Set @field3_name = "SCORE" Set @field3_value = Requestparameter("score")  EndIf   set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc",@Field1_Name,@Field1_Value,@Field2_Name,@Field2_Value,@Field3_Name,@Field3_Value)   My current solution is a lot If then statements and combinations i.e. :  /* OFFICE ONLY*/ IF NOT EMPTY(@input_office) AND EMPTY(@input_organisation) AND EMPTY(@input_specialism)  AND EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office) ENDIF  /* OFFICE + ORG*/ IF NOT EMPTY(@input_office) AND NOT EMPTY(@input_organisation) AND EMPTY(@input_specialism)  AND EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"ORGANISATION_NAME",@input_organisation) ENDIF /* OFFICE + ORG + SPECIALISM */ IF NOT EMPTY(@input_office) AND NOT EMPTY(@input_organisation) AND NOT EMPTY(@input_specialism)  AND EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"ORGANISATION_NAME",@input_organisation,"SPECIALISM",@input_specialism) ENDIF /* OFFICE + ORG + SCORE */ IF NOT EMPTY(@input_office) AND NOT EMPTY(@input_organisation) AND EMPTY(@input_specialism)  AND NOT EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"ORGANISATION_NAME",@input_organisation,"Engagement Score",@input_score) ENDIF /* OFFICE + ORG + SPECIALISM + SCORE  */ IF NOT EMPTY(@input_office) AND NOT EMPTY(@input_organisation) AND NOT EMPTY(@input_specialism)  AND EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"ORGANISATION_NAME",@input_organisation,"SPECIALISM",@input_specialism,"Engagement Score",@input_score) ENDIF  IF NOT EMPTY(@input_office) AND EMPTY(@input_organisation) AND NOT EMPTY(@input_specialism)  AND EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"SPECIALISM",@input_specialism) ENDIF  IF NOT EMPTY(@input_office) AND EMPTY(@input_organisation) AND NOT EMPTY(@input_specialism)  AND NOT EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"SPECIALISM",@input_specialism,"Engagement Score",@input_score) ENDIF  IF NOT EMPTY(@input_office) AND EMPTY(@input_organisation) AND EMPTY(@input_specialism)  AND NOT EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"Engagement Score",@input_score) ENDIF How to clear the interpreter console? Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff, etc.  Like any console, after a while the visible backlog of past commands and prints gets to be cluttered, and sometimes confusing when re-running the same command several times.  I'm wondering if, and how, to clear the Python interpreter console.  I've heard about doing a system call and either calling cls on Windows or clear on Linux, but I was hoping there was something I could command the interpreter itself to do.  Note: I'm running on Windows, so Ctrl+L doesn't work. Why do prisms work (why is refraction frequency dependent)? It is well known that a  can "split light" by separating different frequencies of light:    Many sources state that the reason this happens is that the  is different for different frequencies.  This is known as .  My question is about why dispersion exists.  Is frequency dependence for refraction a property fundamental to all waves?  Is the effect the result of some sort of non-linearity in response by the refracting material to electromagnetic fields?  Are there (theoretically) any materials that have an essentially constant, non-unity index of refraction (at least for the visible spectrum)? how to show only changed rows if want querying the following table :  EventDateTime (DateTime), Host (guid), Flag ( bit) 2013-04-01 05:00, {id-x}, 0 2013-04-01 05:01, {id-x}, 0 2013-04-01 05:02, {id-x}, 0 2013-04-01 05:03, {id-x}, 0 2013-04-01 05:04, {id-x}, 1 2013-04-01 05:05, {id-x}, 1 2013-04-01 05:06, {id-x}, 1 2013-04-01 05:07, {id-x}, 0 2013-04-01 05:08, {id-x}, 0 2013-04-01 05:09, {id-x}, 0 2013-04-01 05:10, {id-x}, 0 2013-04-01 05:11, {id-x}, 1 2013-04-01 05:12, {id-x}, 1 2013-04-01 05:13, {id-x}, 1 2013-04-01 05:14, {id-x}, 1 2013-04-01 05:15, {id-x}, 0   and the result should be:  2013-04-01 05:04, {id-x}, 1 2013-04-01 05:07, {id-x}, 0 2013-04-01 05:11, {id-x}, 1 2013-04-01 05:15, {id-x}, 0   i have try it with LAG,LEAD and OVER Clause. but no luck :( let a,b be real  numbers and $\varepsilon&gt;0$. prove the above inequality. I dont know how to even start. please, I need your help. How to divide an image into blocks in MATLAB? Which media player has seek preview with thumbnails? I was looking for a good video player to replace VLC, something that is as good as vlc but has seek preview. I am tired of fast forwarding in vlc  EDIT: I meant seek preview with thumbnails How can I switch between starting a coroutine vs running the routine all at once? Suppose $p$  and $p^2+2$ are prime numbers, prove that $p^3+2$ is also a prime number. Actually I do not know what is the relationship among square numbers, cube numbers and prime numbers Get the size of the screen, current web page and browser window How to run updmap-sys after installing cm-super? My original question was:   The answer that seems suitable to my cause is to install cm-super. I did that (using package manager [winxp 32 bit, MikTex installation 2.9 recently updated]). But still the command  \usepackage{cm-super}    yields an error.  User H Cavendish suggested to run updmap-sys, but I am not sure about how to do that on WinXP.   2011 November 04 edit: I made it sure that I have installed 'cm-super' - but still get the same error:   I have also tried updating the file name databases - but no avail. How to show that there is an element of order $51$ in the multiplicative group $(Z/103Z)^∗.$  I can't use Cauchy's theorem since $51$ is not prime. Why can't a single photon produce an electron-positron pair? In reading through old course material, I found the assignment (my translation):     Show that a single photon cannot produce an electron-positron pair, but needs additional matter or light quanta.   My idea was to calculate the wavelength required to contain the required energy ($1.02$ MeV), which turned out to be $1.2\times 10^{-3}$ nm, but I don't know about any minimum wavelength of electromagnetic waves. I can't motivate it with the conservation laws for momentum or energy either.  How to solve this task? I'm trying Google's PageSpeed online service  Ironically, it's primarily highlighting Google's own services as something that needs improvement on my site  1) jQuery from Google: blocking. So I moved all javascript from &lt;head&gt; to the end of the document before &lt;/body&gt;. That helped  2) Linking to external Google Font CSS (in &lt;head&gt;): blocking. But the font is critical to the design of the page and should load before much else  3) Google Analytics: Caching is not good. (Google has set it internally to 2 hours expiration). Don't know how to change this (this is also placed at the bottom of page)  The Google Font is highlighted as a big priority to change.  How can I fix this? Where/how should I call the the font? Are there any guarantees in JLS about order of execution static initialization blocks? i am getting a weird error - white screen in the list of posts for a specific Custom post type (just for that one)   tried deactivating all the plugins tried checking for error (debugging = true)   Still nothing the page just doesnt echos anything... (nothing in source too)  I am talking about such a url in the admin:     Here is register_post_type part i am using:    function register_submodelcpt() {     $labels = array(         'name'                  =&gt; __('Sub Models', THEME_NAME),         'singular_name'         =&gt; __('Sub Models', THEME_NAME),         'add_new'               =&gt; __('New Model', THEME_NAME),         'add_new_item'          =&gt; __('Add new Model', THEME_NAME),         'edit_item'             =&gt; __('Edit Model', THEME_NAME),         'new_item'              =&gt; __('New Model', THEME_NAME),         'all_items'             =&gt; __('All Sub Models', THEME_NAME),         'view_item'             =&gt; __('Watch Model', THEME_NAME),         'search_items'          =&gt; __('Search Models', THEME_NAME),         'not_found'             =&gt;  __('No Models found', THEME_NAME),         'not_found_in_trash'    =&gt; __('No Models found in trash', THEME_NAME),          'parent_item_colon'     =&gt; '',         'menu_name'             =&gt; __('Sub Models', THEME_NAME),      );      $args = array(         'labels'                =&gt; $labels,         'public'                =&gt; true,         'publicly_queryable'    =&gt; true,         'show_ui'               =&gt; true,          'show_in_menu'          =&gt; true,          'query_var'             =&gt; true,         'rewrite'               =&gt; array('slug' =&gt; 'submodels'),         'capability_type'       =&gt; 'post',         'has_archive'           =&gt; true,          'hierarchical'          =&gt; true,         'menu_position'         =&gt; 5,         'menu_icon'             =&gt; get_stylesheet_directory_uri().'/images/cpt/subcars.png',                     'supports'              =&gt; array('title', 'thumbnail', 'revisions', 'page-attributes')     );      register_post_type('submodelscpt',$args); } add_action('init', 'register_submodelcpt');   Did anyone encounter such an issuse? can you think of a reason this might happen?   Another weird thing when i change this:    To this:     The posts list loads correctly... I tried to create a script by echo'ing the contents into a file, instead of opening it with a editor  echo -e "#!/bin/bash \n /usr/bin/command args"  &gt; .scripts/command   The output:     bash: !/bin/bash: event not found   I've isolated this strange behavior to the .  $ echo ! !    $ echo "!" bash: !: event not found  $ echo \#! #!  $ echo \#!/bin/bash bash: !/bin/bash: event not found    Why is bang causing this?   What are these "events" that bash refers to?     How do I get past this problem and print "#!/bin/bash" to the screen or my file? How to make a live Ubuntu 18.04 USB with a persistent storage of more than 4GB Where can we find frequently updated details about travel/entry restrictions due to Coronavirus (nCoV-19)? For simple linear regression, the regression coefficient is calculable directly from the variance-covariance matrix $C$, by  $$ C_{d, e}\over C_{e,e} $$ where $d$ is the dependent variable's index, and $e$ is the explanatory variable's index.  If one only has the covariance matrix, is it possible to calculate the coefficients for a model with multiple explanatory variables?   ETA: For two explanatory variables, it appears that $$\beta_1 = \frac{Cov(y,x_1)var(x_2) - Cov(y,x_2)Cov(x_1,x_2)}{var(x_1)var(x_2) - Cov(x_1,x_2)^2} $$ and analogously for $\beta_2$. I'm not immediately seeing how to extend this to three or more variables.