Skip to content

Instantly share code, notes, and snippets.

View andreyvit's full-sized avatar

Andrey Tarantsov andreyvit

View GitHub Profile
@andreyvit
andreyvit / gist:10420
Created September 12, 2008 10:58
undefined
PLEASE ABSTAIN FROM ABSTAIN
+--1++<<<>>==<<>>
package com.esko.dtl.core.typeinferencing.constructs.dtl;
import com.esko.dtl.core.ast.ArrayAccess;
import com.esko.dtl.core.typeinferencing.goals.ExpressionValueInfoGoal;
import com.esko.dtl.core.typeinferencing.goals.ValueInfoGoal;
import com.yoursway.sadr.core.ValueInfoContinuation;
import com.yoursway.sadr.engine.Continuation;
import com.yoursway.sadr.engine.ContinuationRequestorCalledToken;
import com.yoursway.sadr.engine.ContinuationScheduler;
import com.yoursway.sadr.engine.InfoKind;
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: unable to execute statement; nested exception is:
java.sql.SQLException: ORA-02291: Integrit?ts-Constraint (KTPS_ALLESKLAR.ASS_TARGET_ELM_ID_2_ELM_ID) verletzt - ?bergeordneter Schl?ssel nicht gefunden
ORA-06512: in "KTPS_ALLESKLAR.PCK_RELATION", Zeile 252
ORA-06512: in "KTPS_ALLESKLAR.PCK_RELATION", Zeile 343
ORA-06512: in "KTPS_ALLESKLAR.PCK_RELATION", Zeile 319
ORA-06512: in Zeile 2
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
commit 39409899d95976981cea80dc140ed2b05953fb72
Author: Andrey Tarantsov <andreyvit@gmail.com>
Date: Sun Oct 12 22:24:11 2008 +0700
Extended all backgrounds to the border of the page
diff --git a/css/yoursway.css b/css/yoursway.css
index bcc5132..565f196 100644
--- a/css/yoursway.css
+++ b/css/yoursway.css
say -v Cellos "oh This is a silly song silly song silly song this is the silliest song ive ever ever heard So why keep you listening listening listening while you are supposed to work to work to work to work its because i hate my job hate my job hate my job its because i hate my job more than anything else"
require 'date'
def print_timesheet(first, last)
last_month = nil
first.upto(last) do |cur|
if last_month != cur.mon
puts
puts Date::MONTHNAMES[cur.mon]
puts
<table>
<tr>
<th valign="top"></th>
<th valign="top"></th>
{% for key in data_keys %}<th valign="top">{{ key|strip_prefix:5 }}</th>{% endfor %}
</tr>
{% for occurrence in occurrences %}
<tr>
<td valign="top"><big>{{occurrence.count}} occurances</big></td>
<td valign="top"><span class="date">{% ifequal occurrence.first_occurrence_at|naturalday:"Nj,Y" occurrence.last_occurrence_at|naturalday:"Nj,Y" %}{{ occurrence.first_occurrence_at|naturalday:"N j, Y" }}{% else %}{{ occurrence.first_occurrence_at|naturalday:"N j, Y" }} – {{ occurrence.last_occurrence_at|naturalday:"N j, Y"}}{% endifequal %}</span></td>
java.lang.NullPointerException
at com.yoursway.sadr.engine.incremental.IncrementalAnalysisEngine$IncrementalGoalState.setPruned(IncrementalAnalysisEngine.java:263)
at com.yoursway.sadr.engine.incremental.IncrementalAnalysisEngine.prune(IncrementalAnalysisEngine.java:371)
at com.yoursway.sadr.engine.AnalysisEngine.timeLimitReached(AnalysisEngine.java:532)
at com.yoursway.sadr.engine.AnalysisEngine.executeQueue(AnalysisEngine.java:522)
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1762)
at com.esko.dtl.core.selection.DtlSelectionEngine.reportField(DtlSelectionEngine.java:234)
at com.esko.dtl.core.selection.DtlSelectionEngine.handleVariable(DtlSelectionEngine.java:175)
at com.esko.dtl.core.selection.DtlSelectionEngine.select(DtlSelectionEngine.java:138)
@register.tag(name='e')
def parse_eval_tag(parser, token):
tag_name, code = token.contents.split(' ', 1)
return PythonEvalNode(code, escape=(lambda x:x))
@register.tag(name='ee')
def parse_eval_and_escape_tag(parser, token):
tag_name, code = token.contents.split(' ', 1)
return PythonEvalNode(code, escape=escape)
private void calculateSymbolOffsets() {
int start = 0;
int lastPercent = 0;
for (int i = 0; i < symbols.size(); i++) {
// int pc = (int) (100.0 * i / symbols.size());
// if (pc != lastPercent) {
// System.out.println("Calculating offsets: " + pc + "% done");
// lastPercent = pc;