Paul Vorbach pvorb

View correct-box-coordinates.patch
1 2 3 4 5 6 7 8 9 10
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);
View baseapi.cpp
1 2 3 4 5 6 7 8 9 10
// 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;
View Bikeshed-tailcall.md

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)
View ant-test.log
1 2 3 4 5 6 7 8 9
Buildfile: C:\Dev\Info2\Masterarbeit\Tess4J\build.xml
 
-pre-init:
 
-init-private:
 
-pre-init-libraries:
 
-init-private-libraries:
View RandomCopy.scala
1 2 3 4 5 6 7 8 9
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:\""")
View compile-to-javascript.md

Ideas for a Compile-to-JavaScript language

  • val for constant values (maybe const?)
View Akka Questions
1 2 3 4 5 6 7 8 9 10
Hello Akka community,
I am currently writting my bachelor thesis "Comparison of Concurrency Frameworks for the JVM"
at the university of ulm in Germany. Since one qualitative property of an framework is also its
community and support I decided to check that by myself by asking this questions. This Gist repo
is thought to gather your ideas and oppinions about Akka relating to the questions below in oder
to improve my comparison. Feel free to answer as controversial as you want :). Just add the points
you miss. Thank you very much.
1. Why do you prefer Akka over other frameworks such as Gpars?
View Global.java
1 2 3
public class Global {
public static Undefined undefined = Undefined.getInstance();
}
View ObjLiteralsTest.java
1 2 3 4 5 6 7 8 9 10
public class ObjLiteralsTest {
public void main(String[] args) {
Object user = new Object() {
int id = 1;
String name = "pvorb";
};
// user.id and user.name cannot be accessed,
// making the whole construct useless though
//
View awesome-php.md

Awesome PHP Libraries

A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).

Something went wrong with that request. Please try again.