From: Maxious Date: Thu, 10 Jan 2013 02:01:06 +0000 Subject: move towards trunklog/categories X-Git-Url: http://maxious.lambdacomplex.org/git/?p=scannr.git&a=commitdiff&h=730d77bb564a0a44a309e4ab3c42d3d60dea845c --- move towards trunklog/categories --- --- /dev/null +++ b/.idea/sqldialects.xml @@ -1,1 +1,8 @@ + + + + + + + --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,49 +2,27 @@ - - - - - - - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - + - + + - - + + - + - - + + - + - - + + + + + + + + + + + @@ -130,19 +117,10 @@ - - + + - - - - - - - - - - + @@ -172,15 +150,16 @@ - @@ -233,13 +212,13 @@ + + + + + + - - - - - - - - - - - - - - - - + - - + - - - + + + + + + - - - - + + + + - - @@ -401,92 +355,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + - - - + + + - + + + + + + + + - - - - - - - - - - + + + --- a/README.md +++ /dev/null @@ -1,64 +1,1 @@ -# [HTML5 Boilerplate](http://html5boilerplate.com) -HTML5 Boilerplate is a professional front-end template for building fast, -robust, and adaptable web apps or sites. - -This project is the product of many years of iterative development and combined -community knowledge. It does not impose a specific development philosophy or -framework, so you're free to architect your code in the way that you want. - -* Source: [https://github.com/h5bp/html5-boilerplate](https://github.com/h5bp/html5-boilerplate) -* Homepage: [http://html5boilerplate.com](http://html5boilerplate.com) -* Twitter: [@h5bp](http://twitter.com/h5bp) - - -## Quick start - -Choose one of the following options: - -1. Download the latest stable release from - [html5boilerplate.com](http://html5boilerplate.com/) or a custom build from - [Initializr](http://www.initializr.com). -2. Clone the git repo — `git clone - https://github.com/h5bp/html5-boilerplate.git` - and checkout the tagged - release you'd like to use. - - -## Features - -* HTML5 ready. Use the new elements with confidence. -* Cross-browser compatible (Chrome, Opera, Safari, Firefox 3.6+, IE6+). -* Designed with progressive enhancement in mind. -* Includes [Normalize.css](http://necolas.github.com/normalize.css/) for CSS - normalizations and common bug fixes. -* The latest [jQuery](http://jquery.com/) via CDN, with a local fallback. -* The latest [Modernizr](http://modernizr.com/) build for feature detection. -* IE-specific classes for easier cross-browser control. -* Placeholder CSS Media Queries. -* Useful CSS helpers. -* Default print CSS, performance optimized. -* Protection against any stray `console.log` causing JavaScript errors in - IE6/7. -* An optimized Google Analytics snippet. -* Apache server caching, compression, and other configuration defaults for - Grade-A performance. -* Cross-domain Ajax and Flash. -* "Delete-key friendly." Easy to strip out parts you don't need. -* Extensive inline and accompanying documentation. - - -## Documentation - -Take a look at the [documentation table of -contents](/h5bp/html5-boilerplate/blob/master/doc/README.md). This -documentation is bundled with the project, which makes it readily available for -offline reading and provides a useful starting point for any documentation -you want to write about your project. - - -## Contributing - -Anyone and everyone is welcome to -[contribute](/h5bp/html5-boilerplate/blob/master/doc/contribute.md). Hundreds -of developers have helped make the HTML5 Boilerplate what it is today. - --- a/README.txt +++ /dev/null @@ -1,1 +1,1 @@ -ffmpeg from http://ffmpeg.zeranoe.com/builds/ + --- a/cron.php +++ /dev/null @@ -1,9 +1,1 @@ - --- a/db.sql +++ b/db.sql @@ -91,4 +91,21 @@ -- PostgreSQL database dump complete -- +CREATE TABLE "compilation" ( + "filename" text NOT NULL, + "files" text ARRAY NOT NULL, + "datetime" timestamp NOT NULL +); +CREATE TABLE "trunk_log" ( + "id" text NOT NULL, + "datetime" integer NOT NULL, + "site" integer NOT NULL, + "action" text NOT NULL, + "sourcetype" character(1) NOT NULL, + "sourceid" smallint NOT NULL, + "targettype" character(1) NOT NULL, + "targetid" smallint NOT NULL, + "channel" smallint NOT NULL, + "calltype" text NOT NULL +); --- a/generateConvos.php +++ /dev/null @@ -1,36 +1,1 @@ -prepare('select * from recordings limit 100;'); -$sth->execute(); -$recordings = $sth->fetchAll(); -$convos = Array(); -$convo = Array(); -foreach ($recordings as $i => $recording) { - - if (count($convo) > 0) { - echo "
" . strcasecmp($convos[count($convos) - 1][0]['call_timestamp'], $recording['call_timestamp']); - if (abs(strcasecmp($convos[count($convos) - 1][0]['call_timestamp'], $recording['call_timestamp'])) > 2) { - echo " " . $convos[count($convos) - 1][0]['call_timestamp'] . " " . $recording['call_timestamp']; - } - if (strcasecmp($convos[count($convos) - 1][0]['tgid'], $recording['tgid']) != 0) { - $convos[] = $convo; - $convo = Array(); - } - } - ; - //print_r($recording); - $convo[] = $recording; - //print_r($convo); - //echo "
\n"; -} -foreach ($convos as $i => $convo) { - foreach ($convo as $recording) { - echo $recording['filename'] . " , "; - } - echo "

\n"; -} -?> - - --- a/generateHourlys.php +++ b/generateHourlys.php @@ -13,11 +13,19 @@ if ($returncode != 10) { //print_r($output); //die(); + } else { + /* insert + "filename" text NOT NULL, + "files" text ARRAY NOT NULL, + "datetime" timestamp NOT NULL + */ + // delete wav files? can we link to times in a compilation? } + } } $sth = $conn->prepare("select tgid, extract(hour from call_timestamp) ahour, date_trunc('day', call_timestamp) aday, count(filename), array_to_string(array_agg(filename order by call_timestamp), ',') filenames from recordings group by tgid, ahour, aday order by aday DESC, ahour, tgid;"); - +// TODO use tgid categories instead, tgid too specific $sth->execute(); $hourlies = $sth->fetchAll(PDO::FETCH_ASSOC); foreach($hourlies as $hourly) { @@ -31,3 +39,5 @@ processHourly($hourly); } + +// delete uninteresting compilations --- a/run.bat +++ /dev/null @@ -1,2 +1,1 @@ -python scannr.py > output.txt -pause +