From a942df43760277d4fe22cb9803885ae8239d0725 Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Mon, 3 Sep 2012 11:52:38 -0700 Subject: [PATCH] Generic Plog --- .htaccess | 12 +- TODO | 9 +- content/code/.adva | 53 ----- content/code/archlinux_install | 114 ---------- content/code/bash_profile_linux | 11 - content/code/bash_profile_osx | 28 --- content/code/bootable_iso | 22 -- content/code/filebrowser | 7 - content/code/maya_render_bat | 207 ------------------ content/code/mel/notepad | 127 ----------- content/code/mel/sphere_intersect | 68 ------ content/code/mostused | 32 --- content/code/osx_command_line_audio | 45 ---- content/code/osx_hidden_files | 18 -- content/code/osx_print_json | 27 --- content/code/scripts/date_for_filename | 10 - content/code/scripts/imageslice | 53 ----- content/code/scripts/rename_multiple_files | 7 - content/code/scripts/resize_multiple_images | 5 - content/code/scripts/rewrite_multiple_slashes | 9 - content/code/ssh_keys | 12 - content/code/terminal_emulator_on_win | 90 -------- content/code/windows_copy | 15 -- content/config | 2 +- content/log/2008-11-17_buttons | 7 - content/log/2009-12-13_mandala | 6 - content/log/2009-12-18_taper | 5 - content/log/2010-01-13_relative_time | 5 - content/log/2010-01-22_cone | 11 - content/log/2010-07-01_icosi | 5 - content/log/2010-07-29_icosi | 6 - content/log/2010-12-01_icosi | 6 - content/log/2011-04-29 | 7 - content/log/2011-09-22_arrive | 11 - content/log/2011-09-27_habitat | 16 -- content/log/2011-09-28_sriyantra | 60 ----- content/log/2011-10 16 _beg | 8 - content/log/2011-10-04_dreams | 4 - content/log/2011-10-05_islands | 7 - content/log/2011-10-06_alphabet | 21 -- content/log/2011-10-06_dushera | 8 - content/log/2011-10-06_overlords | 7 - content/log/2011-10-20_smog | 7 - content/log/2011-10-23_water_is_life | 8 - content/log/2012-02-20_temple | 6 - content/log/2012-04-01_studiopano | 7 - content/log/2012-05-02_modulations | 21 -- content/projects/aero | 8 - content/projects/boat | 20 -- content/projects/bodyneg | 8 - content/projects/cabspotting | 28 --- content/projects/dots | 40 ---- content/projects/icarus | 11 - content/projects/jelly | 44 ---- content/projects/light | 12 - content/projects/rattles | 60 ----- content/projects/sempernull | 71 ------ content/projects/swimtank | 63 ------ content/projects/synony | 22 -- css/style.css | 80 +++---- index.php | 2 + lib/config.ini | 19 +- lib/init.php | 36 +-- lib/model.php | 10 +- templates/index.html.tpl | 70 +----- templates/nav.html.tpl | 39 +--- 66 files changed, 79 insertions(+), 1796 deletions(-) delete mode 100644 content/code/.adva delete mode 100644 content/code/archlinux_install delete mode 100644 content/code/bash_profile_linux delete mode 100644 content/code/bash_profile_osx delete mode 100644 content/code/bootable_iso delete mode 100644 content/code/filebrowser delete mode 100644 content/code/maya_render_bat delete mode 100644 content/code/mel/notepad delete mode 100644 content/code/mel/sphere_intersect delete mode 100644 content/code/mostused delete mode 100644 content/code/osx_command_line_audio delete mode 100644 content/code/osx_hidden_files delete mode 100644 content/code/osx_print_json delete mode 100644 content/code/scripts/date_for_filename delete mode 100644 content/code/scripts/imageslice delete mode 100644 content/code/scripts/rename_multiple_files delete mode 100644 content/code/scripts/resize_multiple_images delete mode 100644 content/code/scripts/rewrite_multiple_slashes delete mode 100644 content/code/ssh_keys delete mode 100644 content/code/terminal_emulator_on_win delete mode 100644 content/code/windows_copy delete mode 100644 content/log/2008-11-17_buttons delete mode 100644 content/log/2009-12-13_mandala delete mode 100644 content/log/2009-12-18_taper delete mode 100644 content/log/2010-01-13_relative_time delete mode 100644 content/log/2010-01-22_cone delete mode 100644 content/log/2010-07-01_icosi delete mode 100644 content/log/2010-07-29_icosi delete mode 100644 content/log/2010-12-01_icosi delete mode 100644 content/log/2011-04-29 delete mode 100644 content/log/2011-09-22_arrive delete mode 100644 content/log/2011-09-27_habitat delete mode 100644 content/log/2011-09-28_sriyantra delete mode 100644 content/log/2011-10 16 _beg delete mode 100644 content/log/2011-10-04_dreams delete mode 100644 content/log/2011-10-05_islands delete mode 100644 content/log/2011-10-06_alphabet delete mode 100644 content/log/2011-10-06_dushera delete mode 100644 content/log/2011-10-06_overlords delete mode 100644 content/log/2011-10-20_smog delete mode 100644 content/log/2011-10-23_water_is_life delete mode 100644 content/log/2012-02-20_temple delete mode 100644 content/log/2012-04-01_studiopano delete mode 100644 content/log/2012-05-02_modulations delete mode 100644 content/projects/aero delete mode 100644 content/projects/boat delete mode 100644 content/projects/bodyneg delete mode 100644 content/projects/cabspotting delete mode 100644 content/projects/dots delete mode 100644 content/projects/icarus delete mode 100644 content/projects/jelly delete mode 100644 content/projects/light delete mode 100644 content/projects/rattles delete mode 100644 content/projects/sempernull delete mode 100644 content/projects/swimtank delete mode 100644 content/projects/synony diff --git a/.htaccess b/.htaccess index 748369a..618e5bf 100644 --- a/.htaccess +++ b/.htaccess @@ -1,6 +1,6 @@ -Options +FollowSymLinks -RewriteEngine On - -RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule (.*) index.php?p=$1 [L] + + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^(.*)$ index.php?p=$1 [QSA,L] + diff --git a/TODO b/TODO index 5f990d5..1ceb5c9 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,11 @@ TODO + +- tags +- data cachine + + + + - work on README documentation - pagination (View) - canvas icons for list/thumb/tile views (js) @@ -11,4 +18,4 @@ TODO command line usage (for generating static site) -http://php.net/manual/en/features.commandline.php \ No newline at end of file +http://php.net/manual/en/features.commandline.php diff --git a/content/code/.adva b/content/code/.adva deleted file mode 100644 index 316cea3..0000000 --- a/content/code/.adva +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 1a3b4ae..0000000 --- a/content/code/archlinux_install +++ /dev/null @@ -1,114 +0,0 @@ -title = "DualBoot Archlinux/Windows7 Installation" -date = 2012-01-02 -tags = arch linux windows installation tutorial --- - -Documentation of the process of installing [archlinux](http://www.archlinux.org/) and Windows 7 in a dual-boot configuration. - -## System Specs - -- AMD X2 dual-core processor, running at 2.8 ghz, circa 2002 -- ASUS ATX motherboard -- 2 gigs of ram -- 100gb drive -- nvidia gtx 550 ti graphics card -- linksys wmp54g wireless pci network card -- 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 - -I downloading the Core Image via [torrent](http://www.archlinux.org/iso/2011.08.19/archlinux-2011.08.19-core-dual.iso.torrent) from [http://www.archlinux.org/download/](http://www.archlinux.org/download/). -This ISO includes all core packages so the system doesn't need to be online to install. - -Once downloaded, I followed the [notes](http://quilime.com/code/bootable_iso/) on how to create a bootable ISO onto another USB drive with yet another machine. There are also numerous free tools available to make a bootable ISO on Windows. After booting into Arch with the USB stick, boot into Arch, and type: - -
/arch/setup
- -The [installation](https://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide) article on the archwiki is an excellent resource. - - - -## Disk Partitions - -It's pretty straight forward until the drive partitions. My 100GB drive can only support 4 logical partitions, so the rest have to be Logical. Note: The numbers are out of order, because I used Logical partitions for everything except for the Windows partitions and /home. Logical partitions end up being counted last in the partition table, but I made my /home folder LAST so I could use the up the remaining space on the drive. You'll also need to set the /boot partition's 'bootable' flag to `true`. - -
-• sda1
-	Windows 7 System Reserved
-• sda2
-	Windows 7
-• sda5
-	/boot - 100MB is enough
-• sda6
-	/ - about 25GB is appropriate
-• sda7
-	swap - between 1024MB and 4096MB
-• sda4
-	/home - use rest of hard drive
-
- -Some of these, namely **boot**, **swap**, and **home**, are *optional*. - - - -## Select Packages - -At minimum, you'll need the core packages that are already selected. I also included certain key packages such as OpenSSH. Basically, include any packages you need for internet connectivity, as everything else will be updated from the net. - - - -## Configure System - -Configure system does multiple things, including setting the root password, network settings, and some other configuration tools. Here's a reference of where Arch installs all the base config files for the system. - -
-/etc/rc.conf					system config
-/etc/fstab						filesystem mountpoints
-/etc/mkinitcpio.conf			initramfs config
-/etc/modprobe.d/modprobe.conf	kernel modules
-/etc/resolv.conf				dns servers
-/etc/hosts						network hosts
-/etc/locale.get 				glibc locals
-/etc/pacman.conf				pacman.confg
-/etc/pacman.d/mirrorlist		pacman mirror list
-
- -You should edit any of these files that are specific to your system. At minimum I enabled my network card in `rc.conf`. - -You'll also need to enable at least one mirror in pacman.d/mirrorlist if you plan to update the system or download new packages. - - - -## Bootloader - -Install Bootloader will install and help you configure the bootloader you selected in the Select Packages stage (GRUB, in my case). After double-checking your bootloader configuration, you'll be prompted for a disk to install the loader to. You should install GRUB to the MBR of the installation disk, in this case `sda1`. - - - -## Finalizing Installation - -Once installed, exit the installer, remove the USB, type `reboot` in the command line, and the system will reboot. You'll boot into a login screen, which you can login with via root. - -You can create [new users](https://wiki.archlinux.org/index.php/Users_and_Groups) interactively with `adduser`. - -You can install/update packages with Arch's package manager, [pacman](https://wiki.archlinux.org/index.php/Pacman). - -Before installing any packages, sync the package list with: - -
pacman --sync --refresh
- -To add a new package (vim, in this case), type: - -
pacman -S vim
- - -next: getting node and a webserver installed. diff --git a/content/code/bash_profile_linux b/content/code/bash_profile_linux deleted file mode 100644 index c4d9f3c..0000000 --- a/content/code/bash_profile_linux +++ /dev/null @@ -1,11 +0,0 @@ -title = linux bash profile -date = march 11 2011 -comments = true --- -
-alias ls='ls --color'
-export CLICOLOR=1
-export LSCOLORS=gxFxCxDxBxgggdabagacad
-
-export EDITOR='emacs'
-
diff --git a/content/code/bash_profile_osx b/content/code/bash_profile_osx deleted file mode 100644 index 9d58942..0000000 --- a/content/code/bash_profile_osx +++ /dev/null @@ -1,28 +0,0 @@ -date = 2011-02-02 -title = osx bash profile --- - -
-# color ls
-export CLICOLOR=1
-export TERM=xterm-color
-export LSCOLORS=GxFxCxDxBxegedabagacad
-
-
-# minimal prompt
-# export PS1="
-# $PWD
-# : "
-
-
-# current git branch
-export PS1="
-\[\033[38m\]\u@\h\[\033[01;34m\] \w \[\033[31m\]\`ruby -e \"
-print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').
-gsub(/^\* (.+)$/, '(\1) ')\"\`\[\033[37m\]
-$\[\033[00m\] "
-
-
-# aliases
-alias ff="find . -type f -name "
-
\ No newline at end of file diff --git a/content/code/bootable_iso b/content/code/bootable_iso deleted file mode 100644 index d22b2c0..0000000 --- a/content/code/bootable_iso +++ /dev/null @@ -1,22 +0,0 @@ -title = "create bootable iso from unix/osx terminal" -date = july 7 2011 --- - -1. diskutil list
-Determines the device node assigned to your flash media (e.g. /dev/disk2) - -2. diskutil unmountDisk /dev/disk#
-Replace # with the disk number from the last command; in the previous example, # is 2) - -3. sudo dd if=/path/to/example.iso of=/dev/diskN bs=1m
-Replace /path/to/example.iso with the path to the iso; for example: ./windows7.iso. After typing in your sudo password, the process will start invisibly. - -4. diskutil eject /dev/disk#
-Remove your flash media device when the command completes. Done! - -Referenced from BurningIsoHowto - -Bonus tip! You want to see how far the `dd` copy is coming along? Run in another terminal instance:
-$ sudo killall -INFO dd
-The process info will display in the original terminal. - diff --git a/content/code/filebrowser b/content/code/filebrowser deleted file mode 100644 index 60b81bc..0000000 --- a/content/code/filebrowser +++ /dev/null @@ -1,7 +0,0 @@ -title = filebrowser -date = 2011-06-28 --- -File Browser PHP script on GitHub. - -demo: -media.quilime.com diff --git a/content/code/maya_render_bat b/content/code/maya_render_bat deleted file mode 100644 index b922509..0000000 --- a/content/code/maya_render_bat +++ /dev/null @@ -1,207 +0,0 @@ -title = Maya render bat batch file -tags = maya render bat -date = 2010-07-07 -hidden = true --- -*.bat file structure - -
-REM // .bat comment syntax
-C:\Progra~1\Autodesk\Maya2010\bin\render -s 1 -e 30 -im output_image myscene.ma
-C:\Progra~1\Autodesk\Maya2010\bin\render -s 1 -e 30 -im output_image2 anotherscene.ma
-
- -The path to render.exe must be the 8.3 character DOS version. -To execute the file, save as a *.bat and double click it in Explorer. - - - -
-// Render Flags
-usage: Render <options> <filename>
-where <filename> is a Maya ASCII or a Maya Binary file.
- 
-
-startFrame            -s   <float>     starting frame for an animation sequence
-
-endFrame              -e   <float>     end frame for an animation sequence
-
-byFrame               -b   <float>     by frame (or step)
-                                       for an animation sequence
-
-startExtension        -se  <int>       starting number for the output image
-                                       frame file name extensions
-
-byExtension           -be  <int>       by extension (or step) for the output
-                                       image frame file name extension
-
-extensionPadding      -pad <int>       number of digits in the output image
-                                       frame file name extension
-
-project               -proj <dir>      project directory to use
-
-renderDirectory       -rd  <path>      directory in which to store image file
-
-image                 -im  <filename>  image file output name (identical to -p)
-
-pix                   -p   <filename>  image file output name (identical to -im)
-
-mayaExtension         -me  <boolean>   append maya file name to image name
-                                       if true
-
-mayaFormat            -mf  <boolean>   append image file format to image name
-                                       if true
-
-cameraOverride        -cam <name>      all subsequent -im -p -ar -sa flags
-                                       apply only to <camera_name>
-                                       (specifying '-cam <camera_name>' enables
-                                       rendering for that camera). If '-cam
-                                       <camera_name>' is on the command line,
-                                       then only the camera(s) specified on the
-                                       command line will be rendered.
-
-gamma                 -g   <float>     gamma value
-
-ignoreFilmGate        -ifg <boolean>   use the film gate for rendering if false
-
-imageHeight           -ih  <int>       height of image in pixels
-
-imageWidth            -iw  <int>       width of image in pixels
-
-deviceAspectRatio     -ard <float>     device aspect ratio for the rendered image
-
-aspectRatio           -ar  <float>     aspect ratio for the film aperture
-
-maximumMemory         -mm  <int>       renderer maximum memory use
-                                       (in Megabytes)
-
-motionBlur            -mb  <boolean>   motion blur on/off
-
-motionBlurByFrame     -mbf <float>     motion blur by frame
-
-shutterAngle          -sa  <float>     shutter angle for motion blur (1-360)
-
-motionBlur2D          -mb2d <boolean>  motion blur 2D on/off
-
-blurLength            -bll <float>     2D motion blur blur length
-
-blurSharpness         -bls <float>     2D motion blur blur sharpness
-
-smoothValue           -smv <int>       2D motoin blur smooth value
-
-smoothColor           -smc <boolean>   2D motion blur smooth color on/off
-
-keepMotionVector      -kmv <boolean>   keep motion vector for 2D motion blur on/off
-
-useFileCache          -uf  <boolean>   use the tessellation file cache
-
-optimizeInstances     -oi  <boolean>   dynamically detects similarly
-                                       tessellated surfaces
-
-reuseTessellations    -rut <boolean>   reuse render geometry to
-                                       generate depth maps
-
-useDisplacementBbox   -udb <boolean>   use the displacement bounding box scale to
-                                       optimize displacement-map performance
-
-enableDepthMaps       -edm <boolean>   enable depth map usage
-
-enableRayTrace        -ert <boolean>   enable ray tracing
-
-reflections           -rfl <int>       maximum ray-tracing reflection level
-
-refractions           -rfr <int>       maximum ray-tracing refraction level
-
-renderLayers          -rl <boolean|name>  render each layer separately
-
-renderPasses          -rp <boolean|name>  render passes separately
-
-renderSubdirs         -rs <boolean>    render layer output placed in subdirectories
-
-shadowLevel           -sl  <int>       maximum ray-tracing shadow ray depth
-
-edgeAntiAliasing      -eaa <quality>   The anti-aliasing quality of EAS
-                                       (Abuffer). One of highest high medium low
-
-useFilter             -ufil <boolean>  if true, use the multi-pixel filtering
-                                       otherwise use single pixel filtering.
-
-pixelFilterType       -pft  <filter>   when useFilter is true, identifies one of the
-                                       following filters: box, triangle
-                                       gaussian, quadraticbspline, plugin
-
-shadingSamples        -ss  <int>       global number of shading samples
-                                       per surface in a pixel
-
-maxShadingSamples     -mss <int>       maximum number of adaptive shading
-                                       samples per surface in a pixel
-
-visibilitySamples     -mvs <int>       number of motion blur visibility samples
-
-maxVisibilitySamples  -mvm <int>       maximum number of motion blur
-                                       visibility samples
-
-volumeSamples         -vs  <int>       global number of volume shading samples
-
-particleSamples       -pss <int>       number of particle visibility samples
-
-redThreshold          -rct <float>     red channel contrast threshold
-
-greenThreshold        -gct <float>     green channel contrast threshold
-
-blueThreshold         -bct <float>     blue channel contrast threshold
-
-coverageThreshold     -cct <float>     pixel coverage contrast threshold
-                                       (default is 1.0/8.0)
-
-outputFormat          -of  <format>    output image file format. One of: si soft
-                                       softimage, gif, rla wave wavefront, tiff
-                                       tif, tiff16 tif16, sgi rgb, sgi16 rgb16
-                                       alias als pix, iff tdi explore maya, jpeg
-                                       jpg, eps, maya16 iff16, cineon cin fido,
-                                       qtl quantel, tga targa, bmp
-
-shadowPass            -sp <boolean>    generate shadow depth maps only
-
-abortOnMissingTexture -amt             abort renderer when encountered missing texture
-
-dontReplaceRendering  -rep             do not replace the rendered image if it already exists
-
-verbose               -verbose <boolean> perform the render verbosely if on
-
-iprFile               -ipr             create an IPR file
-
-xResolution           -x   <int>       set X resolution of the final image
-
-yResolution           -y   <int>       set Y resolution of the final image
-
-xLeft                 -xl  <int>       set X sub-region left pixel boundary
-                                       of the final image
-
-xRight                -xr  <int>       set X sub-region right pixel boundary
-                                       of the final image
-
-yLow                  -yl  <int>       set Y sub-region low pixel boundary
-                                       of the final image
-
-yHigh                 -yh  <int>       set Y sub-region high pixel boundary
-                                       of the final image
-
-displayLayer          -l  <name>       one or more displayLayer names to render
-
-numberOfProcessors    -n  <int>        number of processors to use. 0 indicates
-                                       use all available.
-
-tileWidth             -tw <int>        force the width of the tiles.  Valid valu
-                                       are between 16 and 256.
-
-tileHeight            -th <int>        force the height of the tiles.  Valid values
-                                       are between 16 and 256.
-
-                      -cont            allow renderer to continue when it hits errors
-
-                      -keepPreImage    keep the renderings prior to post-process around
-
-any boolean works: yes, true, or 1, as TRUE,and off, no, false, or 0 as FALSE. - -example: `Render -x 512 -y 512 -cam persp -im test -of sgi -mb on -sa 180 file.ma` diff --git a/content/code/mel/notepad b/content/code/mel/notepad deleted file mode 100644 index 85898cc..0000000 --- a/content/code/mel/notepad +++ /dev/null @@ -1,127 +0,0 @@ -date = 2007-12-12 -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
-{
-   /* ... */
-}
-
- -
- -if node exists -
-string $node = "object";
-if ( `objExists $node` )
-{
-   // The node exists
-}
-
- -

regexp

- -Strip component -
-string $node = "pCube1.f[2]";
-string $no_component = `match "^[^\.]*" $node`;
-// Result: "pCube1" //
-
- - - -
-Extract component or attribute, with '.' -
-string $node = "pCube1.f[2]";
-string $component = `match "\\..*" $node`;
-// Result: ".f[2]" //
-
-string $nodeAttr = "blinn1.color";
-string $attrName = `match "\\..*" $nodeAttr`;
-// Result: ".color" //
-
- -
-Extract attribute name, without '.' - -
-string $node = "pCube1.f[2]";
-string $component = `substitute "^[^.]*\\." $node ""`;
-// Result: "f[2]" //
-
-string $nodeAttr = "blinn1.color";
-string $attrName = `substitute "^[^.]*\\." $nodeAttr ""`;
-// Result: "color" //
-
- -
-Extract parent UI control from full path -
-string $uiControl = "OptionBoxWindow|formLayout52|formLayout55|button6";
-string $uiParent = `substitute "|[^|]*$" $uiControl ""`;
-// Result: OptionBoxWindow|formLayout52|formLayout55 //
-
- -
-Strip trailing Line Break (\n), if any.

This is useful when processing text input read from a file using `fgetline`. -
-string $input = "line\n";
-$string $line = `match "^[^(\r\n)]*" $input`;
-// Result: "line" //
-
- -
-Extract directory from path. -

-Keep the trailing slash for ease of use. -
-string $path = "C:/AW/Maya5.0/bin/maya.exe";
-string $dir = `match "^.*/" $path`;
-// Result: "C:/AW/Maya5.0/bin/"
-
- -
-Extract file from path -
-string $path = "C:/AW/Maya5.0/bin/maya.exe";
-string $filepart = `match "[^/\\]*$" $path`;
-// Result: "maya.exe"
-
- -
-Strip numeric suffix -
-
-string $node = "pCube1|pCubeShape223";
-string $noSuffix = `match ".*[^0-9]" $node`;
-// Result: "pCube1|pCubeShape"
-
- -
-Extract numeric suffix -
-string $node = "pCube1|pCubeShape223";
-string $suffix = `match "[0-9]+$" $node`;
-// Result: "223" //
-
- -
-Extract short name of DAG or control path -
-string $dagPath = "pCube1|pCubeShape223";
-string $shortName = `match "[^|]*$" $dagPath`;
-// Result: pCubeShape223 //
-
- -

other reference

- diff --git a/content/code/mel/sphere_intersect b/content/code/mel/sphere_intersect deleted file mode 100644 index 9ff0395..0000000 --- a/content/code/mel/sphere_intersect +++ /dev/null @@ -1,68 +0,0 @@ -date = 2009-06-12 -title = "Sphere Intersect in Maya/MEL" -tags = maya mel sphere intersection -lang = mel --- -

-Function to return location of intersect with poly mesh and spherical object moving in the positive direction on the Y axis. -
-

- - - -

-mel source -

-
global proc intersectSphereY()
-{
-	print(". . . . . go go go\n");
-
-	int $iter = 50;
-	float $start[3] = {0, -0.5, 0};
-	float $limit[3] = {0, 5.0, 0};
-    	$mesh = "test_mesh";    
-	$tmpCN = "cpom";
-
-    
-	$obj = "rod1";
-    	float $radius = 0.5;
-    	float $curPos[3] = {0, 0, 0};
-
-	for ($i = 0; $i <= $iter; $i++)
-	{    
-       	$mesh = "test_mesh";
-		$shape = `listRelatives -shapes $mesh`;
-
-		createNode -n $tmpCN closestPointOnMesh;
-       	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";
-        }
-
-       	$curPos[1] = ($limit.y) / $iter * $i;
-       	setAttr ($obj + ".translateY") $curPos[1];
-
-       	delete $tmpCN;
-   	}
-	return ". nope\n";
-}
-
-global proc float pointDist(float $p1[], float $p2[])
-{
-    return sqrt( 
-	(($p1[0] - $p2[0]) * ($p1[0] - $p2[0])) + 
-	(($p1[1] - $p2[1]) * ($p1[1] - $p2[1])) + 
-	(($p1[2] - $p2[2]) * ($p1[2] - $p2[2])));
-}
-
-intersectSphereY;
- - - - - - diff --git a/content/code/mostused b/content/code/mostused deleted file mode 100644 index 2b451bf..0000000 --- a/content/code/mostused +++ /dev/null @@ -1,32 +0,0 @@ -title = command history -date = Mon Sep 19 19:39:51 PDT 2011 --- -
history | awk {'print $2'} | sort | uniq -c | sort -k1 -rn | head
- -example -
-// brand new netbook
-  24 ls
-  14 cd
-  12 defaults
-   9 unzip
-   8 ssh
-   5 mv
-   3 mkdir
-   3 chmod
-   3 cat
-   2 unrar
-
-
-// quilime.com
- 173 git
- 140 ls
-  84 cd
-  18 emacs
-  15 cat
-  13 mv
-  12 rm
-   5 ln
-   4 mkdir
-   4 ./scripts/content
-
diff --git a/content/code/osx_command_line_audio b/content/code/osx_command_line_audio deleted file mode 100644 index 53fa7a5..0000000 --- a/content/code/osx_command_line_audio +++ /dev/null @@ -1,45 +0,0 @@ -title = "command line audio on OSX" -date = "Wed, Nov 9 2011 18:40:26, IST" -tags = audio osx cli --- - -Since there is no equivilent to /dev/dsp or /dev/audio on OSX, you need to install an alternative like sox. - -Install sox by either downloading the OSX binary from http://sox.sourceforge.net/ -or -install homebrew, and then install sox with brew install sox - -##Examples - -cat audio from /dev/urandom/ : -
cat /dev/urandom | sox -traw -r44100 -b16 -u - -tcoreaudio
- - -audio from an executable -
-cat > test.c
-main(t) {
-  for( t = 0;;t++)
-    putchar( t * ((( t >> 12 ) | (t >> 8)) & (63& (t >> 4 ))));
-}
-
-[ctrl-c] -
-gcc test.c -o test
-./test | sox -traw -r8000 -b8 -u - -tcoreaudio
-
- - - -## references - -- http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html -- http://www.bemmu.com/music/index.html -- http://wurstcaptures.untergrund.net - - - -
diff --git a/content/code/osx_hidden_files b/content/code/osx_hidden_files deleted file mode 100644 index f4a440d..0000000 --- a/content/code/osx_hidden_files +++ /dev/null @@ -1,18 +0,0 @@ -title = "show hidden files (OSX Finder)" -date = Tue May 10 21:03:45 PDT 2011 -tags = osx --- - -via Terminal - -show hidden files: -
-defaults write com.apple.finder AppleShowAllFiles TRUE
-killall Finder
-
- -hide hidden files: -
-defaults write com.apple.finder AppleShowAllFiles FALSE
-killall Finder
-
diff --git a/content/code/osx_print_json b/content/code/osx_print_json deleted file mode 100644 index 1c8284e..0000000 --- a/content/code/osx_print_json +++ /dev/null @@ -1,27 +0,0 @@ -title = print formatted JSON, XML from osx command line -date = mon, nov 14 2011 -tags = bash shell python json xml osx --- - -Working with various interfaces that output json or xml results in lots of situations where you have a single-line, unformatted output. Here's a quick way to format json, xml from the CLI. - -via the command line: - -format json -
-cat unformatted.json | python -m json.tool
-
- -format json from clipboard -
-pbpaste | python -m json.tool
-
- -format xml from clipboard -
-pbpaste | xmllint --format -
-
-`xmllint` is part of libxml2 and installed by default on OSX. Be aware that xmllint cleans up XML as well as formatting it, ocassionally modifying the output. - -for all above examples, you can pipe back to the clipboard with | pbcopy at the end of the command, or output to a file with > output.json or > output.xml. - diff --git a/content/code/scripts/date_for_filename b/content/code/scripts/date_for_filename deleted file mode 100644 index 7057f69..0000000 --- a/content/code/scripts/date_for_filename +++ /dev/null @@ -1,10 +0,0 @@ -title = date for new filename -lang = bash -date = 2010-02-07 --- -
#!/bin/bash
-# Shell script to create file named after the current date
-# YYYY-MM-DD format
-
-DATE=$(date +%Y"-"%m"-"%d)
-echo -e "new file" > $DATE
\ No newline at end of file diff --git a/content/code/scripts/imageslice b/content/code/scripts/imageslice deleted file mode 100644 index b4aab53..0000000 --- a/content/code/scripts/imageslice +++ /dev/null @@ -1,53 +0,0 @@ -title = Image Slice -date = 2009-04-23 -tags = bash script slice image imagemagick -lang = bash --- - -Shell script that slices a single image into any number of vertical and horizontal sections. - - - -
#!/bin/bash
-#@author  gabriel dunne <quilime.com>
-
-IMAGE=$1
-IMAGE_W=$2
-IMAGE_H=$3
-ROWS=$4
-COLS=$5
-
-if [ $# -eq 0 ]
-then
-	echo "usage: image width height rows cols"
-	echo "example: ./slice.sh Sunset.jpg 800 600 16 16"
-	exit
-else
-
-	for (( x = 1; x <= COLS; x++ ))
-	do
-	    for (( y = 1 ; y <= ROWS; y++ ))
-	    do
-	    	let CROP_X = `expr $IMAGE_W-IMAGE_W/$x`
-	    	let CROP_Y = `expr $IMAGE_H-IMAGE_H/$y`
-	    	let CROP_W = `expr $IMAGE_W/$ROWS`
-	    	let CROP_H = `expr $IMAGE_H/$COLS`
-	        echo -n "crop ${CROP_W}x${CROP_H}+${CROP_X}+${CROP_Y} result: [${x},${y}]_$IMAGE"
-	        echo ""
-			convert $IMAGE -crop ${CROP_W}x${CROP_H}+${CROP_X}+${CROP_Y} [${x},${y}]_$IMAGE
-	    done
-	done
-	
-fi
-
- - - -##To Use -navigate to slice.sh in your terminal and do -
chmod +x slice.sh
-./slice.sh Sunset.jpg 800 600 16 16
-replace **Sunset.jpg** with your image name. -params: **Image Height, Image Width, Vertical Divisions, Horizontal Divisions** - -
diff --git a/content/code/scripts/rename_multiple_files b/content/code/scripts/rename_multiple_files deleted file mode 100644 index 3d7099c..0000000 --- a/content/code/scripts/rename_multiple_files +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 1b19e18..0000000 --- a/content/code/scripts/resize_multiple_images +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 40456d2..0000000 --- a/content/code/scripts/rewrite_multiple_slashes +++ /dev/null @@ -1,9 +0,0 @@ -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/code/ssh_keys b/content/code/ssh_keys deleted file mode 100644 index a17c9eb..0000000 --- a/content/code/ssh_keys +++ /dev/null @@ -1,12 +0,0 @@ -title = create ssh keys -date = april 16 2011 --- -
-ssh-keygen -t rsa
-// linux
-ssh-copy-id [user@]host
-// osx
-cat ~/.ssh/id_rsa.pub | ssh user@machine "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"
-eval `ssh-agent`
-ssh-add
-
diff --git a/content/code/terminal_emulator_on_win b/content/code/terminal_emulator_on_win deleted file mode 100644 index 7a33ed0..0000000 --- a/content/code/terminal_emulator_on_win +++ /dev/null @@ -1,90 +0,0 @@ -title = "Terminal Emulator on Windows via Cygwin" -date = august 11 2011 --- -How to install cygwin on windows: - -1. **Install Cygwin from setup.exe** - -2. **Install the following packages:** - - - xorg-server (required, the Cygwin X Server) - - xinit (required, scripts for starting the X server: xinit, startx, startwin (and a shortcut on the Start Menu to run it), startxdmcp.bat ) - - xorg-docs (optional, man pages) - - X-start-menu-icons (optional, adds shortcuts to X Clients and Server to the Start menu) - - mintty (windows-feel terminal) -
- -3. **Optional Packages** - - openssh - - git, svn - - wget, curl - - rsync - - vim, emacs - - any additional fonts - -
- - - - -3. **~/.XDefaults** -dark theme: -
-! terminal colors ------------------------------------------------------------
-! tangoesque scheme
-*background: #111111
-*foreground: #babdb6
-! Black (not tango) + DarkGrey
-*color0:  #000000
-*color8:  #555753
-! DarkRed + Red
-*color1:  #ff6565
-*color9:  #ff8d8d
-! DarkGreen + Green
-*color2:  #93d44f
-*color10: #c8e7a8
-! DarkYellow + Yellow
-*color3:  #eab93d
-*color11: #ffc123
-! DarkBlue + Blue
-*color4:  #204a87
-*color12: #3465a4
-! DarkMangenta + Mangenta
-*color5:  #ce5c00
-*color13: #f57900
-!DarkCyan + Cyan (both not tango)
-*color6:  #89b6e2
-*color14: #46a4ff
-! LightGrey + White
-*color7:  #cccccc
-*color15: #ffffff
-
-Some more themes on the Arch forums. -
- - - -4. **~/.bashrc** -To enable color `ls` and human readable size format, add: -
-alias ls='ls -h --color=tty'
-
-By default, the .bashrc in CygwinX has many options you can uncomment. -
- -5. **~/.emacs** -Disable emacs temp (~) file pooping -
-(setq make-backup-files nil)
-
-
- - - -Result: - - - -Other emulators for Windows: -- Terminator/ - diff --git a/content/code/windows_copy b/content/code/windows_copy deleted file mode 100644 index 19a0c0b..0000000 --- a/content/code/windows_copy +++ /dev/null @@ -1,15 +0,0 @@ -title = "Combine Files (Windows)" -date = Wed, april 27 2011 -tags = windows cmd console --- -
-copy /b file1+ file2 output
-
-eg -
-copy /b picture.jpg + archive.rar file.jpg
-
- -Open file.jpg with the default application, it will show the picture "picture.jpg". -Change the extension to "file.rar" or if you try to open "file.jpg" with an archiver you will get the contents of "archive.rar". - diff --git a/content/config b/content/config index a28a878..64a6599 100644 --- a/content/config +++ b/content/config @@ -1,2 +1,2 @@ -title = quilime template = index +-- diff --git a/content/log/2008-11-17_buttons b/content/log/2008-11-17_buttons deleted file mode 100644 index 0901b73..0000000 --- a/content/log/2008-11-17_buttons +++ /dev/null @@ -1,7 +0,0 @@ -title = button invasion -date = 2009-11-17 -tags = monome fabrication electronics --- - -![monome, sparkfun](http://farm3.static.flickr.com/2649/4111923978_5746f85d8a.jpg) -monome, sparkfun diff --git a/content/log/2009-12-13_mandala b/content/log/2009-12-13_mandala deleted file mode 100644 index 9e58d0f..0000000 --- a/content/log/2009-12-13_mandala +++ /dev/null @@ -1,6 +0,0 @@ -title = mandala -date = 2009-12-13 -tags = art graphic design --- - -![endless knot, mandala](http://media.quilime.com/files/projects/mandala/mandala2.png "endless knot, mandala" ) diff --git a/content/log/2009-12-18_taper b/content/log/2009-12-18_taper deleted file mode 100644 index a92860c..0000000 --- a/content/log/2009-12-18_taper +++ /dev/null @@ -1,5 +0,0 @@ -title = taper -date = 2009-12-18 -tags = tessellated --- - \ No newline at end of file diff --git a/content/log/2010-01-13_relative_time b/content/log/2010-01-13_relative_time deleted file mode 100644 index 2944838..0000000 --- a/content/log/2010-01-13_relative_time +++ /dev/null @@ -1,5 +0,0 @@ -title = relative_time -date = 2010-01-13 -tags = time inspiration jpg --- -!["relative time"](http://media.quilime.com/aggregate/agg/relativity_visualized__relative_time.jpg) \ No newline at end of file diff --git a/content/log/2010-01-22_cone b/content/log/2010-01-22_cone deleted file mode 100644 index 0d5983a..0000000 --- a/content/log/2010-01-22_cone +++ /dev/null @@ -1,11 +0,0 @@ -title = cone -date = 2010-01-22 -tags = installation projection --- - - - - -

-test pattern -

diff --git a/content/log/2010-07-01_icosi b/content/log/2010-07-01_icosi deleted file mode 100644 index ef966c3..0000000 --- a/content/log/2010-07-01_icosi +++ /dev/null @@ -1,5 +0,0 @@ -title = icosi fabrication progress -date = 2010-07-07 -tags = icosi fabrication --- -[![img](http://farm5.static.flickr.com/4140/4773799092_75e68e4e66.jpg)](http://www.flickr.com/photos/quilime/4773799092/) \ No newline at end of file diff --git a/content/log/2010-07-29_icosi b/content/log/2010-07-29_icosi deleted file mode 100644 index 817c579..0000000 --- a/content/log/2010-07-29_icosi +++ /dev/null @@ -1,6 +0,0 @@ -tags = icosi installation performance projection -title = icosi -date = 2010-07-29 --- -[![icosi](http://farm5.static.flickr.com/4083/4847387648_908df243cc.jpg)](http://www.flickr.com/photos/quilime/sets/72157624499344281/with/4847387648/) - diff --git a/content/log/2010-12-01_icosi b/content/log/2010-12-01_icosi deleted file mode 100644 index 5bbd8d2..0000000 --- a/content/log/2010-12-01_icosi +++ /dev/null @@ -1,6 +0,0 @@ -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/content/log/2011-04-29 b/content/log/2011-04-29 deleted file mode 100644 index e676eec..0000000 --- a/content/log/2011-04-29 +++ /dev/null @@ -1,7 +0,0 @@ -title = Live Visuals -date = 2011-04-30 --- -

Sepalcure, Shigeto, Simple & Santa, GAFFTA, San Francisco
-April 29 2011
-
-live visual software performed w/Santa

diff --git a/content/log/2011-09-22_arrive b/content/log/2011-09-22_arrive deleted file mode 100644 index 7b269eb..0000000 --- a/content/log/2011-09-22_arrive +++ /dev/null @@ -1,11 +0,0 @@ -date = Sept 22 2011, 22:50 -title = arrival --- - Bkng Meals/ Seat/ - Day Date Flight Status Class City Time Other Cabin - --- ----- --------------- ------ ----- ---------------- ------ ------ ------- - Thu 22SEP KLM ROYAL OK T LV SAN FRANCISCO 200P M ** - DUTCH AIRLINES 606 AR AMSTERDAM 915A# - - Fri 23SEP KLM ROYAL OK T LV AMSTERDAM 1120A M ** - DUTCH AIRLINES 871 AR DELHI 1050P diff --git a/content/log/2011-09-27_habitat b/content/log/2011-09-27_habitat deleted file mode 100644 index 5c71cf1..0000000 --- a/content/log/2011-09-27_habitat +++ /dev/null @@ -1,16 +0,0 @@ -title = habitat -date = 2011-9-27 --- - - - - - - -
- - - - - - diff --git a/content/log/2011-09-28_sriyantra b/content/log/2011-09-28_sriyantra deleted file mode 100644 index c0798a9..0000000 --- a/content/log/2011-09-28_sriyantra +++ /dev/null @@ -1,60 +0,0 @@ -date = 2011-09-28 -title = sri --- - - - - - - - - - - - - -Kali → goddess of eternal energy. The goddess of time and change. The ultimate reality. - - -> The Sri Chakra or Shri Yantra of Tripura Sundari is a yantra or mandala formed by nine interlocking triangles surrounding the bindu. Four of these triangles are orientated upright representing Shiva or the Masculine. Five of these triangles are inverted triangles represent Shakti or the Feminine. Because it is composed of nine triangles, it is also known as the Navayoni Chakra.[1] - - -sri yantra guides - -> Together the nine triangles are interlaced in such a way as to form 43 smaller triangles in a web symbolic of the entire cosmos or a womb symbolic of creation. Together they express Advaita or non-duality. This is surrounded by a lotus of eight petals, a lotus of sixteen petals, and an earth square resembling a temple with four doors.[1] - -> The Shri Chakra is also known as the nava chakra because it can also be seen as having nine levels. Each level corresponds to a mudra, a yogini, and a specific form of the deity Tripura Sundari along with her mantra. These levels starting from the outside or bottom layer are:[1] - -1. Trailokya Mohana or Bhupara, a square of three lines with four portals -2. Sarvasa Paripuraka, a sixteen-petal lotus -3. Sarva Sankshobahana, an eight-petal lotus -4. Sarva Saubhagyadayaka, composed of fourteen small triangles -5. Sarvarthasadhaka, composed of ten small triangles -6. Sarva Rakshakara, composed of ten small triangles -7. Sarva Rohahara, composed of eight small triangles -8. Sarva siddhi prada, composed of 1 small triangle -9. Sarvanandamaya, composed of a point or bindu - -> The Sri Chakra (called the Shri Yantra) is the symbol of Hindu tantra, which is based on the Hindu philosophy of Kashmir Shaivism. - - -Vijnanamaya — spiritual body composed of prayer and fortified by meditation - -Anandamaya — body of the joy of union with god - -> —he who realizes the truth of the body can then come to tknow the truth of the universe - -Payodhi-jala — primordial waters, force of the manifested universe - -> A fourth dimension of aesthetic sense, where all is in ourselves, ourselves in all —Aurobindo - -Tantra: analogies between the individual and the cosmos, and the life forces which govern them - -> reflections of what is taking place in real life and reminding thought visions of our true nature - - - - - - - diff --git a/content/log/2011-10 16 _beg b/content/log/2011-10 16 _beg deleted file mode 100644 index 15504d9..0000000 --- a/content/log/2011-10 16 _beg +++ /dev/null @@ -1,8 +0,0 @@ -title = beg -date = Oct 16 2011, 15:34:03 --- - - - - - diff --git a/content/log/2011-10-04_dreams b/content/log/2011-10-04_dreams deleted file mode 100644 index 661b0d7..0000000 --- a/content/log/2011-10-04_dreams +++ /dev/null @@ -1,4 +0,0 @@ -title = dreams -date = Oct 4 2011, 12:46:34 --- -My dreams have been incredibly vivid. probably due to the heat. sleeping at odd hours. been working in the studio most of the day at Vishal's house, so I haven't been going out as much as I would like. It's also incredibly hot outside, averaging about 36 degrees C, which is about 95 F. diff --git a/content/log/2011-10-05_islands b/content/log/2011-10-05_islands deleted file mode 100644 index e3fd573..0000000 --- a/content/log/2011-10-05_islands +++ /dev/null @@ -1,7 +0,0 @@ -title = islands -date = Oct 05 2011, 03:53:55 PM --- - -> Imagine that every man's mind is an island, surrounded by ocean. Each seems isolated, yet in reality all are linked by the bedrock from which they spring. If the ocean were to vanish, that would be the end of the islands. They would all be part of one continent, but their individuality would be gone. - -> —"The Inspector" Overlord. Childhoods End, Arthur C. Clark. p.176 diff --git a/content/log/2011-10-06_alphabet b/content/log/2011-10-06_alphabet deleted file mode 100644 index de7beb8..0000000 --- a/content/log/2011-10-06_alphabet +++ /dev/null @@ -1,21 +0,0 @@ -date = 2011-10-06 -title = alphabet --- - -consanants - - - - -


- - -vowels - - -


- -numbers - - -


diff --git a/content/log/2011-10-06_dushera b/content/log/2011-10-06_dushera deleted file mode 100644 index 508b640..0000000 --- a/content/log/2011-10-06_dushera +++ /dev/null @@ -1,8 +0,0 @@ -title = dushera -date = Oct 06 2011, 06:00:16 PM -draft = true --- - - - - diff --git a/content/log/2011-10-06_overlords b/content/log/2011-10-06_overlords deleted file mode 100644 index a8a052c..0000000 --- a/content/log/2011-10-06_overlords +++ /dev/null @@ -1,7 +0,0 @@ -title = childhoods end -date = Oct 05 2011, 03:17:57 PM --- - -> The case of India is particularly instructive. The main difference between us and the British in India was that they had no real motives for going there—no conscious objectives, that is, except such trivial and temporary ones as trade or hostility to other European powers. They found themselves possessors of an empire before they knew what to do with it, and were never really happy until they had got rid of it again. - -> —"The Inspector" Overlord. Childhoods End, Arthur C. Clark. p.161 diff --git a/content/log/2011-10-20_smog b/content/log/2011-10-20_smog deleted file mode 100644 index 0cb9c3e..0000000 --- a/content/log/2011-10-20_smog +++ /dev/null @@ -1,7 +0,0 @@ -title = sun -date = Oct 23 2011, 06:06:33 PM --- - - - - diff --git a/content/log/2011-10-23_water_is_life b/content/log/2011-10-23_water_is_life deleted file mode 100644 index 8249c81..0000000 --- a/content/log/2011-10-23_water_is_life +++ /dev/null @@ -1,8 +0,0 @@ -title = Water Is Life -date = Oct 23 2011 06:04:38 PM -draft = 1 --- - - - -near Quotar Minar in Dadabari. diff --git a/content/log/2012-02-20_temple b/content/log/2012-02-20_temple deleted file mode 100644 index 915bef5..0000000 --- a/content/log/2012-02-20_temple +++ /dev/null @@ -1,6 +0,0 @@ -date = feb 20 2012 -title = temple --- - - - diff --git a/content/log/2012-04-01_studiopano b/content/log/2012-04-01_studiopano deleted file mode 100644 index f9184b0..0000000 --- a/content/log/2012-04-01_studiopano +++ /dev/null @@ -1,7 +0,0 @@ -title = studio pano -date = 2012-04-01 --- - - -studio panorama taken by Ryan Alexander -flickr \ No newline at end of file diff --git a/content/log/2012-05-02_modulations b/content/log/2012-05-02_modulations deleted file mode 100644 index dbb523b..0000000 --- a/content/log/2012-05-02_modulations +++ /dev/null @@ -1,21 +0,0 @@ -title = modulations 2012 -date = may 2 2012 -tags = video visuals live --- - -

- -Live visuals for Chris Carlson @ CCRMA Modulations 2012 - -sorry for the cuttoff at the end -- SD card was full. - -this set was essentially more live-coding experiments with non-periodic tiling patterns. I'm still fascinated with the forms. Towards the end of the night I started using color. - -visual software done with: [audio-shadertoy](http://notlion.github.com/audio-shadertoy/) - -for this setup, the live audio was analyzed by ChucK through the built-in mic on my macbook air. the ChucK script routes osc to Node, and the client receives via web sockets. - -because osx-style full-screen multi-monitor support is completely broken in OSX Lion, we couldn't use chrome. so we stripped out all the chrome-only webaudioapi stuff, and replaced it with an osc receiver. This allowed us to analyze the audio with an external interface and use any browser that supports webgl canvas, and does multi-monitory fullscreen correctly on osx. we ended up using firefox. - -live-audio branch with float-sliders ui [warning:totally hacky] : -[http://github.com/quilime/audio-shadertoy/tree/live-audio-ff-datgui](http://github.com/quilime/audio-shadertoy/tree/live-audio-ff-datgui) \ No newline at end of file diff --git a/content/projects/aero b/content/projects/aero deleted file mode 100644 index bc97f42..0000000 --- a/content/projects/aero +++ /dev/null @@ -1,8 +0,0 @@ -title = aero -date = 2007-04-01 -thumb = http://portfolio.quilime.com/2008/aero/thumb.png --- - - -*ceramic. 6" x 3" x 3"* - diff --git a/content/projects/boat b/content/projects/boat deleted file mode 100644 index 324bffb..0000000 --- a/content/projects/boat +++ /dev/null @@ -1,20 +0,0 @@ -title = boat -date = 2007-01-01 -thumb = http://portfolio.quilime.com/archive/boat/thumb.png --- - - - - - - - - - - - - - - - - diff --git a/content/projects/bodyneg b/content/projects/bodyneg deleted file mode 100644 index d931214..0000000 --- a/content/projects/bodyneg +++ /dev/null @@ -1,8 +0,0 @@ -title = bodyneg -date = 2004-06-05 -thumb = http://portfolio.quilime.com/2008/bodyneg/thumb.png --- - - - -ink press, 5 wall-mounted panels. 8' x 4' x 2' diff --git a/content/projects/cabspotting b/content/projects/cabspotting deleted file mode 100644 index 5d05632..0000000 --- a/content/projects/cabspotting +++ /dev/null @@ -1,28 +0,0 @@ -title = Cabspotting -date = 2006-05-01 -thumb = http://portfolio.quilime.com/2008/cabspotting/thumb.png --- - - - - - - - - - - - - - - - - - -Representing and analyzing spatial information, Cabspotting investigates the complexities of the San Francisco Bay Area as an exploration of GPS data generated by Yellow Cab taxis in San Francisco. - -yellow dots = metered taxis -white dots = unmetered taxis -visual software written with Processing - -San Francisco taxi visualization created with Stamen Design show at Design and the Elastic Mind, New York MoMA. diff --git a/content/projects/dots b/content/projects/dots deleted file mode 100644 index e21a690..0000000 --- a/content/projects/dots +++ /dev/null @@ -1,40 +0,0 @@ -title = dots -date = 2007-05-02 -thumb = http://media.quilime.com/files/projects/dots/thumb.png --- - - - - -

- -Human generated tones are rendered with lines. The software manipulates these tones via random visual noise, making both audio and visual more chaotic of time. Tones start rigid and rhythmic, slowly degenerating into an organic, complex and chaotic system of overlapping frequencies and polyrhythms. - - - - -

-

-interactive software written in c++ -

- - - -
- - - -
- - - -
- - diff --git a/content/projects/icarus b/content/projects/icarus deleted file mode 100644 index 67ca1bf..0000000 --- a/content/projects/icarus +++ /dev/null @@ -1,11 +0,0 @@ -title = icarus -date = 1999-08-05 -thumb = http://portfolio.quilime.com/2008/icarus/thumb.png --- - - -

-icarus and deadalus -
-balsa wood. 16" x 16" x 4" -

diff --git a/content/projects/jelly b/content/projects/jelly deleted file mode 100644 index d98a726..0000000 --- a/content/projects/jelly +++ /dev/null @@ -1,44 +0,0 @@ -title = Jellyfish -date = 2008-05-01 -thumb = http://media.quilime.com/files/projects/jelly/thumb.png --- - - - -Organic forms react to the user and each other. Their motions and position in space create and/or affect audio. A tenticles depth in space is correlated to volume, while its color is linked to a tone in the audio spectrum. Interaction with the tentacle instrument is smooth, undulating, jellyfish-like. - - - - -*medium: software* - - - - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - - diff --git a/content/projects/light b/content/projects/light deleted file mode 100644 index 104e3f8..0000000 --- a/content/projects/light +++ /dev/null @@ -1,12 +0,0 @@ -title = spacelamp -date = 2007-03-10 -thumb = http://portfolio.quilime.com/2008/spacelamp/thumb.png --- - - - - - - - -*christmas lights, acrylic* diff --git a/content/projects/rattles b/content/projects/rattles deleted file mode 100644 index 96faa43..0000000 --- a/content/projects/rattles +++ /dev/null @@ -1,60 +0,0 @@ -title = Rattles -date = 2006-05-02 -thumb = http://portfolio.quilime.com/2008/rattle/thumb.png --- - -Particles are jostled and shaken as in a rattle. The sonic possibilities of their collisions and movement are given freedom and sonic depth via software. -Rattles and shakers can be embedded into one another, allowing for more sensitivity, sonic subtlety, and layers when making music. Interaction with the digital rattle is as intuitive as its physical counterpart. - - - - - - - -The interaction with "Rattles" is identicle to the traditional percussive instrument. -The visual shape, texture, or size of each interior rattler represents a unique audio -tone, either percussive or melodic. The resulting soundscape of the rattle instrument is -therefore unique and rich with sonic subtlety and variation, transforming the traditional -"rattle" into an instrument with a necesarry visual component. -Rattles can be embedded into one another, allowing for more -sensitivity, sonic subtlety, and layers. - - -written in c++ - - - -
- - - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - - - - - diff --git a/content/projects/sempernull b/content/projects/sempernull deleted file mode 100644 index 0a7d478..0000000 --- a/content/projects/sempernull +++ /dev/null @@ -1,71 +0,0 @@ -title = sempernull -date = 2007-08-12 -thumb = http://portfolio.quilime.com/2008/sempernull/thumb.png -tag = video installation --- - - - - - - - - - - - - - - - - - -An exploration of infinite/finite space. The user transitions between macro and micro environments of mathematically infinite scale, limited only by computer processing power. As the viewer moves through multiple spaces, their scope and perspective widends and transcends while space becoms infinitely big and infinitely small simultaneously. - -*non-interactive software* - - - - - - - - - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - diff --git a/content/projects/swimtank b/content/projects/swimtank deleted file mode 100644 index 73111f1..0000000 --- a/content/projects/swimtank +++ /dev/null @@ -1,63 +0,0 @@ -title = Swimtank -date = 2007-05-01 -thumb = http://media.quilime.com/files/projects/swimtank/thumb.png --- - - - -A form follows an infinite path drawn by you, -and then reacts to its own trail. You can control the form on two axis, while the depth of the path follows a sinusoidal rhythm that is affected by paths previously drawn. - - - -*interactive software written in c++* - - - - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- diff --git a/content/projects/synony b/content/projects/synony deleted file mode 100644 index 6edb0cc..0000000 --- a/content/projects/synony +++ /dev/null @@ -1,22 +0,0 @@ -title = synonymovement -date = 2007-04-10 -thumb = http://portfolio.quilime.com/2008/synonymovement/thumb.png --- - - - - - - - - - - - - - - - - -*non-interactive software written in c++* - diff --git a/css/style.css b/css/style.css index 06e7ef6..39be341 100644 --- a/css/style.css +++ b/css/style.css @@ -1,57 +1,39 @@ -body, table { - font-family: arial, monaco, monospace; - line-height:1.4em; - font-size:14px; -} - +html, body, table { + color: #555555; + font-family: sans-serif; + font-size:13px; + line-height: 1.5em; } body { - background:rgb(25, 25, 25); - padding:0; - margin:0; - color: #ddd; -} + margin: 2em; } + a { - outline:none; - color:rgb(42, 128, 235); - text-decoration:none; -} -a img { - border:0; -} -a.visited { -} -a.mute { - font-weight:normal; - color:rgb(129, 144, 144); -} -a:hover, a.mute:hover { - color:f0a;; -} + border: 0pt none; + color: #000088; + font-weight:bold; + text-decoration: none; } + a img { + border: 0pt none; } + a.mute { + text-decoration: none ! important; } + a:hover, a.mute:hover { + border: medium none; + color: #0000FF; + text-decoration: underline; } + -h1 { - padding-top:0; - margin-top:0; - margin-bottom:30px; - font-size -} h1, h2, h3, h4, h5, h6 { - font-weight:normal; - color:#666; - font-size:1em; - text-shadow:1px 1px 3px #000; - letter-spacing:0.2em; -} + color: #333; + font-size:1em; } h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { - text-decoration:none; - color:#666; -} -h1 a { - color:#f0a; -} -h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover { - color:#fff; -} + line-height: 2em; } +h1 { + margin: 0pt 0pt 3em; } +h2 { + margin: 0pt 0pt 0.5em; } +h3 { + margin: 0pt; } + ul, li { @@ -84,7 +66,6 @@ pre, code { pre { padding:10px 20px; position:relative; - left:-20px; } code { padding:2px 6px; @@ -146,7 +127,6 @@ table, td, tr { .entry h1 { margin-bottom:5px; position:relative; - left:-1.65em; } .entry h1 a { } diff --git a/index.php b/index.php index 0d62417..289c8dd 100644 --- a/index.php +++ b/index.php @@ -17,7 +17,9 @@ else if ($m->is_page()) else if ($m->is_multiple()) $v->assign('entries', $m->entries); + header("Content-Type: {$m->response_mime_type}; charset=UTF-8"); $v->render( $m->template, $m->response_format ); + exit; diff --git a/lib/config.ini b/lib/config.ini index cc7d500..45757ac 100644 --- a/lib/config.ini +++ b/lib/config.ini @@ -8,18 +8,18 @@ date_format = M d Y, h:i:s A T [local] ; server locations and file names -web_root = "/" -content = "content/" -comments = "comments/" -templates = "templates/" -pages = "pages/" -config_file = "config" +web_root = / +content = content/ +comments = comments/ +templates = templates/ +pages = pages/ +config_file = config [delimiters] ; various delimiters config_delim = -- -more_delim = "" -title_delim = " — " +more_delim = "" +title_delim = " — " [ignores] ; file ignore patterns @@ -27,6 +27,9 @@ file_ignores[] = config file_ignores[] = .DS_Store +[development] +dev = true + ; define ('SITE_TITLE', 'quilime'); diff --git a/lib/init.php b/lib/init.php index 12c20de..0c31560 100644 --- a/lib/init.php +++ b/lib/init.php @@ -13,42 +13,19 @@ error_reporting(E_ALL); ini_set("display_errors", 1); # timezone -putenv('TZ=America/Los Angeles'); +putenv("TZ=America/Los_Angeles"); # include path ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . dirname(realpath(__FILE__))); # settings -define ('LOCAL_ROOT', '/home/quilime/quilime.com/'); -define ('WEB_ROOT', '/'); +define ('LOCAL_ROOT', $_SERVER['DOCUMENT_ROOT']); +if (!is_dir(LOCAL_ROOT)) { + exit ('Invalid LOCAL_ROOT: ' . LOCAL_ROOT); +} - - -/* - -Array -( - [site_title] => quilime - [clean_urls] => 1 - [limit] => 15 - [date_format] => M d Y, h:i:s A T - [web_root] => / - [content] => content/ - [comments] => comments/ - [template] => templates/ - [pages] => pages/ - [config_file] => config - [config_delim] => -- - [more_delim] => - [title_delim] => — - [file_ignores] => Array - ( - [0] => config - [1] => .DS_Store - ) -) -*/ $_cfg = parse_ini_file('lib/config.ini'); +define ('WEB_ROOT', $_cfg['web_root']); define ('CLEAN_URLS', $_cfg['clean_urls']); define ('LIMIT', $_cfg['limit']); define ('SITE_TITLE', $_cfg['site_title']); @@ -61,6 +38,7 @@ define ('CONFIG_FILE', $_cfg['config_file']); define ('MORE_DELIM', $_cfg['more_delim']); define ('TITLE_DELIMITER', $_cfg['title_delim']); define ('ENTRY_DATE_FORMAT', $_cfg['date_format']); +define ('DEV', $_cfg['dev']); $_FILE_IGNORES = $_cfg['file_ignores']; diff --git a/lib/model.php b/lib/model.php index 9262760..c200c88 100644 --- a/lib/model.php +++ b/lib/model.php @@ -49,15 +49,11 @@ class Model else if ($this->is_single()) { $this->entry = get_entry( $this->content_request ); - - // prev/next - $entries = get_entries($request['dirname']); - // post request if ($_SERVER['REQUEST_METHOD'] == 'POST') $this->process_post_request($this->entry); - - + // prev/next + $entries = get_entries( $request['dirname'] ); for($i = count($entries)-1; $i>=0; $i--) { if ($this->entry['url'] == $entries[$i]['url']) { $this->entry['prev_entry'] = isset($entries[$i-1]) ? $entries[$i-1] : null; @@ -65,12 +61,10 @@ class Model break; } } - $this->entry['is_single'] = true; $this->template = 'single.' . $this->response_format . '.tpl'; } - # if page (file in PAGES dir) else if ($this->is_page()) { $this->page = get_page( $this->page_request ); diff --git a/templates/index.html.tpl b/templates/index.html.tpl index 649e805..f5ad16b 100644 --- a/templates/index.html.tpl +++ b/templates/index.html.tpl @@ -10,75 +10,7 @@
- - - - - - - - - - - -
-

projects

- -
-

log

-
    - -
  • - "> -
  • - -
-
-

code

-
    - -
  • - "> -
  • - -
-
- - +
diff --git a/templates/nav.html.tpl b/templates/nav.html.tpl index 59812dd..1855e5c 100644 --- a/templates/nav.html.tpl +++ b/templates/nav.html.tpl @@ -1,35 +1,18 @@ - -- 2.34.1