custom search refreshing on submit and not giving results

The custom search refreshes on submit and also does not give any results. I am not sure what is wrong with the code but if someone could take a look at it to help me see what I am missing, I would sure appreciate it. Thank you in advance.

front-page.php

<form> <section class="" style="margin-top: 60px; padding-bottom: 0;"> <div class="concept-bar">   <div class="container">   <h2 class="title-bar">EJES ESTRATÉGICOS</h2>     <div class="row" style="padding-top: 20px;">       <div class="col-4">         <div class="number-holder"><span class="eje-number">1</span>           <h2 class="concept-item">DESAROLLO INTEGRAL DE TALENTO</h2>         </div>       </div>       <div class="col-4">         <div class="number-holder"><span class="eje-number">2</span>           <h2 class="concept-item">APOYO AL BEISBOL INFANTIL Y JUVENIL</h2>         </div>        </div>       <div class="col-4">         <div class="number-holder"><span class="eje-number">3</span>           <h2 class="concept-item">IMPULSO DE CONCEPTO "BEISBOL" EN MÉXICO</h2>         </div>       </div>     </div>   </div>   </div> </section>  <section class="s-raking">     <div class="container">          <?php             $  terms = get_terms( array(                 'taxonomy' => 'ranking',                 'hide_empty' => false,             ) );         ?>  <!-- <?php         if(isset($  _GET["position"])){             $  position=$  _GET["position"];             // echo "select position is => ".$  position;         } ?>  -->          <h2 class="title-bar" data-ranking="<?php echo $  terms[0]->slug; ?>">Ranking <span><?php echo $  terms[0]->name; ?></span>             <div class="ranking-nav-btn">               <div class="customPrevBtn4"><i class="fa fa-angle-left"></i></div>               <div class="customNextBtn4"><i class="fa fa-angle-right"></i></div>             </div>         </h2>          <div class="row no-gutters">              <div class="col-lg-8">                 <div class="slider-ranking owl-carousel">                      <?php                         foreach($  terms as $  term) { ?>                      <div class="rankig-one" style='background:url(<?php the_field('bg_image', 'term_' .$  term->term_id ); ?>) no-repeat scroll center center; background-size: cover;' data-title="<?php echo $  term->slug; ?>">                         <h3><?php the_field('title_normal', 'term_' .$  term->term_id ); ?> <?php if(get_field('title_strong', 'term_' .$  term->term_id )) { ?><span><?php the_field('title_strong', 'term_' .$  term->term_id ); ?></span><?php } ?></h3>              <!-- <ul class="ajax-content2"> -->                          <?php                          $  posts = get_field('top_players', 'term_' .$  term->term_id );                         if( $  posts ): ?>                             <ul>                             <?php $  i = '1'; foreach( $  posts as $  post): ?>                                 <?php setup_postdata($  post); ?>                                 <li><a href="<?php the_permalink(); ?>"><?php echo $  i; ?> <?php the_title(); ?></a></li>                             <?php $  i++; endforeach; ?>                             </ul>                             <?php wp_reset_postdata(); ?>                         <?php endif;  ?>                      </div>                      <?php } ?> <!-- </ul> -->                 </div>             </div>              <div class="col-lg-4">                 <div class="filters-ranking">                     <div class="filters-search">                         <input type="text" class="quicksearch" placeholder="Encuentra a un jugador" />                         <i class="fa fa-search"></i>                     </div>                     <div class="tabs d-flex">                         <span class="tab">Ranking</span>                         <span class="tab">Selecciona tu estado</span>                     </div>                     <div class="tab_content">                         <div class="tab_item">                             <div class="filters-bar">                                  <select class="filters-select" name="position" onchange="this.form.submit()">                                     <?php                                         $  field_key = "field_5c80e92663dd1";                                         $  field = get_field_object($  field_key);                                         foreach ( $  field['choices'] as $  k => $  v ) {                                             echo '<option value="' . $  k . '">' . $  v . '</option>';                                         }                                     ?>                                 </select>                              </div>                             <div class="players-results" id="ajax-content"></div>                         </div>                         <div class="tab_item">               <div class="players-state">                 <ul>                     <?php                         $  field_key = "field_5cebb7e973218";                         $  field = get_field_object($  field_key);                         foreach ( $  field['choices'] as $  k => $  v ) {                             echo '<li data-value="' . $  k . '">' . $  v . '</li>';                         }                     ?>                 </ul>                               </div>                   </div>                     </div>                 </div>             </div>               <div class="players-results" class="ajax-content2"></div>         </div>       </div> </section>   </form> 

scripts.js

/*ranking filter select*/   $  (".filters-select").on("change", function() {     ranking();   });    /*ranking filter search*/   var ts = $  (".quicksearch").val();   $  (".quicksearch").attr("data-search", ts);   $  (".quicksearch").keyup(function(e) {     var ts = $  (this).val();     $  (".quicksearch").attr("data-search", ts);     ranking();   });    $  (".filters-ranking .players-state").mCustomScrollbar({     scrollButtons: { enable: true }   });   $  (".players-state li").click(function() {     var val = $  (this).attr("data-value");     $  (".players-state").attr("data-state", val);     ranking();   });    /*for first load*/   function ranking() {     $  (".filters-ranking .players-results").mCustomScrollbar("destroy");     var position = $  (".filters-select option:selected").val();     var ranking = $  (".s-raking .title-bar").attr("data-ranking");     var search = $  (".quicksearch").attr("data-search");     var state = $  (".players-state").attr("data-state");      $  .ajax({       url: ajaxurl,       type: "post",       data: {         action: "players",         position: position,         ranking: ranking,         search: search,         state: state       },       success: function(response) {         $  ("#ajax-content").html(response);         $  (".filters-ranking .players-results").mCustomScrollbar({           scrollButtons: { enable: true }         });       }     });      $  .ajax({       url: ajaxurl,       type: "post",       data: {         action: "playersmain",         position: position,         ranking: ranking,         search: search,         state: state       },       success: function(response) {         $  (".ajax-content2").html(response);       }     });   }   ranking();    /*ranking filter select MLB*/   $  (".filters-select-MLB").on("change", function() {     ranking2();   });   function ranking2() {     $  (".ranking-wrap .players-results").mCustomScrollbar("destroy");     var position = $  (".filters-select-MLB option:selected").val();      $  .ajax({       url: ajaxurl,       type: "post",       data: {         action: "playersMLB",         position: position       },       success: function(response) {         $  ("#ajax-content-MLB").html(response);         $  (".ranking-wrap .players-results").mCustomScrollbar({           scrollButtons: { enable: true }         });       }     });   }   ranking2(); 

functions.php

add_action( 'wp_ajax_nopriv_players', 'players' ); add_action( 'wp_ajax_players', 'players' ); function players() {      $  position = $  _POST['position'];     $  ranking = $  _POST['ranking'];     $  search = $  _POST['search'];     $  state = $  _POST['state'];      $  args = array(         'post_type'  => 'players_lpm',         'posts_per_page' => -1,         's' => $  search,         'tax_query' => array(             array(                 'taxonomy' => 'ranking',                 'field'    => 'slug',                 'terms'    => $  ranking             )         ),         'meta_query' => array(         array( 'key' => 'position', 'value' => $  position, 'compare' => 'LIKE' ),         array( 'key' => 'state', 'value' => $  state, 'compare' => 'LIKE' ),         'relation' => 'AND'         )     );      $  the_query = new WP_Query( $  args ); $  i2 = '1';     echo '<ul>';     while ($  the_query -> have_posts()) : $  the_query -> the_post();     echo '<li><a href="'.get_permalink().'"><span>'.$  i2.'</span>'.get_the_title().'</a></li>';     $  i2++; endwhile; wp_reset_postdata();     echo '</ul>';     die(); }  add_action( 'wp_ajax_nopriv_playersmain', 'playersmain' ); add_action( 'wp_ajax_playersmain', 'playersmain' ); function playersmain() {      $  position = $  _POST['position'];     $  ranking = $  _POST['ranking'];     $  search = $  _POST['search'];     $  state = $  _POST['state'];      $  args = array(         'post_type'  => 'players_lpm',         'posts_per_page' => -1,         's' => $  search,         'tax_query' => array(             array(                 'taxonomy' => 'ranking',                 'field'    => 'slug',                 'terms'    => $  ranking             )         ),         'meta_query' => array(             array( 'key' => 'position', 'value' => $  position, 'compare' => 'LIKE' ),             array( 'key' => 'state', 'value' => $  state, 'compare' => 'LIKE' ),             'relation' => 'AND'         )     );      $  the_query = new WP_Query( $  args ); $  i2 = '1';     while ($  the_query -> have_posts()) : $  the_query -> the_post();     echo '<li><a href="'.get_permalink().'"><span>'.$  i2.'</span>'.get_the_title().'</a></li>';     $  i2++; endwhile; wp_reset_postdata();     die(); } 

The site is https://probeis.mx and the search box can be seen in the following image: enter image description here

PC boots STRAIGHT to windows without giving choice for Ubuntu

I installed Ubuntu from USB Drive yesterday, and its been since then i’m searching for solutions. What I tried so far :

-Check BIOS for fast boot (was disabled)

-Check Windows boot (UEFI)

-Check priorities on BIOS (Windows was always on top, no Ubuntu option)

-Execute commands to update grub (says works but problem keeps happening)

Note : I have installed Ubuntu on sda7 (the / root), swap on sda8 and boot on sda9 / Also boot repair says it needs to be on EMI (error)

Thanks for your attention !

sudo apt-get update giving errors

Whenever I try to update using sudo-apt update I get the following errors

W: The repository 'http://ppa.launchpad.net/tualatrix/personal/ubuntu xenial Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: http://archive.canonical.com/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1) E: Failed to fetch http://ppa.launchpad.net/tualatrix/personal/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. 

Please help resolving this issue.

SPService GetListItems with CAML : can’t get the example to work with status giving error

I am new to SPServices and trying start with example GetListItems. Below is my code

$  (document).ready(function() {      GetTasks(); });  function GetTasks() {      var method = "GetListItems";     var list = "Tasks";     var fieldsToRead ="<ViewFields><FieldRef Name='Title'/></ViewFields>";     var query ="<Query><Where><Eq><FieldRef Name='ID'/><Value Type='Counter'>1</Value></Eq></Where></Query>";             $  ().SPServices({             operation: method,             async: false,               listName: list,             CAMLViewFields: fieldsToRead,                completefunc: function (xData, Status) {                      debugger;                     $  (xData.responseXML).find("z\:row").each(function() {                          alert("hello");                         var name = ($  (this).attr("ows_Title"));                     });                                 }     }); } 

The debugger in the completefunc is hit but when I check the status of function(xData, status) the status returns “error”.And after this alert("hello") does not hit.

What is that I am doing wrong in this ?

What effect does giving the Rage action additional traits (e.g. “arcane and evocation”) confer?

Several of the Barbarian Instinct Abilities modify the traits of the Rage action.

For example:

Draconic Rage (Instinct Ability)

While raging, you can increase the additional damage from Rage from 2 to 4 and change its damage type to match that of your dragon’s breath weapon instead of the damage type for your weapon or unarmed attack. If you do this, your Rage action gains the arcane and evocation traits, as well as the trait matching the damage type.

As well, the arcane trait only seems to indicate the effect is magical in nature:

arcane (trait) This magic comes from the arcane tradition, which is built on logic and rationality. Anything with this trait is magical. 299

What mechanics in the game (if any) interact with this modification of the Rage action?

Rage isn’t a spell, so it can’t be dispelled. Antimagic field doesn’t seem to interact with abilities such as this. Rage mainly just modifies weapon damage, so its not like resistance is interacting with the traits of Rage, but rather its modified damage type. Other class Feats tied to the instinct that might have saves (e.g. the dragon’s breath) have the traits, and it makes sense in that context.

How would giving Hydra a Breath Weapon affect game balance and CR?

I wanted to spice up a fight I’m planning for my party by giving a Hydra a Breath Weapon, I’m flexible on the specifics but the change would effectively be described as such

Actions

Multiattack. The hydra makes as many bite or breath attacks as it has heads, but only one attack per head.

Frost Breath (Recharge 5–6). The hydra exhales an icy blast in a 30-foot cone. Each creature in that area must make a DC 12 Constitution saving throw, taking 12 (4d6) cold damage on a failed save, or half as much damage on a successful one.

I took the breath weapon statistics from the Young White Dragon, but I significantly lowered the DC and damage dice to accommodate for the Hydra being able to use it multiple times during a turn.

I am open to suggestions to make this more balanced, but as is, how would this modification effect the Hydra’s CR?

Is giving the user imprecise information good UX?

I noticed that YouTube now doesn’t show the exact number of views anymore, when the video has more than 1.000 views.

But instead of showing something abbreviated like 203k views, they show 203.000 views. Clearly rounded and in principle inaccurate.

I asked a similar question about YouTubes decision to not show the actual date of upload or “age” of a video, but rather showing imprecise representations like 1 year ago for a video, that was posted 1 year and 10 months ago: What is the advantage of using imprecise representations of time i. e. 'an hour ago'?

This latest change does not hide more accurate information so much as it pretends it isn’t available.

Is there any advantage to this, with reference to user experience or site usability? I personally really dislike this choice, because, while pretty much useless information in this example, it feels like I get a curated version of reality.

Cmake giving error “compute_20”, even though the architecture is explicitly unstated in the make file

I have the same error as the person in this question, however, when I tried the solution (Just delete the target for compute_20), I’m still getting the error, even after cleaning the project.

To be specific: I’m trying to install caffe by following these instructions, step by step. Even more specifically, here is my steps.

I run sudo cmake .., and I get the following information:

CMake Warning (dev) at cmake/Misc.cmake:32 (set):   implicitly converting 'BOOLEAN' to 'STRING' type. Call Stack (most recent call first):   CMakeLists.txt:24 (include) This warning is for project developers.  Use -Wno-dev to suppress it.  -- Found Boost: /usr/include (found suitable version "1.65.1", minimum required is "1.46") found components:  system thread filesystem chrono date_time atomic  -- Found gflags  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so) -- Found glog    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so) -- Found PROTOBUF Compiler: /usr/bin/protoc -- HDF5: Using hdf5 compiler wrapper to determine C configuration -- HDF5: Using hdf5 compiler wrapper to determine CXX configuration -- Found lmdb    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so) -- Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so) -- Found Snappy  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so) -- CUDA detected: 10.1 -- Automatic GPU detection failed. Building for all known architectures. -- Added CUDA NVCC flags for: sm_20 sm_21 sm_30 sm_35 sm_50 -- OpenCV found (/usr/share/OpenCV) -- Found OpenBLAS libraries: /usr/lib/x86_64-linux-gnu/libopenblas.so -- Found OpenBLAS include: /usr/include/x86_64-linux-gnu -- NumPy ver. 1.11.0 found (include: /usr/local/lib/python2.7/dist-packages/numpy/core/include) -- Found Boost: /usr/include (found suitable version "1.65.1", minimum required is "1.46") found components:  python  -- Found NCCL (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libnccl.so) -- Detected Doxygen OUTPUT_DIRECTORY: ./doxygen/ --  -- ******************* Caffe Configuration Summary ******************* -- General: --   Version           :   0.15.14 --   Git               :   v0.15.14-16-g4b8d54d8-dirty --   System            :   Linux --   C++ compiler      :   /usr/bin/c++ --   Release CXX flags :   -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized --   Debug CXX flags   :   -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized --   Build type        :   Release --  --   BUILD_SHARED_LIBS :   ON --   BUILD_python      :   ON --   BUILD_matlab      :   OFF --   BUILD_docs        :   ON --   CPU_ONLY          :   OFF --   USE_OPENCV        :   ON --   USE_LEVELDB       :   ON --   USE_LMDB          :   ON --   ALLOW_LMDB_NOLOCK :   OFF --  -- Dependencies: --   BLAS              :   Yes (open) --   Boost             :   Yes (ver. 1.65) --   glog              :   Yes --   gflags            :   Yes --   protobuf          :   Yes (ver. 3.0.0) --   lmdb              :   Yes (ver. 0.9.21) --   LevelDB           :   Yes (ver. 1.20) --   Snappy            :   Yes (ver. ..) --   OpenCV            :   Yes (ver. 3.2.0) --   CUDA              :   Yes (ver. 10.1) --  -- NVIDIA CUDA: --   Target GPU(s)     :   Auto --   GPU arch(s)       :   sm_20 sm_21 sm_30 sm_35 sm_50 --   cuDNN             :   Not found --   NCCL              :   Yes --  -- Python: --   Interpreter       :   /usr/bin/python2.7 (ver. 2.7.15) --   Libraries         :   /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.15+) --   NumPy             :   /usr/local/lib/python2.7/dist-packages/numpy/core/include (ver 1.11.0) --  -- Documentaion: --   Doxygen           :   /usr/bin/doxygen (1.8.13) --   config_file       :   /home/par/caffe/.Doxyfile --  -- Install: --   Install path      :   /home/par/caffe/build/install --  -- Configuring done -- Generating done -- Build files have been written to: /home/par/caffe/build 

NOTE: The configuration says specifically that it’s compiling to sm_20 compute version, which is not what I want to do. I searched all files that I have for this “sm_20” token, and the results are all in /caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/, meaning that they are not contained within a make file.

I searched the same files for a compute_20 mention, and once again, the only mentions are in the directory above. I remove them, keeping syntax in check, and then run make -j"$ (nproc)" to which I get the following error:

[  6%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_crop_layer.cu.o nvcc fatal   : Unsupported gpu architecture 'compute_20' CMake Error at cuda_compile_1_generated_math_functions.cu.o.Release.cmake:219 (message):   Error generating   /home/par/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/util/./cuda_compile_1_generated_math_functions.cu.o 

What is the cause of this, if compute_20 nor sm_20 are mentioned in any makefile?