TODO
-
- pagination (View)
-
- canvas icons for list/thumb/tile views (js)
-
- static cache generation (wget? curl?)
+ static rss, json, html
+- commenting system from india branch
+
- update content.sh to give back help if used incorrectly
--- /dev/null
+title = advanced hard drive format
+date = feb 20 2012, 9:34pm PST
+
+--
+Newer hard drives (circa 2012) are building drives that use a 4KB sector size instead of the conventional 512B. This requires a specific type of formatting to make sure the alignment of the drive is correct, allowing the OS to take full advantage of the performance of the drive. If the drives partition table is not aligned to a single sector that is a multiple of 512, but at least 2x512B, then it will potentially allow gaps between each sector. Ubuntu will throw an error in the disk utilty saying the "Warning: The partition table is misaligned by n number of bytes", and the drive will not perform fully.
+
+For this article I am using a Seagate 2TB ATA ST2000DM001-9YN164 which I am formatting in a single partition as ext4.
+
+I reference this article heavily via linuxconfig.org: [Linux ED EARS Advanced Hard Drive Format](http://linuxconfig.org/linux-wd-ears-advanced-format)
+
+<!--more-->
+
+By default, linux partitioned my drive with the start of each partition on sector 63, which lead to warnings from Ubuntu because they are not aligned to 4K sector from the beginning of the track.
+
+The following assumes your disk is labled as <code>sda</code>.
+<pre class="prettyprint"># fdisk -u /dev/sda
+
+The number of cylinders for this disk is set to 121601.
+There is nothing wrong with that, but this is larger than 1024,
+and could in certain setups cause problems with:
+1) software that runs at boot time (e.g., old versions of LILO)
+2) booting and partitioning software from other OSs
+ (e.g., DOS FDISK, OS/2 FDISK)
+
+Command (m for help): p
+
+Disk /dev/sda: 2000.1 GB, 2000204886016 bytes
+255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
+Units = sectors of 1 * 512 = 512 bytes
+Disk identifier: 0x10bd10bc
+
+ Device Boot Start End Blocks Id System
+
+Command (m for help): n
+Command action
+ e extended
+ p primary partition (1-4)
+p
+Partition number (1-4): 1
+First sector (63-1953525167, default 63): 64
+Last sector, +sectors or +size{K,M,G} (64-1953525167, default 1953525167):
+Using default value 1953525167
+
+Command (m for help): w
+The partition table has been altered!
+
+Calling ioctl() to re-read partition table.
+
+WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
+The kernel still uses the old table.
+The new table will be used at the next reboot.
+Syncing disks.
+</pre>
\ No newline at end of file
- 550w power supply
+
## Installing Windows
Windows was installed from a USB stick using Microsoft's [Windows 7 USB/DVD tool](http://www.microsoftstore.com/store/msstore/html/pbPage.Help_Win7_usbdvd_dwnTool). It's required to create this key from a Windows 7 system. Boot with the USB drive, then install Windows on the drive in a single partition. Windows also creates a System Reserved partition for itself. Once installed, via Start Menu > Administrative Tools > Computer Management > Disk Manamagent, select 'Shrink Partition' on the main Windows parition to create another partition for Arch. The default value for the shrink is 50%, so for my setup the value for the new disk size was ~50GB, which was ideal.
Note about this install. I have an old Linksys (Cysco) WMP54G Wireless PCI Card. Drivers from Linksys/Cysco's website didn't work, but following this [blog post](http://www.phishthis.com/2009/01/16/how-to-install-wmp54g-drivers-on-windows-7-beta-64-bit-or-vista-64-bit/), the generic RALink drivers worked great.
-
+<!--more-->
## Installing Archlinux
+++ /dev/null
-title = clmpr
-tags = software web bookmarks
---
-<a href="https://github.com/quilime/clmpr">clmpr</a> - minimal bookmarking site<br />
tags = mel maya
--
+mel notepad with various code snippets
+
+
+
process selection list
<pre class="prettyprint lang-mel">string $select[] = `ls -sl`;
for ( $node in $select ) // process each
// Result: "pCube1" //
</pre>
+<!--more-->
+
<br />
Extract component or attribute, with '.'
<pre class="prettyprint lang-mel">
date = 2009-06-12
-title = "MEL Sphere Intersect"
+title = "Sphere Intersect in Maya/MEL"
tags = maya mel sphere intersection
lang = mel
--
<br/>
</p>
+<!--more-->
+
<h2>
mel source
</h2>
-<img src="http://media.quilime.com/files/img/sphere_intersect.png">
\ No newline at end of file
+<img src="http://media.quilime.com/files/img/sphere_intersect.png">
-##resources
+## references
- <a href="http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html">http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html</a>
- <a href="http://www.bemmu.com/music/index.html">http://www.bemmu.com/music/index.html</a>
- <a href="http://wurstcaptures.untergrund.net/music/?oneliner=-(M%3D127)%3E(s%3D(((y%3D%5B3%2C3%2C4.7%2C2%5D%5Bp%3Dt%3E%3E14%263%5D%2F5*t)*.96%2663)%2B(y%2663))*1.2%2B(t%3E%3E16%3F(((5*t%25(m%3D2048))*(a%3D1-t%25m%2Fm)%26128)*(0x53232323%3E%3E(z%3Dt%3E%3E11%26(k%3D31))%261)*a%2B((d%3D(14*t*t%5Et)%25m*a)%26M)*(0xa444c444%3E%3Ez%261)*a*1.5%2B((a*d*(t%3E%3E9%261)%26M)%2F7.5))%2B((((h%3D%22IQNNNN!!%5D%5D!Q!IW%5DWQNN%3F%3F!!W%5DWQNNN%3F%22.charCodeAt(t%3E%3E10%2615%7Cp%2F3%3C%3C4)%2F33*t-t)%26k)%2B(h*1.99%26k)%2B(h*.49%26k)%2B(h*.97%26k)-64))*a*(2-a)*2%3A0))%3F-M%3As%3EM%3FM%3As&oneliner2=&t0=0&tmod=0&duration=30&separation=100&rate=8000">one-liner</a> from <a href="http://www.iquilezles.org">inigo quilez</a>
-->
+
+<br />
+++ /dev/null
-title = plog
-tags = software web cms blog engine
---
-<a href="http://git.quilime.com/?p=plog.git">plog</a> - project+log CMS<br />
Shell script that slices a single image into any number of vertical and horizontal sections.
+
+
<pre class="prettyprint">#!/bin/bash
#@author gabriel dunne <quilime.com>
fi
</pre>
+<!--more-->
+
##To Use
navigate to slice.sh in your terminal and do
<pre class="prettyprint">chmod +x slice.sh
title = Terminal Emulator on Windows via Cygwin
date = august 11 2011
--
-The default Cygwin install emulates a terminal in a command window similar to the DOS prompt with a limited feature set.
-
-For a full featured x-term, you can install Cygwin-X along with Cygwin:
+How to install cygwin on windows:
1. **Install <a href="http://cygwin.com">Cygwin</a> from <a href="http://cygwin.com/setup.exe">setup.exe</a>**
<br />
+<!--more-->
+
+
3. **~/.XDefaults**
dark theme:
<pre class="prettyprint">
Some more themes on the <a href="https://bbs.archlinux.org/viewtopic.php?pid=653473">Arch forums</a>.
<br />
+
+
4. **~/.bashrc**
To enable color `ls` and human readable size format, add:
<pre class="prettyprint">
</pre>
<br />
+
+
Result:
<img src="http://media.quilime.com/files/img/cygwin.PNG" />
title = quilime
-template = index
+#template = index
date = 2011-09-28
-title = sri yantra
+title = sri
--
+<img src="http://media.quilime.com/files/projects/india/sriyantra/kali-yantra.jpg" />
+
+<!--more-->
+
<!--<img src="http://media.quilime.com/files/projects/india/sriyantra/sri_light.png"> -->
<img src="http://media.quilime.com/files/projects/india/sriyantra/sri_bindu.png">
+
<!--<img src="media/sriyantra/sri_dark.png"> -->
-Shri Yantra
+
<img src="http://media.quilime.com/files/projects/india/sriyantra/kali-yantra.jpg" />
Kali → goddess of eternal energy. The goddess of time and change. The ultimate reality.
date = Oct 16 2011, 15:34:03
--
-
-
<a href="http://www.flickr.com/photos/quilime/6200087309/sizes/l/in/photostream/">
<img src="http://farm7.staticflickr.com/6174/6200087309_3cd592be3d_z.jpg">
</a>
-They move their mouths into a sad frown, they use their eyes, they tap on the windows.
consanants
<img src="http://media.quilime.com/files/projects/india/lang/hindi_cons.gif">
+<!--more-->
+
<br /><br /><br />
+
vowels
<img src="http://media.quilime.com/files/projects/india/lang/hindi_vwl.gif">
--- /dev/null
+date = feb 20 2012
+title = temple
+--
+<a href="http://www.flickr.com/photos/quilime/6914577153/sizes/z/in/photostream/">
+ <img src="http://farm8.staticflickr.com/7053/6914577153_4c2b7d8a1a_z.jpg">
+</a>
--- /dev/null
+title = studio pano
+date = 2012-04-01
+--
+<a href="http://www.flickr.com/photos/quilime/7039418073/in/photostream/"><img src="http://farm8.staticflickr.com/7187/7039418073_33cb505a31_z.jpg"/></a>
+
+studio panorama taken by <a href="http://onecm.com">Ryan Alexander</a>
+<a href="http://www.flickr.com/photos/quilime/7039418073/in/photostream/">flickr</a>
\ No newline at end of file
body, table {
- font-size:14px;
+ font-size:13px;
font-family: arial, monaco, monospace;
- line-height:1.6em;
+ line-height:1.4em;
}
body {
.entry {
padding-bottom:20px;
- margin-bottom:70px;
+ margin-bottom:100px;
+}
+.entry .metadata {
+ visibility:hidden;
+}
+.entry:hover .metadata{
+ visibility:visible;
}
-.single .entry {
+.single .entry .metadata {
+ visibility:visible !important;
}
.singlebg {
.archive li {
padding-bottom:5px;
margin-bottom:5px;
- border-bottom:1px dotted #555;
+ border-bottom:1px dotted #333;
}
.project {
# settings
define ('CLEAN_URLS', true);
+define ('LIMIT', 15);
define ('SITE_TITLE', 'quilime');
define ('LOCAL_ROOT', '/home/quilime/quilime.com/');
define ('WEB_ROOT', '/');
quilime is a codification of projects, process and resources
-all content © 1999—2012 **gabriel dunne** ([www](http://gabrieldunne.com), [email](mailto:gdunne@quilime.com))
+all content © 1999—2012 **gabriel dunne** ([www](http://gabrieldunne.com), [email](mailto:gdunne@quilime.com)) unless otherwise noted
-<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png" /></a>
-
-<br />
-
-related
+elsewhere
[clmpr](http://clmpr.com/quilime/)
[aggregate](http://media.quilime.com/aggregate/)
[git.quilime.com](http://git.quilime.com)
-
-
-elsewhere
-[flickr](http://flickr.com/photos/quilime/)
-[vimeo](http://vimeo.com/quilime/)
-[github](http://github.com/quilime/)
-[twitter](http://twitter.com/quilime/)
+[github.com/quilime](http://github.com/quilime/)
+[flickr.com/photos/quilime](http://flickr.com/photos/quilime/)
+[vimeo/quilime](http://vimeo.com/quilime/)
+[twitter/quilime](http://twitter.com/quilime/)
<!-- add <a href="http://quilime.com/.rss" class="rss">.rss</a> to the end of any url for an xml feed -->
<br />
-running on <a href="http://git.quilime.com/?p=plog;a=summary">plog</a>, a custom static-file **p**roject+**log**ging engine.
+quilime runs on <a href="http://git.quilime.com/?p=plog;a=summary">plog</a>, a static-file **p**roject+**log**
--- /dev/null
+title = all
+template = default
+--
--- /dev/null
+template = index
+--
+ [gabrieldunne.com](http://gabrieldunne.com) gabriel dunne
+ [ssherriff.com](http://ssherriff.com) stephanie sherriff
+ [onecm.com](http://onecm.com) ryan alexander
++ [ripevessel.com](http://ripevessel.com) adam roth
+ [jtnimoy.net](http://jtnimoy.net) joshua nimoy
+ [oddsympathy.com](http://oddsympathy.com) daniel massey
+ [keithpasko.com](http://keithpasko.com) keith pasko
+ [universaloscillation.com](http://universaloscillation.com) aaron meyers
+ [tom-carden.co.uk](http://tom-carden.co.uk) tom carden
+ [mike.teczno.co](http://mike.teczno.com) michal migurski
-+ [ripevessel.com](http://ripevessel.com) adam roth
+ [davidrager.org](http://davidrager.org) david rager
+ [digitanalog.net](http://digitanalog.net) marc nimoy
+ [makaga.com](http://makaga.com) matthew gale
--- /dev/null
+template = test
+<?php
+
+ if (!isset($entries)) {
+ $entries = get_entries();
+ }
+
+?>
<html>
<head>
<? $this->include_template('head-inc.html.tpl') ?>
<div id="content">
<div class="entries">
- <? foreach($entries as $entry): ?>
+ <? $limit = LIMIT; foreach($entries as $entry): if ($limit-- == 0) break; ?>
<? if (isset($entry['content_short'])): ?>
<? $entry['content'] = $entry['content_short'] . '<br /><a class="more" href="'.$entry['url'].'">more →</a><br /><br />'; ?>
<? endforeach; ?>
</div>
+ <a href="/index">index →</a>
+ <br />
+ <br />
+ <br />
+
</div>
<? $this->include_template('nav.html.tpl') ?>
<a title="posted on <?=$entry['date']?>" href="/<?=$entry['url']?>">— <?=$entry['title']?></a>
</h1>
+
<div class="content">
<?=$entry['content']?>
</div>
<div class="metadata">
- <a title="permalink" href="/<?=$entry['url']?>">#</a><br />
- <!-- <abbr title="<?=get_relative_time($entry['timestamp']);?>"><?=date("F d, Y", $entry['timestamp'])?></abbr> -->
+ <a href="/<?=$entry['url']?>">#</a>
+ <br />
+ <span title="<?=get_relative_time($entry['timestamp']);?>"><?=date("F d, Y", $entry['timestamp'])?></span> in
+ <a href="/<?=$entry['cat']['url'];?>">/<?=$entry['cat']['url'];?></a><? if ($entry['tags']) echo '<br/>tags: ' . implode(', ', $entry['tags']); ?>
</div>
</div>
<p><a class="more" href="/log/">more →</a></p>
</td>
-
<td style="padding-right:100px;" valign="top">
<h1><a class="more" href="/code/">code</a></h1>
<ul class="archive">
<p><a class="more" href="/code/">more →</a></p>
</td>
-
<td valign="top">
<h1><a href="/projects/">projects</a></h1>
<ul class="projects">
}
</script>
-
<? endif; ?>
</div>
<?=$entry['title']?></a>
</tr>
</table>
-<!-- • <a href="http://content.stamen.com/som_transbay_tower">Bay Area Transit</a> - data visualization<br />
- • <a href="http://portfolio.quilime.com/content/daschtein/index.html">Dachstein</a> - installation<br />
- • <a href="http://portfolio.quilime.com/content/cm/index.html">Celestial Mechanics</a> - dome-based animation<br />
- • <a href="http://portfolio.quilime.com/content/valentine/index.html">Valentine</a><br /> -->
-
+<br /><br/>
+<a href="/all">all posts →</a>
</div>
<br />
-
<? $this->include_template('nav.html.tpl') ?>
-
<? $this->include_template('footer.html.tpl') ?>
</body>
-<!-- <<<<<<< HEAD
-<ul class="nav">
-
-
-
- <br />
-
- <small>categories</small>
- <? $dirs = get_dirs("", array('recursive' => 0)); ?>
- <? foreach($dirs as $dir) : ?>
- <li><a href="<?=$dir['url']?>"><?=$dir['name']?></a></li>
- <? endforeach; ?>
-
- <br />
-
- <small>pages</small>
- <li><a href="/projects/">projects</a></li>
- <li><a href="/photo/">photo</a></li>
- <li><a href="/agg/">aggregate</a></li>
- <li><a href="/links/">links</a></li>
-
- <br />
-
- <li><a class="rss" href="/.rss">rss</a></li>
-
-
-
-<br />
-
-<? /*
-<ul class="index">
- <li><h3>index</h3></li>
- <? list($dirs, $total) = get_entries(""); ?>
- <?php foreach($dirs as $entry): ?>
- <li><a href="<?php echo $entry['url']; ?>"><?php echo $entry['title']; ?></a></li>
- <?php endforeach; ?>
-</ul>
-*/ ?>
-
-</ul>
-======= -->
<ul id="nav">
<li><a href="/">home</a></li>
- <!-- <li><a href="/contents">contents</a></li> -->
- <li><a href="/about">about</a></li>
+ <li><a href="/index">index</a></li>
- <br />
- <br />
+ <br />
<? $dirs = get_dirs("", array('recursive' => 0)); ?>
<? foreach($dirs as $dir) : ?>
<li><a href="/<?=$dir['url']?>"><?=$dir['name']?></a></li>
<? endforeach; ?>
- <br />
- <br />
+ <br />
- <li><a href="/photo">photo</a></li>
<li><a href="/agg">aggregate</a></li>
+ <li><a href="/photo">photo</a></li>
<li><a href="/links">links</a></li>
+ <li><a href="/about">about</a></li>
<br />
<br />
</li>
<?endforeach;?>
</ul>
+ <p style="clear:both;">
+
+ </p>
<p>
<a class="more" href="http://flickr.com/photos/quilime/" title="via flickr">more →</a>
</p>
$this->include_template($entry['config']['template'] . '.' . $this->response_format . '.tpl');
}
else {
+ $this->include_template('entry.' . $this->response_format . '.tpl');
+ }
?>
- <div class="entry">
-
- <h1><?=$entry['title']?></h1>
-
- <div class="content">
- <?=$entry['content']?>
- </div>
-
- <div class="metadata">
-
- <a href="/<?=$entry['url']?>">#</a>
-
- <br />
-
- created: <span title="<?=get_relative_time($entry['timestamp']);?>"><?=date("F d, Y", $entry['timestamp'])?></span> in
- <a href="/<?=$entry['cat']['url'];?>">/<?=$entry['cat']['url'];?></a><? if ($entry['tags']) echo '<br/>tags: ' . implode(', ', $entry['tags']); ?>
- </div>
-
- </div>
-
- <? } ?>
-
</div>
<? $this->include_template('nav.html.tpl') ?>
--- /dev/null
+<a onClick="return toggleView();" title="toggle view" href="#">
+<canvas id="viewicon" width="25" height="25"></canvas>
+</a>
+<script>
+
+ function toggleView() {
+ console.log('toggle view');
+ return false;
+ }
+
+ var mode = 'list';
+ var canvas = document.getElementById('viewicon');
+ drawIcon(mode);
+
+ function drawIcon(mode) {
+ if(canvas && canvas.getContext) {
+ var ctx = canvas.getContext('2d');
+ ctx.clearRect ( 0 , 0 , 25 , 25 );
+
+ switch(mode) {
+ case 'list' :
+ var lh = 4;
+ var blh = 1;
+ var toff = 4;
+ var w = 20;
+ ctx.beginPath();
+ for(var i = 0; i < 4; i++ ) {
+ ctx.moveTo(0, blh * i + lh * i + toff);
+ ctx.lineTo(w, blh * i + lh * i + toff);
+ }
+ ctx.closePath();
+ ctx.lineWidth = 3;
+ break;
+ }
+ ctx.strokeStyle = "#2A80EB";
+ ctx.stroke();
+ ctx.fill();
+ }
+ }
+</script>