text:
Q: Como obtener el valor id desde un table generado dínamicamente en js Hola estoy intentando obtener el valor ID de mi table generada dinámicamente, y enviarlo a otro archivo js para eliminar o actualizar dicho dato, la idea es que al seleccionar el botón eliminar llame a la función donde se obtiene el ID y el id del botón, y ya en este proceso eliminar o actualizar por medio de axios a un api.
Este es mi HTML.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">

    <title>Listar Platillos</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Georama:wght@100;400&display=swap" rel="stylesheet">

      <form>

Lista Platillos

        Agregar

                    ID
                    Código
                    Nombre
                    Ingrediente
                    Costo
                    Editar
                    Borrar

        <button id="enviar" type="button" value="Aceptar">Aceptar</button>
        <button id="volver" type="button" value="Volver">Volver</button>
      </form>

aquí es donde se genera la tabla dinámica y se manda a imprimir en el HTML lista-platos-controlador.js
'use strict';
const tbody = document.querySelector('#tbl-platos tbody');
let mostrar_datos = async() => {
    let platos = await listar_platos();
    tbody.innerHTML = '';
    for (let i = 0; i < platos.length; i++) {
        let fila = tbody.insertRow();
        fila.insertCell().innerHTML = platos[i]['_id'];
        fila.insertCell().innerHTML = platos[i]['codigo'];
        fila.insertCell().innerHTML = platos[i]['nombre'];
        fila.insertCell().innerHTML = platos[i]['ingrediente'];
        fila.insertCell().innerHTML = platos[i]['precio'];
        fila.insertCell().innerHTML = '<button id="btnEditar">Editar</button>';
        fila.insertCell().innerHTML = '<button type="button" id="btnBorrar">Borrar</button>';
    }
};
mostrar_datos();

este sería el archivo eliminar-platillo.js donde se supone que voy a obtener los datos y poder envíarlo a axios, realizar mis validaciones necesarias.
'user strict';

    // const BotonRegistrar = document.querySelector('#btnBorrar'); Aquí me funciona cuando el botón es creado directamente en html, por ejemplo en agregar me funciona bien y obtengo el id y puedo envíar a guardar normal, pero en table no funciona.

        const inputId = document.querySelector('#_id');

        const BotonBorrar = $(this).closest('table').attr('#btnBorrar');

        console.log('Boton borrar: ' + BotonBorrar);

        const validar = () => {

            Swal.fire({
                title: 'Desea eliminar este plato?',
                showDenyButton: true,
                showCancelButton: true,
                confirmButtonText: 'Borrar',
                denyButtonText: `No Borrar`,
              }).then((result) => {
                /* Read more about isConfirmed, isDenied below */
                if (result.isConfirmed) {
                  let platillo = {
                    _id: inputId.value
                };

                eliminarDatos(platillo, '/eliminar-plato');
                  Swal.fire('Borrado!', '', 'success')

                } else if (result.isDenied) {
                  Swal.fire('No borrado', '', 'info')
                }
              })

            // let error = false;

            // if(inputCodigo.value == '') {
            //     inputCodigo.classList.add('input-error');
            //     error = true;
            // } else {
            //     inputCodigo.classList.remove('input-error');
            // }

        };

        BotonBorrar.addEventListener('click', validar);

A: yo lo hice asi:
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">

        <title>Listar Platillos</title>
        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

          <form>

Lista Platillos

            Agregar

                        ID
                        Código
                        Nombre
                        Ingrediente
                        Costo
                        Editar
                        Borrar

            <button id="enviar" type="button" value="Aceptar">Aceptar</button>
            <button id="volver" type="button" value="Volver">Volver</button>
          </form>

JS  eliminar-plato.js:
function fnEditar(rel){
   alert("editando:"+rel);
}

function fnEliminar(rel){
   alert("eliminando:"+rel);
}

JS lista-platos-controlador.js:
const tbody = document.querySelector('#tbl-platos tbody');
        let mostrar_datos = async () => {
            let platos = [
                {
                    "_id": 1,
                    "codigo": "Codigo 1",
                    "nombre": "Nombre 1",
                    "ingrediente": "Ingrediente 1",
                    "precio": 1
                },
                {
                    "_id": 2,
                    "codigo": "Codigo 2",
                    "nombre": "Nombre 2",
                    "ingrediente": "Ingrediente 2",
                    "precio": 2
                }
            ];
            tbody.innerHTML = '';
            for (let i = 0; i < platos.length; i++) {
                let fila = tbody.insertRow();
                fila.insertCell().innerHTML = platos[i]['_id'];
                fila.insertCell().innerHTML = platos[i]['codigo'];
                fila.insertCell().innerHTML = platos[i]['nombre'];
                fila.insertCell().innerHTML = platos[i]['ingrediente'];
                fila.insertCell().innerHTML = platos[i]['precio'];
                fila.insertCell().innerHTML = "Editar";
                fila.insertCell().innerHTML = "Borrar";
            }
        };
        mostrar_datos();

me vi forzado a probar con datos en duro antes de pasarte la funcionalidad, espero te sirva, saludos.


text:
Posts Tagged 'spam'
China Blocked 28,000 Mobile Malware Apps In 2014
The Ministry of Industry and Information Technology of China tracked over 5.4 million mobile phone apps from 135 Chinese app stores in 2014 and discovered 28,000 apps were malware. According to the ministry's website, those 28,000 malware apps were banned and removed from the app stores, and 155 other "bad software" were exposed. MIIT said […]
China Mobile Doubles Down Against Porn And Mobile Spam
China Mobile is focusing on better customer support as it integrates its disparate services into an online platform at two provincial call centers. A representative from China Mobile confirmed that the company will establish a business support organization targeting customer services. The online service company will integrate China Mobile's 10086 and 12580 hotline businesses, and […]
Beijing's Public Security Bureau Forms Internet Security Alliance
The network security safeguard team of the Beijing Municipal Public Security Bureau and the Chinese Internet security company Qihoo 360 jointly announced they will establish a network security anti-fraud initiative. The initiative's official website at Fanzhapian.360.cn has officially started operation. Meanwhile, Ye Manqing, director of the network security safeguard team, announced that with the approval […]
Hu Xiaoming, Alibaba's vice president for small- and micro-financial group and chief risk officer, announced in Beijing that the company will invest CNY40 million to establish a security fund. The security fund will be used to fight Internet phishing, trojans, money laundering, malicious attacks, and to protect user information. The security fund will cooperate with […]
Baidu Boasts Over 10 Million Antivirus Software Users
Chinese search engine provider Baidu Inc. formally launched its system tool software named Baidu Guard 1.0 and the company also announced that its anti-virus software has gained over ten million users. On April 18, 2013, Baidu started the public beta test of its anti-virus software in China and the product was officially launched in June. […]
Chinese Agency Will Blacklist And Police Mobile Apps
If mobile app developers thought getting past Apple's censors and bizarre policies was hard enough, now they have to contend with the Chinese government for vetting of their applications. Wang Minghua, director general of the operations department of the National Computer Network Emergency Response Technical Team Coordination Center of China and secretary general of the […]
China Mobile Builds Largest Internet Information Security Center In Luoyang
Chinese telecom operator China Mobile announced the formal launch of a new Internet information security operating center in Luoyang, provincial capital of Henan. This is reportedly the first operating center targeting mobile Internet information security established by a telecom operator in China. In its initial stage, the operating center will have 500 seats, making it […]
China's Rising Introduces Mobile Security Software Into Japan
Chinese security software provider Rising has started selling its security software for Android smartphones in Japan at the price of JPY2,980, which is about CNY247, and it plans to team with local mobile phone makers for market expansion in the future. According to reports in Chinese local media, the Japanese-language Rising mobile security software is […]
APAC: 4,000 Fake "Taobao" Websites Closed By July 2010
The Anti-Phishing Alliance of China has announced that by the end of July 2010, the alliance had received 19,817 reports related to phishing websites, and e-commerce websites were the most imitated ones. According to APAC, the number of phishing website reports in the first seven months of 2010 was more than double compared with the […]
The End Of Social Networking Sites In China?
A new report issued by a Chinese government-funded research organization states Facebook and Western social networking sites pose spy risks, and these problems should make social media mavens worry about possible clampdowns on social networking sites in China. According to local media, the "Blue Book of New Media" published by the Chinese Academy of Social […]

redpajama_set_name: RedPajamaCommonCrawl


text:
package com.hubspot.baragon.client;

import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.Stage;
import java.util.Collections;
import org.junit.jupiter.api.Test;

public class BaragonServiceClientModuleTest {
  @Inject
  BaragonServiceClient client;

  @Test
  public void testModuleWithHosts() {
    final Injector injector = Guice.createInjector(
      Stage.PRODUCTION,
      new GuiceDisableModule(),
      new BaragonClientModule(Collections.singletonList("http://example.com"))
    );

    injector.injectMembers(this);
  }

  private static class GuiceDisableModule extends AbstractModule {

    @Override
    protected void configure() {
      binder().disableCircularProxies();
      binder().requireExplicitBindings();
    }
  }
}

redpajama_set_name: RedPajamaGithub


text:
The Ambassadors of Harmony
ACAPPELLOOZA FALL
ACAFEST
ACAPPELLOOZA SUMMER
PROJECT HARMONY
RECRUITS CHORUS
AOH BLOG
AOH Foundation
Ambassadors of Harmony Foundation Gala 2017
The Ambassadors of Harmony's first gala benefit on Feb. 10 was the result of many, many years of hopes, dreams--yes, a few false starts---and hard work by the gala committee, the Ambassadors and their families. It was an incredible evening of song, inspiration, entertainment and fundraising. The entire event, of course, supports the newly formed Ambassadors of Harmony Foundation, which provides music outreach, education and scholarships to youth in local schools and regional communities.
As the first fundraising event in our chorus' history, we really didn't know what to expect. After accepting the challenge from the Barbershop Harmony Society and our own leaders to become more of a community arts-minded organization, our goals were clear: First, fill the room with patrons, community leaders, music lovers and people who've never even heard of us! Second, to provide a music-filled evening featuring youth groups, the Ambassadors, Vocal Spectrum, The Recruits Chorus and a moving video presentation in hopes of delivering our message. Third, to raise money for our worthy cause. As Dr. Jim Henry stated so eloquently, 'With all the strife and discourse in our world, the mission of providing music education to our youth and communities has never been as important as it is right now.'
Of all the incredible moments that night, none surpassed the live auction portion of the program. What seemed like a 'tidal wave' of generosity was more than we ever hoped to achieve in one event. At the paddle auction part of the event, Jim asked if there were any who were willing to join with us in supporting youth, and paddle after paddle was raised to provide full or partial scholarships. By the time it was all over we were left with the ability to provide nearly 65 full youth scholarships to Acappellooza Summer, give support to Acappellooza Fall, AcaFest, Project Harmony and of course, The Recruits Chorus. It was simply overwhelming. The total net proceeds including scholarship donations from our first event came to $36,734!
Thanks go out to all who attended and contributed in so many ways. Thank you to our members, families, volunteers, committees, leadership and, of course, our guests who gave so much. It will be a night to remember!
Editors note: Planning for the second annual Ambassadors of Harmony Foundation Gala has begun!! Please check our calendar of events soon for more details.
Images Courtesy of Elizabeth Merkel/Blacktie
Then Sang My Soul...
The Ambassadors of Harmony chorus opens applications for scholarship
AOH Is a proud member of the BHS
Ambassadors of Harmony, P.O. Box 131, St. Charles, Missouri 63302, USA636-395-0150ambofharmony@gmail.com
This site © 2016 The Ambassadors of Harmony


← Early Bird Retreat Registration ends tomorrow!
This past Sunday, Chanting & Chocolate again drew in a crowd of over 50 people! Together, we basked in sacred melody and movement, enjoying an uplifting evening of Jewish chant accompanied by Sufi Whirling. Don't miss our next Chanting & Chocolate on May 28, 7:30pm.


text:
About ALADYR
Aladyr Members
Young Leaders Program
Santa Barbara, Curaçao Desalination Plant: Six Years of Operation of LG Chem Thin Film Nanocomposite (TFN) SWRO Membrane
28 February, 2019 blog
PRENSA LG CHEM. The Santa Barbara desalination plant located in the south-eastern part of Curaçao provides drinking water to about half of the population of this Caribbean island. With an average precipitation of approximately 500 mm, rainwater is the only natural source of freshwater in the island. Government efforts to address the water shortage problem date back to the 20s of the last century. Initially based on evaporation, the seawater desalination evolved into the reverse osmosis technology in the 90s. After several years of experimenting with RO, Aqualectra, the municipal supplier of potable water and electricity for Curaçao, took the decision to move forward with this technology and in 2003 started a project to build a SWRO desalination plant.
The original plant was built and commissioned by Degremont (nowadays Suez) in 2005 and produced 18,000 m3/day of drinking water. Originally designed for an open intake, the plant was later converted to an infiltration gallery intake with the silt density index (SDI) less than 1.5. It was one of the first full-scale plants applying stringent regulations on TDS (<150 mg/l after remineralization) and boron maximal concentration not exceeding 0.5 mg/l. To achieve those targets, the plant had three double-pass trains, with the first-pass trains consisted of 92 vessels each and the second-pass trains of 27 vessels each (2:1 staged).
It didn't take a long time to realize that the plant expansion was needed because of the increasing demand for potable water. In 2012 the plant went through the expansion by addition of the fourth single-pass train to increase the water production to 25,100 m3/day. This became possible because of the revised water regulations, particularly with respect to the boron concentration increase from 0.5 mg/l to 1.0 mg/l. The permeate production of the additional rack bypassed the existing second pass maintaining the product quality within the specification after blending.
During the expansion, Aqualectra and Degremont looked to LG Chem to supply Thin Film Nanocomposite (TFN) seawater RO membranes. A hybrid membrane design utilizing TFN SWRO membranes was implemented in the expansion train. The hybrid configuration is a combination of two or more different membrane models within the same pressure vessel. The typical configuration consists of placing low flux elements in the lead positions, feed end, of the pressure vessel and higher flux elements in the rear, tail end. This design is used to balance out the flux and recovery within a pressure vessel and eventually increase the production capacity and lower the feed pressure and energy consumption.
The membrane design of the expansion first-pass train consists of a hybrid of two low-flux elements, LG SW 400 SR and five higher-flux elements, LG SW 400 R. By using the LG Chem TFN membranes, the production capacity was achieved with just 65 pressure vessels, compared to the 92 vessels required by a conventional first-pass design. This allowed the plant to operate the new train at a significantly higher average flux and the same feed pressure to reduce CAPEX by decreasing the number of pressure vessels in the expansion train compared to the existing first-pass trains. Moreover, the new design resulted in a better product quality than the first-pass product from the existing trains. Based on these results, the membranes in the remaining first-pass trains were later replaced with the LG Chem TFN membranes of the similar design reducing the number of pressure vessels of the first pass from 95 to 72 per train and converting the plant into the full two-pass production.
Today the plant produces the total of 24,000 m3/day of water of the highest quality. The LG TFN membranes are installed in all four first-pass trains. Figure 1 shows the normalized performance of the RO trains for the past six years. The results demonstrate that the permeability of the nanocomposite elements as well as their salt passage remain stable over six years of operation. The normalized differential pressure remains stable too which implies low fouling of the elements.
Figure 1. Normalized performance of LG TFN membranes
This case shows the benefits of using LG Chem TFN membranes in a hybrid configuration to significantly increase the system flux and lower capital without compromising the product quality and the performance stability over time.
Write us!


The most convenient location to the Ha-Ha nexus in San Diego — meaning Marine Exchange, Downwind Marine, West Marine, the Brigantine, Fiddler's Green, the fuel dock, Pt.
©Latitude 38 Media, LLC Canadian singlehander Paul Lim reportedly set sail from Hilo, HI, on August 1, intending to sail north above the Pacific High, then east to Victoria, BC, aboard his Spencer 35 sloop Watercolour — a passage of roughly 2,500 miles. He is now long overdue.
Fall brings with it a flurry of races for women. Some are women-only, others are for women skippers with coed crew, and one just requires that half the people onboard be women.