Skip to content

Instantly share code, notes, and snippets.

View markpbaggett's full-sized avatar

Mark Baggett markpbaggett

View GitHub Profile
@markpbaggett
markpbaggett / 1995.txt
Created April 23, 2024 13:59
UTK News from 1995
1995-12-22: UTK Made Big Strides Academically In 1995: Dean Says - News
1995-12-14: Degrees To Be Awarded At Fall Commencement - News
1995-12-14: UT Transportation Student From Chattanooga Is Southeast's Best - News
1995-12-14: UT Transportation Student Helps West Knox Traffic - News
1995-12-20: General Shale Supports UT Architecture - News
1995-12-21: Statement From UT President Joe Johnson On Recommendations of the Commission on Practical Government - News
1995-12-22: In-State Primary Care Physicians Produced By UT - News
1995-12-04: Counties Not Likely To Be Fined, UT Researcher Says - News
1995-12-05: UT-Knoxville Students Present Downtown Knoxville Plans - News
1995-12-05: UT Spring Graduates Face Good Job Prospects - News
@markpbaggett
markpbaggett / 2022.txt
Created April 23, 2024 13:58
2022 UTK News Example
2022-12-23: 2022 Wrapped: A Year in Photos - News
2022-12-15: Boyd Center Report Shows Recession Less Likely in Tennessee, but Economic Growth Will Slow - News
2022-12-16: The Conversation: Japan’s Laughing Buddha Hotei is Merging into Santa Claus – Both are Roly-Poly Sacred Figures with a Bag of Gifts - News
2022-12-21: The Conversation: Innovative Products Lead to a Boom in Imitation and Often a Bust — Just Look at Atari and Bitcoin - News
2022-12-21: The Conversation: What’s Program-Related Investment? A Management Scholar Explains One Way that Foundations Support Charities Without Giving Money Away for Good - News
2022-12-07: UT Commits $50 Million to Transdisciplinary Cluster Hires - News
2022-12-08: Peyton Manning Scholars Recognized for Academic Excellence and Character - News
2022-12-09: Former Governor Bill Haslam to Address Fall Graduates - News
2022-12-09: UT Named Best Student Section of the Year - News
2022-12-13: UT Announces Distinguished Tennessean Scholars - News
import os
from moviepy.editor import VideoFileClip
import subprocess
class DurationCalculator:
def __init__(self, file_path):
self.audio_types = ('.mp3')
self.video_types = ('mp4', 'mov', 'm4v', 'dv')
self.file_path = file_path
{
"@context": [
"http://iiif.io/api/extension/navplace/context.json",
"http://iiif.io/api/presentation/3/context.json"
],
"id": "https://raw.githubusercontent.com/markpbaggett/static_iiif/main/manifests/abolition_now/0001_minneapolice.json",
"type": "Manifest",
"label": {
"en": [
"Minneapolice"
{
"@context": [
"http://iiif.io/api/extension/navplace/context.json",
"http://iiif.io/api/presentation/3/context.json"
],
"id": "https://raw.githubusercontent.com/markpbaggett/static_iiif/main/manifests/abolition_now/0001_minneapolice.json",
"type": "Manifest",
"label": {
"en": [
"Minneapolice"

Weekly Report - March 25, 2024 - March 28, 2024

Tasks Worked On

  • Student Newspapers
    • Finished Batch 3 of 7
  • Digital Commons and Interoperability
    • Fixed metadata problem that had stopped new digital commons works from being interoperable since August 2022.
    • Brought OneSearch up to date with Digital Commons.
  • Video Migrations
@markpbaggett
markpbaggett / report.md
Last active March 15, 2024 21:44
Weekly Report - March 11, 2024 - March 15, 2024

Weekly Report - March 11, 2024 - March 15, 2024

Tasks Worked On

  • Student Newspapers
    • Continued import of Student Newspapers -- we're almost done with Batch 01
    • All that remains there is Batch 01/batch_OandW_03
    • Struggling a bit with Solr here. I can't remember if we've always had this problem to some extent, but at points gsearch or solr is dropping out (could be gsearch) and indexing stops working.
    • Haven't explored logs to determine why
  • For now, simply addressing by restarting services and manually rekicking things off
@markpbaggett
markpbaggett / issue.py
Created March 15, 2024 02:26
Experiments with Claude 3 and Student Newspapers
import anthropic
import base64
import httpx
import json
class Issue:
def __init__(self, iiif_manifest):
self.manifest = iiif_manifest
self.pages = self.__get_pages()
@markpbaggett
markpbaggett / report.rst
Last active March 11, 2024 12:24
Weekly Report - March 2, 2024 - March 8, 2024

Weekly Report - March 2, 2024 - March 8, 2024

Tasks / Worked On

  • Finished UTK Mag import.
  • Wrote Charter for AV Annotations TSG and created Initial Feedback Report for IIIF Editors.
  • Completed upgrade for Aeon 5.2 upgrade including upgrading ArchivesSpace Plugin.
  • Worked with Kirk to fix derferencing id.loc.gov problems so that value in English is always selected.