Skip to content

Instantly share code, notes, and snippets.

@ambs
ambs / qt.h
Last active October 27, 2023 15:13
Some useful QT macros
#define foreach(item,collection) for(auto item: collection)
/* EOF */
@ambs
ambs / glove.pl
Created March 21, 2021 15:55
Simple script to run Glove pipeline
#!/usr/bin/env perl
use warnings;
use strict;
use Getopt::Long::Descriptive;
use IPC::Run3;
use Path::Tiny;
my ($opt, $usage) = describe_options(
HTTP ERROR 500 javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/apps/lexwords/search.html: An unknown error occurred: null
URI: /exist/apps/lexwords/search.html
STATUS: 500
MESSAGE: javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/apps/lexwords/search.html: An unknown error occurred: null
SERVLET: XQueryURLRewrite
CAUSED BY: javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/apps/lexwords/search.html: An unknown error occurred: null
CAUSED BY: javax.servlet.ServletException: An error occurred while processing request to /exist/apps/lexwords/search.html: An unknown error occurred: null
CAUSED BY: javax.servlet.ServletException: An unknown error occurred: null
CAUSED BY: java.lang.NullPointerException
Caused by:
<etym type="compounding">
<seg type="desc">De</seg>
<!-- proposal for cross referencing -->
<cit type="etymon"><xr type="related" location="#endo__0"><ref type="entry">endo-</ref></xr></cit>
<!-- Ana original codification -->
<cit type="etymon"><form xml:lang="pt"><orth extent="pref">endo-</orth></form></cit>
<lbl>+</lbl>
<cit type="etymon">
<form xml:lang="grc"><orth>µ ήτρα</orth><pc> '</pc><orth>útero</orth><pc>'</pc></form>
</cit>
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{thing,
author = {Someone},
title = {Something},
journal = {Some Journal},
year = {2018},
}
Attaching to stats_test_1
test_1 | 2020-02-11T19:19:11.054176Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
test_1 | 2020-02-11T19:19:11.054656Z 0 [Note] mysqld (mysqld 5.7.27) starting as process 1 ...
test_1 | 2020-02-11T19:19:11.060512Z 0 [Note] InnoDB: PUNCH HOLE support available
test_1 | 2020-02-11T19:19:11.060563Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
test_1 | 2020-02-11T19:19:11.060576Z 0 [Note] InnoDB: Uses event mutexes
test_1 | 2020-02-11T19:19:11.060593Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
test_1 | 2020-02-11T19:19:11.060604Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
test_1 | 2020-02-11T19:19:11.060615Z 0 [Note] InnoDB: Using Linux native AIO
test_1 | 2020-02-11T19:19:11.061212Z 0 [Note] InnoDB: Number of pools: 1
@ambs
ambs / sample.pl
Last active February 7, 2020 11:37
sub prepare {
my ($schema, $query) = @_
return $schema->storage->dbh_do(
sub {
my ($storage, $dbh, @cols) = @_;
return $dbh->prepare($query);
}
);
}
version: "2"
services:
tesseract:
image: ambs/tesseract:latest
volumes:
- ./texts:/tmp
# $ ls
# docker-compose.yml
<y>
<x>n. m.</x>
<x>adj.</x>
<x>n. m. pl.</x>
<x>n. pl.</x>
<x>det. excl.</x>
<x>v.</x>
<x>adj. m. e f.</x>
<x>n. f.</x>
[ambs@multiplex7 amo-mediadb]$ perl deploy
Already on 'master'
From gitlab.com:africamediaonline/amo-mediadb
* branch master -> FETCH_HEAD
********************* afrihost ********************
--> Working on AMO-MediaDB-0.001.tar.gz
Fetching file:///home/ambs/AMO-MediaDB-0.001.tar.gz ... OK
Configuring AMO-MediaDB-0.001 ... OK
Building and testing AMO-MediaDB-0.001 ... OK
Successfully installed AMO-MediaDB-0.001