MojoFacets.git
13 years agochomp whitespaces before and after value
Dobrica Pavlinusic [Sat, 16 Oct 2010 12:58:32 +0000 (14:58 +0200)]
chomp whitespaces before and after value

13 years agostrip quotes around values with spaces
Dobrica Pavlinusic [Sat, 16 Oct 2010 12:55:01 +0000 (14:55 +0200)]
strip quotes around values with spaces

This still doesn't make us compliant CSV parser, since current code
*WILL* split csv wrongly if delimiter is inside quotes

13 years agouse utf-8 as default encoding for .cvs files
Dobrica Pavlinusic [Sat, 16 Oct 2010 12:47:42 +0000 (14:47 +0200)]
use utf-8 as default encoding for .cvs files

13 years agodocument csv file import
Dobrica Pavlinusic [Thu, 15 Jul 2010 09:56:24 +0000 (11:56 +0200)]
document csv file import

13 years agotest csv import
Dobrica Pavlinusic [Thu, 15 Jul 2010 09:28:23 +0000 (11:28 +0200)]
test csv import

13 years agouse encoding from .encoding.csv filename
Dobrica Pavlinusic [Thu, 15 Jul 2010 09:27:52 +0000 (11:27 +0200)]
use encoding from .encoding.csv filename

13 years agouse __export_path_name
Dobrica Pavlinusic [Sun, 11 Jul 2010 22:19:36 +0000 (00:19 +0200)]
use __export_path_name

This will ensure that we will get correct export path to draw

13 years agoadded __export_path_name
Dobrica Pavlinusic [Sun, 11 Jul 2010 22:18:50 +0000 (00:18 +0200)]
added __export_path_name

this allows us just to create mungled export name, shorter than
(hardcoded) 80 chars used for export files

13 years agodefault to , delimited csv
Dobrica Pavlinusic [Sun, 11 Jul 2010 21:44:47 +0000 (23:44 +0200)]
default to , delimited csv

Switch to ; delimited only if we don't have ; in first line
(which is some cruft in my file)

This allowes me to read in "normal" csv files with ease

13 years agolinks to dump loaded
Dobrica Pavlinusic [Thu, 8 Jul 2010 21:03:32 +0000 (23:03 +0200)]
links to dump loaded

13 years ago/debug/loaded/stats dumping
Dobrica Pavlinusic [Thu, 8 Jul 2010 18:00:43 +0000 (20:00 +0200)]
/debug/loaded/stats dumping

This is useful to get one more level of introspection into data
strcutures in memory

13 years agotake path from params in /data/items
Dobrica Pavlinusic [Thu, 8 Jul 2010 15:58:41 +0000 (17:58 +0200)]
take path from params in /data/items

This allows us to switch to different dataset on commit of changes, but
it DOESN'T change column definition under assumption that you are
applying changes to dataset which has more-or-less same structure

13 years agocleanup filter_regex code
Dobrica Pavlinusic [Thu, 1 Jul 2010 22:28:09 +0000 (00:28 +0200)]
cleanup filter_regex code

This makes it more readable and removes last traces of enter bug

13 years agoand really fix it
Dobrica Pavlinusic [Thu, 1 Jul 2010 20:59:36 +0000 (22:59 +0200)]
and really fix it

13 years agoforgot variable rename broke column regex
Dobrica Pavlinusic [Thu, 1 Jul 2010 20:52:02 +0000 (22:52 +0200)]
forgot variable rename broke column regex

13 years agosave selected column in views and load them
Dobrica Pavlinusic [Thu, 1 Jul 2010 20:35:33 +0000 (22:35 +0200)]
save selected column in views and load them

This allows easy switch between clusters (chunks) of columns
in similar scale for easy graphing

13 years agoremove diff output
Dobrica Pavlinusic [Thu, 1 Jul 2010 20:35:04 +0000 (22:35 +0200)]
remove diff output

it can be calculated on demand and will decrease storable size

13 years agoinsert column names in first line of export
Dobrica Pavlinusic [Wed, 30 Jun 2010 22:28:21 +0000 (00:28 +0200)]
insert column names in first line of export

commented with # in first column, and tab-delimited

13 years agotruncate export names longer than 80 chars
Dobrica Pavlinusic [Wed, 30 Jun 2010 22:26:37 +0000 (00:26 +0200)]
truncate export names longer than 80 chars

13 years agomove column_selection back to left for columns
Dobrica Pavlinusic [Wed, 30 Jun 2010 22:15:36 +0000 (00:15 +0200)]
move column_selection back to left for columns

span#column_selection doesn't need absolute positioning it doesn't have
span.count in front of it

13 years agoMerge branch 'master' of mjesec.ffzg.hr:/git/MojoFacets
Dobrica Pavlinusic [Wed, 30 Jun 2010 22:12:46 +0000 (00:12 +0200)]
Merge branch 'master' of mjesec.ffzg.hr:/git/MojoFacets

Conflicts:
templates/all_checkboxes.html.ep

13 years agodon't mess with tabindex
Dobrica Pavlinusic [Wed, 30 Jun 2010 21:58:11 +0000 (23:58 +0200)]
don't mess with tabindex

and don't trigger apply_regex on empty value

13 years agodon't mess with tabindex
Dobrica Pavlinusic [Wed, 30 Jun 2010 21:58:11 +0000 (23:58 +0200)]
don't mess with tabindex

and don't trigger apply_regex on empty value

13 years agoremove autofocus, use placeholder attribute
Dobrica Pavlinusic [Wed, 30 Jun 2010 21:43:29 +0000 (23:43 +0200)]
remove autofocus, use placeholder attribute

this can result in expensive dom traversal, and it also allow us
to use placeholder attribute and remove label before input field

13 years agoautofocus value regex
Dobrica Pavlinusic [Wed, 30 Jun 2010 21:35:11 +0000 (23:35 +0200)]
autofocus value regex

13 years agowe don't need hint hover magic any more
Dobrica Pavlinusic [Wed, 30 Jun 2010 21:32:32 +0000 (23:32 +0200)]
we don't need hint hover magic any more

13 years agoapply regex on column values on enter
Dobrica Pavlinusic [Wed, 30 Jun 2010 21:31:12 +0000 (23:31 +0200)]
apply regex on column values on enter

Before we submited form, which is wrong

13 years agoremove javascript positioning of regex filter hint
Dobrica Pavlinusic [Wed, 30 Jun 2010 18:57:44 +0000 (20:57 +0200)]
remove javascript positioning of regex filter hint

13 years agomake column selection options at fixed position
Dobrica Pavlinusic [Wed, 30 Jun 2010 18:18:50 +0000 (20:18 +0200)]
make column selection options at fixed position

This allows us to click on all/none links, or regexp include/exclude
filter without them moving left-right depending on number of
selected/total elements

13 years agoshow just first 40 chars of error message
Dobrica Pavlinusic [Wed, 30 Jun 2010 16:58:15 +0000 (18:58 +0200)]
show just first 40 chars of error message

13 years agostroke over hidden actions
Dobrica Pavlinusic [Wed, 30 Jun 2010 13:11:31 +0000 (15:11 +0200)]
stroke over hidden actions

13 years agodouble-click on action values to edit
Dobrica Pavlinusic [Tue, 29 Jun 2010 22:13:57 +0000 (00:13 +0200)]
double-click on action values to edit

13 years agoincreate body margin-bottom with visible console
Dobrica Pavlinusic [Tue, 29 Jun 2010 14:29:49 +0000 (16:29 +0200)]
increate body margin-bottom with visible console

This allow us to see all content on page, since we extend page
so we can fit all content and console vertically

13 years agomake facet code console behave like table one
Dobrica Pavlinusic [Tue, 29 Jun 2010 14:18:02 +0000 (16:18 +0200)]
make facet code console behave like table one

13 years agointegrated into eval_console.js
Dobrica Pavlinusic [Tue, 29 Jun 2010 14:06:53 +0000 (16:06 +0200)]
integrated into eval_console.js

13 years agouse eval_console for items and facets
Dobrica Pavlinusic [Tue, 29 Jun 2010 14:06:00 +0000 (16:06 +0200)]
use eval_console for items and facets

This allows us to reuse JavaScript code for console on both screens

13 years agoupdate $checked in facet code eval
Dobrica Pavlinusic [Tue, 29 Jun 2010 12:18:32 +0000 (14:18 +0200)]
update $checked in facet code eval

13 years agofacet code eval with $value, $count and $checked
Dobrica Pavlinusic [Tue, 29 Jun 2010 12:12:46 +0000 (14:12 +0200)]
facet code eval with $value, $count and $checked

13 years agouse $value and $count for facet eval
Dobrica Pavlinusic [Tue, 29 Jun 2010 11:50:16 +0000 (13:50 +0200)]
use $value and $count for facet eval

13 years agofixed label html
Dobrica Pavlinusic [Mon, 28 Jun 2010 14:52:34 +0000 (16:52 +0200)]
fixed label html

13 years agoadded remove profile link
Dobrica Pavlinusic [Mon, 28 Jun 2010 14:49:02 +0000 (16:49 +0200)]
added remove profile link

13 years agoadded remove profile link
Dobrica Pavlinusic [Mon, 28 Jun 2010 14:49:02 +0000 (16:49 +0200)]
added remove profile link

13 years agonytprof.disabled added
Dobrica Pavlinusic [Mon, 28 Jun 2010 14:41:06 +0000 (16:41 +0200)]
nytprof.disabled added

We don't really want to profile generation of html from profile data :-)

13 years agogenerate profile output
Dobrica Pavlinusic [Mon, 28 Jun 2010 14:32:01 +0000 (16:32 +0200)]
generate profile output

13 years agomake application URL point to localhost
Dobrica Pavlinusic [Mon, 28 Jun 2010 13:24:56 +0000 (15:24 +0200)]
make application URL point to localhost

13 years agoChrome application
Dobrica Pavlinusic [Sun, 27 Jun 2010 23:42:34 +0000 (01:42 +0200)]
Chrome application

13 years agoconvert to $update
Dobrica Pavlinusic [Sun, 27 Jun 2010 23:25:48 +0000 (01:25 +0200)]
convert to $update

13 years agomake profile optional
Dobrica Pavlinusic [Sun, 27 Jun 2010 23:21:13 +0000 (01:21 +0200)]
make profile optional

13 years agoprofile feature
Dobrica Pavlinusic [Sun, 27 Jun 2010 23:18:00 +0000 (01:18 +0200)]
profile feature

13 years agotoggle columns on regex
Dobrica Pavlinusic [Sun, 27 Jun 2010 17:20:09 +0000 (19:20 +0200)]
toggle columns on regex

13 years agodon't save generated datasets
Dobrica Pavlinusic [Sun, 27 Jun 2010 17:12:22 +0000 (19:12 +0200)]
don't save generated datasets

13 years agocreate storable dump from vmstat
Dobrica Pavlinusic [Sun, 27 Jun 2010 16:47:45 +0000 (18:47 +0200)]
create storable dump from vmstat

It also supports arbitrary command before vmstat, for example:

  $ ./vmstat.pl ssh disk

will connect to disk and issue vmstat there

13 years agodon't dump scalars in export
Dobrica Pavlinusic [Sun, 27 Jun 2010 16:46:35 +0000 (18:46 +0200)]
don't dump scalars in export

This destroy numeric scalars

13 years agoload storable files
Dobrica Pavlinusic [Sun, 27 Jun 2010 15:50:45 +0000 (17:50 +0200)]
load storable files

This involves special file format which is basically dumps of storable
objects joined together

13 years agoMerge branch 'facet-eval'
Dobrica Pavlinusic [Sat, 26 Jun 2010 22:47:24 +0000 (00:47 +0200)]
Merge branch 'facet-eval'

13 years agoeval code snippet on facet data facet-eval
Dobrica Pavlinusic [Sat, 26 Jun 2010 22:41:58 +0000 (00:41 +0200)]
eval code snippet on facet data

Using $out to generate results and $v for value and $c for count

13 years agorename long-running pages > PROFILE s
Dobrica Pavlinusic [Sat, 26 Jun 2010 22:20:03 +0000 (00:20 +0200)]
rename long-running pages > PROFILE s

13 years agouse PROFILE to specify minimum duration
Dobrica Pavlinusic [Sat, 26 Jun 2010 21:38:38 +0000 (23:38 +0200)]
use PROFILE to specify minimum duration

This allows us to ignore short timed requests, and focus just on
long running ones

13 years agoenable changing values to 0
Dobrica Pavlinusic [Sat, 26 Jun 2010 21:38:17 +0000 (23:38 +0200)]
enable changing values to 0

13 years agomove configurable variables in code
Dobrica Pavlinusic [Sat, 26 Jun 2010 21:18:09 +0000 (23:18 +0200)]
move configurable variables in code

added PROFILE

13 years agoregister plugin
Dobrica Pavlinusic [Sat, 26 Jun 2010 21:16:55 +0000 (23:16 +0200)]
register plugin

I tried to setup $self->plugins->namespaces but it didn't work for me.

13 years agoprofile using Devel::NYTProf
Dobrica Pavlinusic [Sat, 26 Jun 2010 21:15:53 +0000 (23:15 +0200)]
profile using Devel::NYTProf

13 years agocommit_changed is correct name
Dobrica Pavlinusic [Sat, 26 Jun 2010 16:49:47 +0000 (18:49 +0200)]
commit_changed is correct name

13 years agocheck commit_changed columns against dataset
Dobrica Pavlinusic [Sat, 26 Jun 2010 16:48:59 +0000 (18:48 +0200)]
check commit_changed columns against dataset

13 years agodisplay size of data using Storable
Dobrica Pavlinusic [Sat, 26 Jun 2010 16:41:06 +0000 (18:41 +0200)]
display size of data using Storable

Discussion about this is at:

http://www.perlmonks.org/?node_id=846678

http://gist.github.com/454137

13 years agono warnings for missing mtime
Dobrica Pavlinusic [Sat, 26 Jun 2010 13:49:14 +0000 (15:49 +0200)]
no warnings for missing mtime

13 years agoadded /debug dump of $loaded
Dobrica Pavlinusic [Sat, 26 Jun 2010 13:42:28 +0000 (15:42 +0200)]
added /debug dump of $loaded

13 years agomove selection of visible snippets to top
Dobrica Pavlinusic [Fri, 25 Jun 2010 20:38:00 +0000 (22:38 +0200)]
move selection of visible snippets to top

13 years agouse columns from header
Dobrica Pavlinusic [Fri, 25 Jun 2010 20:23:20 +0000 (22:23 +0200)]
use columns from header

13 years agoalways show remove link
Dobrica Pavlinusic [Fri, 25 Jun 2010 19:00:07 +0000 (21:00 +0200)]
always show remove link

13 years agouse remove class for remove link
Dobrica Pavlinusic [Fri, 25 Jun 2010 18:45:24 +0000 (20:45 +0200)]
use remove class for remove link

13 years agoadded /code/remove?path=
Dobrica Pavlinusic [Fri, 25 Jun 2010 18:44:29 +0000 (20:44 +0200)]
added /code/remove?path=

13 years agocleanup status handling
Dobrica Pavlinusic [Fri, 25 Jun 2010 17:14:46 +0000 (19:14 +0200)]
cleanup status handling

This allows show/hide to use class names to toggle changes of
some type on/off

13 years agoremove CR from code snippets
Dobrica Pavlinusic [Fri, 25 Jun 2010 16:51:42 +0000 (18:51 +0200)]
remove CR from code snippets

13 years agoexample reduce code to use $out, $key and $value
Dobrica Pavlinusic [Fri, 25 Jun 2010 16:45:28 +0000 (18:45 +0200)]
example reduce code to use $out, $key and $value

13 years agouse $key and $value to name code file
Dobrica Pavlinusic [Fri, 25 Jun 2010 16:43:53 +0000 (18:43 +0200)]
use $key and $value to name code file

13 years agodocument $out, $key, $value in perl code snippets
Dobrica Pavlinusic [Fri, 25 Jun 2010 16:36:05 +0000 (18:36 +0200)]
document $out, $key, $value in perl code snippets

13 years agoadded $key and $value for columns in generated dataset
Dobrica Pavlinusic [Fri, 25 Jun 2010 16:33:29 +0000 (18:33 +0200)]
added $key and $value for columns in generated dataset

13 years agodescrible double click on table to edit cells
Dobrica Pavlinusic [Fri, 25 Jun 2010 16:26:38 +0000 (18:26 +0200)]
describle double click on table to edit cells

13 years agofix reload MojoFacets::Data error
Dobrica Pavlinusic [Thu, 24 Jun 2010 23:41:41 +0000 (01:41 +0200)]
fix reload MojoFacets::Data error

13 years agofix $out generation
Dobrica Pavlinusic [Thu, 24 Jun 2010 23:26:52 +0000 (01:26 +0200)]
fix $out generation

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