Append dict to list in Ansible

I’m having a problem when trying to append a dict to a list in Ansible. My code: – name: Initialize list for numbers ansible.builtin.set_fact: numbers: [123, 456, 789] – name: Initialize list of objects ansible.builtin.set_fact: resources: [] – name: Initialize object ansible.builtin.set_fact: resource: {} – name: Creating object for reference ansible.builtin.set_fact: resource: – projectRef: external: … Read more

Failed to connect to elasticsearch localhost

I’m playing around with Elasticsearch_kibana. When I tried to create an index, it raised a timeout error, although I increased request_timeout to 30. Can somebody help me, please? I use elasticsearch-8.11.3 and kibana-8.11.3 on window10. Here my code: import os import sys import pandas as pd from elasticsearch import Elasticsearch def connect_database(): es = None … Read more

Java scripts not working in content page of a master page in ASP.NET

<%@ Page Title=”” Language=”C#” MasterPageFile=”~/Site1.Master” AutoEventWireup=”true” CodeBehind=”WebForm2.aspx.cs” Inherits=”ProductD.WebForm2″ %> <asp:Content ID=”Content1″ ContentPlaceHolderID=”head” runat=”server”> <script src=”https://code.jquery.com/jquery-3.5.1.slim.min.js”></script> <script src=”https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js”></script> <script src=”https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js”></script> </asp:Content> <asp:Content ID=”Content2″ ContentPlaceHolderID=”ContentPlaceHolder1″ runat=”server”> <div class=”container mt-5 product-container”> <h3 class=”mt-4″>About this item</h3> <button class=”btn btn-link” data-toggle=”collapse” data-target=”#featuresCollapse” aria-expanded=”false” aria-controls=”featuresCollapse” runat=”server”> Features </button> <div class=”collapse” id=”featuresCollapse” runat=”server”> <ul class=”feature-list” id=”featuresList” runat=”server”> <asp:Repeater ID=”Repeater1″ runat=”server”> <ItemTemplate> <li><%# … Read more

install EXPORT problem for library with dependencies

I try to build two libraries (say A and B) from one project. I use add_subdirectory cmake command in root cmake file. B depends on A. When I try to add INSTALL (TARGETS B EXPORT B PUBLIC_HEADER DESTINATION “include/B” LIBRARY DESTINATION “lib” ARCHIVE DESTINATION “lib”) INSTALL (EXPORT B DESTINATION “./”) CMake warns me about error … Read more

In Scala 3, should 2 dependent types that depends on 2 equal & singleton objects perceived to be equal? Why or why not?

In the following example (my attempt to mimic section feature of LEAN4 prover), I have declared 2 special axioms that allows 2 objects of type Gen[T] to be perceived equal and can be cast to each other, this means genInt1 = genInt2, and genInt1.type =:= genInt2.type, which can be easily proven: trait Section[Self <: Section[Self]] … Read more

pip2.7 in virtualenv: Python 2.7 reached the end of its life

I created a virtual environment using this command: /usr/bin/python2.7 -m virtualenv venv It mostly works, but using venv/bin/pip2.7 prints the following warning: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in … Read more