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
## Generating Site with Jekyll | |
/Users/chartjes/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 6 column 7 (Psych::SyntaxError) | |
from /Users/chartjes/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in `parse_stream' | |
from /Users/chartjes/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:119:in `parse' | |
from /Users/chartjes/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:106:in `load' | |
from /Users/chartjes/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:205:in `load_file' | |
from /Users/chartjes/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll.rb:119:in `configuration' | |
from /Users/chartjes/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/bin/jekyll:207:in `<top (required)>' | |
from /Users/chartjes/.rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:in `load' | |
from /Users/chartjes/.rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:in `<main>' |
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
/-> % rake generate | |
## Generating Site with Jekyll | |
Configuration from /Users/chartjes/Sites/atthekeyboard/_config.yml | |
unchanged sass/screen.scss | |
Building site: source -> public | |
/Users/chartjes/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/convertible.rb:29:in `read_yaml': invalid byte sequence in US-ASCII (ArgumentError) | |
from /Users/chartjes/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/page.rb:24:in `initialize' | |
from /Users/chartjes/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:140:in `new' | |
from /Users/chartjes/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:140:in `block in read_directories' | |
from /Users/chartjes/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:130:in `each' |
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
-> % rake generate | |
## Generating Site with Jekyll | |
Configuration from /Users/chartjes/Documents/atthekeyboard/_config.yml | |
unchanged sass/screen.scss | |
Building site: source -> public | |
/Users/chartjes/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/convertible.rb:29:in `read_yaml': invalid byte sequence in US-ASCII (ArgumentError) | |
from /Users/chartjes/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/page.rb:24:in `initialize' | |
from /Users/chartjes/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:140:in `new' | |
from /Users/chartjes/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:140:in `block in read_directories' | |
from /Users/chartjes/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:130:in `each' |
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
"Knock, knock" | |
"Who's there?" | |
"Gestapo" | |
"Gestapo who?" | |
"VE VILL ASK ZE QUESTIONS!!" |
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
I have the following query: | |
SELECT brand.id, u.created_at | |
FROM brand | |
LEFT JOIN brand_admin_group bag ON brand.id = bag.brand_id | |
LEFT JOIN brand_admin_group_membership bagm ON bag.id = bagm.brand_admin_group_id | |
LEFT JOIN user u ON bagm.user_id = u.id | |
GROUP BY brand.id, u.created_at | |
Results look like this: |
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
More fun with aggregates. I have the following query: | |
SELECT brand.id, COUNT(DISTINCT(track_play.track_id)) as track_count | |
FROM track_play | |
INNER JOIN brand ON brand.id = track_play.brand_id | |
GROUP BY brand.id | |
which returns info like this: | |
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
More fun with aggregates. I have the following query: | |
SELECT brand.id, COUNT(DISTINCT(track_play.track_id)) as track_count | |
FROM track_play | |
INNER JOIN brand ON brand.id = track_play.brand_id | |
GROUP BY brand.id | |
which returns info like this: | |
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
fatal: 'merge' is not possible because you have unmerged files. | |
Please, fix them up in the work tree, and then use 'git add/rm <file>' as | |
appropriate to mark resolution and make a commit, or use 'git commit -a'. |
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
I'm using an autoloader with namespaces... | |
// Does not work | |
$container['franchise_mapper'] = function ($c) { | |
return new IBL\FranchiseMappper($c['db_connection']); | |
}; | |
$mapper = $container['franchise_mapper']; | |
generates "PHP Fatal error: Class 'IBL\FranchiseMappper' not found |
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
// My bootstrap | |
<?php | |
// set some directory names that we will need | |
if (!defined('APP_ROOT')) { | |
define('APP_ROOT', __DIR__ . '/'); | |
} | |
if (!defined('LIB_ROOT')) { | |
define('LIB_ROOT', APP_ROOT . 'lib/'); |