What is google url parameters ..?

What is google url parameters ..?

Website Design – How to Represent Multiple Parameters Using a Simple User Interface

I have 6 categories of which 5 categories have 3 parameters and 1 category has 1 parameters.

I show these categories against unique identifiers, as mentioned below.

Suppose that there is a unique identifier TII-123, this will appear on the user interface like this:

category        parameters         value         unique id 
C1              P1                 X1            TII-123
C1              P2                 X2            TII-123
C1              P3                 X3            TII-123
C2              P1                 X1            TII-123
C2              P2                 X2            TII-123
C3              P3                 X3            TII-123
C4              P1                 X1            TII-123
C5              P1                 X1            TII-123
C5              P2                 X2            TII-123 

Whihc seems a little complicated on the user interface for the user to use the information, how can I represent the same information in a better way on the user interface group by unique identifier.

Note: Unique identifiers can be multiple, in which case the existing user interface looks like a mess.

jquery – Dynamic addition of parameters to a JavaScript function

Guys, how are you?

I'm trying to create a function (I'll call it run) that takes in parameter another function (I'll call it a word), a list of objects and a list of attributes to access on the list of objects.

This function "execute" will execute the received function as a parameter, but as I do not know what parameters I should pass in the function that I receive in "execute", I want a generic way to pass the parameters …

Here's an example code:

//Lista com os parametros que quero pegar do objeto
  var listKeyParam = ("nome", "idade", "altura");

  //Lista de objetos
  var objs = (
    { nome: "Anderson", idade: "21", altura: "1.85" },
    { nome: "Ranger", idade: "18", altura: "1.85" },
    { nome: "Renan", idade: "21", altura: "1.85" },
    { nome: "Guto", idade: "70", altura: "2.15" }

  //Funcao generica testar o recebimento dos parametros
  function palavra(nome,idade,altura) {
    console.log("nome => ",nome);
    console.log("idade => ",idade);
    console.log("altura => ", altura);

  //Funcao que deve receber uma funcao como parametro, 
  //uma lista de objetos e a lista com os atributos que devem ser pegos dos objetos
  function executar(funcao, objs, listKeyParam) {

    objs.forEach((item, index) => {
      let argumentsFunc =()
      $.each(item,(paramKey,paramValue) => {
        if(listKeyParam.includes(paramKey)) argumentsFunc.push(paramValue);
      funcao(arguments = argumentsFunc);


  //Executando funcao
  executar(palavra, objs , listKeyParam);

parameters – Reverse engineering android: key

I am a little new in the development / portage android and try to transfer some features to a custom ROM. I am currently working on the Settings.apk file.

The XML of based Settings.apk res xml ambient_display settings looks like this:


I want to add this settings feature to my Custom ROM Settings.apk.

Where can I find the Android: key (as we find Android: title in xml / values ​​/ string.xml)? And is there an effective way to bring this feature to my ROM?

I tried to edit the Settings.apk file of the custom ROM,
hoping that the backend exists, but the SystemUI.apk and the Settings.apk
continued to plant after making the changes.

Thank you!

python – Best practices for testing a parameter file with many parameters in the simulation code

I am in conflict as to what is the best way to tackle this problem.

I write a Python simulation set with about 50 parameters. I have a JSON file in which these parameters are defined, so it's easy to modify them and perform different simulations iteratively.

Extract of settings.json (not the actual parameter names):

  "global_settings": {
    "param1": 10,
    "param2": true,
    "param3": 0.5
  "simulation_settings": {
    "param4": true,
    "param5": false,
    "param6": true 
  "output_settings": {
    "file_settings": {
      "param7": "string"
      "param8": false
      "param9": null
  "param10": true

I wrote a SettingsManager class whose job is to:

  • analyze JSON in a Python dictionary
  • exhibit certain parameters as attributes (so that objects using the SettingsManager the instance will not need to access a 3 level deep dictionary entry);
  • validate these settings, ensuring that all mandatory parameters are present (by raising exceptions if they are not).

Extract of managers.py (or SettingsManager is located):

import sys

class SettingsManager:
    def __init__(self, settings_path: str) -> None
        self._data = self.parse_settings(settings_path)
        if self._data is None:
        self.validate_settings()  # calls all other validation methods

Extract of main.py (responsible for creating one SettingsManager example and running the simulation with the parsed parameters):

from src.managers import SettingsManager
from src.simulation import Simulation

def main(path: str) -> None:
    settings = SettingsManager(settings_path=path)
    simulation = Simulation(settings=settings)

if __name__ == '__main__':

the SettingManagersof validate_settings method calls downstream methods that go through each sub-editor of the parsed parameters and ensure that the appropriate keys exist (a method for a dictionary).

As you can imagine, writing code to validate all parameters was tedious. Nevertheless, I can not think of a better way than to check each individual key in each individual dictionary / sub-dictionary, since each key has a different name, each sub-dictionary has a different structure, and many different types of data are used for values.

Now the real problem is to test: How to test the validation of the parameter file?

Should I create test cases for each key that could be missing? It sounds like a lot of work! Not to mention a lot of refactoring, because the requirements are not fixed and parameters can be added / modified / deleted later. I thought about creating a dummy dictionary instead of the resulting dictionary from the analyzed JSON file, but I'm not sure it's beneficial. Am I not just testing my simulated dictionary, then?

I have trouble finding resources on best practices when writing simulation code with many parameters. At the same time, I can not get rid of the feeling that I'm missing something obvious here.

How do people manage so many parameters? Are simulations always painful to code? Should I accept my destiny and write tests for each parameter? Should I drop the validate_settings method and just assume that users (me + my colleagues) have a properly formatted parameter file?

Thanks in advance for your thoughts, I am very lost here.


postgresql – plpgsql – stored procedure Values ​​separated by commas in the parameters

The best solution is not to pass a single varchar parameter but a table:

CREATE OR REPLACE PROCEDURE bhuvi(p_catalogs text(), p_tbls text())
 LANGUAGE plpgsql
 AS $$
   rec RECORD;
    v timestamp;
    FOR rec IN select table_schema, table_name 
               from information_schema.tables 
               where table_catalog = any (p_catalogs) 
               and table_type='BASE TABLE' 
               and table_schema not in ('pg_catalog','information_schema')  
               and table_name = any (p_tbls)
     select now() into v;
     RAISE INFO ' % printing... schema = % and table = %',v, rec.table_schema, rec.table_name;

Then you can call it for example like this:

call bhuvi(array('schema_1',schema_2'), array('table_1', 'table_2'));

If you can not change the call code to process an array, convert the comma-separated strings to arrays

CREATE OR REPLACE PROCEDURE bhuvi(p_catalogs text, p_tbls text)
 LANGUAGE plpgsql
 AS $$
   rec RECORD;
    v timestamp;
    FOR rec IN select table_schema, table_name 
               from information_schema.tables 
               where table_catalog = any (string_to_array(p_catalogs.',')) 
               and table_type='BASE TABLE' 
               and table_schema not in ('pg_catalog','information_schema')  
               and table_name = any (string_to_array(p_tbls, ','))
     select now() into v;
     RAISE INFO ' % printing... schema = % and table = %',v, rec.table_schema, rec.table_name;

dslr – all the parameters are correct but the photos are still underexposed

I am in a lighted room with a shutter speed of 1/125, an aperture of 5.6 and a sensitivity of ISO 400, but every photo I take is still very underexposed.

If you take a picture with these settings, and if it is not underexposed, it's a hellish amount of light in your "lighted room"! I have nearly 400 watts of LEDs that produce more than 40,000 lumens on the ceiling of my house. Still, I looked at the photos that I took inside and I have one where the aperture is 5.6 and the ISO of 400 .

Guess what is the shutter speed?

No, it is not 1/125.

No, it is not 1/60 either.

It's 1/10!

I suspect that your "lighted room" does not have as much light as my lighted room. The lighted rooms are surprisingly dark. You do not see it as dark with your eyes because your eyes can adapt.

Answer: increase the ISO. A lot. Something like ISO 6400 could be a good start with a shutter speed of f / 5.6 and 1/125. You can also open the aperture if the lens supports it or use longer shutter speeds (preferably with image stabilization if your lens is equipped with a stabilizer image), because ISO 6400 may generate too much noise.

php – Are there any risks in using function parameters for column names in a prepared statement?

I hope the title makes sense, I did not quite know how to ask him.

So, as we know, using PDO and prepared statement, linking a table or column using bindParam it is not possible. To do this, I have therefore used function parameters by replacing the column names with the parameters, as shown in the example below.

function search($filter,$input,$type,$order,$sort,$limit){
    $st=$this->conn->prepare("SELECT Title,Type,Youtube,Score,Ratings,Singer,ID
    FROM song WHERE $filter LIKE CONCAT('%',?,'%')
    AND Type=? ORDER BY $order $sort LIMIT $limit");
    return $st->fetchall();

And I call this function here:


Where the values ​​come from:

  • $filter—-select
  • $input—-input
  • $type—-radio
  • $order—-select
  • $sort—-radio
  • $limit—-input

As you can see, the table in which I select is hotfix, it is not optional, but I have the option to choose the column in which I want the result to be controlled by ($order), which column I would like to search ($filter), I want it to be ascending or descending ($sort), and how much I would like to see ($limit).

And this code works well, but I'm not sure it's a sure way to do it. Does this solution present risks, or is it safe to leave it like this?

java – How to pass parameters to hand

How can I pass pom.xml file settings to the principal of the main class? If, for example, I want to use the argLine property, how can I adapt it to the main and, within the main, run it later?


                    **-Darg1=7070 -Darg2=9**





public static void main(String() args) {


recursion – Constructs a recursive formula that is also a function on other parameters

I need to compute a recursive formula, but it is also a function on other parameters.

I've tried to follow the example to check:

fib[x_, y_, n_] := fib[x, y, n] = fib[x, y, n - 1] + fib[x, y, n - 2];
fib[x, y, 1] = fib[x, y, 2] = 1;

I did not help calculate

fib[1, 1, 3]