Why aren’t the arrow displayed when using Show?

I have been trying to combine different plots using Show. Everything looks fine, but the Arrow from one of the plots does not show. What am I doing wrong here?

qw = Plot[y /. Solve[(x/20)^2 + (y/10)^2 == 1], {x, -36, 35},  AspectRatio -> Automatic, PlotRange -> {{-37, 35}, {-16, 16}},  PlotStyle -> {RGBColor["#123c69"]}, Ticks -> Automatic,  Axes -> True]; Aq = Plot[-a/((x^4)) - b, {x, -21, -35},  PlotRange -> {{-36, -21}, {-6.5, -9.5}},  PlotStyle -> {RGBColor["#ac3b61"]},  Epilog -> {RGBColor["#ac3b61"],  Arrow[{{-35, -((3151 Sqrt[7])/     1250)}, {-35.7, -6.640033236810056}}]}]; Show[qw, Aq] 

Why aren’t the arrow displayed when using Show?

I have been trying to combine different plots using Show. Everything looks fine, but the Arrow from one of the plots does not show. What am I doing wrong here?

qw = Plot[y /. Solve[(x/20)^2 + (y/10)^2 == 1], {x, -36, 35},  AspectRatio -> Automatic, PlotRange -> {{-37, 35}, {-16, 16}},  PlotStyle -> {RGBColor["#123c69"]}, Ticks -> Automatic,  Axes -> True]; Aq = Plot[-a/((x^4)) - b, {x, -21, -35},  PlotRange -> {{-36, -21}, {-6.5, -9.5}},  PlotStyle -> {RGBColor["#ac3b61"]},  Epilog -> {RGBColor["#ac3b61"],  Arrow[{{-35, -((3151 Sqrt[7])/     1250)}, {-35.7, -6.640033236810056}}]}]; Show[qw, Aq] 

How can I pass my BMI values accordingly using the `letsCalculateBMI` arrow function?

I have this task where I am to build a BMI calculator. I have followed all the instructions accordingly but I seem to be skipping something. I will appreciate a full code review to find the bug.

index.html

<!DOCTYPE html> <html lang="en">   <head>     <meta charset="UTF-8" />     <meta name="viewport"            content="width=device-width, initial-scale=1.0" />     <meta http-equiv="X-UA-Compatible" content="ie=edge" />      <title>Mini App</title>      <style>       body {         background-color: #ffffff;       }        div.select {         margin-bottom: 2.5em;       }        div.user-photo {         margin: 1em auto;         height: 150px;         width: 150px;         border-radius: 50%;         overflow: hidden;       }        div.details {         color: #ffffff;          background-color: #6200ee;         font-size: 1.3em;          margin-top: 4em;          padding: 0.5em 1em;          border-radius: 10px;       }        .details p {         margin: 0.3em;       }        div#outcome {         position: absolute;          right: 2.2em;          bottom: 6.5em;          width: 100px;         text-align: center;       }        #outcome h5 {         padding: 1em;          background-color: #ffffff;          border-radius: 10%;          margin: 0;       }        #outcome p {         height: 40px;          color: #ffffff;         border-bottom: 5px solid #ffffff;          font-size: 2em;          margin: 0;          padding: 0.5em 0;       }        #oracle {         margin-top: 2.5em;          border: 1px solid;          width: 100%       }      </style>   </head>   <body>         <button       id="filter-query"       class="mdc-icon-button material-icons"     >       filter_list     </button>      <div class="select">       <select class="select-text">         <option disabled selected>Select User</option>               </select>     </div>      <div class="user-photo">       <img src="https://via.placeholder.com/200" alt="Placeholder" >     </div>      <div class="details mdc-elevation--z3">       <p>         <span class="prop" data-age>Age :</span>         <span class="value" data-age-value>23 years</span>       </p>       <p>         <span class="prop" data-height>Height :</span>         <span class="value" data-height-value>169cm</span>       </p>       <p>         <span class="prop" data-weight>Weight :</span>         <span class="value" data-weight-value>68kg</span>       </p>       <p>         <span class="prop" data-gender>Gender :</span>         <span class="value" data-gender-value>Female</span>       </p>       <p>         <span class="prop" data-country>Country :</span>         <span class="value" data-country-value>Nigerian</span>       </p>     </div>      <button id="oracle" class="mdc-button" onclick="letsCalculateBMI()">       Calculate BMI     </button>     <div id="outcome">       <h5 class="mdc-typography--headline5">         BMI       </h5>       <p class ="bmi-text"></p>     </div>      <script>       const users = [];        const countriesWithLowerBmi = ["Chad", "Sierra Leone", "Mali", "Gambia", "Uganda", "Ghana", "Senegal", "Somalia", "Ivory Coast", "Isreal"];              const featToMeter = 0.3048;        const bmiCountryRatio = 0.82;        const computeBMI = ({weight, height, country}) => {         const heightInMeters = height * featToMeter;         let BMI = weight / (heightInMeters^2);         if (countriesWithLowerBmi.includes(country))           BMI *= bmiCountryRatio;         return Math.round(BMI, 2);       };        const getSelectedUser = (userId) => {         return users.find(({id}) => id === userId);       };        const displaySelectedUser = ({target}) => {         const user = getSelectedUser(target.value);         const properties = Object.keys(user);          properties.forEach(prop => {           const span = document.querySelector(`span[data-$  {prop}-value]`);             if(span) {               span.textContent= user[prop];                }         })                      }        const letsCalculateBMI = () => {          const value = document.querySelector('.select-text').value;         const user =getSelectedUser(target.value);                const bmi = computeBMI(user);          document.querySelector('.bmi-text').innerHTML = bmi       };        const powerupTheUI = () => {         const button = document.querySelector('#oracle');          const select = document.querySelector('.select-text');          select.addEventListener('change', displaySelectedUser);          button.addEventListener('click',letsCalculateBMI);       };              const displayUsers = (users) => {         users.forEach(user => {         const select = document.querySelector('.select-text');         const option = document.createElement('option');          option.text = user.name;          option.value = user.id;         select.appendChild(option);         });       };         const fetchAndDisplayUsers = () => {         users.push(           {           age: 40,           weight: 75,           height: 6,           country: 'Nigeria',           name: 'Charles Odili',           id: 'dfhb454768DghtF'           },           {           age: 23,           weight: 68,           height: 6,           country: 'Nigeria',           name: 'Simpcy',           id: 'gibb12erish'           }         );          displayUsers(users);       };        const startApp = () => {         powerupTheUI();         fetchAndDisplayUsers();       };        startApp();     </script>   </body> </html> ``` 

This on arrow fuction in vue

This code its a simple way to start in vue, its has a input to push an object to an array, when I use a function it works but I if I use an arrow function I cant access to the object elements throug this(the commented code works)

var app = new Vue({   el:'#app',   data:{     titulo:"Hola mundo con vue",     frutas:[       { nombre:'Manzana', cantidad:1},       { nombre:'Pera', cantidad:0},       { nombre:'Platano', cantidad:3}     ],     nuevaFruta:""   },   methods:{     /*agregarFruta: function(event){       this.frutas.push({         nombre:this.nuevaFruta,         cantidad:0       });     }*/     agregarFruta: () => console.log(this.nuevaFruta)//cant acces I gent an undefined value   }  }); 

Zsh Agnoster Arrow Bug

MacBook Air -> MacOS Mojave Version 10.14.4

Zsh 5.7.1 (located on /usr/local/bin/zsh)

This is how Zsh with Oh-My-Zsh with the Agnoster Theme on Iterm2 with the Solarized Dark should look like:

Screenshot of the Agnoster Theme from the Themes offered by the Oh-My-Zsh official site. Using iTerm and Solarized Dark just like me

And this is how my iTerm2 (on the left) looks like (with Settings) and my terminal also on Zsh (right)

Screenshot I just took

Considerations:

  • I installed the powerline fonts manually then using the install.sh. See the link for the project: https://github.com/powerline/fonts

  • I made iTerm use various Powerline fonts but it doesnt solve the issue

  • I followed the instructions in the bottom of the page on the URL above

  • I put the file “10-powerline-symbols.conf” (https://github.com/powerline/powerline/tree/develop/font) in ~/.config/fontconfig/conf.d too

ISSUE: The arrow in my iTerm (and Terminal) are not colored in the same way and the arrowheads dont blend in as beatifully as in the theme screenshot. How do I make my Zsh look like the screenshot??

Arrow key bindings not firing

I’m trying to get the four arrow keys to be bound to a command in my ViewModel, but they are not working. I have a ContentControl in a Window with InputBindings like so:

<ContentControl.InputBindings>     <KeyBinding Command="{Binding EndCmd}" Key="Esc" />     <KeyBinding Command="{Binding PanUpCmd}" Key="Up" />     <KeyBinding Command="{Binding PanDownCmd}" Key="Down" />     <KeyBinding Command="{Binding PanLeftCmd}" Key="Left" />     <KeyBinding Command="{Binding PanRightCmd}" Key="Right" /> </ContentControl.InputBindings> 

In my ViewModel:

public RelayCommand EndCmd { get; set;  public RelayCommand PanUpCmd { get; set; } public RelayCommand PanDownCmd { get; set; } public RelayCommand PanLeftCmd { get; set; } public RelayCommand PanRightCmd { get; set; }  public MainViewModel() {     EndCmd = new RelayCommand(End);     PanUpCmd = new RelayCommand(PanUp);     PanDownCmd = new RelayCommand(PanDown);     PanLeftCmd = new RelayCommand(PanLeft);     PanRightCmd = new RelayCommand(PanRight); }  //functions that the commands call here 

Now, the Escape key works fine, but the four arrow keys do not. Why is this? They are set up exactly the same. I thought maybe it was something to do with the DataContext so I put the KeyBindings in the WindowsInputBindings` but it was the same issue.

How to make left/right arrow appear only when hovering Magento 2 base image in gallery

I want to remove left and right arrow when first accessing the product page. By default it was set to appear even when not hovering base image in image gallery. Since it has that overlay effect around the arrows it applies grey overlay which is intrusive. Arrows

I’d like those arrows to appear only when hovering base image and not when the page is first loaded. What’s weird, if I hover the image and then move cursor away arrows dissapear like they should.