00:02
bghost has quit [Quit: leaving]
00:16
jugglinmike has quit [Quit: Leaving.]
00:47
louquillio has quit [Read error: Connection reset by peer]
00:49
louquillio has joined #nanoc
03:15
forcev has joined #nanoc
03:22
FunkyPenguin has quit [*.net *.split]
06:24
smkelly has joined #nanoc
06:26
smkelly_ has quit [Ping timeout: 240 seconds]
07:19
francois2 has quit [Excess Flood]
07:19
francois2 has joined #nanoc
08:35
number-six has quit [Remote host closed the connection]
08:40
yogsototh has joined #nanoc
08:44
number-six has joined #nanoc
08:49
_whitelogger has joined #nanoc
08:52
number-six has quit [Remote host closed the connection]
09:12
number-six has joined #nanoc
09:14
number-six has quit [Remote host closed the connection]
09:14
number-six has joined #nanoc
09:29
VitamineD has quit [Quit: VitamineD]
09:52
VitamineD has joined #nanoc
11:19
yogsototh has quit [Ping timeout: 245 seconds]
11:24
yogsototh has joined #nanoc
11:27
jarr0dsz has joined #nanoc
11:29
forcev is now known as FunkyPenguin
11:29
FunkyPenguin has quit [Changing host]
11:29
FunkyPenguin has joined #nanoc
13:24
jugglinmike has joined #nanoc
13:39
pavelkunc has joined #nanoc
13:48
Evolution has joined #nanoc
13:49
tantalum has joined #nanoc
13:57
<
Evolution >
is there a reasonably simple way to select 10 random items of content? I'm struggling to figure out how to do this.
14:01
<
Evolution >
ah gotcha
14:09
<
Evolution >
so I could do something like @site.items.sample(10) ?
14:09
<
Evolution >
to take 10 random items?
14:11
<
darix >
Evolution: try it?
14:31
<
bobthecow >
Evolution: most places you can just use @items.sample(10)
15:27
jarr0dsz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:49
ics has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
15:50
ics has joined #nanoc
15:55
VitamineD has quit [Ping timeout: 248 seconds]
17:17
VitamineD has joined #nanoc
18:05
Evolution has joined #nanoc
18:07
<
Evolution >
what do I need to do for nanoc to be able to use asciidoc? I have the asciidoc gem installed, and 'filter :asciidoc' for files with an .adoc extension
18:07
<
Evolution >
am I missing something? I see a couple references to a 'nanoc-asciidoc' gem
18:08
<
Evolution >
but nothing definitive
18:08
KK4MGV has quit [Excess Flood]
18:09
<
ddfreyne >
Evolution: You also need to have asciidoc itself installed (I believe it is an external executable)
18:09
<
ddfreyne >
bre winstall asciidoc if you're on a mac
18:09
<
ddfreyne >
brew install asciidoc if you're on a mac
18:10
KK4MGV has joined #nanoc
18:11
<
Evolution >
nah, fedora.
18:11
<
Evolution >
that might be what I'm missing.
18:15
<
Evolution >
ddfreyne: did I need the nanoc-asciidoc gem?
18:16
<
ddfreyne >
Evolution: no
18:16
<
ddfreyne >
The nanoc-* gems are new and only usable for nanoc 4.0+
18:16
<
ddfreyne >
Which is a WIP :)
18:17
<
Evolution >
that look sane to you?
18:18
<
ddfreyne >
Evolution: Yes. Are you using a Gemfile? Are you getting an error?
18:18
<
Evolution >
no Gemfile.
18:18
<
Evolution >
and no error.
18:18
<
Evolution >
nanoc simply outputs the adoc file as-is into output
18:18
<
Evolution >
without processing it.
18:19
<
ddfreyne >
can you print item[:extension] and make sure it is OK?
18:19
<
Evolution >
pretend I'm an idiot.
18:19
<
Evolution >
how would I do that?
18:19
<
Evolution >
(don't pretend)
18:21
<
ddfreyne >
Right before case item[:extension], puts "item = #{item.identifier} -- extension = #{item[:extension]}"
18:21
<
ddfreyne >
Then that will show you which items have which extensions and where things go wrong
18:25
<
bobthecow >
ddfreyne: do you have a favorite way to profile a nanoc compile to see what bits are the bottlenecks?
18:28
<
ddfreyne >
bobthecow: perftools.rb is nice
18:29
<
ddfreyne >
bobthecow: There's no real nanoc-specific thign though
18:29
<
Evolution >
ddfreyne: not a damned thing.
18:29
<
ddfreyne >
Evolution: Then the file is possibly matched by rules that come before compile '*'. Is that the case?
18:29
<
Evolution >
that's the rules file. I dont' see anything that would match it.
18:30
<
ddfreyne >
Evolution: what is the name of the file?
18:30
<
Evolution >
sample.adoc
18:30
<
ddfreyne >
content/asciidoc/sample.adoc ?
18:31
<
ddfreyne >
Evolution: ooohhhh... it is treated as binary, because 'adoc' is not considered textual!
18:31
<
ddfreyne >
Evolution: in nanoc.yaml (or config.yaml) edit text_extensions and add it in there
18:31
<
Evolution >
ohdammit
18:31
<
Evolution >
okay yeah. that makes sens.
18:34
<
Evolution >
that was it.
18:34
<
Evolution >
thanks.
18:34
bghost has joined #nanoc
18:40
<
ddfreyne >
I came up with a new project name today, but there's some resistance to it
18:40
<
ddfreyne >
I guess that is to be expected when a project is called “webhooker” :(
18:52
<
bobthecow >
ddfreyne: yeah, that's probably not the most appropriate name.
18:52
<
bobthecow >
unless, of course, you're making Uber for prostitution?
18:54
<
ddfreyne >
It's purely internal anyway.
18:54
<
ddfreyne >
bobthecow: Hmm. perftools.rb also generates clalgraphs (also in PDF format) which is quite useful
18:54
<
ddfreyne >
As for 15% in the GC, bleh. That's not easily going away until nanoc 4.0 sadly
18:55
<
ddfreyne >
bobthecow: realpath seems like a relativize_paths problem
18:55
<
bobthecow >
i'm not relativizing paths.
18:56
<
ddfreyne >
bobthecow: Can you try building a PDF with the call graph?
18:57
pavelkunc has quit [Quit: Leaving.]
19:03
<
bobthecow >
call graph does a lot to clear up the blame :)
19:03
<
bobthecow >
49% SASS.
19:03
<
bobthecow >
freaking sass.
19:04
<
bobthecow >
oh, just kidding. only 18% sass.
19:04
<
bobthecow >
27% realpath inside Nanoc::FIlters::Sass#run
19:05
<
bobthecow >
basically half my compile time is spent compiling sass, and half of that is spent resolving realpaths inside Nanoc::Filters::Sass#run
19:05
<
bobthecow >
the array#select is one of my filters.
19:06
<
bobthecow >
@items.select { |i| File.fnmatch(glob, i.identifier) }
19:06
<
bobthecow >
is there a better way of doing that?
19:06
<
bobthecow >
because that's 7% of my compile time.
19:08
<
bobthecow >
and any thoughts on that?
19:08
<
bobthecow >
it looks like #realpath calls in that class are a
*huge* part of my compile time.
19:18
<
ddfreyne >
Yikes...
19:24
<
ddfreyne >
The sass filter is a bit ugly.
20:23
<
ddfreyne >
Could we just get rid of the realpath entirely?
20:25
<
darix >
bobthecow: that single line is 7% of your compile time?!
20:25
<
ddfreyne >
It's not very good if half of your compilation time goes to sass..
20:27
<
darix >
mayb less uses less time?:p
*scnr*
20:28
<
ddfreyne >
Maybe there should be a nanoc onference.
20:39
<
gkarekinian >
Can't you use the C libsass if you need it to be fast?
20:41
<
ddfreyne >
gkarekinian: Oh, I hadn't heard of libsass before
20:41
<
ddfreyne >
filter :csass would be neat, I guess ;)
20:41
<
gkarekinian >
I've never actually used it, I just remember hearing about it back when it was released
20:41
<
gkarekinian >
My brain remembers weird stuff like this
21:00
<
ddfreyne >
It goes into my list of starred repositories :)
21:00
<
ddfreyne >
sleep time now. I'm tired!
21:14
bghost has quit [Quit: leaving]
22:00
tantalum has left #nanoc [#nanoc]