Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

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

Paul Vorbach pvorb

🏠
Working from home
View GitHub Profile
@pvorb
pvorb / keybase.md
Created August 10, 2017 18:02
keybase.md

Keybase proof

I hereby claim:

  • I am pvorb on github.
  • I am pvorb (https://keybase.io/pvorb) on keybase.
  • I have a public key ASDlq4Z2Ge0jZ0quHrwTgRDbA9UuIl2JKishISUZYaCQAwo

To claim this, I am signing this object:

@pvorb
pvorb / java-todo.md
Last active April 6, 2019 21:46 — forked from spilth/java-todo.md
Java Developer To Do List

This is a collection of tasks/exercises/experience I want to have accomplished as a Java Developer. I'm leaving the tasks undone so that others can easily copy this list and track their own progress.

If you have suggested additions, please leave a comment below.

  • Create a Maven project using the command-line
  • Test Driven Development using a testing framework
    • JUnit
    • Hamcrest Matchers
  • Behavior Drive Development using a framework
  • Cucumber
@pvorb
pvorb / notes.md
Created December 18, 2014 01:43 — forked from gangstead/notes.md

Typesafe webinar notes: Spray & Akka HTTP

Presenter - Mathias Doenitz

Spray.io

  • embeddable http stack built on Akka actors
  • Just an HTTP integration layer, not for building full web apps
  • Server & client side
@pvorb
pvorb / install.log
Created July 16, 2014 08:13
FontPro logs
cp: cannot stat `tex/*.sty': No such file or directory
cp: cannot stat `tex/*.cfg': No such file or directory
cp: cannot stat `tex/*.fd': No such file or directory
mktexlsr: Updating /cygdrive/e/Program Files/MiKTeX/ls-R...
mktexlsr: Done.
@pvorb
pvorb / correct-box-coordinates.patch
Created April 19, 2014 09:45
Correct Box coordinates by adding a static_cast in Tesseract 3.03
Index: ccmain/pageiterator.cpp
===================================================================
--- ccmain/pageiterator.cpp (Revision 1058)
+++ ccmain/pageiterator.cpp (Arbeitskopie)
@@ -288,9 +288,9 @@
const int pix_height = pixGetHeight(tesseract_->pix_binary());
const int pix_width = pixGetWidth(tesseract_->pix_binary());
*left = ClipToRange(static_cast<int>(box.left()), 0, pix_width);
- *top = ClipToRange(pix_height - box.top(), 0, pix_height);
+ *top = ClipToRange(pix_height - static_cast<int>(box.top()), 0, pix_height);
// BASELINE INFORMATION
if (level == PageIteratorLevel::RIL_TEXTLINE) {
int x1, y1, x2, y2;
it->Baseline(level, &x1, &y1, &x2, &y2);
int p0;
float p1;
p0 = bottom - y1;
p1 = ((float) (y1 - y2)) / (x2 - x1);
int f_size;
@pvorb
pvorb / Bikeshed-tailcall.md
Created January 28, 2014 10:56
Rust Bikeshed tailcall

This page is for collecting ideas around axing or implementing tail calls in rust. The current status of this issue is undecided after a longer discussion on the list in jul/aug 2001. (There currently is no consensus on the matter nor is this page a complete summary of that thread, I am just writing down a few own thoughts right now but the page may very well become that -- boggle)

Pro/Con

  • Pro: Obvious uses in functional programming (But: Replacable with iterators/blocks in many cases)
  • Pro: People expect that in a language that says to support functional programming with immutability as a default (But: Well
    that really just is a sales argument and should not steer design)
  • Pro: Simple, forwarding functions don't pay the cost of an extra stack frame
    • this is currently used in core::float to pass calls on to core::f32 and core::f64 depending on the target
      architecture (even though "be" is not really implemented)
@pvorb
pvorb / ant-test.log
Created January 16, 2014 15:27
Testing Tess4J
Buildfile: C:\Dev\Info2\Masterarbeit\Tess4J\build.xml
-pre-init:
-init-private:
-pre-init-libraries:
-init-private-libraries:
@pvorb
pvorb / RandomCopy.scala
Created October 31, 2013 17:01
Copies all MP3-files in a directory to another directory in a random order.
import java.io.File
import java.nio.file.{ Files, StandardCopyOption }
import java.util.{ Collections, Random }
import scala.collection.JavaConversions
object RandomCopy extends App {
val src = new File("""E:\Backup\Auto""")
val dest = new File("""F:\""")