Remapping Ctrl+[key] combos to Meta+[key] in LXQT (Lubuntu 19.04)

I use Mac for work, Meta+C/V seems a much saner combination to me than having to use Shift in terminal because of INTC. I’m trying to remap the Ctrl+C/V combos in LXQT to mac-like Windows/Command+C/V, but it doesn’t seem to have any effect. What I have tried so far is adding a new global binding to Shortcut Keys app:

xclip -out -selection primary | xclip -in -selection clipboard 

This command seems to work great in terminal but has no effect in the Shortcuts App, almost as if the app is spawned in a sandbox. The idea behind it is to copy the primary clipboard (auto-populated on text selection) into the more sane/permanent clipboard that works similar to OSX. I’m not attached to the above command, if there is a cleaner way to remap Ctrl keys in LXQT, I’ll do it. In Awesome WM, I simply added them into my rc.lua. I did check ~/.config/openbox/lxqt-rc.xml but don’t see anything relevant there. Also, is it possible to integrate this with qlipper?

Looking for a good color set (background/font) for Xterm, drastically different from “standard” light on dark combos

My task: I need to set up standard colors for Xterms for a large set of users in a company. The requirements are:

  • There are four types of Xterms (Development, Production, External Client, and Multiclient).

  • Production Xterm is green text on black background (think Matrix šŸ™‚

  • External client Xterm was decided to be yellow on darkish blue. It’s easily distinguishable from black/green Production palette, but still dark-background, signifying production context.

  • Multi-client is some weird light-on-dark combination, of no specific significance other than it is different from either production or External client but also light-on-dark.

Challenge: I need to decide on the text and background colors for Development Xterm.

Considerations:

  1. First, it needs to be drastically different from Production and Client ones, strongly preferred to be light background

  2. On the other hand, contradictory, software developers (of which probably 1/3 or even 1/2 Xterm users are), have to spend a LOT of time in Development Xterm; which means that the colors picked must be

    • Easy to read

    • Not cause eyestrain from long staring at

    • Preferably, be at least not heavily widely displeasing (that’s subjective, but it’s generally understood that – for example – green on red is ugly, even leaving aside color blind user issues).

    The problem being, of course, that the best palette choices to satisfy these constraints are dark background with light text, which generally conflict with consideration #1 (not obviously different enough from production type Xterms which all have dark background theme going).

Originally I chose black on light blue, but there were numerous complaint that light blue background (#51 in table below) was too bright and hard on the eyes.

The color choice is a standard 256 color ANSI color set:

enter image description here

Combos dependientes con jQuery, Ajax y PHP

he encontrado un ejercicio en Internet el cual no se porquƩ me arroja estos errores.

introducir la descripciĆ³n de la imagen aquĆ­

 <!DOCTYPE html> <html> <head>     <title></title>      <script src="https://code.jquery.com/jquery-3.2.1.js"></script>     <script language="javascript">         $  (document).ready(function(){             $  ("#marca").on('change', function () {                 $  ("#marca option:selected").each(function () {                     elegido=$  (this).val();                     $  .post("", { elegido: elegido }, function(data){                         $  ("#modelo").html(data);                     });                          });             });         });     </script>  <      /head>      <body>         <form class="row" action="" method="post">             <div class="form-group col-lg-3">                 <label for="marca">Marca</label>                 <select name="marca" id="marca" class="form-control">                     <option value="1">Renault</option>                     <option value="2">Seat</option>                     <option value="3">Peugeot</option>                 </select>             </div>             <div class="form-group col-lg-3">                 <label for="modelo">Modelo</label>                 <select name="modelo" id="modelo" class="form-control">                     <option value="1">4</option>                     <option value="2">5</option>                     <option value="3">7</option>                     <option value="4">21</option>                     <option value="5">Scennic</option>                     <option value="6">Traffic</option>                 </select>             </div>         </form>       <?php     $  html = "";     if ($  _POST["elegido"]==1) {         $  html = '         <option value="1">4</option>         <option value="2">5</option>         <option value="3">7</option>         <option value="4">21</option>         <option value="5">Scennic</option>         <option value="6">Traffic</option>         ';       }      if ($  _POST["elegido"]==2) {         $  html = '         <option value="1">Ibiza</option>         <option value="2">Toledo</option>         <option value="3">Cordoba</option>         <option value="4">Arosa</option>         ';       }      if ($  _POST["elegido"]==3) {         $  html = '         <option value="1">106</option>         <option value="2">206</option>         <option value="3">306</option>         ';       }     echo $  html;      ?>       </body>     </html> 

Las lineas en donde me marca el Undefined index: son estas:

introducir la descripciĆ³n de la imagen aquĆ­

Si me pueden explicar Gracias.

Insertar el valor de dos combos en una tabla BD


Hola Tengo una duda y no logro solucionarla, tengo dos combobox, puedo desplegarlos bien, sinningun problema, el problema esta que al insertarlos en la Bd solo me agrega valores del primer combobox, no se que estoy haciendo mal, quizas algo le falta al javascript para poder retornar el valor al formulario web y asi que pase a traves de post para poder cargar los datos a la base de de datos. Si alguien me pudiera ayudar lo necesito urgente.

Archivo de conexion config.php

<?php $  connection = new mysqli("localhost", "root", "","sind2"); $  mysqli = new mysqli("localhost", "root", "","sind2"); // Selecting Database  session_start();// Starting Session  ?> 

ing_carga.php

<form action="carga.php" method="post" name="combo" id="combo">                           <table>                             <tr>                               Socio    <script language="javascript">          $  (document).ready(function(){           $  ("#listaNombre").change(function () {            var texto=$  ("#listaNombre option:selected").html();              $  ("#listaNombre option:selected").each(function () {                num = $  (this).val();                $  .post("getdatos.php", { num: num }, function(data){                 $  ("#listaidnum").html(data);                 });                         });           })         });    </script>                                 <div><select id="listaNombre" name="Nombre_socio" >                                   <option>Seleccione Socio</option>                                   <?php                                    $  result = mysqli_query($  mysqli, "SELECT Concat(Nombre,' ',Ap_Pat) as Nombre_socio, num  FROM miembros ORDER BY num DESC");                                   while($  row = $  result->fetch_assoc()) {                                    ?>                                    <option value="<?php echo $  row['num']; ?>"><?php echo $  row['Nombre_socio']; ?></option>                                    <?php } ?>                                  </select></div>                                   <div>Id Socio: <select name="num" id="listaidnum"></select></div> </tr> </table> </form> 

getdatos.php //llamada a Javascript

  <?php   require('session.php');   $  num = $  _POST['num'];    $  queryM = "SELECT  num FROM miembros WHERE num = '$  num' ORDER BY num";   $  resultadoM = $  mysqli->query($  queryM);    $  html;    while($  rowM = $  resultadoM->fetch_assoc())   {     $  html.= "<option value='".$  rowM['num']."'>".$  rowM['num']."</option>";   }    echo $  html; ?> 

Carga.php

<?php //including the database connection file include_once("config.php"); include_once("ing_carga.php");  if(isset($  _POST['Submit'])) {     $  Nombre_socio = mysqli_real_escape_string($  mysqli, $  _POST['Nombre_socio']);    $  num =mysqli_real_escape_string($  mysqli, $  _POST['num']);         // checking empty fields   if(empty($  Nombre_socio)  ) {      if(empty($  Nombre_socio)) {       echo "<font color='red'>Nombre esta vacio.</font><br/>";     }        //link to the previous page     echo "<br/><a href='javascript:self.history.back();'>Go Back</a>";   } else {      // if all the fields are filled (not empty)       //insert data to database      $  result = mysqli_query($  mysqli, "INSERT INTO cargas(num, Nombre_socio) VALUES('$  num','$  Nombre_socio')");      //display success message     echo "<font color='green'>Data added successfully.";     echo "<br/><a href='ver_carga.php'>View Result</a>";   } } ?> 

sql

create database sind2;  use sind2; CREATE TABLE miembros (   num int(3) NOT NULL auto_increment,   Nombre varchar(30) NOT NULL,   Ap_Pat varchar(30) NOT NULL,   PRIMARY KEY  (`num`) ); create table cargas(   id_carga int(3) not null auto_increment,   num int(3) NOT NULL,   Nombre_socio (60) not null,  PRIMARY KEY (`id_carga`) );  INSERT INTO miembros (num, Nombre, Ap_Pat) values(1, "Mauricio","Concha"); INSERT INTO miembros (num, Nombre, Ap_Pat) values(2, "Tamara","Martinez"); INSERT INTO miembros (num, Nombre, Ap_Pat) values(3, "Cecilia","Loisa"); INSERT INTO miembros (num, Nombre, Ap_Pat) values(4, "Maria","Delgado");   INSERT INTO cargas (id_carga, Nombre_Socio, num) values(1, "Mauricio concha",1); INSERT INTO cargas (id_carga, Nombre_socio, num) values(2, "Maria Delgado",4);