80 Matching Annotations
  1. Jul 2021
  2. Jun 2021
    1. Bash (like all Bourne shells) has a special syntax for referring to the list of positional parameters one at a time, and $* isn't it. Neither is $@. Both of those expand to the list of words in your script's parameters, not to each parameter as a separate word.
    1. Instead of using a for loop, which will fail on spaces unless you redefine the IFS variable, I would recommend using a while loop combined with find.
  3. Feb 2021
    1. Often, such functions have in fact some hidden input which might be global variables, including the whole state of the system (time, free memory, …).
    1. By default, hashes remove any keys that aren't given as nested filters. To allow all hash keys, set strip: false. In general we don't recommend doing this, but it's sometimes necessary.
    1. It is important to acknowledge that education is essentially a political activity.

      Re-reading this week's chapter, I keep getting hung-up on this line. While I agree that education is affected by political views, I don't know that it is necessarily appropriate to state that education is a political activity. By design (or perhaps, by hope), education should be decidedly non-political. The reality of education, perhaps, is very politically driven, but something about the wording of calling education itself a political activity doesn't feel truly accurate.

  4. Jan 2021
    1. Ensure HTML strings containing user data are sanitized properly to prevent XSS attacks.
  5. Dec 2020
  6. Oct 2020
    1. All validators can be used independently. Inspried by functional programming paradigm, all built in validators are just functions.

      I'm glad you can use it independently like:

      FormValidation.validators.creditCard().validate({
      

      because sometimes you don't have a formElement available like in their "main" (?) API examples:

      FormValidation.formValidation(formElement
      
    1. By default all content inside template strings is escaped. This is great for strings, but not ideal if you want to insert HTML that's been returned from another function (for example: a markdown renderer). Use nanohtml/raw for to interpolate HTML directly.
  7. Sep 2020
  8. Aug 2020
    1. It's worth pointing out that filenames can contain a newline character on many *nix systems. You're unlikely to ever run into this in the wild, but if you're running shell commands on untrusted input this could be a concern
  9. Jul 2020
  10. Jun 2020
    1. See the documentation for HTML::Pipeline’s SanitizationFilter class for the list of allowed HTML tags and attributes. In addition to the default SanitizationFilter allowlist, GitLab allows span, abbr, details and summary elements.
  11. May 2020
  12. Apr 2020
    1. 1- Validation: you “validate”, ie deem valid or invalid, data at input time. For instance if asked for a zipcode user enters “zzz43”, that’s invalid. At this point, you can reject or… sanitize. 2- sanitization: you make data “sane” before storing it. For instance if you want a zipcode, you can remove any character that’s not [0-9] 3- escaping: at output time, you ensure data printed will never corrupt display and/or be used in an evil way (escaping HTML etc…)
    2. This style of validation most closely follows WordPress’ whitelist philosophy: only allow the user to input what you’re expecting.
    1. What Is Input Validation and Sanitization? Validation checks if the input meets a set of criteria (such as a string contains no standalone single quotation marks). Sanitization modifies the input to ensure that it is valid (such as doubling single quotes).
  13. Mar 2020
    1. Resource OverviewBasic OverviewContactsCategory and FormKeywordsThematic KeywordsLocation KeywordsTemporal KeywordsOther KeywordsArbitrary KeywordsTaxonomic InformationAdd TaxaSpatial and Temporal ExtentSpatial BoundsTime Period(s)Vertical ExtentResource ContentData Table(s)Data Dictionary InfoExternal Data DictionaryMethodsResource LineageProcess StepsSource DataData Quality ReportsStatus and DistributionStatus and MaintenancePublication Date and Other DatesDistribution OptionsIdentifiersConstraintsSpecific Resource UsesAdditional FieldsOnline ResourcesRelated ResourcesGraphic SummarySupplemental InfoSpatial RepresentationReference System InfoMetadata Info Methods

      This part needs input from the PI! How do we want to track down the source data and encourage those to be published somewhere?

  14. Oct 2019
  15. Sep 2019
  16. Aug 2019
  17. Feb 2018
  18. Oct 2016
    1. Previously, intensity-dependent metabolic changes have been found with positron emission tomography and blood oxygen level dependent magnetic resonance imaging after TMS to motor/prefrontal cortex; bilateral motor/prefrontal and auditory activation is induced, which becomes stronger with increasing pulse intensity [Bohning et al.,1999,2000; Fox et al.,1997; Nahas et al.,2001; Siebner et al.,1999; Speer et al.,2003]. However, these results are not directly comparable with our EEG findings. Arising a few seconds poststimulus, metabolic changes reflect relatively long-lasting activity of interconnected neuronal networks, whereas we were interested in the TMS-evoked events that occurred within a fraction of a second.