<summatusmentis>
what would be the best way to pull in site background images from flickr? can I refer to @item in a CSS file? would a data source suffice?
<cDlm>
css files in content/ are just normal items, you can template them and use helpers
jadd_ has joined #nanoc
jadd_ has quit [Ping timeout: 245 seconds]
<summatusmentis>
I don't know that much about helpers, I'm not sure I need them
<cDlm>
well you'd need some way to insert the image links in CSS
<cDlm>
maybe just via erb
<cDlm>
a helper is just a function that does something useful in a template :)
<cDlm>
anyway, it's way past bedtime here, good night
jadd_ has joined #nanoc
jadd_ has quit [Ping timeout: 276 seconds]
jadd_ has joined #nanoc
alerante has joined #nanoc
alerante has quit [Remote host closed the connection]
skroon has joined #nanoc
yogsototh has joined #nanoc
jadd_ has quit [Quit: Leaving...]
pepijnde- is now known as pepijndevos
<ddfreyne>
summatusmentis: url(<%= @items['/images/somebackground/'].path %>) should work
<ddfreyne>
I have no clue what the CSS escaping rules are, so you may need to do some escaping there :)
<darix>
.gem/... should be in the default rubygems search path
<darix>
so
<summatusmentis>
ddfreyne: thanks, I got it figured out. I ended up using a helper to hit the flickr api
<summatusmentis>
now it's just a ruby gem that takes a bit to hit the APIs, and my code fails because of it, I've mostly figured it out
<Skyr>
Hmmm! Sloooowly getting there... I have nokogiri 1.5.5 installed as system package
<Skyr>
bundler says "Using nokogiri (1.6.0)"
<darix>
Skyr: then bundler should have installed that too
<darix>
Skyr: got the strace?
<Skyr>
...and ~/.gem/ruby/1.9.1/gems/ does not contain a nokogiri folder
<Skyr>
darix: Yes
<Skyr>
darix: What are you looking for?
<Skyr>
(or better to say: What should I be looking for)
<darix>
grep nokogiri /tmp/bundle.strace.txt
<darix>
it should have a 1.6.0 in there with a successful open on the gemspec no?
<Skyr>
yes, found it - /usr/local/lib64/ruby/gems/1.9.1/specifications/nokogiri-1.6.0.gemspec
<darix>
that is system gem too i would say
<Skyr>
I agree :)
<Skyr>
(though not installed via the system's package manager)
<Skyr>
But /usr/local/lib64/ruby/gems/1.9.1/gems/ does not include a nokogiri folder
<Skyr>
A broken installation of the gem?
<darix>
Skyr: could be :)
<darix>
remove that gemspec file
<darix>
and bundle install
<Skyr>
Already running :)
<Skyr>
(system is increasing the spectators' tension by building native extensions ;)
<darix>
8)
<Skyr>
Not fair :( "LoadError: cannot load such file -- nokogiri/nokogiri"
<darix>
Skyr: strace
<Skyr>
top stacktrace: ~/.gem/ruby/1.9.1/gems/nokogiri-1.6.0/lib/nokogiri.rb:28:in `require'
<darix>
Skyr: ls ~/.gem/ruby/1.9.1/gems/nokogiri-1.6.0/lib/nokogiri/*.so
<Skyr>
No so file there
<Skyr>
It's in ~/.gem/ruby/1.9.1/gems/nokogiri-1.6.0/lib/nokogiri/ext/nokogiri/nokogiri.so
<darix>
Skyr: copy/link the so file to my path
<Skyr>
\o/
<darix>
what distro is that btw?
<Skyr>
darix: That did the trick, thanks!
<Skyr>
Sabayon
<Skyr>
(Gentoo derivate)
<Skyr>
darix: What's _really_ strange: I did the same "bundle install" drill on my server (Sabayon Linux as well)... and there, the .so file ended up at the correct place
* Skyr
shakes head
<Skyr>
Ok, back to actual nanoc problems :)
<Skyr>
Is it possible to create a compile rule which doesn't create an item?
<Skyr>
Background: I'd like to create thumbnails of all my images (different representations of the original images)
<Skyr>
So I want a compile rule which matches all images, but nothing else
<darix>
Skyr: well why would you create the thumbnail and then not save it?
<darix>
Skyr: also
<darix>
Skyr: maybe you just want a different presentation of the same item?
<darix>
:)
<Skyr>
darix: My rule looks like: compile '*', :rep => :thumbnail do