Problem with understanding contract containing array of structure

I got the following code for a contract from a Solidity tutorial website: pragma solidity 0.5.1; contract MyContractPersonStruct { Person[] public people; uint256 public peopleCount; struct Person { string _firstName; string _lastName; } function addPerson(string memory _firstName, string memory _lastName) public { people.push(Person(_firstName, _lastName)); peopleCount += 1; } } I have got two questions: Person…

Details

nginx convert untyped file to html

In my nginx conf file, I’m trying to translate something like /api/1/frontend/taskpane/ -> /api/1/frontend/taskpane.html /api/1/frontend/taskpane/?param=x -> /api/1/frontend/taskpane.html?param=x I’ve gotten the first case to work with a rewrite rule as follows: rewrite ^/api/1/frontend/taskpane/$ /api/1/frontend/taskpane.html last; …but it fails when the query parameters are passed Furthermore, I have other filetypes that I want to remain untouched. For…

Details