Skip to content

Instantly share code, notes, and snippets.

View gist:74f8abf6e3407a0dd6e7
$Id:,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)
View gist:3c34781d5a5d4c4c271c
cwm ~/Downloads/sw/eulergui-code/eulergui/examples/DateTime-rules.n3
#Processed by Id:,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
#,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: <> .
View notes
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
View x
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");
View gist:9655444
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,
View gist:9040939
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
View g
(require :update)
(assertz '(repr require ((t "
(repr (node)) or (docs (node))
View gist:6611262
the lemon ssh cilent is a program
the lemon ssh client alias is ssh
to display ssh:
if there are active connections:
display list of connections
to display list of connections:
gui window
kook@kook:~/kurva_pica/pyglet-1.2alpha1/examples$ ./
Traceback (most recent call last):
File "./", line 145, in <module>
window = Window(resizable=True)
File "./", line 62, in __init__
TextWidget('', 200, 100, self.width - 210, self.batch),
File "./", line 28, in __init__
font = self.document.get_font(0)
File "/usr/lib/pymodules/python2.7/pyglet/text/", line 660, in get_font
return iter[position]
You can’t perform that action at this time.