This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // frack.c | |
| // frack | |
| // | |
| // Created by Carter Allen on 5/21/11. | |
| // Copyright 2011 Opt-6 Products, LLC. All rights reserved. | |
| // | |
| #include <stdio.h> | |
| #include <stdlib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| python tools/test.py --mode=debug,release | |
| === debug test-init === | |
| Path: simple/test-init | |
| node.js:114 | |
| throw e; // process.nextTick error, or 'error' event on first tick | |
| ^ | |
| AssertionError: `node fs` failed! | |
| at /Users/carterallen/Development/Shared/Third Party/Node.js/test/simple/test-init.js:36:14 | |
| at ChildProcess.exithandler (child_process.js:81:7) | |
| at ChildProcess.emit (events.js:45:17) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The issue I am having has to do with something about the way I am requiring classes, and maybe a bit to do with inheritance issues. The basic concept is: | |
| Site: Creates a bunch of File and Page instances, calls the process() method on each one, then returns. | |
| File: Manages the metadata and converter settings for a given file. | |
| Page: Inherits from File. Eventually it will have a different process() implementation, so that pages are processed separately from other files. | |
| I want to create File instances for every file in a given directory, except for files that are .html. Those should be created as Pages, not files. Get it? | |
| Yet currently, when I call process() (line 57, site.js), it says that the method doesn't exist. What gives? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2010/09/19 06:22:20 [error] 13585#0: *23 "/var/www/zcr.me/index.html" is not found (2: No such file or directory), client: 174.51.39.29, server: zcr.me, request: "GET / HTTP/1.1", host: "zcr.me" | |
| 2010/09/19 06:22:21 [error] 13585#0: *23 "/var/www/zcr.me/index.html" is not found (2: No such file or directory), client: 174.51.39.29, server: zcr.me, request: "GET / HTTP/1.1", host: "zcr.me" | |
| 2010/09/19 06:23:15 [error] 13585#0: *23 "/var/www/zcr.me/index.html" is not found (2: No such file or directory), client: 174.51.39.29, server: zcr.me, request: "GET / HTTP/1.1", host: "zcr.me" | |
| 2010/09/19 06:26:18 [error] 13585#0: *25 "/var/www/zcr.me/index.html" is not found (2: No such file or directory), client: 174.51.39.29, server: zcr.me, request: "GET / HTTP/1.1", host: "zcr.me" | |
| 2010/09/19 06:26:19 [error] 13585#0: *25 "/var/www/zcr.me/index.html" is not found (2: No such file or directory), client: 174.51.39.29, server: zcr.me, request: "GET / HTTP/1.1", host: "zcr.me" | |
| 2010/09/19 06:26:42 [error] 13585#0: *25 "/var/ww |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| set $user carterallen; | |
| set $site zcr.me; | |
| server_name $site; | |
| root /home/$user/sites/$site/public; | |
| access_log /home/$user/sites/$site/logs/access.log main; | |
| location / { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### nginx -V | |
| nginx version: nginx/0.8.50 | |
| built by gcc 4.3.2 (Debian 4.3.2-1.1) | |
| TLS SNI support enabled | |
| configure arguments: --sbin-path=/usr/local/sbin --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_ssl_module --with-http_gzip_static_module --user=nginx --group=nginx --with-http_flv_module --with-http_gzip_static_module --http-client-body-temp-path=/var/tmp/nginx/client/ --http-proxy-temp-path=/var/tmp/nginx/proxy/ --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ | |
| #### nginx.conf | |
| user www www; | |
| worker_processes 5; | |
| error_log /var/log/nginx/error.log; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| server_name www.zcr.me; | |
| rewrite ^ $scheme://zcr.me$request_uri permanent; | |
| } | |
| server { | |
| set $user carterallen; | |
| set $site zcr.me; | |
| listen 80; | |
| server_name $site www.$site; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user www www; | |
| worker_processes 5; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| worker_rlimit_nofile 8192; | |
| events { | |
| worker_connections 4096; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ==> Downloading http://ftp.gnome.org/pub/gnome/sources/glib/2.24/glib-2.24.1.tar.bz2 | |
| File already downloaded and cached to /Users/carterallen/Library/Caches/Homebrew | |
| ==> Downloading http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz | |
| File already downloaded and cached to /Users/carterallen/Library/Caches/Homebrew | |
| ==> ./configure --prefix=/private/tmp/homebrew-glib-2.24.1-joJe/glib-2.24.1/iconv --disable-debug --disable-dependency-tracking --enable-stat | |
| ==> make install | |
| ==> ./configure --disable-debug --prefix=/usr/local/Cellar/glib/2.24.1 --disable-dependency-tracking --disable-rebuilds --with-libiconv=gnu | |
| ==> make | |
| cd . && /bin/sh ./config.status glibconfig.h | |
| config.status: executing glibconfig.h commands |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ==> Downloading http://ftp.gnome.org/pub/gnome/sources/glib/2.24/glib-2.24.1.tar.bz2 | |
| File already downloaded and cached to /Users/carterallen/Library/Caches/Homebrew | |
| ==> Downloading http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz | |
| File already downloaded and cached to /Users/carterallen/Library/Caches/Homebrew | |
| ==> ./configure --prefix=/private/tmp/homebrew-glib-2.24.1-JyZ8/glib-2.24.1/iconv --disable-debug --disable-dependency-tracking --enable-static --disable-shared | |
| ==> make install | |
| ==> ./configure --disable-debug --prefix=/usr/local/Cellar/glib/2.24.1 --disable-dependency-tracking --disable-rebuilds --with-libiconv=gnu | |
| ==> make | |
| cd . && /bin/sh ./config.status glibconfig.h | |
| config.status: executing glibconfig.h commands |