formal languages ​​- Show that $ L: = {(a ^ {k} b) ^ {i} | i, k epsilon mathbb {N} _ {+} } $ is context sensitive. (With contextual grammar / non-contractual)

I am studying for a next exam and this is an old exam question from two years ago (all exams were made available through our speaker):

CA watch $ L: = {(a ^ {k} b) ^ {i} | i, k epsilon mathbb {N} _ {+} } $ is sensitive to the context.

I could easily build an LBA for this language.
But as the notation / construction of the LBAs was not really explained, I should define it in the exam.

So I suppose this task had to be accomplished by building a contextual grammar.

NOTE: In our presentation, the definition of a contextual grammar was in fact the definition of a non-contractual grammar.
So any rule like that x -> y is allowed if | x | <= | y |

So this is allowed:

aAb -> bXaa

My best idea is like this:

S  -> AB
B  -> bB | b
A  -> CA | C
Cb -> abC
Ca -> aC

to generate aaabaaabaaab I do that:

S
AB
AbB
AbbB
Abbb
CAbbb
CCAbbb
CCCbbb
(let all C-Variables run through the word and leave an 'a' before every 'b')
CCabCbb
CCababCb
CCabababC
...
aaabaaabaaabCCC

But I can not do away with all the variables -Variables.

javascript – The graphic does not show up when using View-chart js in SharePoint

I have a SharePoint list and I try to view the data using Vue-chartjs. When I do it, all I get is a canvas with a grid and not a graphic being rendered. Ideas? Any help would be very appreciated. Below my code:
HTML

    
      
        
          
            
              
            
          
          
            
              
            
          
        
      
    

JS (linear graphic component)

Vue.component('my-line-chart', {
    extends: VueChartJs.Line,
    props: ('lineData', 'chartOptions'),
    mounted: function () {
        this.renderChart(this.lineData, this.chartOptions);
    }
})

JS (bar graph component)

Vue.component('my-bar-chart', {
    extends: VueChartJs.Bar,
    props: ('barData', 'chartOptions'),
    mounted: function () {
        this.renderChart(this.barData, this.chartOptions);
    }
})

JS (View instance)

new Vue({
  el: "#app",
  vuetify: new Vuetify(),
  data: {
    ChartConfig: {
      labels: (),
      datasets: (
        {
          data: (),
          backgroundColor: '#3498db',
          borderColor: 'rgba(136,136,136,0.5)',
          label: "2013"
        }
      )
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      title: {
        display: true,
        text: 'Chart.js Line Chart'
      },
      tooltips: {
        mode: 'index',
        intersect: false,
      },
      hover: {
        mode: 'nearest',
        intersect: true
      },
      scales: {
        xAxes: ({
          display: true,
          categoryPercentage: 0.5,
          scaleLabel: {
            display: true,
            labelString: 'Month'
          }
        }),
        yAxes: ({
          display: true,
          scaleLabel: {
            display: true,
            labelString: 'Value'
          }
        })
      }
    },
    iceCream: (),
    drawer: false
  },
  created: function () {
    this.getListData();
  },
  methods: {
    getListData: function () {
      var endPointUrl = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbyTitle('popular ice cream')/items";

      this.status = "getting data...";
      var that = this;
      axios.get(endPointUrl).then(function (response) {
        that.getChartData(response.data.value);
      })
        .catch(function (error) {
          console.log(error);
        })
    },
    getChartData: function (chartData) {
      console.log(chartData);
      for (var i = 0; i < chartData.length; i++) {
        this.ChartConfig.labels.push(chartData(i).Flavor)
      }

      for (var i = 0; i < chartData.length; i++) {
        this.ChartConfig.datasets(0).data.push(chartData(i).Vote)
      }
    }
  }
});


linux – Wifite does not show network (or does not work)

I use Kali Nethunter, which is installed from Magisk, but I have a problem with wifite. First, I had the problem of hashcat and other packages (corrected), but after all the work that I got with this screen, everyone can help. (Keep in mind that I am still a beginner but that I have good knowledge, say) ….enter the description of the image here

Show one screen, hide another?

I am a teacher and I like to project the screen of my laptop on the TV of my class via Apple TV. However, there are times when I would like my students to see a screen while I work on a screen different from the one they can not see. I do not have multiple monitors. I know that there is a way to do that, but I can not understand it! Thank you for any help!

–Karen

javascript – Show PopUp in Leaflet with the Leaflet.MarkerCluster.LayerSupport plugin

I use Leaflet to show the data of a GeoJson, I've added the MarkerCluster plugin, until here everything is fine.

The next step is to group the clusters into groups. I'm using the Leaflet.MarkerCluster.LayerSupport plug-in, https://github.com/ghybs/Leaflet.MarkerCluster.LayerSupport.

And that's where the problems come from, I've tried the following, it shows me the groups and the marker on the map with markerCluster, but I do not see the information inside. popUp. The pop-up is empty. Before trying to group the markers, if I have any information in the popUp.

/*
****************************************
Mapa Leaflet
****************************************
*/

// Se crea el mapa
var mymap = L.map('mapid', {
  center: (40.4167,-3.70325),
  zoom:6
});

// llamada a la API de Openstreetmap
var apiOpenstrertmap = {
    url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
    options: {attribution:'© OpenStreetMap contributors'}
  }

// Icono personalizado
var icon = L.divIcon({
  className: 'custom-div-icon',
  html: "
", iconSize: (30, 42), iconAnchor: (15, 42) }); var renderMap = L.tileLayer(apiOpenstrertmap.url,apiOpenstrertmap.options); renderMap.addTo(mymap); /* **************************************** Añade la información al popUp personalizado **************************************** */ function dataPopup(feature,layer){ var outData = (); if (feature.properties){ for(key in feature.properties){ switch (key) { case 'movil': var movil = `

Móvil: ${feature.properties(key)}

`; break; case 'gps': var gps = `Ir` break; } } // Inserta los tags en el orden deseado outData.push(movil, gps) layer.bindPopup(outData.join('')); } } /* **************************************** Carga la información del Geojson, y define MarkerCluster **************************************** */ // Variables para crear los layerGroup var mcgLayerSupportGroup = L.markerClusterGroup.layerSupport(), group1 = L.layerGroup(), group2 = L.layerGroup(), group3 = L.layerGroup(), group4 = L.layerGroup(), control = L.control.layers(null, null, { collapsed: false }), marker; // Agraga los grupos al mapa mcgLayerSupportGroup.addTo(mymap); // Llamada ajax para mostrar los datos del geojson en el mapa var myLoader = document.getElementById('myLoaderContainer'); var xhr = new XMLHttpRequest(); xhr.open('GET', '../data/map/a.geojson'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.responseType = 'json'; xhr.onload = function() { if (xhr.status == 200){ var geojsonAjax = L.geoJSON(xhr.response, { onEachFeature:dataPopup, // Añade el icon personalizado pointToLayer: function (feature, latlng) { marker = L.marker(latlng, {icon:icon}) if (feature.properties.provincia == 'a') { marker.addTo(group1) }else if(feature.properties.provincia == 'b'){ marker.addTo(group3) } else { marker.addTo(group2) } } }); mcgLayerSupportGroup.checkIn((group1, group2, group3)); control.addBaseLayer(group1, 'first quarter'); control.addBaseLayer(group2, 'Second quarter'); control.addBaseLayer(group3, 'Third quarter'); control.addTo(mymap); group1.addTo(mymap); group2.addTo(mymap); group3.addTo(mymap); myLoader.style.display = "none"; }else { alert("Error al cargar el mapa. Por favor inténtelo más tarde.") myLoader.style.display = "none"; } }; xhr.send();

kde – How to get active window control to show settings / menu bar?

I can not find the setting that allows the File menu to display in the active window control when a window is set to full screen.

I already have BorderlessMaximizedWindows=true In my KDE configuration file, I'm now trying to make the File menu appear in the top pane instead of the currently open window. Thank you!

enter the description of the image here

jquery – AutoComplete does not show results

I'm trying to recover data from a MySQL bbdd with a plugin that performs a typeahead / autocomplete on a database.
I have in the file index.php the field to write, the css, the script, … but it does not recover any value.

At the system log level, the request is about what "something" is doing.

Values ​​to retrieve are countries, so when you search for "Spain" for example

MariaDB (countries)> SELECT country FROM countries WHERE country = "Spain";
+---------+
| country |
+---------+
| Spain   |
+---------+

This is the file. index.php:







  
  



Jquery script:


File search.php:

 0)
{
 while($row = mysqli_fetch_assoc($result))
 {
  $data() = $row("country");
 }
 echo json_encode($data);
}

?>

For example, I downloaded the Web:

https://139.162.206.138/bootstrap/autocomplete_v2/

What could happen or what would I miss? thank you!

Nexus 6p – The call history does not show up when extending contact details.

Although all, I am not able to see the call history under the coordinates. It displayed the most recent call history when opening individual contacts. I use Nexus 6P with Andriod 8.2.1 OS. Below is the screen capture of the contact's recent call history (highlighted with a green rectangle).

Assuming I do not have few permissions on the Contacts application, but that I do not know what type of permissions I should grant!

Until now, I have tried to clear the cache of Phone App & Contacts App. Also make sure that the Contact & Phone App has a storage access.

PL. help me here and let me know if you need more information to answer my question.

Ubuntu 18.04 does not show devices on Launcher

The devices are not displayed on Launcher (the left side with icons) and I can not drag them from the desktop.

How to show them in the launcher?

Thank you so much.

seo – The AMP product page does not show up when scanning for some websites, while others are showing?

I did the same research and found similar results. What I noticed was that the AMP sign (the sign of the bolt) was missing from the Visit button of the result of your product. This means that the website has not been optimized for AMP (see attached screenshots).Image 1.Image 2

The design of the AMP must comply with the AMP specifications of the AMP.

If you have both an AMP and non-AMP version of a web page, use non-AMP page to inform Google of AMP versions. Use also refer to the non-canonical version of the page.

Make sure to validate the AMP pages.