apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
<Trapper>
nerp
<Trapper>
Tearan: There is literally noone around :L
cnivolle has quit [Remote host closed the connection]
majjoha has joined #ruby-lang
cnivolle has joined #ruby-lang
cnivolle has quit [Ping timeout: 252 seconds]
majjoha has quit [Ping timeout: 240 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
micalexander has joined #ruby-lang
mdedetrich has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
micalexander has quit [Ping timeout: 246 seconds]
<Tearan>
i see that
Coincidental has quit [Ping timeout: 272 seconds]
majjoha has joined #ruby-lang
pr0ton has joined #ruby-lang
micalexander has joined #ruby-lang
majjoha has quit [Ping timeout: 240 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
pr0ton has quit [Quit: pr0ton]
kurko_ has quit [Quit: Computer has gone to sleep.]
symm- has quit [Ping timeout: 245 seconds]
elia has quit [Quit: Computer has gone to sleep.]
richardburton has quit [Quit: Leaving.]
toretore has quit [Quit: Leaving]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
io_syl has joined #ruby-lang
chuck has quit [Ping timeout: 248 seconds]
lfox has joined #ruby-lang
symm- has joined #ruby-lang
uokesita_ has joined #ruby-lang
Trapper has quit [Ping timeout: 272 seconds]
majjoha has joined #ruby-lang
mdedetrich has joined #ruby-lang
mdedetrich has quit [Client Quit]
majjoha has quit [Ping timeout: 252 seconds]
andrew_ has joined #ruby-lang
andrew_ has left #ruby-lang [#ruby-lang]
andrew_ has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrew_ has left #ruby-lang [#ruby-lang]
andrew2222 has joined #ruby-lang
_jpb_ has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
richardburton has joined #ruby-lang
andrew2222 has left #ruby-lang [#ruby-lang]
jonahR has left #ruby-lang [#ruby-lang]
styped has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
jxie has quit [Quit: leaving]
duphus has joined #ruby-lang
richardburton has quit [Ping timeout: 272 seconds]
majjoha has joined #ruby-lang
jxie has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
majjoha has quit [Ping timeout: 272 seconds]
jxie has joined #ruby-lang
fijimunk1i has joined #ruby-lang
fijimunkii has quit [Ping timeout: 240 seconds]
Tearan has quit [Quit: Sleepy Badger....]
GarethAdams has quit [Ping timeout: 245 seconds]
styped has left #ruby-lang [#ruby-lang]
mdedetrich has joined #ruby-lang
jxie has quit [Quit: leaving]
jxie has joined #ruby-lang
Johz has quit [Quit: Leaving]
GarethAdams has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
Domon has joined #ruby-lang
LiVECrys has quit []
majjoha has joined #ruby-lang
majjoha has quit [Ping timeout: 246 seconds]
jxie has quit [Quit: leaving]
jxie has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
Coincidental has joined #ruby-lang
duphus has quit [Quit: Leaving.]
jsullivandigs has joined #ruby-lang
richardburton has joined #ruby-lang
mannyt has joined #ruby-lang
duphus has joined #ruby-lang
jithu has joined #ruby-lang
richardburton has quit [Ping timeout: 246 seconds]
jxie has quit [Read error: Connection reset by peer]
jithu has quit [Ping timeout: 245 seconds]
Barrin6 has joined #ruby-lang
<Barrin6>
hey
jxie has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
<havenwood>
g'evening
symm- has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby-lang
kurko_ has joined #ruby-lang
Kabaka has quit [Ping timeout: 240 seconds]
jithu has joined #ruby-lang
hahuang65 has joined #ruby-lang
Kabaka has joined #ruby-lang
dingus_khan has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
machuga is now known as machuga|away
mdedetrich has joined #ruby-lang
majjoha has joined #ruby-lang
mdedetrich has quit [Client Quit]
kurko_ has quit [Quit: Computer has gone to sleep.]
zz_michael_mbp is now known as michael_mbp
majjoha has quit [Ping timeout: 246 seconds]
michael_mbp is now known as zz_michael_mbp
mdedetrich has joined #ruby-lang
spuk has quit [Ping timeout: 245 seconds]
nathanstitt has quit [Quit: I growing sleepy]
mdedetrich has quit [Ping timeout: 252 seconds]
mdedetrich has joined #ruby-lang
richardburton has joined #ruby-lang
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
richardburton has quit [Ping timeout: 245 seconds]
deception has joined #ruby-lang
bert_chang has joined #ruby-lang
bert_chang has quit [Client Quit]
lazywei has joined #ruby-lang
lazywei has quit [Client Quit]
lazywei has joined #ruby-lang
<lazywei>
Morning
<lazywei>
Is here the place to ask question about ruby?
TheNotary has joined #ruby-lang
TheNotary has quit [Client Quit]
ecnalyr has joined #ruby-lang
<havenwood>
yup, it's a good place
<lazywei>
I just faced an weird error when I want to dump an 'Rack::Test::UploadedFile' into yaml format
<lazywei>
example.to_yaml will raise NoMethodError
<lazywei>
it seems that psych, which is the default yaml engine used by ruby, has some problem when deal with the Delegator
<lazywei>
and there is a working pull request to fix this problem
<lazywei>
so .. to sum up, I somehow fixed my problem. just for if any others encounter this error..
richardburton has joined #ruby-lang
mistym is now known as mistym_away
richardburton has quit [Ping timeout: 240 seconds]
Oak has joined #ruby-lang
majjoha has joined #ruby-lang
ledestin has quit [Ping timeout: 240 seconds]
soba has joined #ruby-lang
majjoha has quit [Ping timeout: 272 seconds]
uokesita_ has quit [Quit: This computer has gone to sleep]
lazywei has quit [Quit: Page closed]
<Barrin6>
anyone working on projecteuler?
martndemus has joined #ruby-lang
hahuang65 has quit [Ping timeout: 246 seconds]
<havenwood>
Barrin6: not right at the moment, but i've been having fun going through them
sstavrop has joined #ruby-lang
<havenwood>
can't figure out what is wrong with my solution for number fifteen!
<Barrin6>
i'm on #4
<Barrin6>
palindrome
<Barrin6>
can you reverse a number in ruby?
<havenwood>
Barrin6: Convert it to a String to #reverse.
<Barrin6>
yea that makes more sense
majjoha has joined #ruby-lang
<Barrin6>
oh yea I bet the length method would be useful
majjoha has quit [Ping timeout: 272 seconds]
<Barrin6>
that's weird
<Barrin6>
I'm getting an undefined method for 'reverse'
<Barrin6>
anyone here mind looking at my code?
martndemus has quit [Ping timeout: 240 seconds]
<Xzyx987X>
ok... does setting Thread.critical even do anything in ruby 1.8.7? because I'm running into a hang that is the direct result of another thread running while Thread.critical == true
schaerli has joined #ruby-lang
<havenwood>
Barrin6: Sure, i'd take a look. Paste a Gist?
richardburton has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
spuk has joined #ruby-lang
apeiros has joined #ruby-lang
schaerli has joined #ruby-lang
mdedetrich has quit [Ping timeout: 245 seconds]
mdedetri_ has joined #ruby-lang
richardburton has quit [Ping timeout: 246 seconds]
martndemus has joined #ruby-lang
schaerli has quit [Ping timeout: 245 seconds]
majjoha has joined #ruby-lang
mdedetri_ has quit [Ping timeout: 252 seconds]
spuk has quit [Ping timeout: 252 seconds]
mdedetrich has joined #ruby-lang
saarinen has joined #ruby-lang
majjoha has quit [Ping timeout: 272 seconds]
shinnya has quit [Ping timeout: 246 seconds]
saarinen has quit [Client Quit]
<Barrin6>
ah too late sorry
<Barrin6>
posted it on stackoverflow
<Barrin6>
I just forgot to do s=s.to_s
<Barrin6>
instead i just did s.to_s
<havenwood>
aha
arBmind has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
<jrobeson>
although it'd likely not be too different with python either
dingus_khan has joined #ruby-lang
<mark06>
jrobeson: there's another thing I would personally take as a bug of some sort too...
<mark06>
jrobeson: same strings are considered not equal if they're not on same encoding
<jrobeson>
that's why i'm glad i just deal with utf-8 :)
<mark06>
jrobeson: but documentation is obscure about that, I had to look at Ruby's source code to confirm
<jrobeson>
no chance to notice such things :)
<mark06>
I found no equality method that ignores the encoding, I think it should have something like this
<jrobeson>
mark06, so check your results there
<mark06>
it's a bit confusing, python is more clear... "str" are like set of bytes while "unicode" is an abstraction... in Ruby strings are both at the same time, odd
dingus_khan has quit [Ping timeout: 245 seconds]
<whitequark>
ruby strings are always sets of characters
<mark06>
and what would be a character?
fosky has joined #ruby-lang
<mark06>
if they were unicode characters, there would be no sense for String#encoding and such
<mark06>
ruby strings are like encoding-aware set of bytes...
postmodern has quit [Quit: Leaving]
<whitequark>
abstract characters
<whitequark>
mind you, even for unicode, there's much more than one way to map characters to bytes
<mark06>
that's what I mean, if they were merely a set of (abstracted) characters, it would make no sense talking about mapping to bytes or whatever...
<mark06>
when you deal with python's unicode type, you don't care about encoding, just that it came from a trusted source (for example you read a file and you're sure the unicode object was properly decoded with the right encoding from the set of bytes that came from that file)
<mark06>
I'm telling this because str1==str2 is unclear now
<mark06>
and the docs give no clue about it, I had to look at the source code
<mark06>
and I miss a non-encoding-aware ==
<whitequark>
ah, I see what you mean
<workmad3>
mark06: there were reasons for the way ruby added encoding support, mostly rooted in ruby being created by a japanese guy and some issues (that are now mostly resolved, I believe) to do with round-tripping japanese and chinese text through unicode losing information
<workmad3>
mark06: and so ruby didn't adopt a 'unicode everything' approach to string encodings
barttenbrinke has joined #ruby-lang
kek has quit [Remote host closed the connection]
<mark06>
for example you can see that http://bit.ly/19ITgaT == http://bit.ly/18doMBv, but this comparison does not work on ruby 1.9+ because they would have encoding information embedded
richardburton has quit [Quit: Leaving.]
<mark06>
i.e. even though they're the same character, whatever encoding ruby is using on the string objects, they're considered different just because of an "implementation detail"
<mark06>
I would just change == to ignore encodings, and maybe have === doing that instead
h_kon has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby-lang
<whitequark>
=== has completely different semantics
<mark06>
currently, they do the same thing: "These two methods, == and ===, share the same implementation." (String's doc)
<whitequark>
=== is case comparison
<mark06>
ok, then ==== :)
<whitequark>
not a method name
<mark06>
then create it :)
<whitequark>
.eql? would fit nicely
<whitequark>
perhaps file a bug.
<mark06>
ah good, "eql?" looks like the right place for current behavior of ==, yeah I guess I'll file a feature request later...
ledestin has quit [Quit: ledestin]
<apeiros>
time for String to learn #coerce, I guess
<apeiros>
as that mechanic is already used for #== with numeric values
pothibo has joined #ruby-lang
heftig_ has joined #ruby-lang
machuga|away is now known as machuga
heftig has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby-lang
qba73_ has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
francisfish has quit [Ping timeout: 245 seconds]
Domon has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
<petercooper>
not convinced "intercourse" is an obscene word
<whitequark>
lol, the russian list somehow includes the word for "whatever"
<yorickpeterse>
of course the Dutch list contains lots of references to prostitutes
<yorickpeterse>
hahah, "neukstier" ("fuck bull")
<yorickpeterse>
man this is great
yfeldblum has joined #ruby-lang
<yorickpeterse>
(except for actually filtering out obscene words)
<petercooper>
project for the day (for someone evil, not me): pull request to get the most stupid foreign words into those lists
soba__ has joined #ruby-lang
<yorickpeterse>
I'm amazed the most vulgar Dutch word isn't there
<petercooper>
what's that?
<yorickpeterse>
well, the most vulgar two
<yorickpeterse>
euuh....well
schaerli_ has joined #ruby-lang
<petercooper>
ROT26 it
billybob0001 has joined #ruby-lang
<yorickpeterse>
"kanker hoer", which means "cancer whore" and "kanker homo", which means "cancer fag" basically
<whitequark>
rot26? :)
<yorickpeterse>
^ say that on the street and it's an instant guarantee to get punched in the face
billybob000 has quit [Read error: Connection reset by peer]
x0nic has quit [Ping timeout: 246 seconds]
UziMonkey has quit [Ping timeout: 246 seconds]
CoreData has quit [Ping timeout: 246 seconds]
schaerli has quit [Read error: Connection reset by peer]
_rgn has quit [Ping timeout: 246 seconds]
djinni`_ has quit [Ping timeout: 246 seconds]
<petercooper>
I saw a documentary about the Irish language recently
crankharder has quit [Ping timeout: 246 seconds]
breakingthings has joined #ruby-lang
VTLob has joined #ruby-lang
<petercooper>
where a guy went out on the streets of the most Gaelic area of Ireland and sang a song in Irish that was all about.. well, a ton of nasty stuff
<petercooper>
and no-one batted an eyelid
<petercooper>
he was just proving how almost no-one in Ireland understands the language anymore
djinni` has joined #ruby-lang
x0nic has joined #ruby-lang
crankharder has joined #ruby-lang
soba has quit [Ping timeout: 245 seconds]
<yorickpeterse>
god damn it, I had the perfect comic for that
<yorickpeterse>
where is it
<yorickpeterse>
would help if I remembered the source too
<yorickpeterse>
oh wait, it was some comedy thing show
<ericwood>
Trapper: oh, trust me, this thing was of no value to anyone/anything
<maloik>
Can anyone think of any reason why `ssh user@somehost.com` would ignore ForwardAgent yes?
<maloik>
github commit hook -> rack app -> ssh into other server -> git pull. The rack app's account's ssh key is added as a deploy key to the repo, and it has forwardagent set to yes for all hosts
<maloik>
and yet when I run ssh -vv it clearly shows it using the target server's ssh key instead of the rack app's server's
<Trapper>
cout: I certainly don't know how. At least simple colors are working :)
tomzx_mac has joined #ruby-lang
tubbo` has joined #ruby-lang
<Trapper>
ericwood: awh :( Neglected github repo
<Trapper>
*tumbleweed*
workmad3 has joined #ruby-lang
banisterfiend has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
JasonZhang has quit [Quit: JasonZhang]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
francisfish has quit [Ping timeout: 240 seconds]
relix has joined #ruby-lang
rippa has joined #ruby-lang
priodev has quit [Ping timeout: 264 seconds]
JohnBat26 has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
<ericwood>
hi
bantic has joined #ruby-lang
Elico has joined #ruby-lang
banisterfiend has joined #ruby-lang
<Elico>
Hey I want to read and parse a xml formatted file but I am not getting throw it..
_rgn has joined #ruby-lang
UziMonkey has joined #ruby-lang
<ericwood>
what do you mean by that?
<ericwood>
are you using nokogiri?
<ericwood>
*crickets*
sstavrop has quit [Quit: sstavrop]
<Trapper>
*wolf howl*
<ericwood>
this happens all the time on IRC
<ericwood>
someone asks for help
<ericwood>
we immediately jump in
<ericwood>
then they disappear
<apeiros>
well, he hasn't yet disappeared. he just went mute.
* apeiros
pokes Elico
<Trapper>
*prods Elico with stick
<Trapper>
I think he be dead :|
<ericwood>
he's dead, Jim
JasonZhang has joined #ruby-lang
micalexander has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
banisterfiend has joined #ruby-lang
<Trapper>
okay, who's going to get his red shirt?
momomomomo has quit [Quit: momomomomo]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JasonZhang has quit [Quit: JasonZhang]
schaerli has joined #ruby-lang
lfox has joined #ruby-lang
kgrz has joined #ruby-lang
banisterfiend has quit [Quit: Computer has gone to sleep.]
<Elico>
nokogiri just finished 2 secs ago.. which is more then 50 secs
<apeiros>
oh deary dear me
<canton7>
and I bet almost all of that was installing the docs?
uokesita_ has quit [Quit: This computer has gone to sleep]
<canton7>
so all you're really saying is that nokogiri has more docs?
_jpb__ has quit [Client Quit]
<Elico>
no..
_jpb__ has joined #ruby-lang
<Elico>
maybe..
<apeiros>
if you plan on installing it every minute, I can see the problem.
<Elico>
but not..
<Elico>
apeiros: nice!
* canton7
has never seen a library's quality measured in the number of seconds it takes to install
<Elico>
canton7: I must admit that you are right about it in a very nice way.
_jpb__ has quit [Client Quit]
<canton7>
btw which did you install first?
Tearan has joined #ruby-lang
<Elico>
libxml..
_jpb__ has joined #ruby-lang
<canton7>
fair enough, I was wondering whether there was some caching going on as well
_jpb__ has quit [Client Quit]
<Elico>
well caching is my thing...
<Elico>
be back soon...
<canton7>
anyway! the long and the short of it is that our opinion is that nokogiri is superior, and you'll get far better support here if you use nokogiri :P
richardburton has quit [Quit: Leaving.]
tubbo has quit [Ping timeout: 272 seconds]
_jpb_ has quit [Quit: leaving]
_jpb_ has joined #ruby-lang
<apeiros>
probably "no support" vs. "support" even.
_jpb__ has joined #ruby-lang
sstavrop has quit [Quit: sstavrop]
<canton7>
I was afraid someone would jump in with "I know how to use libxml-ruby! How dare you assume that I don't!", but I suspect you're probably right
BrandonMathis has joined #ruby-lang
scampbell has joined #ruby-lang
cnivolle has joined #ruby-lang
_jpb_ has quit [Client Quit]
_jpb_ has joined #ruby-lang
<apeiros>
canton7: even if
_jpb_ has quit [Client Quit]
<apeiros>
help here is probably 80% or more by a hand full of regulars
_jpb_ has joined #ruby-lang
<canton7>
true, true
_jpb_ has quit [Client Quit]
_jpb_ has joined #ruby-lang
mannyt has quit [Ping timeout: 245 seconds]
mannyt_ has joined #ruby-lang
Trapper has quit [Ping timeout: 272 seconds]
iraja has quit [Remote host closed the connection]
earthquake has quit [Quit: earthquake]
_jpb_ has quit [Client Quit]
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
_jpb__ has quit [Quit: leaving]
qba73 has quit [Remote host closed the connection]
sstavrop has joined #ruby-lang
sstavrop has quit [Client Quit]
pr0ton has joined #ruby-lang
lfox has joined #ruby-lang
Coincidental has joined #ruby-lang
sulo has quit [Remote host closed the connection]
bean__ has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 272 seconds]
sevvie has quit [Read error: Connection reset by peer]
ecnalyr has joined #ruby-lang
<yorickpeterse>
herro
skade has joined #ruby-lang
tubbo has joined #ruby-lang
uokesita_ has joined #ruby-lang
solars has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
majjoha has joined #ruby-lang
r0bby_ has quit [Read error: Connection reset by peer]
bean__ has quit [Quit: Computer has gone to sleep.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
majjoha has quit [Ping timeout: 272 seconds]
tubbo has quit [Ping timeout: 272 seconds]
ruby-lang816 has quit [Ping timeout: 250 seconds]
robbyoconnor has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
tubbo has joined #ruby-lang
mmorga has quit [Ping timeout: 248 seconds]
kurko_ has joined #ruby-lang
iraja has joined #ruby-lang
bean__ has joined #ruby-lang
mmorga has joined #ruby-lang
uokesita_ has quit [Quit: Leaving]
Coincidental has quit [Remote host closed the connection]
Pupeno has joined #ruby-lang
Pupeno has quit [Changing host]
Pupeno has joined #ruby-lang
Coincidental has joined #ruby-lang
Oloryn_lt2 has quit [Quit: Leaving.]
marcink_ has joined #ruby-lang
Coincidental has quit [Ping timeout: 260 seconds]
Pupeno has quit [Ping timeout: 272 seconds]
tbuehlmann has quit [Remote host closed the connection]
breakingthings has quit []
breakingthings has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
marcink_ has left #ruby-lang [#ruby-lang]
krzyzaq has joined #ruby-lang
cnivolle has quit [Ping timeout: 272 seconds]
Coincidental has joined #ruby-lang
styped has joined #ruby-lang
relix has joined #ruby-lang
relix has quit [Max SendQ exceeded]
pr0ton has quit [Quit: pr0ton]
<krzyzaq>
hi all
<krzyzaq>
have some problems with installation of Ruby
<apeiros>
hi krzyzaq
<krzyzaq>
can someone help?
<apeiros>
only if you actually describe your problem
<apeiros>
irb only loads core ruby and irb itself.
<apeiros>
`rails console` is what you want for a full rails environment
<apeiros>
within irb, you'd have to `require 'active_record'` and establish a DB connection yourself.
mbj has joined #ruby-lang
<krzyzaq>
ill run the rails console from terminal?
wudofyr has quit [Ping timeout: 272 seconds]
<apeiros>
yes
pumper has quit [Remote host closed the connection]
<krzyzaq>
rails console command is returnig help for the command
<krzyzaq>
rails new APP_PATH [options]
schaerli has joined #ruby-lang
cnivolle has joined #ruby-lang
<apeiros>
krzyzaq: not `rails`
<apeiros>
`rails console`
<apeiros>
also you must be in an existing rails project
<krzyzaq>
ok
<apeiros>
#rubyonrails is more appropriate channel for that kind of thing, btw.
<krzyzaq>
the second info was a winnig one :)
MaddinXx_ has joined #ruby-lang
marcink_ has joined #ruby-lang
wudofyr has joined #ruby-lang
krzyzaq has quit [Ping timeout: 260 seconds]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Coincidental has quit [Ping timeout: 272 seconds]
marcink_ has left #ruby-lang [#ruby-lang]
sstavrop has joined #ruby-lang
styped has quit [Ping timeout: 272 seconds]
MaddinXx_ has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
krzyzaq has joined #ruby-lang
<krzyzaq>
hello all
BrandonMathis has quit [Ping timeout: 250 seconds]
Elico has quit [Ping timeout: 245 seconds]
Elico has joined #ruby-lang
pr0ton has joined #ruby-lang
mannyt_ has quit [Ping timeout: 245 seconds]
mannyt has joined #ruby-lang
bastilian has quit [Read error: Connection reset by peer]
jxpx777 has joined #ruby-lang
petercooper has joined #ruby-lang
krzyzaq has quit [Ping timeout: 260 seconds]
deception has joined #ruby-lang
stamina has joined #ruby-lang
<Elico>
canton7: I am trying but something is not fit-in for me.
Scader has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
<canton7>
what are you missing?
<Elico>
I am not sure I got it how to use xpath :\
<canton7>
use css
<canton7>
it's a lot simpler
<canton7>
and perfectly adequate for your case
<Elico>
OK so just to understand what css compared to xpath?
<canton7>
they're ways of selecting/filtering nodes
<canton7>
css uses css-style syntax
qba73 has joined #ruby-lang
<Elico>
OK so I will need to nest the finindings.
<Elico>
findings
<canton7>
.css('url') will do for your case
<Elico>
it's not that simple canton7
<canton7>
or .css('resources url'), or whatever that parent tag was called
krzyzaq has joined #ruby-lang
<canton7>
that example file you showed me was that simple
<Elico>
in one metalink file there can be couple files so I need to filter couple files..
<canton7>
I've no idea what you mean by that
<Elico>
I will try to show you
lfox has joined #ruby-lang
<Elico>
the files has the xml header which states that it's utf8 xml1 etc. Then there is a metalink root which will have files child and and in each and every node\child of files there should be a file child\node
qba73 has quit [Remote host closed the connection]
<Elico>
So I want to actually get one metalink file that has metalink/files node which contains couple file nodes that I want to sort into objects in a class...
Oloryn_lt2 has joined #ruby-lang
<Elico>
I can compile my example.. manually into a metalink file..
pr0ton has quit [Quit: pr0ton]
skade has quit [Quit: Computer has gone to sleep.]