View solr_installation.md

Installing Solr for the first time

Prerequisites

To run Solr on your machine you need to have the Java Development Kit (JDK) installed. To verify if that the JDK is installed run the following command from the Terminal:

$ java --version

  #
  # java version "9.0.1"
View server.go
// An example on how to generate a local SSL certificate in Go
// and serve HTTPS traffic with it.
//
// Code taken from the book Go Web Programming by Sau Sheong Chang
// https://github.com/sausheong/gwp
//
// Run with `--https` to serve traffic via HTTPS (it will create the certificate
// and private key files if they don't exist)
//
// Run with no parameters to serve traffic via HTTP (no certificates needed)
View solr.sh
# Delete one Solr document by ID
curl "http://localhost:8080/solr/blacklight-core/update?commit=true" \
-H "Content-Type: text/xml" \
--data-binary '<delete><id>xyz</id></delete>'
# Delete ALL Solr documents
curl "http://localhost:8080/solr/blacklight-core/update?commit=true" \
-H "Content-Type: text/xml" \
--data-binary '<delete><query>*:*</query></delete>'
View main.go
// In this post https://dave.cheney.net/2017/04/29/there-is-no-pass-by-reference-in-go
// Dave Cheney says that "there is no pass-by-reference in Go"
// but this snipet shows that there is.
//
// What am I missing?
//
package main
import (
"fmt"
View node_modules-in-git.md

node_modules in git

December 10 2011
By mikeal

One of the many things we have been forced to rethink in the world of node is how we handle dependencies in applications.

One of the big changes that came with 0.4.0 was support for node_modules. This change had major consequences. It elevated local modules, in a local directory, above modules installed globally. Along with npm changing its default install preference to local rather than global we've seen a nearly unanimous shift to local module installs that has made global installs somewhat distasteful.

View forever-initd-hectorcorrea.sh
#!/bin/bash
#
# initd-example Node init.d
#
# chkconfig: 345
# description: Script to start a coffee script application through forever
# processname: forever/coffeescript/node
# pidfile: /var/run/forever-initd-hectorcorrea.pid
# logfile: /var/run/forever-initd-hectorcorrea.log
#
View json2str.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>JSON to String</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
</head>
<body>
View callnumbers.py
import re
import pymysql.cursors # see https://github.com/PyMySQL/PyMySQL
__version__ = '0.1.0'
joiner = ''
topspace = ' '
bottomspace = '~'
topdigit = '0'
bottomdigit = '9'
View work.ttl
# A reduced set of the triples created for a single
# Work with one fileset, and one file in Sufia 7.
# The work
#
<work1>
hasModel GenericWork ;
dc:title "Work One" ;
ldp:contains <work1/members> ;
View frbr.md

FRBR + Fedora + Inheritance

My notes from the Google Hangout organized by Christina Harlow (@cm_harlow) on 7/14/2015

Keep in mind that I captured this as the video call went on and I might have gotten some of it wrong. I'll update this page with a link to the recording once it becomes available.

What is FRBR?

FRBR (Functional Requirements for Bibliographic Records) is a 1998 recommendation of the International Federation of Library Associations and Institutions (IFLA) to restructure catalog databases to reflect the conceptual structure of information resources. - http://www.oclc.org/research/activities/frbr.html