Skip to content

Instantly share code, notes, and snippets.

View koo5's full-sized avatar
💭
github sucks

koo5

💭
github sucks
View GitHub Profile
kook@kook:~/eulergui-code/eulergui$
kook@kook:~/eulergui-code/eulergui$
kook@kook:~/eulergui-code/eulergui$ java -jar /home/kook/.m2/repository/eulergui/eulergui/2.1-SNAPSHOT/eulergui-2.1-SNAPSHOT-jar-with-dependencies.jar deductions.runtime.swing.explorer.SWExplorer dbpedia:The_Beatles
>>>>>>>>> ApplicationKB.startInitializationInBackground()
Feb 16, 2014 10:26:04 PM eulergui.project.ProjectChangeSupport addProjectListener
INFO: ProjectChangeSupport.addProjectListener(): added listener eulergui.project.ProjectState@abc8ee
ApplicationKB.ApplicationKB(): starting.
==== ApplicationKB.ApplicationKB() initialization Thread started.
Thread: main
Feb 16, 2014 10:26:04 PM eulergui.project.ProjectChangeSupport addProjectListener
kook@kook:~/test$ clang++ -std=c++11 ode.cpp
ode.cpp:22:29: error: declaration of 'functor_type' shadows template parameter
template <typename functor_type> class Container1,
^
ode.cpp:20:19: note: template parameter is declared here
template<typename functor_type,
^
ode.cpp:23:29: error: declaration of 'coord_type' shadows template parameter
template <typename coord_type> class Container2,
^
if(message_yes_no(win_gallery, "Close projekt", "Do you want to real close project without save"))
message_error(NULL, "CREATE DIR ERROR!!!", "I can not create directory for configuration for this program.");
message_error(NULL, "CREATE DIR ERROR!!!", "I can not create directory for colections for this program.");
message_error(NULL, "COPY DEFAULT THEMES ERROR!!!", "I can not copy the default themes to config dir");
gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG (dialog), "Gallery can show in <a href=\"%s\">index.html</a>.", name_index);
dialog = gtk_file_chooser_dialog_new ("Select export directory for your gallery",
message_error(win_gallery, "ERROR export gallery!", "Sorry, no free memory or your disk is full.");
message_error(win_gallery, "No import file!!!", "Sorry, but I do not know this format");
@koo5
koo5 / notes
Last active August 29, 2015 14:02
building unipycation, 12th june 2014:
doesnt build on x86, see attached log
builds on amd64, runs, but examples dont work, next step probably would be trying to run tests.
built with 4gb of ram using zram (apt-get install zram-config, then edit /etc/init/zram-config.conf, service zram-config restart) (googling building pypy with low ram finds some other possible solutions)
#these might be useful:
apt-get install pypy-dev pypy python-pip mercurial git
cwm ~/Downloads/sw/eulergui-code/eulergui/examples/DateTime-rules.n3
#Processed by Id: cwm.py,v 1.197 2007/12/13 15:38:39 syosi Exp
# using base file:///home/kook/Downloads/sw/eulergui-code/eulergui/examples/DateTime-rules.n3
# Notation3 generation by
# notation3.py,v 1.200 2007/12/11 21:18:08 syosi Exp
# Base was: file:///home/kook/Downloads/sw/eulergui-code/eulergui/examples/DateTime-rules.n3
@prefix : <#> .
@prefix Dat: <http://protege.org/ontologies/DateTimeExample.owl#> .
#!/usr/bin/python
"""
$Id: cwm.py,v 1.197 2007/12/13 15:38:39 syosi Exp $
Closed World Machine
(also, in Wales, a valley - topologiclly a partially closed world perhaps?)
This is an application which knows a certian amount of stuff and can manipulate
it. It uses llyn, a (forward chaining) query engine, not an (backward chaining)
kook@databox ~/o/n/t/classes>
kook@databox ~/o/n/t/classes> java -jar ~/jython2.7b4/jython.jar test.py
SLF4J: The requested version 1.5.6 by your slf4j binding is not compatible with [1.6, 1.7]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
[[u'=|>'], [u'=/>']]
[[u'$', <class '__main__.Word'>], [u'#', <__main__.optional object at 0x2>], [u'?', <__main__.optional object at 0x3>]]
[[u'$', <class '__main__.Word'>], [u'#'], [u'?', <__main__.optional object at 0x3>], [u'#', <class '__main__.Word'>]]
[[u'$', <class '__main__.Word'>], [u'#'], [u'?'], [u'#', <class '__main__.Word'>], [u'?', <class '__main__.Word'>]]
[[u'$', sym{u'type': <class '__main__.Number'>, u'name': 'priority'}, <__main__.optional object at 0x4>, u'$']]
[[u'$', sym{u'type': <class '__main__.Number'>, u'name': 'priority'}, u'$'], [u'$', sym{u'type': <class '__main__.Number'>, u'name': 'priority'}, u';', sym{u'type': <class '__main__.Number'>, u'name': 'durability'}, u'$']]
// package com.github.jsonldjava.utils;
// import java.net.URI;
// import java.net.URISyntaxException;
// import java.util.ArrayList;
// import java.util.Arrays;
// import java.util.List;
// import java.util.regex.Matcher;
// import java.util.regex.Pattern;
@koo5
koo5 / x
Last active August 29, 2015 14:25
x
Evidence:
#>...
"^^http://www.w3.org/2001/XMLSchema#string #file_contents "short.natural3" <=
=> #file_contents(#>...
"^^http://www.w3.org/2001/XMLSchema#string() ,"short.natural3"())
=> #parser(#integer() ,#language())
=> #parse(_:b5() ,.(#>...
"^^http://www.w3.org/2001/XMLSchema#string() ,.(#integer() ,.())))
=> #arg0(_:b5() ,_:b4())