17 Matching Annotations
  1. Jun 2016
    1. keep the following in mind:

      Permissions (what user accounts on your computer are allowed to access, edit, etc. various files) differ from person to person, but if you ever enter a command and get a message that you're not allowed or don't have permission to run that command, try entering the same command except prefaced with the word sudo plus a space. If the command xcode-select -install returned a message that you don't have permission to execute that command, for example, you would instead try entering sudo xcode-select -install. Type your computer's password and press enter when prompted to do so. (This lets your computer know you have permission to execute this code.) In general, permission defaults are around for a purpose, and a lot of permissions are tied to the root/admin user to make them hard for anyone not sure what they do to accidentally open their computer to risks, but it should be safe to use sudo for any command in this lesson.

    1. Download the Java Development Kit.

      I searched the linked page for this phrase and couldn't find it... took me a minute to realize JDK = Java Development Kit.

  2. Mar 2016
    1. To create an environment variable in Windows 7, click on your Start Menu -> Control Panel -> System -> Advanced System Settings (Figures 1,2,3).

      There is a slight difference for Windows 10, Start Menu -> Windows System -> Control Panel...

      It can not be located through the Windows 10 settings interface.

    2. bin\mallet import-dir --help

      Remember Mac Users: you need to use ./bin/mallet import-dir --help

  3. Feb 2016
    1. Since I want to use this to map the Washington residences for Members of these late 19th-century Congresses, how might I make this data mor

      Please provide the OCRd text file

    1. You can find them by unselecting the Numeric checkbox, leaving only Non-numeric values.

      It was not immediately apparent to me that this is in the left hand column and not the main spreadsheet.

    2. lso archived on the Programming Historian site: as phm-collection).

      Link is definitely broken.

    3. archived on the Programming Historian site: as phm-collection).

      Link is broken.

    4. OpenRefine will open in your browser,

      Sometimes, it doesn't. It will be running, but you will need to point your browser to this address:

      127.0.0.1:3333

      The 127.0.0.1 is your home machine (also known as localhost, while the :3333 is the port that open refine is serving up at.

    1. SELECT ?object WHERE { # Search for all values of ?object that have a given "object type" ?object bmo:PX_object_type ?object_type . # That object type should have the label "print" ?object_type skos:prefLabel "print" . }

      Starting with a random search result from the British Museum's collection, I worked backwards and was able to construct my own SPARQL query using this as a template of sorts.

      # My Edited SPARQL Query
      
      # To run the prefix ecrm, you must include CIDOC-CRM Ontology
      PREFIX ecrm: <http://erlangen-crm.org/current/>
      PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
      SELECT ?object
      WHERE {
      
      # Searching for all objects that have a common "person or institution"
        ?object ecrm:P51_has_former_or_current_owner ?person_institution .
      
        ?object_type skos:prefLabel "print" .
      }
      
    1. pip install requests pip install beautifulsoup4 pip install simplekml

      Some of my students were finding (chiefly on Windows machines) that they needed the -m flag, eg

      python -m pip install pymarc to call pip successfully.

    2. We’re going to use a program
    1. new item with a title and a tag name.

      We've found that we get an error message to the effect that we do not have permission to write. See https://twitter.com/electricarchaeo/status/696703569337176064

    1. print item.bibContent

      this line is throwing an error on Windows 10 systems, to do with character encoding.

      UnicodeEncodeError: 'charmap' codec can't encode character

      From googling around, this seems to be an issue in the console window for the command prompt. This thread might be useful towards a solution: http://stackoverflow.com/questions/32694994/utf-8-on-windows-python

    2. print

      this needs to be indented

    1. novice-friendly, peer-reviewed tutorials that help humanists learn a wide range of digital tools, techniques, and workflows to facilitate their research.

      Something that would be nice to have is perhaps a suggested progression or path through the tutorials towards different end goals.

    1. Version 3 is available

      This might be a good place to link out to some comparisons of Python 2.x vs 3.x, including the overlap. I'm new to both versions, which is why I'm shopping this tutorial, but I found this page helpful:

      http://python-notes.curiousefficiency.org/en/latest/python3/questions_and_answers.html

      In particular, the section on why it might now make sense to learn Python 3 first, and Python 2 as a follow-up, convinced me that I should probably follow that advice. So maybe I'll be back! But I'll probably head over to a different tutorial for the time being.