Macos: How to identify the selected audio input device from the command line?

I ran this command to display the I / O registration kit and was looking for information to indicate the active microphone input device. But the second microphone shows "active" (when executing the command), but the built-in microphone was selected within the zoom application.

ioreg -p IOUSB -w0
+-o Root  
  +-o AppleUSBXHCI Root Hub Simulation@14000000  
    +-o Apple Optical USB Mouse@14600000  
    +-o FaceTime HD Camera (Built-in)@14400000  
    +-o ASM107x@14300000  
    | +-o PCP-USB@14310000  
    | +-o ASM107x@14320000  
    | | +-o IOUSBHostDevice@14321000  
    | | | +-o USB Keyboard@14321300  
    | | +-o Apple USB Ethernet Adapter@14324000  
    | +-o  CP 1500D@14340000  
    +-o Bluetooth USB Host Controller@14500000  
    +-o USB Optical Mouse@14200000  

Has anyone written a script to make a system call for the active camera?

javascript – Replace selected image in 1 place in the array

I have an array of images.
enter the description of the image here

You want to move the selected image by clicking on the first place in the matrix.
enter the description of the image here

enter the description of the image here

$(document).on('click', '.newProductPic', function () {

$(".newProductPic").removeClass("selectImage");

$(this).addClass("selectImage");

var image = $(".selectImage")(0);
var fReader = new FileReader();

fReader.onloadend = (function (f) {
    return function (e) {
        // Here you can use `e.target.result` or `this.result` and `f.name`.
        var base64ImageString = this.result;
        var imageName = f.name;
        imagesListContent.push({ base64ImageString, imageName });

        addThumbMainImage(base64ImageString, f.name);
        currentMainImage = 'newProductPic' + i + '';
    };
})(image);

fReader.readAsDataURL(image);
var temp = $(".newProductPic")(0);

imagesListContent(0) = imagesListContent(selectMainImageId);

imagesListContent(selectMainImageId) = temp;
});

I am mistaken:
TypeError not captured: could not execute & # 39; readAsDataURL & # 39; in & # 39; FileReader & # 39 ;: parameter 1 is not of the type & # 39; Blob & # 39 ;.
What am I doing wrong and what are the solutions to this problem?

usability: how to resolve the ambiguity of the selected state in a segmented control with only two segments?

I am working on a web application that has two similar data grids on one page. The user should be able to switch between these two data grids within the same page.

I have used segmented buttons to navigate between these two grids. But I feel that this component visually becomes a lever, and the current state of the lever becomes ambiguous.

From now on, I rely solely on the color / tone to show the selected state, but I think it is not clear which state is selected.

Is there a better approach to solve this problem?

Buttons segmented in red circles
enter the description of the image here

How to simply weld several selected parts together in roblox?

I am trying to develop a roblox game, and I have a non-anchored object that is supposed to be held together and consists of many parts. If I select them all, how can I weld them to stay together? Where is the solder all button?

php – How to combine selected queries from the wp_term column?

I am returning attribute values ​​from wp_term and this is one of my queries for an attribute, for example, color. And I have the same queries for other attributes. I'm looking for a way to merge them all in the query, since I couldn't make it work with multiple mysqli functions to generate them. Is there any way to combine these queries:

$sql = "SELECT p.`ID` AS 'Product ID', 
        p.`post_title` AS 'Product Name', 
        t.`term_id` AS 'Attribute Value ID', 
        REPLACE(REPLACE(tt.`taxonomy`, 'pa_', ''), '-', ' ') AS 'Attribute Name', 
        t.`name` AS 'Carat' 
        FROM `wp_posts` AS p 
        INNER JOIN `wp_term_relationships` AS tr ON p.`ID` = tr.`object_id` 
        INNER JOIN `wp_term_taxonomy` AS tt ON tr.`term_taxonomy_id` = tt.`term_id` AND tt.`taxonomy` LIKE 'pa_carat%'
        INNER JOIN `wp_terms` AS t ON tr.`term_taxonomy_id` = t.`term_id` 
        WHERE p.`post_type` = 'product' 
        AND p.`post_status` = 'publish' ORDER BY p.`ID`";


$sql .= "
SELECT p.`ID` AS 'Product ID', 
       p.`post_title` AS 'Product Name', 
       t.`term_id` AS 'Attribute Value ID', 
       REPLACE(REPLACE(tt.`taxonomy`, 'pa_', ''), '-', ' ') AS 'Attribute Name', 
       t.`name` AS 'Color' 
       FROM `wp_posts` AS p 
       INNER JOIN `wp_term_relationships` AS tr ON p.`ID` = tr.`object_id` 
       INNER JOIN `wp_term_taxonomy` AS tt ON tr.`term_taxonomy_id` = tt.`term_id` AND tt.`taxonomy` LIKE 'pa_color%'
       INNER JOIN `wp_terms` AS t ON tr.`term_taxonomy_id` = t.`term_id` 
       WHERE p.`post_type` = 'product' 
       AND p.`post_status` = 'publish' ORDER BY p.`ID`";

How to verify that the cart contains only a selected category of products?

My observer based on cart products, how to verify that the cart contains only a selected category of products?

Jquery shows the selected fields according to the quantity number and adds the selected values ​​to the input field

On an e-commerce homepage of custom coded footwear, I have several carousels and images, one per model. d I would like to show 3 radio buttons below each shoe model with quantity. (1, 2, 3). If 1 is selected, I need to show 3 selection fields for the sizes, if 2 is selected, then only 2 selection sizes should be displayed, above, and if it is 1, only 1 size is selected.

The values ​​selected for the selected sizes must be published in a single comma separated entry field before submitting the form.

How can I do this?

android: capture the text view of the selected RecyclerView item on another screen

I have my search screen. As you type, the search result appears. The result is displayed in a recycler view. My Recyclerview was modeled with some text views and an image. I wanted to touch the Recyclerview element so that the text in the text view was passed to another fragment (screen) that I have. I can even do the calling part of the screen. I just can't rescue the text from the text view on the other screen. I even exemplified the text views of the other screen that is modeled as the recycler.

My adapter class:

public class CursosAdapterImg extends RecyclerView.Adapter {

ListlistaCursos;
private OnNoteListener mOnNoteListener;


public CursosAdapterImg(List listaCursos, Context context,OnNoteListener onNoteListener) {
    this.listaCursos = listaCursos;
    this.mOnNoteListener = onNoteListener;
}

@NonNull
@Override
public CursosHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {

    View vista = LayoutInflater.from(parent.getContext()).inflate(R.layout.lista_cursos_img, parent, false);
    RecyclerView.LayoutParams layoutParams =
            new RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
                    ViewGroup.LayoutParams.WRAP_CONTENT
            );

    vista.setLayoutParams(layoutParams);
    return new CursosHolder(vista, mOnNoteListener);
}

@Override
public void onBindViewHolder(@NonNull CursosHolder holder, int position) {
   // holder.txtCodigo.setText(listaCursos.get(position).getCodigo().toString());



    holder.txtNome.setText(listaCursos.get(position).getNome().toString());
    holder.txtProfessor.setText(listaCursos.get(position).getProfessor().toString());
    holder.txtCategoria.setText(listaCursos.get(position).getCategoria().toString());



    if(listaCursos.get(position).getImagem()!=null){
        holder.idImagem.setImageBitmap(listaCursos.get(position).getImagem());
    }else{
        holder.idImagem.setImageResource(R.drawable.sem_foto);
    }

}

@Override
public int getItemCount() {
    return listaCursos.size();
}

public class CursosHolder extends RecyclerView.ViewHolder implements View.OnClickListener {

    TextView txtNome,txtCodigo,txtProfessor, txtCategoria;
    ImageView idImagem;

    OnNoteListener onNoteListener;

    public CursosHolder(View itemView,OnNoteListener onNoteListener) {
        super(itemView);
        txtNome= (TextView) itemView.findViewById(R.id.nomeCurso);
        //txtCodigo= (TextView) itemView.findViewById(R.id.txtCodigo);
        txtProfessor= (TextView) itemView.findViewById(R.id.Professor);
        txtCategoria= (TextView) itemView.findViewById(R.id.Categoria);
        idImagem=  itemView.findViewById(R.id.idImagem);

        this.onNoteListener = onNoteListener;
        itemView.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        onNoteListener.onNoteClick(getAdapterPosition());


    }
}

public interface OnNoteListener{
    void onNoteClick(int position);

}

}

Under my search screen that returns a view of Recycler:

 @Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (getArguments() != null) {
        mParam1 = getArguments().getString(ARG_PARAM1);
        mParam2 = getArguments().getString(ARG_PARAM2);
    }
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    View vista = inflater.inflate(R.layout.fragment_consultar_lista_nome, container, false);
    listaCursos=new ArrayList<>();

    recyclerCursos= (RecyclerView) vista.findViewById(R.id.idRecyclerNome);   // se der problema, mude aqui
    recyclerCursos.setLayoutManager(new LinearLayoutManager(this.getContext()));
    recyclerCursos.setHasFixedSize(true);
    txt_titulo = (TextView) vista.findViewById(R.id.titulo);
    professor = (TextView) vista.findViewById(R.id.Professor);
    campoNome = (EditText) vista.findViewById(R.id.campoNome);

    botaoConsultar = (Button) vista.findViewById(R.id.btnConsultar);

    request= Volley.newRequestQueue(getContext());

    botaoConsultar.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            carregarWEBService();
        }
    });

    return vista;
}

private void carregarWEBService() {

    progresso = new ProgressDialog(getContext());
    progresso.setMessage("Buscando...");
    progresso.show();

    String url = "http://192.168.0.5/webservices/consultarListaImagemUrlNome.php?nome="+ campoNome.getText().toString();


    jsonObjectReq = new JsonObjectRequest(Request.Method.GET, url, null, this, this);
    request.add(jsonObjectReq);

}


@Override
public void onErrorResponse(VolleyError error) {

    progresso.hide();
    Toast.makeText(getContext(), "Não foi possível listar os cursos " +error.toString() , Toast.LENGTH_SHORT).show();
    Log.i("ERROR", error.toString());

}

@Override
public void onResponse(JSONObject response) {

    progresso.hide();

    Curso curso = null;
    JSONArray json = response.optJSONArray("curso"); // nome da tabela curso


    try {
        for(int i=0; i

And this code below is my screen called after touching the recycle element:

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);


    if (getArguments() != null) {
        mParam1 = getArguments().getString(ARG_PARAM1);
        mParam2 = getArguments().getString(ARG_PARAM2);

    }
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // Inflate the layout for this fragment

    View vista = inflater.inflate(R.layout.fragment_consultar_curso_url, container, false);

    campoCodigo = vista.findViewById(R.id.codigo);
    campoNome = vista.findViewById(R.id.txt_nome);
    campoCategoria = vista.findViewById(R.id.txt_categoria);
    campoProfessor = vista.findViewById(R.id.txt_professor);
    btnAtualizar = vista.findViewById(R.id.btnAtualizar);
    btnDeletar = vista.findViewById(R.id.btnDeletar);
    btnConsultar = vista.findViewById(R.id.btnConsultar);
    imgFoto = vista.findViewById(R.id.imagemId);

  /*  Estava fazendo teste de parametros nesse bloco

    Bundle arguments = getArguments();
    String nomeProfessor = arguments.getString("professor");

    campoNome.setText(nomeProfessor);
    */

    request = Volley.newRequestQueue(getContext());

    btnConsultar.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            carregarWEBService();
        }
    });

    if(solicitarPermissoesVersoesSuperiores()){
        imgFoto.setEnabled(true);
    }else{
        imgFoto.setEnabled(false);
    }


    imgFoto.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {

           carregarDialog();
        }
    });

    btnAtualizar.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {

            carregarWEBServiceAtualizar();

        }
    });

    btnDeletar.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {


            carregarWEBServiceDeletar();

        }
    });

    return vista;
}

html5 – How to capture the values ​​of a row when selected with Vanilla JavaScript

Very good afternoon companions, my next concern is how I can capture the internal values ​​of a row that is in a table of html5, to later pass those values ​​to some inputs individual

Example: I want to update something filter and the table with these data appears to me, the user selects the row, and those values ​​are passed to the inputs that allow updating those values, that to the user select the first row each value passes to those inputs that is the true question

Example table


 

 



Document

Hoy Mañana Lunes
Soleado Mayormente soleado Parcialmente nublado


Hoy
Mañana
Lunes