title = icosi fabrication
date = 2010-07-01
--
-Fabrication progress on the 'ICOSI' project: a projection sculpture for an upcoming audiovisual installation at the
-[Biennial of the Americas](http://www.biennialoftheamericas.org/) in Denver at the end of this month. The finished form is a section of a squished icosidodecahedron (scaled on the z-axis by 0.5). The form will act as a projection surface for visual software, which is directly linked to the audio components.
+Fabrication progress on an audiovisual installation. The finished form is a section of a squished icosidodecahedron (scaled on the z-axis by 0.5). The form will act as a projection surface for visual software, which is directly linked to the audio components.
<a href="http://www.flickr.com/photos/quilime/4743498955/" title="view on flickr">
<img src="http://farm5.static.flickr.com/4077/4743498955_d8d524bd27.jpg" /></a>
$res = $config;
$res['url'] = WEB_ROOT . DIRECTORY_SEPARATOR . $pathparts[sizeof($pathparts)-1] . DIRECTORY_SEPARATOR . basename($f);
- $res['timestamp'] = $config['date'] ? date('U', strtotime($config['date'])) : date('U', strtotime(filemtime($f)));
+ $res['timestamp'] = date('U', strtotime( $config['date'] ? $config['date'] : filemtime($f)));
$res['cat'] = $pathparts[sizeof($pathparts)-1];
$res['content'] = Markdown($content);
- $res['tags'] = explode(', ', $config['tags']);
+ $res['tags'] = explode(' ', $config['tags']);
return $res;
}
return $config;
}
-
-
-
-function define_constants($constants = 'config')
-{
- $config = explode("\n", file_get_contents( $constants , FILE_USE_INCLUDE_PATH ));
- foreach($config as $c) {
- $var = explode("=", $c);
- define(trim($var[0]), trim($var[1]));
- }
-}
-
-
-
-
-?>
\ No newline at end of file
+?>
define ('SITE_TITLE', 'quilime');
define ('LOCAL_ROOT', '/home/quilime/quilime-site/');
define ('WEB_ROOT', 'http://quilime.com');
+
define ('CONTENT_DIR', 'content');
define ('TEMPLATE_DIR', 'templates');
define ('PAGE_DIR', 'pages');
require_once 'markdown.php';
require_once 'template.php';
- define_constants();
-
?>
\ No newline at end of file
function get_template_instance()
{
$t = new Template();
- $t->template_dir = join(DIRECTORY_SEPARATOR, array(dirname(__FILE__), '..', 'templates'));
+ $t->template_dir = join(DIRECTORY_SEPARATOR, array(dirname(__FILE__), '..', TEMPLATE_DIR));
+ $t->template_cache_dir = join(DIRECTORY_SEPARATOR, array(dirname(__FILE__), '..', TEMPLATE_DIR, 'cache'));
+// $t->caching = 0;
+
return $t;
}
class Template
{
+
var $template_dir = 'templates';
+ var $template_cache_dir = 'cache';
+ var $cachr_file = null;
var $response_format = 'html';
+ var $caching = 1;
var $_tpl_vars = array();
function __construct()
{
-
}
{
extract( $this->_tpl_vars );
- if (is_file($this->template_dir . DIRECTORY_SEPARATOR . $template))
+
+ if (is_file( $this->template_dir . DIRECTORY_SEPARATOR . $template ))
include( $this->template_dir . DIRECTORY_SEPARATOR . $template );
else
- include( $this->template_dir . DIRECTORY_SEPARATOR . 'default.'.$this->response_format.'.tpl' );
+ include( $this->template_dir . DIRECTORY_SEPARATOR . 'default.' . $this->response_format . '.tpl');
+
+ }
+
+
+ function ob_file_callback($buffer)
+ {
+// fwrite($this->cache_file, $buffer);
}
body { margin:80px 100px 50px 40px; }
-html, body, table { font-family: monospace; font-size:12px; line-height:1.6em; color:#666; }
+html, body, table { font-family: sans-serif; font-size:12px; line-height:1.4em; color:#44d ; }
.nav { position:absolute; z-index:1; top:20px; left:30px; }
.nav ul { margin-left:1em; }
/*headings*/
h1, h2, h3, h4, h5, h6 { font-size:1em; }
-h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { text-decoration:none; }
+h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { }
h1 { margin:0 0 3em 0; }
h2 { margin:0 0 0.5em 0; }
h3 { margin:0 0 0 0; }
$t = get_template_instance();
$t->response_format = $response_format;
$t->assign('view', $_GET['v']);
- $template = 'default.'.$response_format.'.tpl';
# content folder
if (is_dir(LOCAL_ROOT . CONTENT_DIR . DIRECTORY_SEPARATOR . $url_parts['url']) && $url_parts['url'] != "/") {
.atn { color: #606; }
.atv { color: #080; }
.dec { color: #606; }
-pre.prettyprint, code.prettyprint { font-family:monaco, "Lucida Console", monospace; font-size:12px; line-height:2em; padding:0.4em 0.6em; background:#222333;
+pre.prettyprint, code.prettyprint { font-family:monaco, "Lucida Console", monospace; font-size:14px; line-height:1.5em; padding:0.4em 0.6em; background:#222333;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
}
-pre.prettyprint { padding:20px; line-height:1.4em; }
+pre.prettyprint { padding:20px; }
@media print {
.str { color: #060; }
<? $this->include_template('head-inc.html.tpl') ?>
- <title><?=SITE_TITLE?><?=$this->title(); ?></title>
+ <title><?=SITE_TITLE?><?=$this->title();?></title>
</head>
<body>
<ul class="nav">
- <li><a href="/">home</a><br/><br/></li>
+ <li><a href="/"><?=SITE_TITLE;?></a><br/><br/></li>
<li><a href="/log/">log</a></li>
<li><a href="/code/">code</a></li>
- <br/>
+ <br />
<li><a href="/agg/">aggregate</a></li>
<li><a href="/links/">links</a></li>