510 Matching Annotations
  1. Mar 2021
  2. Feb 2021
    1. What this means is: I better refrain from writing a new book and we rather focus on more and better docs.

      I'm glad. I didn't like that the book (which is essentially a form of documentation/tutorial) was proprietary.

      I think it's better to make documentation and tutorials be community-driven free content

    2. We try to keep the “information architecture” - a word I wouldn’t have learned without the inspiring Alex Coles - as simple as possible: so far, we got a handful of pages accessible through the top navigation, and then the documentation behind the DOCS link. Here, the right sidebar helps you to navigate within the chapter.
    1. NIX_PATHA colon-separated list of directories used to look up Nix expressions enclosed in angle brackets (i.e., <path>). For instance, the value

      It would be helpful to

      1. formally describe the formats for NIXPATH, and
      2. note the allowed angle bracket syntax accordingly

      <path> will work with the prefixless format, but not with the prefixed one, and it may be helpful to spell this out explicitly.

      0 [14:16:19] nix repl
      Welcome to Nix version 2.3.10. Type :? for help.
      
      nix-repl> :l <nixpkgs/doc>  
      Added 40 variables.
      
      nix-repl> :l <doc>
      error: file 'doc' was not found in the Nix search path (add it using $NIX_PATH or -I)
      

      I always saw a NIXPATH used with the prefix syntax so far:

      $ echo $NIX_PATH
      nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root
      

      but NIX_PATH documentation shows that the prefixless format is also valid.

      $ export NIX_PATH=/home/toraritte:/nix/var/nix/profiles/per-user/root/channels/nixos
      
      $ printenv NIX_PATH
      /home/toraritte:/nix/var/nix/profiles/per-user/root/channels/nixos
      
      $ nix repl
      Welcome to Nix version 2.3.10. Type :? for help.
      
      nix-repl> :l <nixpkgs>
      Added 12439 variables.
      
  3. Jan 2021
    1. every document could disappear 6 months after it's published unless whoever uploaded or created it says otherwise in an email the system sends them after six months, documents shouldn't live rent free

      this is a great idea to ensure that documentation doesn't become stale.

    1. Reload the systemd manager configuration. This will rerun all generators (see systemd.generator(7)), reload all unit files, and recreate the entire dependency tree. While the daemon is being reloaded, all sockets systemd listens on behalf of user configuration will stay accessible.
  4. Nov 2020
  5. Oct 2020
  6. Sep 2020
  7. Aug 2020
    1. All of the components should allow passing MUI configuration properties to them so that they can be easily customized. In the case of RFF and MUI components with deeply nested structures of multiple subcomponents, you can pass the properties in with sepecial top level properties. This is very hard to document fully without making a mess, so please refer to the source code and demos for examples.
  8. Jul 2020
  9. Jun 2020
  10. May 2020
  11. Apr 2020
    1. Class method docstrings should contain the following: A brief description of what the method is and what it’s used for Any arguments (both required and optional) that are passed including keyword arguments Label any arguments that are considered optional or have a default value Any side effects that occur when executing the method Any exceptions that are raised Any restrictions on when the method can be called

      Class method should contain:

      • brief description
      • arguments
      • label on default/optional arguments
      • side effects description
      • raised exceptions
      • restrictions on when the method can be called

      (check example below)

    2. Comments to your code should be kept brief and focused. Avoid using long comments when possible. Additionally, you should use the following four essential rules as suggested by Jeff Atwood:

      Comments should be as concise as possible. Moreover, you should follow 4 rules of Jeff Atwood:

      1. Keep comments close to the code being described.
      2. Don't use complex formatting (such as tables).
      3. Don't comment obvious things.
      4. Design code in a way it comments itself.
    3. From examining the type hinting, you can immediately tell that the function expects the input name to be of a type str, or string. You can also tell that the expected output of the function will be of a type str, or string, as well.

      Type hinting introduced in Python 3.5 extends 4 rules of Jeff Atwood and comments the code itself, such as this example:

      def hello_name(name: str) -> str:
          return(f"Hello {name}")
      
      • user knows that the code expects input of type str
      • the same about output
    4. All multi-lined docstrings have the following parts: A one-line summary line A blank line proceeding the summary Any further elaboration for the docstring Another blank line

      Multi-line docstring example:

      """This is the summary line
      
      This is the further elaboration of the docstring. Within this section,
      you can elaborate further on details as appropriate for the situation.
      Notice that the summary and the elaboration is separated by a blank new
      line.
      
      # Notice the blank line above. Code should continue on this line.
      
    5. say_hello.__doc__ = "A simple function that says hello... Richie style"

      Example of using __doc:

      Code (version 1):

      def say_hello(name):
          print(f"Hello {name}, is it me you're looking for?")
      
      say_hello.__doc__ = "A simple function that says hello... Richie style"
      

      Code (alternative version):

      def say_hello(name):
          """A simple function that says hello... Richie style"""
          print(f"Hello {name}, is it me you're looking for?")
      

      Input:

      >>> help(say_hello)
      

      Returns:

      Help on function say_hello in module __main__:
      
      say_hello(name)
          A simple function that says hello... Richie style
      
    6. Commenting your code serves multiple purposes

      Multiple purposes of commenting:

      • planning and reviewing code - setting up a code template
      • code description
      • algorithmic description - for example, explaining the work of an algorithm or the reason of its choice
      • tagging - BUG, FIXME, TODO
    7. In general, commenting is describing your code to/for developers. The intended main audience is the maintainers and developers of the Python code. In conjunction with well-written code, comments help to guide the reader to better understand your code and its purpose and design

      Commenting code:

      • describing code to/for developers
      • help to guide the reader to better understand your code, its purpose/design
    8. If you use argparse, then you can omit parameter-specific documentation, assuming it’s correctly been documented within the help parameter of the argparser.parser.add_argument function. It is recommended to use the __doc__ for the description parameter within argparse.ArgumentParser’s constructor.

      argparse

    9. Daniele Procida gave a wonderful PyCon 2017 talk and subsequent blog post about documenting Python projects. He mentions that all projects should have the following four major sections to help you focus your work:

      Public and Open Source Python projects should have the docs folder, and inside of it:

      • Tutorials
      • How-To Guides
      • References
      • Explanations

      (check the table below for a summary)

    1. OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library. OpenCV was built to provide a common infrastructure for computer vision applications and to accelerate the use of machine perception in the commercial products. Being a BSD-licensed product, OpenCV makes it easy for businesses to utilize and modify the code. The library has more than 2500 optimized algorithms, which includes a comprehensive set of both classic and state-of-the-art computer vision and machine learning algorithms. These algorithms can be used to detect and recognize faces, identify objects, classify human actions in videos, track camera movements, track moving objects, extract 3D models of objects, produce 3D point clouds from stereo cameras, stitch images together to produce a high resolution image of an entire scene, find similar images from an image database, remove red eyes from images taken using flash, follow eye movements, recognize scenery and establish markers to overlay it with augmented reality, etc. OpenCV has more than 47 thousand people of user community and estimated number of downloads exceeding 18 million. The library is used extensively in companies, research groups and by governmental bodies. Along with well-established companies like Google, Yahoo, Microsoft, Intel, IBM, Sony, Honda, Toyota that employ the library, there are many startups such as Applied Minds, VideoSurf, and Zeitera, that make extensive use of OpenCV. OpenCV’s deployed uses span the range from stitching streetview images together, detecting intrusions in surveillance video in Israel, monitoring mine equipment in China, helping robots navigate and pick up objects at Willow Garage, detection of swimming pool drowning accidents in Europe, running interactive art in Spain and New York, checking runways for debris in Turkey, inspecting labels on products in factories around the world on to rapid face detection in Japan. It has C++, Python, Java and MATLAB interfaces and supports Windows, Linux, Android and Mac OS. OpenCV leans mostly towards real-time vision applications and takes advantage of MMX and SSE instructions when available. A full-featured CUDAand OpenCL interfaces are being actively developed right now. There are over 500 algorithms and about 10 times as many functions that compose or support those algorithms. OpenCV is written natively in C++ and has a templated interface that works seamlessly with STL containers.
  12. Mar 2020
  13. Feb 2020
    1. Write things down We document everything: in the handbook, in meeting notes, in issues. We do that because "the faintest pencil is better than the sharpest memory." It is far more efficient to read a document at your convenience than to have to ask and explain. Having something in version control also lets everyone contribute suggestions to improve it.
  14. Dec 2019
    1. Aside from testing, we place high value in documenting code. It's our legacy for anyone who will be working with our codebase in the future. Fortunately, having a component library like Storybook allows us to document components visually and declaratively. Storybook provides a developer with all the information needed to understand the structure and state of a component.
  15. Nov 2019
  16. Oct 2019
    1. Tutorials and how-to guides are similar because they are both concerned with describing practical steps, while what how-to guides share with technical referenceis that they’re what we need when we are actually at work, coding. Reference guides and explanation are similar because they’re concerned with theoretical knowledge, and finally, what tutorials have in common with explanation is that they are most useful when we are studying, rather than actually working

      Difference between tutorials, how-to guides, explanation and reference:

    1. "http://lobid.org/items/HT019025795:DE-Kn3:KMB%2FYG%20BERLINW%2033%20%202016%20A#!"
      Beschreibung

      Durch Folgen der URI gelangt man zu einer Einzelansicht für das Exemplar. Die dort angezeigten Daten sind ebenfalls als JSON-LD verfügbar. Siehe [Link](##### Beschreibung

      Durch Folgen der URI gelangt man zu einer Einzelansicht für das Exemplar. Die dort angezeigten Daten sind ebenfalls als JSON-LD verfügbar. Siehe Link für die markierte Ressource.

  17. Sep 2019
  18. Aug 2019
  19. Jul 2019
    1. "classification"
      Name

      Spezieller Organisationstyp

      Beschreibung

      Diese Klassifikation liefert eine granulare Unterscheidung verschiedener Einrichtungstypen. Das verwendete SKOS-Schema basiert auf der Klassifikation des deutschen ISIL-Verzeichnis.

      Abdeckung

      Zu jeder Institution wird der detaillierte Typ angegeben.

      Verwendungsbeispiele

      Auflistung aller Bibliotheken, die als Wissenschaftliche Spezialbibliothek klassifiziert sind.

      URI

      http://www.w3.org/ns/org#classification

  20. Apr 2019
    1. It is important to understand the interaction between aggregates and SQL's WHERE and HAVING clauses. The fundamental difference between WHERE and HAVING is this: WHERE selects input rows before groups and aggregates are computed (thus, it controls which rows go into the aggregate computation), whereas HAVING selects group rows after groups and aggregates are computed. Thus, the WHERE clause must not contain aggregate functions; it makes no sense to try to use an aggregate to determine which rows will be inputs to the aggregates. On the other hand, the HAVING clause always contains aggregate functions. (Strictly speaking, you are allowed to write a HAVING clause that doesn't use aggregates, but it's seldom useful. The same condition could be used more efficiently at the WHERE stage.)

      WHERE >> AGGREGATE >> HAVING (use aggregate functions)

      this is SQL procedural sequence on data querying.

      and yes HAVING kind of do almost the same thing in WHERE. but it accepts the grouping and aggregation functions that fails to be in WHERE.

  21. Mar 2019
    1. "serviceType"

      Name: Schnittstellentyp

      Beschreibung: Die Art der maschinellen Schnittstelle

      Pflichtfeld?: nein

      Typ: String

      Beispielewerte: Search, Sitemap, OAI-PMH, Statistics, embed (oEmbed), Generic_Api

    2. "type"

      Name: Typ des Anbieters

      Beschreibung: Angabe, ob der Anbieter eine Organisation oder Gruppe (Organization) oder eine Einzelperson (Person) ist. Pflichtfeld?: ja

      Typ: Array, URL

      Mögliche Werte: Organization, Person

    3. "provider"

      Name: Anbieter des Dienstes

      Beschreibung: Die Organisation, Gruppe oder Einzelperson, die den Dienst anbietet

      Pflichtfeld?: ja

      Typ: Array, Objekt

      Felder: type (Pflicht), name (Pflicht), email, location, id

    4. "availableChannel"

      Name: Schnittstellen des Dienstes

      Beschreibung: Angabe von Maschninenschnittstellen zum Dienst, deren Art und Dokumentation.

      Pflichtfeld?: ja

      Typ: Array, Objekt

      Felder: type (Pflicht), serviceURL (Pflicht), serviceType, documentation

    5. "isAccessibleForFree"

      Name: Zugangsfreiheit

      Beschreibung: Ist die Nutzung des Dienstes ohne Zugangsbeschränkungen (Registrierung, Authentifizierung) möglich und die Inhalte ohne Einschränkungen erreichbar?

      Pflichtfeld?: nein

      Typ: Boolean

    6. "about"

      Name: Fach/Thema der Inhalte

      Beschreibung: Die Fächer bzw. Themen, zu denen der Dienst Open Educational Resources (OER) anbietet. Die Werte sollten URLs aus einer kontrollierten Liste sein.

      Pflichtfeld?: nein

      Typ: Array, URL

    7. id

      Name: URL als Identifiktator

      Beschreibung: Die URL, durch den der Dienst identifiziert wird. Das ist in der Regel die Homepage. Auf dieser URL MUSS die Visitenkarte später findbar / abrufbar sein

      Pflichtfeld?: ja

      Typ: URL

    8. "image"

      Name: Icon des Dienstes

      Beschreibung: Ein Link zu einer Bilddatei mit einem Icon des Dienstes, das etwa zur Kennzeichnung von Einträgen in einer Suchergebnisliste genutzt werden kann. Die verlinkte Datei sollte im Format svg oder png sein und eine Größe von 64x64px haben.

      Pflichtfeld?: nein

      Typ: URL

      Dateiformat: Das verlinkte Bild sollte eine svg- oder png-Datei sein mi8t 64x64px.

  22. Jan 2019
  23. Nov 2018
    1. "changeDate"
      Name

      Change date

      Description

      The date when the resource description was last changed.

      Coverage

      80 % of the records have a change date, while it is missing for 20 %, see here for a pie chart.

      Usage examples
      URI

      http://id.loc.gov/ontologies/bibframe/changeDate

  24. Oct 2018
    1. "label": "Report of the trial of George Ryan : before the Superior Court at Charlestown, N.H., in the county of Cheshire, May term 1811, for highway robbery."

      The label for the work.

      Combines the title.mainTitle and title.subtitle fields. This field is set for 98 of 100 works in our test set. It can be queried in a field query with label:*.

      It is mapped to rdf-schema#label in our context.

  25. Sep 2018
  26. Aug 2018
    1. "isil"
      Name

      ISIL

      Beschreibung

      Der ISIL (International Standard Identifier for Libraries and Related Organizations) der Einrichtung. Das deutschsprachige ISIL-Verzeichnis ist – neben der Deutschen Bibliotheksstatistik (DBS) – die Datenquelle von lobid-organisations.

      Abdeckung

      Alle Einträge aus dem ISIL-Verzeichnis haben einen ISIL, das sind etwa 14000 Einträge.

      Verwendungsbeispiele

      In der bibliothekarischen Arbeit begegnet man desöfteren ISILs. Mit einem lobid-organisations-Lookup kann einfach und zügig die dadurch identifizierte Institution gefunden werden.

      URI

      http://purl.org/lobid/lv#isil

    2. "fundertype"
      Name

      Art des Unterhaltsträgers

      Beschreibung

      Typ des Unterhaltsträgers der Einrichtung. Die Werte stammen aus einem kontrollierten Vokabular, siehe das SKOS-Schema.

      Abdeckung

      Vorhanden bei gut 7000 Einträgen, fehlt bei ca. 7.700

      Verwendungsbeispiele
      URI

      http://purl.org/lobid/lv#fundertype

    3. "type"
      Name

      Allgemeiner Organisationstyp

      Beschreibung

      Art der Einrichtung. Vergebene Typen sind: Bibliothek (Library), Archiv (Archive), Museum (Museum), Verlag (Publisher), sonstige Organisationen (Organization).

      Abdeckung

      Jeder Eintrag ist einem Einrichtungstyp zugeordnet.

      Verwendungsbeispiele
      Provenienz

      Für Einträge aus der DBS wird automatisch der Typ "Library" vergeben. Bei den Einträgen aus dem Sigelverzeichnis wird der Typ auf Basis der detaillierten Organisationsklassifikation verwendet, siehe das Mapping der Notationen auf einen Typ.

      URI

      "type" ist auf das JSON-LD-Keyword "@type" gemappt, das in diesem Zusammenhang (als node type) in RDF mit http://www.w3.org/1999/02/22-rdf-syntax-ns#type übersetzt wird.

  27. Jan 2018
  28. Oct 2017
    1. "license"
      Name

      License

      Path

      about.license

      Description

      A license used within a service providing OER. The values are taken from the controlled vocabulary at https://oerworldmap.org/assets/json/licenses.json.

      Use cases
      Coverage
    2. "dateModified"
      Name

      Modification data

      Path

      dateModified

      Description

      Time stamp for the moment the latest modification of the entry was published.

      Use cases
      Coverage

      Every entry has information on the last modification date.

    3. "startDate"
      Name

      Start date

      Path

      about.startDate

      Description

      The date – following ISO 8601 – when the service was launched.

      Use cases

      A list of services launched before 2015: https://oerworldmap.org/resource/?q=about.startDate%3A%3C2015&filter.about.%40type=Service

      Coverage
    4. "provider"
      Name

      Provider

      Path

      about.provider

      Description

      The provider of a service. This can be an organization or a person.

      Use cases
      Coverage
    5. "@context"
      Name

      JSON-LD context (@context)

      Path

      @context

      Description

      @context is a JSON-LD keyword, specifying the JSON-LD context document. It primarily includes a mapping of JSON keys to RDF properties. Based on the JSON-LD context one can convert the data to different RDF serializations from the JSON provided.

      Coverage

      The JSON-LD is linked in every entry.

      Use cases
      • This example entry can be converted – for example using the RDF-Translator – to different RDF serializations: N3, N-Triples, RDF/XML.
    6. "primarySector"
      Name

      Primaryy sector

      Path

      about.primarySector

      Description

      The primary sector of education a resource is focused on. Values come from the sectors value list.

      Use cases

      Get a list of OER online services focused on higher education: https://oerworldmap.org/resource/?q=about.primarySector.%40id%3A%22https%3A%2F%2Foerworldmap.org%2Fassets%2Fjson%2Fsectors.json%23higherEd%22&filter.about.%40type=Service

      Coverage
    7. "documentation"
      Name

      API Documentation

      Path

      about.availableChannel.documentation

      Description

      A link to the API documentation

      Coverage
    8. "availableLanguage"
      Name

      Languages

      Path

      about.availableChannel.availableLanguage

      Description

      The language of the resources provided by the service

      Use cases

      A list of services that provide resources in Spanish: https://oerworldmap.org/resource/?q=&filter.about.availableChannel.availableLanguage=es

      Coverage

      List of services where the language information is missing: https://oerworldmap.org/resource/?q=_missing_:about.availableChannel.availableLanguage&filter.about.@type=Service

    9. "availableChannel"
      Name

      Service channels

      Path

      about.availableChannel

      Description

      An array with channels for a specific online OER service. Usually the are the website itself and (optional) an API as a means of interacting with it programatically.

      Coverage

      Every resource of type "Service" has an entry in availableChannel.serviceUrl.

    1. "dateCreated"
      Name

      Date of creation

      Path

      dateCreated

      Description

      The point in time when the first version of the entry was published.

      Use cases
      Coverage

      Every entry has a creation date.

    2. "about"
      Name
      Path

      about

      Description

      The "about" object contains all the information about the resource (person, organization, service, project etc.) described by this entry. The information that is not inside the "about" object is about the actual description, when and by whom it was created and modified.

      Coverage

      Every entry contains this information.

    1. "@context"
      Name

      JSON-LD context (@context)

      Description

      @context is a JSON-LD keyword, specifying the JSON-LD context document. It primarily includes a mapping of JSON keys to RDF properties. Based on the JSON-LD context one can convert the data to different RDF serializations from the JSON provided.

      Coverage

      The JSON-LD is linked in every entry.

      Use cases
  29. Sep 2017