Fill DataTable jQuery with a JSON ASP.NET MVC C #

It turns out that I am recovering a JSON from the database using ajax:

            url: "GetDatosReverse",
            method: "GET",
            async: false,
            dataType: "json",
            success: function (respuesta) {

I receive this:

enter image description here

which would be this data:

enter image description here

After I receive this data, I am trying to make this table (as in the following image) using the data with which I want to show material above and the rest of the data below (as in the example in this DataTable Child Rows):

enter image description here

That's why when I receive the data I am trying to do the same like this:

            url: "GetDatosReverse",
            method: "GET",
            async: false,
            dataType: "json",
            success: function (respuesta) {

                    "columns": (
                            "className": 'details-control',
                            "orderable": false,
                            "data": null,
                            "defaultContent": ''
                        { "data": respuesta(0)("material") },
                        { "data": respuesta(0)("material") },
                        { "data": respuesta(0)("material") },
                        { "data": respuesta(0)("material") }
                    "order": ((1, 'asc'))


    $('.tablaReversible tbody').on('click', 'td.details-control', function () {
        var tr = $(this).closest('tr');
        var row = table.row(tr);

        if (row.child.isShown()) {
            // This row is already open - close it
        else {
            // Open this row

    function format(d) {
        // `d` is the original data object for the row
        return '' +
            '' +
            '' +
            '' +
            '' +
            '' +
            '' +
            '' +
            '' +
            '' +
            '' +
            '' +
            '' +
Full name:' + "sss" + '
Extension number:' + "sss" + '
Extra info:And any further details here (images etc)...
'; }

The table at the end is blank, what am I doing wrong in this code? Thank you

python: can't find a way to fill a dictionary from an xml file

I am new to Python, I am working on 2.7 and I try to analyze an xml file and fill in a dictionary and keep track of how many times the variable name is used (the name will change, hence the dictionary), you also need to skip the number and the colon in the name of the variable. I know I need to extract it as an element to be able to manipulate it, but I'm not sure how to do it. please help. This is what I have traced:

import xml.etree.ElementTree as ET

tree = ET.parse(sample.xml)
root = tree.getroot()

d = {}
for iec-source in root:
    variable_code = variable.find('variable-name')
    if variable_code.text == #varibale is in dictionary add count
        else #add to dictionary and add count

A section of the xml code:













html5 – Top and bottom fill fill

If I apply top fill of 30px (to any element), the top edge of the elements remains in the same position and the height of the box increases by 30px (as the bottom edge moves down by 30px),

When filling is applied at the bottom, the bottom edge moves down 30px. In both cases, the bottom edge moves down and the top edge stays where it was before applying any fill. Is this correct?? Any increase in size is relative to the top.

The padded top should move the top edge up
However, the upper edge does not move and the lower edge falls,

What is the reason behind this?

I couldn't find the answer anywhere

For fund filling, the behavior is as expected and the fund moves down


frontend development: how do you fill an application with content when using a javascript front-end framework?

For the past month or so I have been struggling with this question. One of the following logical steps in my front-end development studies is to learn how to use a JavaScript framework such as Angular or Vue.js. However, I feel blocked by this problem that comes to mind.

How do you populate a website with content (say a database) with a framework like Vue or Angular?

According to my current research, I have concluded that the only way to do this would be by loading the page and then using JavaScript from the client side to request the relevant data after the initial load.

This, to me, seems very inefficient.

Is there any way to render the page beforehand and at the same time maintain all the features of the frontend frame?

optimization: efficiently fill a search table for a function in a range of arguments in Python

I am minimizing a scalar function that takes an n-dimensional vector input and generates the scalar value, the n-dim (Jacobian) vector and an nxn (Hessian) matrix. Given a range of elements in my input vector, I am looking for an efficient way to previously calculate the outputs in an efficient access format.

I've been thinking about a numpy.interpn-based scheme with a grid of regularly spaced inputs, but this only allows linear interpolation of intermediate values ​​and requires regular sampling.

I hope there is a tool available that does this with a smarter method. Perhaps with the automatic refinement of the sampled inputs or a more sophisticated interpolation scheme?

Technically, the scalar output contains the Jacobian and the Hessian, but I need those with decent fidelity, so I would need a higher order representation of the scalar function (with additional sampling frequency) or I can interpolate directly into the Jacobian and the Hessian (since they are issued by the minimizer anyway)

Thank you

amazon web services – AWS CloudWatch alarm does not fill data points – Insufficient state always

I am setting the CloudWatch alarm from the custom metric. The custom metric for disk space is set and I can see that every 5 minutes I can see the data. But when I set the alarm, the data points are not displayed. For example:

  1. The image below shows the initial statistics to create an alarm.
    enter the description of the image here

  2. The image below is after changing the name (or anything else).
    enter the description of the image here

Note that after editing, data points are not visible. For this reason alone, the alarm is always in insufficient data status. Can anyone help me here? Any guidance would be really appreciated.

Fill an empty array with data from a table

I am drawing a type table:

  Initial. Final. Changes
         3      3   17103
         3     21     299
         3     24     300
         3     25     298
        21      3     598
        21     21   34206
        21     24     598
        21     25     598
        24      3     149
        24     21     149
        24     24    8553
        24     25     149
        25      3     448
        25     21     448
        25     24     447
        25     25   25657

I am creating an empty 4×4 matrix to fill with these values, from this previous table. The code is this:

tabela1 <-read.csv("table.csv", sep=",")
mat <- matrix(0,4,4)
tabela$Initial. <- as.numeric(as.factor(tabela$Initial.))
tabela$Final. <- as.numeric(as.factor(tabela$Final.))
mat(tabela$Initial,tabela$Final) <- tabela$Changes

However, the matrix is ​​filled as follows:

      (,1)  (,2)  (,3)  (,4)
(1,)   298   298   298   298
(2,)   598   598   598   598
(3,)   149   149   149   149
(4,) 25657 25657 25657 25657

You are putting only the 4, 8, 12 and 16 rows of the table, replicating these values ​​for each row of the matrix. I can not find the error. Can anyone tell me or have any other suggestions?

postgresql: fill in a table with the result of consulting other tables

Hello, I am having this problem to fill my table called Formats

-- Drop table

-- DROP TABLE public."Formats";

CREATE TABLE public."Formats" (
    id varchar(255) NOT NULL,
    "name" varchar(255) NOT NULL,
    CONSTRAINT "Formats_pkey" PRIMARY KEY (id)

I have this other table called am01 of which I need to concatenate 2 columns (am01_artgrp02, am01_artgrp03) to create the format identification

CREATE TABLE db2.am01 (
    am01_artnum varchar null,
    am01_sprcod varchar NULL,
    am01_artnam varchar NULL,
    am01_artshonam varchar NULL,
    am01_artgrp01 varchar NULL,
    am01_artgrp02 varchar NULL,
    am01_artgrp03 varchar NULL

and to I need to find and concatenate the result in another table xi01

CREATE TABLE db2.xi01 (
    xi01_recsta varchar NULL,
    xi01_recid varchar NULL,
    xi01_mainkey varchar NULL,
    xi01_subkey varchar NULL,
    xi01_datafield varchar NULL

so I have these 2 independent queries for the xi01 table:

select substring(x.xi01_datafield, 1, 30) from db2.xi01 x
left join db2.am01 a on x.xi01_subkey = a.am01_artgrp02
where x.xi01_mainkey = 'TAMANO';

this result_query1 It's something like:


Results SIZE

select substring(x.xi01_datafield, 1, 30) from db2.xi01 x
left join db2.am01 a on x.xi01_subkey = a.am01_artgrp03
where x.xi01_mainkey = 'EMPAQU';

and that result_query2 It's something like:

REF PET                       
ONE WAY                       

EMPAQU Results

so basically what I want is to fill Formats I like this:

id = concat(am01_artgrp02, am01_artgrp03)
name = concat(result_query1, result_quer2)

for example:

id = '8003'
name = '120VIDRIO'

the problem is that I'm not sure how to insert each result of both am01query and the xi01 inquiries about Formats table, table Formats It is empty and I need this (stored procedure?) to fill it and then use it in other things. How can I do this? Thanks for any help you can provide.
I am using postgresql v11

game maker – Fill with transparency in the built-in Sprite editor

You can use the color removal tool. It works just like the fill tool, but removes the color and replaces it with transparency. It doesn't work perfectly, but it should do the job. Note that when using it, remove all that color in the sprite.

python: fill a column with its header value

How could you create a new column D and fill it with its respective header value (that is, not set it only as D, but any value that is passed as a column header)

import pandas as pd

df = pd.DataFrame ({& # 39; B & # 39 ;: (1, 2, 3), & # 39; C & # 39 ;: (4, 5, 6)})

B   C   D

0 1 4 D
1 2 5 D
2 3 6 D