Skip to content

Instantly share code, notes, and snippets.

View apetro's full-sized avatar
🏠
Working from home

Andrew Petro apetro

🏠
Working from home
View GitHub Profile
@apetro
apetro / LoggerTest.java
Last active August 19, 2021 14:10
Exception as last argument on a placeholder-filling slf4j logger.error() call
View LoggerTest.java
package org; // ignore this for example
import org.junit.Test;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
public class LoggerTest {
Logger logger = LoggerFactory.getLogger(getClass());
@apetro
apetro / dresden-files-characters-per-book.md
Last active January 3, 2021 15:30
Key characters in Dresden Files books
View dresden-files-characters-per-book.md

Resource supporting playing Dresden Files: The Cooperative Card Game.

To make the game thematic, you might want to play each "book" with characters who featured prominently in that book. The included game rules even state

For maximum authenticity and fun, read or re-read the Dresden Files novels as you go through the campaign, and include the Characters who appeared in the corresponding Book deck you are playing.

Indeed. Who wouldn't want maximum authenticity and fun? And the novels are a pleasure, especially as read by James Marsters as audio books.

But also, who has the time. So, this Snippet collects hints of who prominent characters were in which of the books so that you can more easily grab the authentic characters to go with the books.

@apetro
apetro / HttpHeaderTester.java
Last active March 27, 2019 16:29
HttpHeaderTester PAGS plugin
View HttpHeaderTester.java
/**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a
* copy of the License at the following location:
*
* http://www.apache.org/licenses/LICENSE-2.0
@apetro
apetro / README.md
Created March 27, 2019 16:10
Customized uPortal 4.2 Snooper
View README.md

Snooper

Customized Snooper JSP and Spring Web Flow XML configuration file.

Shows IPerson user attributes and group memberships.

@apetro
apetro / ask-about-on-open.md
Created April 23, 2018 13:39
Stuff to ask Apereo about
View ask-about-on-open.md
  • Welcoming policy
  • Strategy for first half of 2018
  • Website WG
  • Sakai spending money it doesn't have?
  • Accounting- why so expensive?
  • Executive director goals? Any that can be shared publicly? How's it going meeting these?
  • travel, feedback from trips?
  • having created on-ramp to membership for Africa, how's that working out?
  • What's with the corporation "members"? Didn't Apereo used to be by for and about higher ed? Why do the non-higher-ed organizations get a vote?
@apetro
apetro / portal.log
Created May 24, 2017 16:49
NPE in uPortal master /api/v1/dlm/layout.json @ f0805a00465795102796d3c7ffef93628887bf83
View portal.log
ERROR [http-nio-8080-exec-8] o.a.p.web.ExceptionLoggingFilter 2017-05-24 10:54:14,208 - uPortal: unhandled exception 'Request processing failed; nested exception is java.lang.NullPointerException' for URL=/uPortal/api/v1/dlm/layout.json, user=null , from IP=0:0:0:0:0:0:0:1
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:963) ~[spring-webmvc-3.2.18.RELEASE.jar:3.2.18.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:842) ~[spring-webmvc-3.2.18.RELEASE.jar:3.2.18.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) ~[servlet-api.jar:na]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:827) ~[spring-webmvc-3.2.18.RELEASE.jar:3.2.18.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) ~[servlet-api.jar:na]
at org.apache.catalina
@apetro
apetro / guest_layout.json
Last active May 24, 2017 15:53
DLM layout.json v4-3 examples from pre-uPortal-5 master @ f0805a00465795102796d3c7ffef93628887bf83
View guest_layout.json
{
"user": "guest",
"authenticated": "false",
"hostname": "localhost",
"fragmentAdmin" : "false",
"locale": "en-US",
"layout": {
"globals": {
"userLayoutRoot": "root",
@apetro
apetro / 2017-gonzalez-fellow-nominate.md
Last active March 31, 2017 13:44
2017-gonzalez-fellow-nomination
View 2017-gonzalez-fellow-nominate.md

Nominee name: Benito Gonzalez

Nominee email: bgonzalez@unicon.net

Organization: Unicon, Inc.

Past contributions

Benito has been a long-time member of the Jasig and Apereo communities, as an adopter of Sakai, uPortal, and CAS, and now as a consultant primarly working on uPortal at Unicon. Benito recently joined the uPortal Steering Committee.

@apetro
apetro / 2017-vertein-fellow-nominate.md
Last active March 30, 2017 18:25
2017 Tim Vertein Apereo fellow nomination
View 2017-vertein-fellow-nominate.md

Nominee name: Tim Vertein

Nominee email: timothy.vertein@wisc.edu

Organization: UW-Madison

Past contributions

Tim Vertein's primary contributions are as a core developer of and leader in the now-incubating AngularJS-portal uPortal add-on, with contributions directly to traditional uPortal in that context and to the Portlets MyUW uses, including the core-to-uPortal Web Proxy Portlet and the incidentally open source UW-Madison HRS Portlets.

@apetro
apetro / angularjs-portal-incubating.md
Last active March 22, 2017 16:16
AngularjS-portal description for Apereo website incubating projects page
View angularjs-portal-incubating.md

AngularJS-portal

[This project][AngularJS-portal website] is an alternative user interface for use with [uPortal][], levaraging APIs, content, and functionality in uPortal and adding experiences.

Features:

  • Simplified initial dashboard user experience with strongly typed, designed widgets.
  • Notifications.
  • User-browseable directory of applications.
  • Search, over the directory of applications and beyond.