ddfreyne changed the topic of #nanoc to: 3.6.3 (apr 24th) | web http://nanoc.ws/ | repo http://bit.ly/XE6e3G | issues http://bit.ly/VfXaSV | forum http://ho.io/n-discuss | irclog http://irclog.whitequark.org/nanoc
bghost has quit [Ping timeout: 272 seconds]
bghost has joined #nanoc
bghost has quit [Quit: leaving]
bghost has joined #nanoc
bghost has quit [Changing host]
bghost has joined #nanoc
bghost has quit [Ping timeout: 248 seconds]
bghost has joined #nanoc
bghost has quit [Changing host]
bghost has joined #nanoc
louquillio has quit [Remote host closed the connection]
bghost has quit [Quit: leaving]
louquillio has joined #nanoc
FunkyPenguin has quit [Remote host closed the connection]
FunkyPenguin has joined #nanoc
ddfreyne has quit [Ping timeout: 248 seconds]
ddfreyne has joined #nanoc
Skyr_ is now known as Skyr
kitallis has joined #nanoc
Segismond has quit [Ping timeout: 245 seconds]
Segismond has joined #nanoc
jaspervdj has quit [Quit: prozac is for pussies]
number-six has quit [Remote host closed the connection]
jaspervdj has joined #nanoc
number-six has joined #nanoc
<guardian> o/
<ddfreyne> darix: 100 93 86 79 72 65 58 51 44 37 30 23 16 9 2
<musicmatze> darix: I did not post mpd! It was ddfreyne, I think! But I use mpd, too!
<darix> ddfreyne: too little too late!:p
bghost has joined #nanoc
thedev has joined #nanoc
thedev has left #nanoc ["Leaving"]
<ddfreyne> darix: It's harder than I tought it would be :)
bghost has quit [Read error: Connection reset by peer]
<stbuehler> let l = 100:map (flip (-) 7) l in l
<stbuehler> i like haskell :)
<stbuehler> (and yes, there are easier ways.)
<ddfreyne> > 100:map (flip (-) 7) l in l
<number-six> Error: <hint>:1:24: parse error on input `in'
<ddfreyne> I suck at haskell :)
<ddfreyne> > [100, 93 .. 0]
<number-six> [100,93,86,79,72,65,58,51,44,37,30,23,16,9,2]
<stbuehler> enumFromThen 100 93
<ddfreyne> My solution is nicer!
<stbuehler> if i give you a recursive definition of a list l, you cannot remove the "let l =" part :)
<ddfreyne> Yeah I misread :)
<ddfreyne> > let l = 100:map (flip (-) 7) l in l
<number-six> [100,93,86,79,72,65,58,51,44,37,30,23,16,9,2,-5,-12,-19,-26,-33,-40,-47,-54,-61,-68,-75,-82,-89,-96,-103,-110,-117,-124,-131,-138,-145,-152,-159,-166,-173,-180,-187,-194,-201,-208,-215,-222,-229,-236,-243,-250,-257,-264,-271,-278,-285,-292,-299,-306,-313,-320,-327,-334,-341,-348,-355,-362,-369,-376,-383,-390,-397,-404,-411,-418,-425,-432,-439,-446,-453,-460,-467,-474,-481,-488,-495,-502,-509,-516,...
<ddfreyne> takeWhile (> 0) (> let l = 100:map (flip (-) 7) l in l)
<ddfreyne> > takeWhile (> 0) (> let l = 100:map (flip (-) 7) l in l)
<number-six> Error: Couldn't match expected type `[a0]' with actual type `a1 -> GHC.Types.Bool'
<ddfreyne> > takeWhile (> 0) (let l = 100:map (flip (-) 7) l in l)
<number-six> [100,93,86,79,72,65,58,51,44,37,30,23,16,9,2]
<ddfreyne> % 1+2
<ddfreyne> Ruby!
<ddfreyne> !ruby 1+2
<number-six> => 3
<guardian> what are those numbers?
<ddfreyne> guardian: counting down from 100 to 0 in steps of 7
<guardian> hmmm why not a for loop?
<stbuehler> why a for loop?
<ddfreyne> guardian: for loops suck :)
<guardian> I can hear the cpu crying from here :) jesus .map ...
<guardian> stbuehler: because albeit .map .flip looks like "I'm a genius I shit oneliners", it's so wrong in terms of all the unnecessary stuff it's doing under the hood
<stbuehler> yes, this unnecessary stuff is certainly the main problem in programming... and should be the only thing to look for when you pick your language.
<stbuehler> that is why i code in c all the time :P
<guardian> the sole fact of coding in C doesn't necessarily doing things right though :)
<ddfreyne> stbuehler: What are you doing in #nanoc if you code in C ALL the time? ;)
<ddfreyne> I really like C, although I hope languages such as Go and Rust become more popular and their implementations more mature
<guardian> we're on #nanoc because we would never code a shared lib to customize a site generator in C
<guardian> never ever :)
<stbuehler> ddfreyne: needed a site generator for "my" C projects :D
<stbuehler> i code in C when i require performance, and otherwise i use the tool that has the best libraries to solve the task
thedev has joined #nanoc
<thedev> hi guys, anyone used Bower with Nanoc
<thedev> ?
<ddfreyne> stbuehler: I'll read that later
<ddfreyne> thedev: What's Bower?
<thedev> a package manager from twitter
<thedev> uses NPM
<thedev> I use it to manage my dependencies: jquery, bootstrap, jasmine ...
<thedev> the thing is bower adds packages to my project that have same name with different extension
<thedev> and when i try to nonoc compile I get the "Found 2 content files for" error
<thedev> *adds files with same name and diff extension
jugglinmike has joined #nanoc
<thedev> if I specify data_sources type: static will the filesystem databases still be used?
<thedev> are both data sources used at the same time ?
<thedev> or I can only choose one ?
<ddfreyne> thedev: Sorry, had a meeting
<ddfreyne> thedev: No time to talk atm, but I am free in a few hours
<thedev> sure, ttyl
<thedev> i was just reading this, if I use the static datasource (type: static) will this be used instead of the filesystem datasource or in addition to it ?
thedev has quit [Quit: Leaving]
bghost has joined #nanoc
bghost has quit [Quit: leaving]
momolog has joined #nanoc
<momolog> hi everybody
<momolog> i just converted a site using haml to slim
<momolog> somehow all content gets html-escaped
<momolog> has anybody else experienced that?
<ddfreyne> momolog: Hi!
<ddfreyne> momolog: I think slim does that by default… and I do remember there being a way of turning it off, but I cannot remembmer
<ddfreyne> momolog: “Easy fix, just needed to do == yield instead of = yield” ↑
<ddfreyne> Does that work?
bghost has joined #nanoc
bghost has quit [Changing host]
bghost has joined #nanoc
<momolog> Wow, Denis, you rock.
<momolog> Thanks.
<momolog> slim docs being down (just linking to rdoc) does not exactly help ;-)
<ddfreyne> cool :)
<momolog> I still see a problem
<momolog> in haml i could use a filter like this
<momolog> - filter :myfilter do
<momolog> block
<momolog> this does not work in slim, it interprets the block *before* it gets run through the filter
bghost has quit [Quit: leaving]
<ddfreyne> momolog: Hmmm… I don’t know enough about slim to be helpfulwith that :(
<momolog> ddfreyne: i see
<ddfreyne> bobthecow: https://github.com/nanoc/nanoc/pull/312 review and merge
bghost has joined #nanoc
louquillio_ has quit [Read error: Connection reset by peer]
louquillio_ has joined #nanoc
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bobthecow has quit [Ping timeout: 272 seconds]
<ddfreyne> telemachus: Your core programmer competencies thing is pretty hard to answer :)
<ddfreyne> !twitter telemachus
<number-six> @telemachus: The programmer core skills tweetstream continues. What are *your* core competencies as a programmer?
<ddfreyne> ↑ context
<momolog> ddfreyne: i have a couple of pure data items (just consisting of the leading and trailing "---" and yaml data in between). what would be the best file type for this? I know it does not really matter, but is there a way to get rid of the "---" altogether?
<ddfreyne> momolog: You can give your file the extension .yaml and get rid of the ---s
<momolog> ddfreyne: cool, i was hoping for something like that
Rym__ has joined #nanoc
Rym has quit [Ping timeout: 256 seconds]
Rym__ is now known as Rym
bghost has quit [Quit: leaving]
<momolog> ddfreyne: are these yaml items treated somehow special? they do not seem to trigger any compile rules but get compiled nonetheless
<momolog> its pretty weird. i put a p item[:extension] into the compile '/*' do - block, but none of the yaml items turn up
<ddfreyne> momolog: Oh, that is odd indeed
<ddfreyne> momolog: What version of nanoc?
<ddfreyne> momolog: What are your yaml files named?
<momolog> 3.6.3
<momolog> content/de/filme/kim-und-schwester.yaml
<ddfreyne> does nanoc show-data reveal an item with identifier /de/filme/kim-und-schwester/ ?
<momolog> yep
<ddfreyne> momolog: Are you sure the items are matched by the right compilation rule?
<ddfreyne> item[:extension] will not be filled in for .yaml items
<momolog> ah
<momolog> does this make sense?
<momolog> it makes it a bit difficult to treat them specifically in the rules file
<ddfreyne> momolog: You can check whether item[:content_filename] is nil, and in that case it means there is no content file
<momolog> ah, i see, that is because it is possible to have the yaml file AND the content file or (as i always did it) to combine them into one
<momolog> i understand
<ddfreyne> yep
bghost has joined #nanoc
<momolog> thanks for your help. good night everyone
momolog has quit [Quit: momolog]
misterrayco has joined #nanoc
bghost has quit [Quit: leaving]
<misterrayco> hiya…is there a doc on how to do block quotes? ## …i know, but sometimes one hash will show up on the page, sometimes not
<darix> misterrayco: that depends on the markup you use doesnt it?
<darix> consult the documentation of the markup processor you use.
<darix> e.g. kramdown, rdiscount ...
<misterrayco> kramdown, i believe
<ddfreyne> misterrayco: A blockquote starts with >
misterrayco has left #nanoc [#nanoc]
bghost has joined #nanoc
bghost has quit [Changing host]
bghost has joined #nanoc
jugglinmike has quit [Quit: Leaving.]