From: Gabriel Dunne Date: Mon, 27 Dec 2010 07:21:32 +0000 (-0800) Subject: new aggregate and photo pages X-Git-Url: https://git.quilime.com/?a=commitdiff_plain;h=79b29e609cc6cb99296af91acfa0b105a51b0e20;p=plog.git new aggregate and photo pages --- diff --git a/public/.htaccess b/.htaccess similarity index 100% rename from public/.htaccess rename to .htaccess diff --git a/content/code/mel/sphere_intersect b/content/code/mel/sphere_intersect index 3377c9f..229977e 100644 --- a/content/code/mel/sphere_intersect +++ b/content/code/mel/sphere_intersect @@ -32,20 +32,20 @@ mel source $shape = `listRelatives -shapes $mesh`; createNode -n $tmpCN closestPointOnMesh; - connectAttr -f ($shape[0] + ".outMesh") ($tmpCN + ".inMesh"); - setAttr ($tmpCN + ".inPosition") $curPos[0] $curPos[1] $curPos[2]; + connectAttr -f ($shape[0] + ".outMesh") ($tmpCN + ".inMesh"); + setAttr ($tmpCN + ".inPosition") $curPos[0] $curPos[1] $curPos[2]; $cpom = `getAttr ($tmpCN + ".position")`; - if ( pointDist($curPos, $cpom) <= $radius ) { - return ". . bonk\n"; - } + if ( pointDist($curPos, $cpom) <= $radius ) { + return ". . bonk\n"; + } - $curPos[1] = ($limit.y) / $iter * $i; - setAttr ($obj + ".translateY") $curPos[1]; + $curPos[1] = ($limit.y) / $iter * $i; + setAttr ($obj + ".translateY") $curPos[1]; - delete $tmpCN; - } + delete $tmpCN; + } return ". nope\n"; } diff --git a/content/code/scripts/rename_multiple_files b/content/code/scripts/rename_multiple_files new file mode 100644 index 0000000..3d7099c --- /dev/null +++ b/content/code/scripts/rename_multiple_files @@ -0,0 +1,7 @@ +title = Rename Multiple Files via Shell +tags = bash terminal rename +date = 2010-01-11 +-- +
+ls | nl -nrz -w2 | while read a b; do mv "$b" filename.$a.png; done;
+
diff --git a/content/code/scripts/resize_multiple_images b/content/code/scripts/resize_multiple_images new file mode 100644 index 0000000..1b19e18 --- /dev/null +++ b/content/code/scripts/resize_multiple_images @@ -0,0 +1,5 @@ +title = resize multiple images +date = 2010-07-11 +-- +
for k in $(ls *.JPG); do convert $k -resize 50% -quality 80 r_$k; done
+ diff --git a/content/code/scripts/rewrite_multiple_slashes b/content/code/scripts/rewrite_multiple_slashes new file mode 100644 index 0000000..40456d2 --- /dev/null +++ b/content/code/scripts/rewrite_multiple_slashes @@ -0,0 +1,9 @@ +date = 2010-05-15 +title = Rewrite URL: Replace Double Slashes With Single Slash +tags = htaccess apache +-- + +
+RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
+RewriteRule . %1/%2 [R=301,L]
+
\ No newline at end of file diff --git a/content/log/2010-12-01_icosi b/content/log/2010-12-01_icosi new file mode 100644 index 0000000..5bbd8d2 --- /dev/null +++ b/content/log/2010-12-01_icosi @@ -0,0 +1,6 @@ +title = icosi performance +date = 2010-12-01 +tags = installation audiovisual projection mapping +-- + +

icosi by gabriel dunne

Installation, live performance
Design, Projection, Fabrication: Gabriel Dunne
Audio: Jeff Lubow

\ No newline at end of file diff --git a/public/css/style.css b/css/style.css similarity index 80% rename from public/css/style.css rename to css/style.css index 12669d3..a23f340 100644 --- a/public/css/style.css +++ b/css/style.css @@ -1,5 +1,5 @@ -body { margin:80px 100px 50px 40px; } -html, body, table { font-family: sans-serif; font-size:12px; line-height:1.4em; color:#44d ; } +body { margin:20px 100px 50px 30px; } +html, body, table { font-family: sans-serif; font-size:14px; line-height:1.4em; color:#44d ; } ::-moz-selection {background: #08f !important; color:#fff;} ::selection {background: #08f !important; color:#fff;} @@ -22,16 +22,19 @@ ol li { list-style-type:decimal; } blockquote { font-family:times; background:#000; color:#aaa; margin:0; font-size:15px; line-height:1.4em; padding:2em 4em; font-style:italic; line-height:1.45em; max-width:600px;} -#content { margin-left:160px; min-width:500px; position:absolute; top:20px; padding-bottom:200px; z-index:10;} +#content { padding-right:160px; min-width:500px; padding-bottom:200px; z-index:10; } #content p:first-child { margin-top:0; } p { max-width:720px; } -.nav { position:absolute; z-index:1; top:20px; left:30px; } -.nav a { text-decoration:none; font-weight:bold;} -.nav a.mute { font-weight:normal;} -.nav ul { margin-left:1em; } + +.nav { position:absolute; width:200px; z-index:1; top:20px; right:20px; margin:0; } +.nav a { text-decoration:none; font-weight:bold; } +.nav a.mute { font-weight:normal; } .nav h1 { } - +.index { padding:0; margin:0; } +.index li {line-height:1.1em; margin-bottom:0.4em; } +.index li a { text-decoration:underline; font-weight:normal; } + .entry { margin-bottom:100px; } .entry h2 { padding-bottom:4px; font-size:1.3em;} .entry .metadata { font-style:italic; color:#bbb; } diff --git a/feed.php b/feed.php new file mode 100644 index 0000000..3c0be28 --- /dev/null +++ b/feed.php @@ -0,0 +1,63 @@ + +'; ?> + + +Aggregated Feed Demo +http://www.webmaster-source.com + +A demo of SimplePie’s feed-merging capabilities. + +en-us + +set_feed_url(array( +'http://quilime.com/.rss', +'http://media.quilime.com/aggregate/?return=rss', +'http://feeds.delicious.com/v2/rss/quilime?count=15' +)); + +$feed->set_cache_duration (600); // Set the cache time + +$feed->enable_xml_dump(isset($_GET['xmldump']) ? true : false); + +$success = $feed->init(); // Initialize SimplePie + +$feed->handle_content_type(); // Take care of the character encoding + +?> + +get_items() as $item) { + +print_r($item->get_title()); + +if ($itemlimit==100) { break; } +?> + + +<?php echo $item->get_title(); ?> +get_permalink(); ?> + +get_description(); ?> + + + + + + + \ No newline at end of file diff --git a/public/index.php b/index.php similarity index 97% rename from public/index.php rename to index.php index 76e89fb..45e5e25 100644 --- a/public/index.php +++ b/index.php @@ -1,8 +1,6 @@ '; + } + + function resetAll() { + for (var i = 0; i < imgs.length; i++) { + var img = imgs[i]; + if (hide(img)) { + img.style.border = style_em_size + 'px solid ' + style_em_color; + if (selectedimg == null) { + ele_popup.style.display = 'none'; + } + } + } + + function hide(img) { + if (img == selectedimg) { + return; + } + + if (iswk) { + return img.style.borderTopWidth == style_em_size + 'px' && + img.style.borderTopStyle == 'solid' && + img.style.borderTopColor == style_om_color_ff; + } + else if (isff) { + return img.style.border == style_em_size + 'px solid ' + style_om_color_ff; + } + else { + return img.style.border == style_om_color + ' ' + style_em_size + 'px solid'; + } + } + } + + // import from prototype.js. + // (c) 2005 Sam Stephenson + // http://prototype.conio.net + function getElementOffset(element) { + var valueT = 0, valueL = 0; + do { + valueT += element.offsetTop || 0; + valueL += element.offsetLeft || 0; + element = element.offsetParent; + if (element) { + p = element.style.position; + if (p == 'relative' || p == 'absolute') break; + } + } while (element); + return [valueL, valueT]; + } +})(); + diff --git a/public/js/jquery-1.3.2.min.js b/js/jquery-1.3.2.min.js similarity index 100% rename from public/js/jquery-1.3.2.min.js rename to js/jquery-1.3.2.min.js diff --git a/public/js/js.js b/js/js.js similarity index 100% rename from public/js/js.js rename to js/js.js diff --git a/public/js/prettify/lang-apollo.js b/js/prettify/lang-apollo.js similarity index 100% rename from public/js/prettify/lang-apollo.js rename to js/prettify/lang-apollo.js diff --git a/public/js/prettify/lang-css.js b/js/prettify/lang-css.js similarity index 100% rename from public/js/prettify/lang-css.js rename to js/prettify/lang-css.js diff --git a/public/js/prettify/lang-hs.js b/js/prettify/lang-hs.js similarity index 100% rename from public/js/prettify/lang-hs.js rename to js/prettify/lang-hs.js diff --git a/public/js/prettify/lang-lisp.js b/js/prettify/lang-lisp.js similarity index 100% rename from public/js/prettify/lang-lisp.js rename to js/prettify/lang-lisp.js diff --git a/public/js/prettify/lang-lua.js b/js/prettify/lang-lua.js similarity index 100% rename from public/js/prettify/lang-lua.js rename to js/prettify/lang-lua.js diff --git a/public/js/prettify/lang-ml.js b/js/prettify/lang-ml.js similarity index 100% rename from public/js/prettify/lang-ml.js rename to js/prettify/lang-ml.js diff --git a/public/js/prettify/lang-proto.js b/js/prettify/lang-proto.js similarity index 100% rename from public/js/prettify/lang-proto.js rename to js/prettify/lang-proto.js diff --git a/public/js/prettify/lang-sql.js b/js/prettify/lang-sql.js similarity index 100% rename from public/js/prettify/lang-sql.js rename to js/prettify/lang-sql.js diff --git a/public/js/prettify/lang-vb.js b/js/prettify/lang-vb.js similarity index 100% rename from public/js/prettify/lang-vb.js rename to js/prettify/lang-vb.js diff --git a/public/js/prettify/lang-wiki.js b/js/prettify/lang-wiki.js similarity index 100% rename from public/js/prettify/lang-wiki.js rename to js/prettify/lang-wiki.js diff --git a/public/js/prettify/prettify.css b/js/prettify/prettify.css similarity index 65% rename from public/js/prettify/prettify.css rename to js/prettify/prettify.css index b35d1f9..10f4602 100644 --- a/public/js/prettify/prettify.css +++ b/js/prettify/prettify.css @@ -11,15 +11,19 @@ .atn { color: #606; } .atv { color: #080; } .dec { color: #606; } -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, 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; + border:2px solid #666; + border-bottom-color:#bbb; + border-right-color:#bbb; } pre.prettyprint { padding:20px; } @media print { .str { color: #060; } - .kwd { color: #006; font-weight: bold; } + .kwd { color: #008; font-weight: bold; } .com { color: #600; font-style: italic; } .typ { color: #404; font-weight: bold; } .lit { color: #044; } diff --git a/public/js/prettify/prettify.js b/js/prettify/prettify.js similarity index 100% rename from public/js/prettify/prettify.js rename to js/prettify/prettify.js diff --git a/lib/init.php b/lib/init.php index 9c4003e..29f6198 100644 --- a/lib/init.php +++ b/lib/init.php @@ -5,7 +5,7 @@ ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . dirname(realpath(__FILE__))); define ('SITE_TITLE', 'quilime'); - define ('LOCAL_ROOT', '/home/quilime/quilime-site/'); + define ('LOCAL_ROOT', '/home/quilime/quilime.com/'); define ('WEB_ROOT', 'http://quilime.com/'); define ('CONTENT_DIR', 'content'); diff --git a/pages/about b/pages/about index f6f91a5..db9958e 100644 --- a/pages/about +++ b/pages/about @@ -1,12 +1,12 @@ title = about -- quilime.com is a codification of creative process and resources - by **Gabriel Dunne** ([www](http://gabrieldunne.com), [email](mailto:gdunne@quilime.com)) +by **gabriel dunne** ([www](http://gabrieldunne.com), [email](mailto:gdunne@quilime.com)) elsewhere: [flickr](http://flickr.com/photos/quilime/), -[delicious](http://delicious.com/quilime/), [vimeo](http://vimeo.com/quilime/), -[soundcloud](http://soundcloud.com/quilime), +[delicious](http://delicious.com/quilime/), +[twitter](http://twitter.com/quilime/), [github](http://github.com/quilime/) -rss +site update rss diff --git a/pages/links b/pages/links index 6eb4d8d..8a3369e 100644 --- a/pages/links +++ b/pages/links @@ -2,13 +2,16 @@ title = links type = page markdown = true -- -## friends and inspiration +people +------ ++ gabriel dunne [gabrieldunne.com](http://gabrieldunne.com) + stephanie sherriff [ssherriff.com](http://ssherriff.com) + ryan alexander [onecm.com](http://onecm.com) -+ daniel massey [oddsympathy.com](http://oddsympathy.com) + joshua nimoy [jtnimoy.net](http://jtnimoy.net) ++ daniel massey [oddsympathy.com](http://oddsympathy.com) + keith pasko [keithpasko.com](http://keithpasko.com) + jeff lubow [dabkitsch.com/jml/](http://dabkitsch.com/jml/) ++ michael chang [ghost-hack.com](http://ghost-hack.com) + carbon workshop [carbonworkshop.com](http://carbonworkshop.com) + sascha pohflep [pohflepp.com](http://pohflepp.com) + mylinh trieu [mylinhtrieu.com](http://mylinhtrieu.com) @@ -20,4 +23,12 @@ markdown = true + marc nimoy [digitanalog.net](http://digitanalog.net) + matthew gale [makaga.com](http://makaga.com) + frédéric eyl [fredericeyl.de](http://fredericeyl.de) -+ the green eyl [thegreeneyl.com](http://thegreeneyl.com) \ No newline at end of file ++ the green eyl [thegreeneyl.com](http://thegreeneyl.com) + +
+
+ +places +------ ++ gray area foundation for the arts [gaffta.org](http://gaffta.org) ++ bay area video coalition [bavc.org](http://bavc.org) \ No newline at end of file diff --git a/pages/photo b/pages/photo new file mode 100644 index 0000000..f1894c0 --- /dev/null +++ b/pages/photo @@ -0,0 +1,3 @@ +title = photo +template = photo +-- diff --git a/templates/agg.html.tpl b/templates/agg.html.tpl index 88d8b9c..4ecf916 100644 --- a/templates/agg.html.tpl +++ b/templates/agg.html.tpl @@ -1,57 +1,140 @@ - + include_template('head-inc.html.tpl'); ?> - - <?=SITE_TITLE?> - + + <?=SITE_TITLE?>: aggregate + - + include_template('nav.html.tpl') ?> - +
- + + + +

video

    - channel->item as $tube) : + foreach($tube->channel->item as $tube) : if ($count-- == 0) break; - ?> + ?>
  • title); ?>"> - link; $pattern = '/v=(.+?)&/'; preg_match($pattern, $url, $matches); @@ -62,17 +145,17 @@
  • - +

- more → + more →

*/ ?> */ ?> @@ -95,9 +178,9 @@ - - - - - - - + -
-

aggregate

+

image

    channel->item as $item) : + foreach($agg->channel->item as $item) : if (!$count--) break; - ?> + ?>
- +

- rss, more → + rss, more →

+ +

video

+ + +

+ rss, + more → +

+
-

flickr

+

flickr

    channel->item as $item) : if (!$count--) break; ?> @@ -87,7 +170,7 @@

- rss, more → + rss, more →

- + :@api.del.icio.us/v1/posts/recent'; + $url = 'https://:@api.del.icio.us/v1/posts/recent'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); @@ -107,72 +190,39 @@ curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $data = curl_exec($ch); - curl_close($ch); - $del = new SimpleXMLElement($data); + curl_close($ch); + $del = new SimpleXMLElement($data); ?> -

bookmarks

- +

link

+
    post as $d) : ?>
  • -
    - + + + */ ?> + +
    +
  • - +
- +

- rss, more → + rss, more →

- -
-
- include_template('footer.html.tpl'); ?> - - - - + - - - + - - - - - <?php echo SITE_TITLE; ?> - aggregate - - - - + include_template('footer.html.tpl'); ?> - - - - -
- - -
- - - \ No newline at end of file diff --git a/templates/nav.html.tpl b/templates/nav.html.tpl index ce2d370..473de34 100644 --- a/templates/nav.html.tpl +++ b/templates/nav.html.tpl @@ -1,20 +1,31 @@ +*/ ?> diff --git a/templates/photo.html.tpl b/templates/photo.html.tpl new file mode 100644 index 0000000..911f992 --- /dev/null +++ b/templates/photo.html.tpl @@ -0,0 +1,82 @@ + + + + include_template('head-inc.html.tpl'); ?> + + <?=SITE_TITLE?>: photo + + + + + include_template('nav.html.tpl') ?> + +
+ + + + + +

video

+
    + channel->item as $tube) : + if ($count-- == 0) break; + ?> +
  • title); ?>"> + link; + $pattern = '/v=(.+?)&/'; + preg_match($pattern, $url, $matches); + $id = $matches[1]; + ?> + + + + +
  • + +
+

+ more → +

+ +*/ ?> + + +
    + + channel->item as $item) : if (!$count--) break; ?> +
  • + description; + $pattern = '/rss, more → +

    + + + + + + + + + + + + +
+ + include_template('footer.html.tpl'); ?> + + + +