web development – Is it common practice to validate responses from 3rd party APIs?

I’m working on a PHP web application that depends on a few party services. These services are well documented and provided by fairly large organisations.

I feel paranoid when working with responses from these API which leads me to write validation code that validates that the responses match the structure and data types specified in the documentation. This mainly comes from the fact that its out with my control and if I blindly trust that the data will be correct and its not (maybe someone changes the json structure by accident), it could lead to unexpected behaviour in my application.

My question is do you think this is overkill? How does everyone else handle this situation?

How to add icons to Opera GX speed dial numbers? All other responses are obsolete. Help me! [closed]

enter description of image here

How to make them look like advertisements?

Can I add a single auto-increment field to multiple responses in a column of a Google spreadsheet based on a Google form?

I need to add a single auto-increment field to multiple responses in a column of a Google spreadsheet based on a Google form.

I was able to add the function trigger in the scripts, but I need to add auto-increment to multiple items from a drop-down list in one of the responses. What I am trying to accomplish is to create a multimedia database with individual multimedia file codes. For example, if one of my videos was filmed in St. Louis, Missouri, I would have something like "stl_adv_23" and if one of my videos was filmed in Tulsa, OK, then this entry would be "tul_adv_7" and so on. So when the user fills in the first question on the form and the responses of multiple city codes in a drop down list, I want the auto increment to then add the next sequential number for that specific drop down answer and not just the next line in the set for all answers. How to do this in the script editor?

I used this answer as a starting point and it worked, but I need the additional function above

php – How to remove duplication in predefined responses from a table

            $sql = "SELECT COLUNA FROM TABELA WHERE USER = $USER";
            $sql = $pdo->query($sql);
            $categoria = $sql->rowCount();

            
            $hist = array(

                '1' => 'Não parece que foi limpo',
                '2' => 'Usou o celular trabalhando',

                         );
            if($sql->rowCount() > 0) { 
                foreach($sql->fetchAll() as $feeds):
                $nrcat = $feeds("COLUNA"); 
                  ?>
                  
                    

                      
                        
                    

                    
                    query($sql);
                    $valorc = $sql->rowCount();
                    $sql = "SELECT COLUNA FROM TABELA WHERE USER = $user AND COLUNA is not null";
                    $sql = $pdo->query($sql);
                    $valort = $sql->rowCount();
                    $porc = porcentagem($valorc, $valort);
                    echo round($porc, 2)."%";
                    //
                    ?>  
                    
                  
                        

Help users sometimes get rude responses | Forum promotion

Sometimes when you help users with anything online, you get rude responses What do you do in such a situation? I would normally ignore them.

Sometimes, as a forum administrator, I am blamed for everything, even when something is not even near my fault (um, user error).

There are times when I ask our site mentor to handle certain things because other members don't perceive him as a threat and he gets along with everyone on the site.

Filling Google documents from multiple models based on responses from Google forms

I have the script below to create Google documents from a template when a form response is submitted. But these scripts use only one model. What I want is to create different documents based on the answer to the first question on the form. The other answers must replace the words given in the models.
But I have a little trouble achieving this result. Is there any way to do it?

function createdocs(e) {
  var dataRange = SpreadsheetApp.getActiveSheet().getDataRange()
  var data = dataRange.getValues();
  var headers = data(0);

  for (var row=1; row < data.length; row++) {
    var e = {};
    e.values = data(row);
}
  var Contracttype = e.values(1);
  var Partnername = e.values(2);
  var Address = e.values(3)
  var Bankname = e.values(4);
  var Accountnumber = e.values(5);
  var TIN = e.values(6);
  var Bankcode = e.values(7);
  var Businesscode = e.values(8);
  var Phone = e.values(9);
  var Director = e.values(10);
  var Contractstartingdate = e.values(11);
  var Contractendingdate = e.values(12);
  var EmailAddress = e.values(13);

  var file = DriveApp.getFileById('10lZQhmbocTOmvGwklYnHNvXbdGXDmpbgFbvcnu67G7c'); 
  var folder = DriveApp.getFolderById('1O6QJZ5gRRoSUeolcVvKlMe65Wdb4rz9z')
  var copy = file.makeCopy(Partnername + ',' + Contractstartingdate, folder); 
  var doc = DocumentApp.openById(copy.getId()); 
  var body = doc.getBody(); 

  body.replaceText('{{Partner name}}', Partnername);
  body.replaceText('{{Address}}', Address);  
  body.replaceText('{{Bank name}}', Bankname);
  body.replaceText('{{Account number}}', Accountnumber);
  body.replaceText('{{TIN}}', TIN);
  body.replaceText('{{Bank code}}', Bankcode);
  body.replaceText('{{Business code}}', Businesscode);
  body.replaceText('{{Phone}}', Phone);
  body.replaceText('{{Director}}', Director);
  body.replaceText('{{Contract starting date}}', Contractstartingdate);
  body.replaceText('{{Contract ending date}}', Contractendingdate);

  doc.saveAndClose();
}

Minimum permission (under Full Control) to allow a user to view all responses in a SharePoint survey

We have a survey inside the online SharePoint communications site, and we define that users can view and edit their own responses ONLY as follows: –

enter description of image here

but in our case we want 2 users to be able to see all of the responses, I tried to grant them Edit but they can still only see their own responses, so my question is what is the minimum permission (under Full Control ) required to be able to see all the answers? can we create a custom permission level for this, and what exactly do we need to specify?

networking – Why does the listening icmp get two responses when I ping the local host?

I am currently using the icmp npm package to develop a custom contribution node for node-red.
After a few days of testing and verifying that everything is fine before publishing, I came across strange results when localhost ping and ICMP listening are active …

Okay, so I'm running ping -c 1 127.0.0.1 which ensures that only one message is sent,
I get the next results:

{
  icmp: {
received: 84,
source: '127.0.0.1',
time: 1585757577079,
message: `���^�(u0001u0000btnu000bfru000eu000fu0010u0011u0012u0013u0014u0015u0016u0017u0018u0019u001au001bu001cu001du001eu001f !"#$%&'()*+,-./01234567`,
type: 'Received!'
 },
_msgid: '55682271.0e325c'
}

{   
icmp: {
received: 84,
source: '127.0.0.1',
time: 1585757577107,
message: `���^�(u0001u0000btnu000bfru000eu000fu0010u0011u0012u0013u0014u0015u0016u0017u0018u0019u001au001bu001cu001du001eu001f !"#$%&'()*+,-./01234567`,
type: 'Received!'
},
_msgid: '4cd1b4b1.729c9c'
}

So, as we can see here, we have exactly two identical messages from the same source, the only difference is the timestamp of the two messages.

So my question is:
What is the second message?
Is this the response that was returned to the ping command?
Is there a name for this behavior?

Here are the results of the ping:

pi@raspberrypi:~ $ ping -c 1 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.193 ms

--- 127.0.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.193/0.193/0.193/0.000 ms

usability tests – Is this column view for the responses viable in a Survey type format?

I have a question about a type of question I am working on for the design of a survey. What I wanted to know was if this type of question (illustrated in the image below) was valid or not in terms of UX. How difficult is it for a user to understand this type of format and what could be a better way to display this information?

enter description of image here

Here we have an example of the type of question where we want a user to rate the lighting of their workspace in the office and at home by selecting one of the options. When you select an option, it lights up. When you have finished selecting the options for the two columns (as shown below), you will automatically be taken to the next question.

enter description of image here

Can I get advice or mentorship on whether this approach works or should it be done differently?

I would really appreciate any help you could give me.

25 amazing Quora responses with great content and great language and backlinks for $ 10

25 amazing Quora answers with great content and great language and backlinks

Are you looking for online reputation management? Order me for great content for your site on Quora and get both ways with backlinks to improve SEO and also get responses displayed on Google search for different keywords.

.