Override the entrypoint in docker-compose.yml for the MariaDB Docker container by adding:
entrypoint: mysqld_safe --skip-grant-tables --user=mysql
The start up the Docker Compose stack:
$> docker-compose up -d
interface SerializeableWithKryo | |
class ImmutableClassSerializer<T : SerializeableWithKryo>(val klass: KClass<T>) : Serializer<T>() { | |
val props = klass.memberProperties.sortedBy { it.name } | |
val propsByName = props.toMapBy { it.name } | |
val constructor = klass.primaryConstructor!! | |
init { | |
// Verify that this class is immutable (all properties are final) | |
assert(props.none { it is KMutableProperty<*> }) |
@Entity | |
public class TreeCategory extends IdentifiableEntity { | |
.... | |
@ManyToOne(optional = true) | |
@JoinColumn(name = "parent_id", referencedColumnName = "id") | |
public TreeCategory getParent() { | |
return parent; | |
} |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Color; | |
import org.bukkit.Material; | |
import org.bukkit.enchantments.Enchantment; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.Listener; |
internal object DelegateAccess { | |
internal val delegate = ThreadLocal<Any?>() | |
internal val delegateRequested = ThreadLocal<Boolean>().apply { set(false) } | |
} | |
internal val <T> KProperty0<T>.delegate: Any? | |
get() { | |
try { | |
DelegateAccess.delegateRequested.set(true) | |
this.get() |
clear | |
printf "Would you like to reset your ExpanDrive trial? (y/n): " | |
read PROMPT | |
if [ "$PROMPT" != "y" ] | |
then | |
exit | |
fi | |
printf "Killing ExpanDrive... " | |
pkill ExpanDrive | |
printf "Killed!\nResetting... " |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Method; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import org.bukkit.Bukkit; |
The GitLab container comes with an embedded ssh daemon to provide secure access to the git repositories. This ssh daemon inside the container must be accessible via the ssh port (Port 22) of the host machine. However, this usually conflicts with the ssh daemon run by the host machine.
This document describes how the host and the container ssh can be chained to work nevertheless.
package org.hibernate.test; | |
import com.google.inject.AbstractModule; | |
import com.google.inject.Inject; | |
import com.google.inject.Singleton; | |
import com.google.inject.persist.PersistService; | |
import com.google.inject.persist.jpa.JpaPersistModule; | |
public class DatabaseTestModule extends AbstractModule { |
Hello, brethren :-)
As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".