- Using System.out.println(debug_msg) + starting Sotograph with sotoplatformConsole.bat
- Using JOptionPane.showMessageDialog(null, debug_msg) + starting Sotograph as usual
Posts mit dem Label BrainDump werden angezeigt. Alle Posts anzeigen
Posts mit dem Label BrainDump werden angezeigt. Alle Posts anzeigen
2012-10-04
Sotograph - Debugging ModelManager
While using the code analysis tool Sotograph you can specify a model of your system in the ModelManager. The specification is written in Java by using the Sotograph API but can also use common Java statements. Sometimes - e.g. when using regex - there is the need to debug your code. To do this you have to possibilities:
2011-05-13
2010-08-01
BrainDump: CouchDB link cheatsheet
Note: "File" and "folder" refer to a couchapp directory structure.
{prefix} = /{db}/_design/{application}
{list_function} = name of file in lists folder (without .js)
{show_function} = name of file in shows folder (without .js)
{view_function} = name of subfolder in views folder
{prefix} = /{db}/_design/{application}
{list_function} = name of file in lists folder (without .js)
{show_function} = name of file in shows folder (without .js)
{view_function} = name of subfolder in views folder
| functionality | link | function | Read on |
|---|---|---|---|
| list | {prefix}/_list/{list_function}/{view_function} | function(head, req) | CouchDB book |
| show | {prefix}/_show/{show_function}/{doc_id} | function(doc, req) | CouchDB book |
| view | {prefix}/_view/{view_function} | map: function(doc) reduce: function(keys, values, rereduce) | intro, view parameter |
2010-07-22
BrainDump: irb - require returns LoadError: no such file to load
Situation:
Solution:
Do
irb(main):011:0> require 'json' LoadError: no such file to load -- json from (irb):11:in `require' from (irb):11 from :0 irb(main):012:0> require 'rubygems' => true irb(main):013:0> require 'json' => true irb(main):014:0>
Solution:
Do
require 'rubygem'before
Abonnieren
Posts (Atom)