From f36e68f31295ea591e1ce5002a0552fc8c3e3ace Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Tue, 17 Apr 2012 16:14:04 -0700 Subject: [PATCH] Style and content updates. --- TODO | 6 +-- content/code/.adva | 53 +++++++++++++++++++++++++++ content/code/archlinux_install | 3 +- content/code/clmpr | 4 -- content/code/mel/notepad | 6 +++ content/code/mel/sphere_intersect | 6 ++- content/code/osx_command_line_audio | 4 +- content/code/plog | 4 -- content/code/scripts/imageslice | 4 ++ content/code/terminal_emulator_on_win | 11 ++++-- content/config | 2 +- content/log/2011-09-28_sriyantra | 9 ++++- content/log/2011-10 16 _beg | 3 -- content/log/2011-10-06_alphabet | 3 ++ content/log/2012-02-20_temple | 6 +++ content/log/2012-04-01_studiopano | 7 ++++ css/style.css | 17 ++++++--- lib/init.php | 1 + pages/about | 21 ++++------- pages/all | 3 ++ pages/index | 2 + pages/links | 2 +- pages/test | 1 + templates/default.html.tpl | 14 ++++++- templates/entry.html.tpl | 7 +++- templates/index.html.tpl | 12 +----- templates/nav.html.tpl | 53 +++------------------------ templates/photo.html.tpl | 3 ++ templates/single.html.tpl | 24 +----------- templates/viewtoggle.html.tpl | 40 ++++++++++++++++++++ 30 files changed, 204 insertions(+), 127 deletions(-) create mode 100644 content/code/.adva delete mode 100644 content/code/clmpr delete mode 100644 content/code/plog create mode 100644 content/log/2012-02-20_temple create mode 100644 content/log/2012-04-01_studiopano create mode 100644 pages/all create mode 100644 pages/index create mode 100644 pages/test create mode 100644 templates/viewtoggle.html.tpl diff --git a/TODO b/TODO index d3550fe..a38a786 100644 --- a/TODO +++ b/TODO @@ -1,10 +1,10 @@ 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 diff --git a/content/code/.adva b/content/code/.adva new file mode 100644 index 0000000..316cea3 --- /dev/null +++ b/content/code/.adva @@ -0,0 +1,53 @@ +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) + + + +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 sda. +
# 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.
+
\ No newline at end of file diff --git a/content/code/archlinux_install b/content/code/archlinux_install index c34cb62..36592e8 100644 --- a/content/code/archlinux_install +++ b/content/code/archlinux_install @@ -16,12 +16,13 @@ Documentation of the process of installing [archlinux](http://www.archlinux.org/ - 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. - + ## Installing Archlinux diff --git a/content/code/clmpr b/content/code/clmpr deleted file mode 100644 index 76fbb1b..0000000 --- a/content/code/clmpr +++ /dev/null @@ -1,4 +0,0 @@ -title = clmpr -tags = software web bookmarks --- -clmpr - minimal bookmarking site
diff --git a/content/code/mel/notepad b/content/code/mel/notepad index f8a63da..4a4b8c5 100644 --- a/content/code/mel/notepad +++ b/content/code/mel/notepad @@ -3,6 +3,10 @@ title = "MEL Notepad" tags = mel maya -- +mel notepad with various code snippets + + + process selection list
string $select[] = `ls -sl`;
 for ( $node in $select ) // process each
@@ -31,6 +35,8 @@ string $no_component = `match "^[^\.]*" $node`;
 // Result: "pCube1" //
 
+ +
Extract component or attribute, with '.'
diff --git a/content/code/mel/sphere_intersect b/content/code/mel/sphere_intersect
index 229977e..9ff0395 100644
--- a/content/code/mel/sphere_intersect
+++ b/content/code/mel/sphere_intersect
@@ -1,5 +1,5 @@
 date = 2009-06-12
-title = "MEL Sphere Intersect"
+title = "Sphere Intersect in Maya/MEL"
 tags = maya mel sphere intersection
 lang = mel
 --
@@ -8,6 +8,8 @@ Function to return location of intersect with poly mesh and spherical object mov
 

+ +

mel source

@@ -63,4 +65,4 @@ intersectSphereY;
- \ No newline at end of file + diff --git a/content/code/osx_command_line_audio b/content/code/osx_command_line_audio index c74f46b..6733842 100644 --- a/content/code/osx_command_line_audio +++ b/content/code/osx_command_line_audio @@ -31,7 +31,7 @@ gcc test.c -o test -##resources +## references - http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html - http://www.bemmu.com/music/index.html @@ -41,3 +41,5 @@ gcc test.c -o test - one-liner from inigo quilez --> + +
diff --git a/content/code/plog b/content/code/plog deleted file mode 100644 index c6bd8c3..0000000 --- a/content/code/plog +++ /dev/null @@ -1,4 +0,0 @@ -title = plog -tags = software web cms blog engine --- -plog - project+log CMS
diff --git a/content/code/scripts/imageslice b/content/code/scripts/imageslice index acd928b..b4aab53 100644 --- a/content/code/scripts/imageslice +++ b/content/code/scripts/imageslice @@ -6,6 +6,8 @@ lang = bash Shell script that slices a single image into any number of vertical and horizontal sections. + +
#!/bin/bash
 #@author  gabriel dunne <quilime.com>
 
@@ -39,6 +41,8 @@ else
 fi
 
+ + ##To Use navigate to slice.sh in your terminal and do
chmod +x slice.sh
diff --git a/content/code/terminal_emulator_on_win b/content/code/terminal_emulator_on_win
index 7e0bc70..cd51b25 100644
--- a/content/code/terminal_emulator_on_win
+++ b/content/code/terminal_emulator_on_win
@@ -1,9 +1,7 @@
 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 Cygwin from setup.exe**
 
@@ -26,6 +24,9 @@ For a full featured x-term, you can install Cygwin-X along with Cygwin:
 
     
+ + + 3. **~/.XDefaults** dark theme:
@@ -61,6 +62,8 @@ dark theme:
 Some more themes on the Arch forums.  
 
+ + 4. **~/.bashrc** To enable color `ls` and human readable size format, add:
@@ -76,6 +79,8 @@ Disable emacs temp (~) file pooping
 

+ + Result: diff --git a/content/config b/content/config index 94c78ea..090d7d2 100644 --- a/content/config +++ b/content/config @@ -1,3 +1,3 @@ title = quilime -template = index +#template = index diff --git a/content/log/2011-09-28_sriyantra b/content/log/2011-09-28_sriyantra index 2fe3e17..c0798a9 100644 --- a/content/log/2011-09-28_sriyantra +++ b/content/log/2011-09-28_sriyantra @@ -1,11 +1,16 @@ date = 2011-09-28 -title = sri yantra +title = sri -- + + + + + -Shri Yantra + Kali → goddess of eternal energy. The goddess of time and change. The ultimate reality. diff --git a/content/log/2011-10 16 _beg b/content/log/2011-10 16 _beg index 987e618..15504d9 100644 --- a/content/log/2011-10 16 _beg +++ b/content/log/2011-10 16 _beg @@ -2,10 +2,7 @@ title = beg date = Oct 16 2011, 15:34:03 -- - - -They move their mouths into a sad frown, they use their eyes, they tap on the windows. diff --git a/content/log/2011-10-06_alphabet b/content/log/2011-10-06_alphabet index de750a9..de7beb8 100644 --- a/content/log/2011-10-06_alphabet +++ b/content/log/2011-10-06_alphabet @@ -5,8 +5,11 @@ title = alphabet consanants + +


+ vowels diff --git a/content/log/2012-02-20_temple b/content/log/2012-02-20_temple new file mode 100644 index 0000000..915bef5 --- /dev/null +++ b/content/log/2012-02-20_temple @@ -0,0 +1,6 @@ +date = feb 20 2012 +title = temple +-- + + + diff --git a/content/log/2012-04-01_studiopano b/content/log/2012-04-01_studiopano new file mode 100644 index 0000000..f9184b0 --- /dev/null +++ b/content/log/2012-04-01_studiopano @@ -0,0 +1,7 @@ +title = studio pano +date = 2012-04-01 +-- + + +studio panorama taken by Ryan Alexander +flickr \ No newline at end of file diff --git a/css/style.css b/css/style.css index 8ec1681..ebdf7d2 100644 --- a/css/style.css +++ b/css/style.css @@ -1,7 +1,7 @@ body, table { - font-size:14px; + font-size:13px; font-family: arial, monaco, monospace; - line-height:1.6em; + line-height:1.4em; } body { @@ -116,9 +116,16 @@ background:rgba(25,25,25,0.3); .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 { @@ -156,7 +163,7 @@ background:rgba(25,25,25,0.3); .archive li { padding-bottom:5px; margin-bottom:5px; - border-bottom:1px dotted #555; + border-bottom:1px dotted #333; } .project { diff --git a/lib/init.php b/lib/init.php index e77e3a2..8703194 100644 --- a/lib/init.php +++ b/lib/init.php @@ -25,6 +25,7 @@ ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . dirname(realp # settings define ('CLEAN_URLS', true); +define ('LIMIT', 15); define ('SITE_TITLE', 'quilime'); define ('LOCAL_ROOT', '/home/quilime/quilime.com/'); define ('WEB_ROOT', '/'); diff --git a/pages/about b/pages/about index c9a09de..6b4a8c8 100644 --- a/pages/about +++ b/pages/about @@ -3,31 +3,24 @@ title = about 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 -Creative Commons License - -
- -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/)
-running on plog, a custom static-file **p**roject+**log**ging engine. +quilime runs on plog, a static-file **p**roject+**log** diff --git a/pages/all b/pages/all new file mode 100644 index 0000000..2740ac2 --- /dev/null +++ b/pages/all @@ -0,0 +1,3 @@ +title = all +template = default +-- diff --git a/pages/index b/pages/index new file mode 100644 index 0000000..64a6599 --- /dev/null +++ b/pages/index @@ -0,0 +1,2 @@ +template = index +-- diff --git a/pages/links b/pages/links index bdf2e9c..624af37 100644 --- a/pages/links +++ b/pages/links @@ -7,6 +7,7 @@ markdown = true + [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 @@ -18,7 +19,6 @@ markdown = true + [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 diff --git a/pages/test b/pages/test new file mode 100644 index 0000000..3823d61 --- /dev/null +++ b/pages/test @@ -0,0 +1 @@ +template = test diff --git a/templates/default.html.tpl b/templates/default.html.tpl index e2e3fae..f68fa2c 100644 --- a/templates/default.html.tpl +++ b/templates/default.html.tpl @@ -1,3 +1,10 @@ + include_template('head-inc.html.tpl') ?> @@ -8,7 +15,7 @@
- + more →

'; ?> @@ -19,6 +26,11 @@
+ index → +
+
+
+
include_template('nav.html.tpl') ?> diff --git a/templates/entry.html.tpl b/templates/entry.html.tpl index 0736718..ae845d1 100644 --- a/templates/entry.html.tpl +++ b/templates/entry.html.tpl @@ -4,13 +4,16 @@ +
diff --git a/templates/index.html.tpl b/templates/index.html.tpl index 1fbef0a..ef600e3 100644 --- a/templates/index.html.tpl +++ b/templates/index.html.tpl @@ -27,7 +27,6 @@

more →

-

code

    @@ -43,7 +42,6 @@

    more →

    -

    projects

      @@ -77,7 +75,6 @@ } - @@ -89,21 +86,16 @@ - - +

      +all posts →
      - include_template('nav.html.tpl') ?> - include_template('footer.html.tpl') ?> diff --git a/templates/nav.html.tpl b/templates/nav.html.tpl index 76cedc8..6b0b116 100644 --- a/templates/nav.html.tpl +++ b/templates/nav.html.tpl @@ -1,64 +1,21 @@ - +

      + +

      more →

      diff --git a/templates/single.html.tpl b/templates/single.html.tpl index d35a00b..e511b6c 100644 --- a/templates/single.html.tpl +++ b/templates/single.html.tpl @@ -14,30 +14,10 @@ $this->include_template($entry['config']['template'] . '.' . $this->response_format . '.tpl'); } else { + $this->include_template('entry.' . $this->response_format . '.tpl'); + } ?> -
      - -

      - -
      - -
      - - - -
      - - - include_template('nav.html.tpl') ?> diff --git a/templates/viewtoggle.html.tpl b/templates/viewtoggle.html.tpl new file mode 100644 index 0000000..dc88804 --- /dev/null +++ b/templates/viewtoggle.html.tpl @@ -0,0 +1,40 @@ + + + + -- 2.34.1