Skip to content

Instantly share code, notes, and snippets.

View dcolish's full-sized avatar

Dan dcolish

View GitHub Profile
make all-recursive
make[1]: Entering directory `/tmp/xapian/xapian-core'
Making all in .
make[2]: Entering directory `/tmp/xapian/xapian-core'
/bin/bash ./libtool --tag=CXX --mode=link g++ -fshow-column -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Woverloaded-virtual -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Wlogical-op -Wmissing-declarations -Wdouble-promotion -Winit-self -Werror -fvisibility=hidden -g -O2 -o bin/xapian-delve bin/xapian-delve.o libgetopt.la libxapian-1.3.la -licuuc -llink-grammar
libtool: link: g++ -fshow-column -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Woverloaded-virtual -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Wlogical-op -Wmissing-declarations -Wdouble-promotion -Winit-self -Werror -fvisibility=hidden -g -O2 -o bin/.libs/xapian-delve bin/xapian-delve.o ./.libs/libgetopt.a ./.libs/libxapian-
diff --git a/xapian-core/queryparser/linkgrammar.cc b/xapian-core/queryparser/linkgrammar.cc
index 37518a9..dbcafb7 100755
--- a/xapian-core/queryparser/linkgrammar.cc
+++ b/xapian-core/queryparser/linkgrammar.cc
@@ -32,10 +32,9 @@ using namespace Xapian;
using namespace std;
-LinkGrammar::LinkGrammar(const string & language, const int seconds)
+LinkGrammar::LinkGrammar(const string & language, const int seconds) :
diff --git a/xapian-bindings/java/Makefile.am b/xapian-bindings/java/Makefile.am
index e1adf65..2be037d 100644
--- a/xapian-bindings/java/Makefile.am
+++ b/xapian-bindings/java/Makefile.am
@@ -16,10 +16,10 @@ SmokeTest: SmokeTest.class
if MAINTAINER_MODE
.java.class:
- $(JAVAC) -g -classpath $(srcdir)$(JAVA_PATHSEP). -d . $<
+ $(JAVAC) -g -classpath $(srcdir)$(JAVA_PATHSEP). -d . $(JFLAGS) $<
import java.util.*;
class ItorTest {
ArrayList<String> foo;
public static void main (String [] args) {
ArrayList<String> foo = new ArrayList<String>();
foo.add("Hello");
foo.add("World");
for (Iterator<String> it = foo.iterator(); it.hasNext();) {
"""
Gist
----
Gist is a command line tool for interacting with `gist.github.com`_. Usage
information is available through the command line interface help.
.. _gist.github.com: <https://gist.github.com>
.. important::
sqlite> .headers on
sqlite> select id as meh, value as omg from bar;
meh omg
---------- ----------
1 hello
2 world
$ free -m
total used free shared buffers cached
Mem: 32212 31969 242 0 75 1625
-/+ buffers/cache: 30269 1942
Swap: 4215 67 4148
Foo
===
.. only:: python
.. code-block:: python
>>> foo = 'hello'
>>> print foo
@dcolish
dcolish / jdoc.sh
Created February 9, 2013 19:31
Always have the javadocs
#!/bin/bash
if [ $DEBUG ]; then
set -x
fi
set -e
unpackJar() {
echo $1
Exception in thread "main" java.lang.ClassCastException: sample$eval7$stream__8 cannot be cast to java.io.BufferedReader
at sample$eval7.invoke(meh.clj:11)
at clojure.lang.Compiler.eval(Compiler.java:6514)
at clojure.lang.Compiler.load(Compiler.java:6955)
at clojure.lang.Compiler.loadFile(Compiler.java:6915)
at clojure.main$load_script.invoke(main.clj:283)
at clojure.main$script_opt.invoke(main.clj:343)
at clojure.main$main.doInvoke(main.clj:427)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.lang.Var.invoke(Var.java:415)