MojoFacets.git
13 years agowe really need separate on_path for apply
Dobrica Pavlinusic [Thu, 24 Jun 2010 23:11:11 +0000 (01:11 +0200)]
we really need separate on_path for apply

13 years agoremoved debug output to speedup code commit
Dobrica Pavlinusic [Thu, 24 Jun 2010 22:54:17 +0000 (00:54 +0200)]
removed debug output to speedup code commit

13 years agoload items after commit with modified path
Dobrica Pavlinusic [Thu, 24 Jun 2010 22:53:45 +0000 (00:53 +0200)]
load items after commit with modified path

13 years agocleanup changes and apply code on dataset
Dobrica Pavlinusic [Thu, 24 Jun 2010 22:39:12 +0000 (00:39 +0200)]
cleanup changes and apply code on dataset

This involved creating few more __ MojoFacets::Data methods

13 years agoapply on current dataset by default
Dobrica Pavlinusic [Thu, 24 Jun 2010 19:20:27 +0000 (21:20 +0200)]
apply on current dataset by default

13 years agomove /changes to root
Dobrica Pavlinusic [Thu, 24 Jun 2010 19:13:24 +0000 (21:13 +0200)]
move /changes to root

13 years agoautomatically dump right header for each type once
Dobrica Pavlinusic [Thu, 24 Jun 2010 18:57:36 +0000 (20:57 +0200)]
automatically dump right header for each type once

13 years agodump changes with code
Dobrica Pavlinusic [Thu, 24 Jun 2010 18:56:58 +0000 (20:56 +0200)]
dump changes with code

13 years agotry to better explain actions and changes
Dobrica Pavlinusic [Thu, 24 Jun 2010 18:19:30 +0000 (20:19 +0200)]
try to better explain actions and changes

13 years agodocument data export
Dobrica Pavlinusic [Thu, 24 Jun 2010 16:25:22 +0000 (18:25 +0200)]
document data export

13 years agoexplain usage of $update in code eval
Dobrica Pavlinusic [Thu, 24 Jun 2010 16:22:38 +0000 (18:22 +0200)]
explain usage of $update in code eval

13 years agosave commit_changed
Dobrica Pavlinusic [Thu, 24 Jun 2010 15:47:35 +0000 (17:47 +0200)]
save commit_changed

13 years agoignore changes without unique in commit
Dobrica Pavlinusic [Thu, 24 Jun 2010 15:31:16 +0000 (17:31 +0200)]
ignore changes without unique in commit

13 years agoextract _save_change and use for code commits
Dobrica Pavlinusic [Thu, 24 Jun 2010 15:30:05 +0000 (17:30 +0200)]
extract _save_change and use for code commits

13 years agostrip traling slash for dirs in _export_path
Dobrica Pavlinusic [Thu, 24 Jun 2010 14:52:19 +0000 (16:52 +0200)]
strip traling slash for dirs in _export_path

13 years agoimport filters with unac columns
Dobrica Pavlinusic [Thu, 24 Jun 2010 11:52:52 +0000 (13:52 +0200)]
import filters with unac columns

13 years agonormalize JUST column names
Dobrica Pavlinusic [Thu, 24 Jun 2010 10:58:15 +0000 (12:58 +0200)]
normalize JUST column names

13 years agouse Module::Install
Dobrica Pavlinusic [Thu, 24 Jun 2010 10:51:42 +0000 (12:51 +0200)]
use Module::Install

this allows us to install required modules without extra step thanks
to auto_install

13 years agoshow all applicable filters
Dobrica Pavlinusic [Thu, 24 Jun 2010 09:51:51 +0000 (11:51 +0200)]
show all applicable filters

Previously we showed only filters which have columns visible, but still
applied filters on dataset

13 years agoexport paths changed filenames
Dobrica Pavlinusic [Thu, 24 Jun 2010 09:21:41 +0000 (11:21 +0200)]
export paths changed filenames

We replace all non-word characters with _

13 years agodump undef or NULL values as \N
Dobrica Pavlinusic [Wed, 23 Jun 2010 16:32:06 +0000 (18:32 +0200)]
dump undef or NULL values as \N

This is compatibile with PostgreSQL dump file format, and allows
us to correctly align columns for export to gnuplot

13 years agofix support for cp1250 encoded files
Dobrica Pavlinusic [Wed, 23 Jun 2010 16:18:45 +0000 (18:18 +0200)]
fix support for cp1250 encoded files

13 years agoeven more agressicly script export path
Dobrica Pavlinusic [Tue, 22 Jun 2010 22:15:03 +0000 (00:15 +0200)]
even more agressicly script export path

13 years agosubmit form on export checkbox set
Dobrica Pavlinusic [Tue, 22 Jun 2010 22:14:41 +0000 (00:14 +0200)]
submit form on export checkbox set

13 years agowrap image in next line
Dobrica Pavlinusic [Tue, 22 Jun 2010 21:58:32 +0000 (23:58 +0200)]
wrap image in next line

13 years agoredirect to load without session path
Dobrica Pavlinusic [Tue, 22 Jun 2010 21:42:22 +0000 (23:42 +0200)]
redirect to load without session path

13 years agoremove link added to each export
Dobrica Pavlinusic [Tue, 22 Jun 2010 21:05:27 +0000 (23:05 +0200)]
remove link added to each export

13 years agouse param to trasfer timefmt to gnuplot image
Dobrica Pavlinusic [Tue, 22 Jun 2010 20:51:15 +0000 (22:51 +0200)]
use param to trasfer timefmt to gnuplot image

13 years agoshow png pictures below each export or items
Dobrica Pavlinusic [Tue, 22 Jun 2010 20:50:23 +0000 (22:50 +0200)]
show png pictures below each export or items

13 years agoshow import link only for filters
Dobrica Pavlinusic [Tue, 22 Jun 2010 20:46:43 +0000 (22:46 +0200)]
show import link only for filters

13 years agosort files by mtime descending
Dobrica Pavlinusic [Tue, 22 Jun 2010 20:44:17 +0000 (22:44 +0200)]
sort files by mtime descending

13 years agounac export paths
Dobrica Pavlinusic [Tue, 22 Jun 2010 20:29:26 +0000 (22:29 +0200)]
unac export paths

13 years agoremove unused modules
Dobrica Pavlinusic [Tue, 22 Jun 2010 20:29:14 +0000 (22:29 +0200)]
remove unused modules

13 years agoalways use binmode => ':utf8' with File::Slurp
Dobrica Pavlinusic [Tue, 22 Jun 2010 19:11:37 +0000 (21:11 +0200)]
always use binmode => ':utf8' with File::Slurp

13 years agouse binmode to load data in cp1250 encoding
Dobrica Pavlinusic [Tue, 22 Jun 2010 19:04:36 +0000 (21:04 +0200)]
use binmode to load data in cp1250 encoding

13 years agoshow subscript n for numeric columns
Dobrica Pavlinusic [Tue, 22 Jun 2010 19:00:22 +0000 (21:00 +0200)]
show subscript n for numeric columns

13 years agoadded export checkbox and timefmt for x axis
Dobrica Pavlinusic [Tue, 22 Jun 2010 18:32:08 +0000 (20:32 +0200)]
added export checkbox and timefmt for x axis

13 years agodon't use style on img#gnuplot
Dobrica Pavlinusic [Tue, 22 Jun 2010 18:12:47 +0000 (20:12 +0200)]
don't use style on img#gnuplot

13 years agodraw multiple columns on gnuplot
Dobrica Pavlinusic [Tue, 22 Jun 2010 17:37:18 +0000 (19:37 +0200)]
draw multiple columns on gnuplot

13 years agoshow png exports
Dobrica Pavlinusic [Tue, 22 Jun 2010 16:34:00 +0000 (18:34 +0200)]
show png exports

13 years agodraw gnuplot graph server-side
Dobrica Pavlinusic [Tue, 22 Jun 2010 16:05:25 +0000 (18:05 +0200)]
draw gnuplot graph server-side

13 years agocreate export of all data in tab-separated format
Dobrica Pavlinusic [Tue, 22 Jun 2010 15:29:47 +0000 (17:29 +0200)]
create export of all data in tab-separated format

13 years agodon't generate zero for null values
Dobrica Pavlinusic [Tue, 22 Jun 2010 15:01:47 +0000 (17:01 +0200)]
don't generate zero for null values

13 years agoreformat float using sprintf
Dobrica Pavlinusic [Tue, 22 Jun 2010 14:26:29 +0000 (16:26 +0200)]
reformat float using sprintf

13 years agoinvalidate changed columns on commit
Dobrica Pavlinusic [Tue, 22 Jun 2010 14:26:06 +0000 (16:26 +0200)]
invalidate changed columns on commit

13 years agodon't add duplicate columns on commit
Dobrica Pavlinusic [Tue, 22 Jun 2010 14:20:14 +0000 (16:20 +0200)]
don't add duplicate columns on commit

13 years agoconvert dd.mm.yyyy to yyyy-mm-dd
Dobrica Pavlinusic [Tue, 22 Jun 2010 14:15:16 +0000 (16:15 +0200)]
convert dd.mm.yyyy to yyyy-mm-dd

13 years agomodify multiple columns
Dobrica Pavlinusic [Tue, 22 Jun 2010 14:14:52 +0000 (16:14 +0200)]
modify multiple columns

13 years agosupport various $out values
Dobrica Pavlinusic [Tue, 22 Jun 2010 13:23:50 +0000 (15:23 +0200)]
support various $out values

This allows us to create datasets from scalars, arrays and hashes

13 years agoedit column depends
Dobrica Pavlinusic [Tue, 22 Jun 2010 12:39:41 +0000 (14:39 +0200)]
edit column depends

13 years agoextract changed columns from $update
Dobrica Pavlinusic [Tue, 22 Jun 2010 12:37:47 +0000 (14:37 +0200)]
extract changed columns from $update

13 years agonew syntax for row $update in test
Dobrica Pavlinusic [Tue, 22 Jun 2010 11:56:35 +0000 (13:56 +0200)]
new syntax for row $update in test

we now use $update instead of $row so we can cleanly track changed
columns changed

13 years agofixed type <tt> code errors
Dobrica Pavlinusic [Tue, 22 Jun 2010 11:43:25 +0000 (13:43 +0200)]
fixed type <tt> code errors

13 years agosimple CSV file import
Dobrica Pavlinusic [Tue, 22 Jun 2010 11:29:27 +0000 (13:29 +0200)]
simple CSV file import

13 years agoshow dependent or all code snippets button
Dobrica Pavlinusic [Mon, 21 Jun 2010 12:40:36 +0000 (14:40 +0200)]
show dependent or all code snippets button

13 years agoredirect to /data/index if path doesn't exist
Dobrica Pavlinusic [Mon, 21 Jun 2010 12:28:57 +0000 (14:28 +0200)]
redirect to /data/index if path doesn't exist

13 years agostart google chrome with Speed Tracer and app support
Dobrica Pavlinusic [Mon, 21 Jun 2010 12:06:26 +0000 (14:06 +0200)]
start google chrome with Speed Tracer and app support

13 years agoMerge branch 'cols_changed-exact'
Dobrica Pavlinusic [Sun, 20 Jun 2010 17:47:28 +0000 (19:47 +0200)]
Merge branch 'cols_changed-exact'

13 years agorefresh items if $out is generated cols_changed-exact
Dobrica Pavlinusic [Sun, 20 Jun 2010 17:46:52 +0000 (19:46 +0200)]
refresh items if $out is generated

by reload /data/items after new dataset is created

13 years agoshow scrollbar for console bigger than 2/3
Dobrica Pavlinusic [Sun, 20 Jun 2010 17:03:14 +0000 (19:03 +0200)]
show scrollbar for console bigger than 2/3

13 years agohide code depends and description
Dobrica Pavlinusic [Sun, 20 Jun 2010 16:59:12 +0000 (18:59 +0200)]
hide code depends and description

make textarea full width

13 years agocomment out $cols_changed dump
Dobrica Pavlinusic [Sun, 20 Jun 2010 16:55:51 +0000 (18:55 +0200)]
comment out $cols_changed dump

13 years agoMerge branch 'cols_changed-exact'
Dobrica Pavlinusic [Sun, 20 Jun 2010 16:53:52 +0000 (18:53 +0200)]
Merge branch 'cols_changed-exact'

13 years agoremove between facet value and white ; delimiter
Dobrica Pavlinusic [Sun, 20 Jun 2010 16:53:08 +0000 (18:53 +0200)]
remove between facet value and white ; delimiter

13 years agocalculate new columns from stats on commit
Dobrica Pavlinusic [Sun, 20 Jun 2010 16:49:48 +0000 (18:49 +0200)]
calculate new columns from stats on commit

13 years agoMerge branch 'cols_changed-exact'
Dobrica Pavlinusic [Sun, 20 Jun 2010 12:05:53 +0000 (14:05 +0200)]
Merge branch 'cols_changed-exact'

13 years agoanother $col_changed cleanup
Dobrica Pavlinusic [Sun, 20 Jun 2010 12:04:31 +0000 (14:04 +0200)]
another $col_changed cleanup

0 denotes used column (extracted from source using regex),
while positive numbers denote added columns.
This allow allow us to color used and created columns differently

13 years agoread code from disk in utf-8 encoding
Dobrica Pavlinusic [Sun, 20 Jun 2010 11:35:38 +0000 (13:35 +0200)]
read code from disk in utf-8 encoding

13 years agodump code with utf8 encoding
Dobrica Pavlinusic [Sun, 20 Jun 2010 11:29:44 +0000 (13:29 +0200)]
dump code with utf8 encoding

13 years agotrack exact $cols_changed
Dobrica Pavlinusic [Sun, 20 Jun 2010 11:15:28 +0000 (13:15 +0200)]
track exact $cols_changed

First we parse query to find accessed columns (this is error prone), and
after each eval, we check to find all produced columns.

13 years agosort files my mtime
Dobrica Pavlinusic [Sat, 19 Jun 2010 20:18:06 +0000 (22:18 +0200)]
sort files my mtime

13 years agopreserve column order in depends and description
Dobrica Pavlinusic [Sat, 19 Jun 2010 19:29:22 +0000 (21:29 +0200)]
preserve column order in depends and description

13 years agoexample to produce new dataset from test.js
Dobrica Pavlinusic [Sat, 19 Jun 2010 18:58:47 +0000 (20:58 +0200)]
example to produce new dataset from test.js

13 years agofix sorting for undef values
Dobrica Pavlinusic [Sat, 19 Jun 2010 17:04:13 +0000 (19:04 +0200)]
fix sorting for undef values

13 years agoreport number of items returned from sort
Dobrica Pavlinusic [Sat, 19 Jun 2010 16:41:21 +0000 (18:41 +0200)]
report number of items returned from sort

13 years agocleanup all_filters name generation
Dobrica Pavlinusic [Sat, 19 Jun 2010 16:33:09 +0000 (18:33 +0200)]
cleanup all_filters name generation

13 years agoshow unique symbol in table view
Dobrica Pavlinusic [Sat, 19 Jun 2010 16:13:17 +0000 (18:13 +0200)]
show unique symbol in table view

13 years agofix markup for unique span
Dobrica Pavlinusic [Sat, 19 Jun 2010 16:12:16 +0000 (18:12 +0200)]
fix markup for unique span

13 years agocommit $out changes into new dataset
Dobrica Pavlinusic [Sat, 19 Jun 2010 16:00:00 +0000 (18:00 +0200)]
commit $out changes into new dataset

This is quite a big deal: it allows us to create new datasets from
results of code eval into $out variable. You can think of it as
group by on steroids, since you create reports with a bit of perl

13 years agocontroll overflow of $out and show scroll bar
Dobrica Pavlinusic [Sat, 19 Jun 2010 14:07:41 +0000 (16:07 +0200)]
controll overflow of $out and show scroll bar

13 years agoshow all applicable code snippets
Dobrica Pavlinusic [Sat, 19 Jun 2010 13:30:02 +0000 (15:30 +0200)]
show all applicable code snippets

This required us to check if current dataset (using columns) has all
applicable columns for given dataset

13 years agoinsert white semicolumn to improve copy/paste
Dobrica Pavlinusic [Sat, 19 Jun 2010 13:12:33 +0000 (15:12 +0200)]
insert white semicolumn to improve copy/paste

This allows us to copy/paste into gnumeric and split data on ; to get
two columns, one with value and another with numeric count

13 years agoreduce using $out in code
Dobrica Pavlinusic [Sat, 19 Jun 2010 12:21:43 +0000 (14:21 +0200)]
reduce using $out in code

This allows us to generate various summaries over all rows on screen.

13 years agoupgrade old values in changes to array
Dobrica Pavlinusic [Sat, 19 Jun 2010 11:42:33 +0000 (13:42 +0200)]
upgrade old values in changes to array

13 years agotoggle show/hide on console click
Dobrica Pavlinusic [Fri, 18 Jun 2010 22:09:37 +0000 (00:09 +0200)]
toggle show/hide on console click

13 years agotweak columns acquision order
Dobrica Pavlinusic [Fri, 18 Jun 2010 22:02:11 +0000 (00:02 +0200)]
tweak columns acquision order

This allows us again just to reload table data after we restart server,
since we don't require columns (which isn't saved until user selects
save for the first time) but headers which is there.
However, if we do have columns in session, we'll use that (which is
required for code eval to add new columns).

13 years agoextract meters from text data
Dobrica Pavlinusic [Fri, 18 Jun 2010 21:29:12 +0000 (23:29 +0200)]
extract meters from text data

13 years agoexample for in-place update
Dobrica Pavlinusic [Fri, 18 Jun 2010 20:24:07 +0000 (22:24 +0200)]
example for in-place update

13 years agoself-modifing code depends on modified columns
Dobrica Pavlinusic [Fri, 18 Jun 2010 20:23:03 +0000 (22:23 +0200)]
self-modifing code depends on modified columns

13 years agotwo code samples for pftf dataset
Dobrica Pavlinusic [Fri, 18 Jun 2010 20:15:41 +0000 (22:15 +0200)]
two code samples for pftf dataset

13 years agocleanup code depends and description generation
Dobrica Pavlinusic [Fri, 18 Jun 2010 19:56:37 +0000 (21:56 +0200)]
cleanup code depends and description generation

13 years agoadded console link
Dobrica Pavlinusic [Fri, 18 Jun 2010 19:48:14 +0000 (21:48 +0200)]
added console link

13 years agoquote column names in regexps
Dobrica Pavlinusic [Fri, 18 Jun 2010 18:27:57 +0000 (20:27 +0200)]
quote column names in regexps

13 years agoadded overwrite checkbox to code console
Dobrica Pavlinusic [Fri, 18 Jun 2010 18:19:44 +0000 (20:19 +0200)]
added overwrite checkbox to code console

Newly generated code will always be saved, but modifications won't
witout user explicitly clicking on checkbox or renaming description.

13 years agoload code depends and description
Dobrica Pavlinusic [Fri, 18 Jun 2010 17:58:44 +0000 (19:58 +0200)]
load code depends and description

13 years agosave commited code snippets
Dobrica Pavlinusic [Fri, 18 Jun 2010 17:30:22 +0000 (19:30 +0200)]
save commited code snippets

Dependent columns (part before the dot) is calculated automatically.
If there are newly created columns, they are suggested as description.

13 years agodump all log to /tmp/mojo_facets.log for debug
Dobrica Pavlinusic [Fri, 18 Jun 2010 17:29:44 +0000 (19:29 +0200)]
dump all log to /tmp/mojo_facets.log for debug

13 years agounload datasets from memory
Dobrica Pavlinusic [Fri, 18 Jun 2010 17:03:45 +0000 (19:03 +0200)]
unload datasets from memory

if checkbox m(emory) is unchecked on load screen

13 years agohide scrollbar in textarea
Dobrica Pavlinusic [Fri, 18 Jun 2010 16:30:00 +0000 (18:30 +0200)]
hide scrollbar in textarea

13 years agowe need filters for columns, not header
Dobrica Pavlinusic [Fri, 18 Jun 2010 16:16:29 +0000 (18:16 +0200)]
we need filters for columns, not header

header is filled just once from source file, while columns is updated
with columns added from code