apeiros changed the topic of #ruby-lang to: Ruby 2.1.0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || RubyConf 2013 at http://www.justin.tv/confreaks
rickhull1 has joined #ruby-lang
rickhull1 is now known as ledzep420
fallenhitokiri has joined #ruby-lang
ledzep420 has left #ruby-lang [#ruby-lang]
wallerdev has joined #ruby-lang
shinnya has quit [Ping timeout: 265 seconds]
senj has quit [Quit: Textual IRC Client: www.textualapp.com]
jtw_ has joined #ruby-lang
jtw has quit [Ping timeout: 265 seconds]
jtw has joined #ruby-lang
ledestin has joined #ruby-lang
VTLob has quit [Quit: VTLob]
jtw_ has quit [Ping timeout: 248 seconds]
mucker has quit [Remote host closed the connection]
smashwilson has quit [Quit: Leaving]
r0bgleeson has joined #ruby-lang
Guest38846 has quit [Excess Flood]
wallerdev has quit [Quit: wallerdev]
EvilJStoker has joined #ruby-lang
mahlon_ is now known as mahlon
hhatch has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
makoto has joined #ruby-lang
makoto is now known as Guest34875
|jemc| has quit [Ping timeout: 272 seconds]
saarinen has quit [Quit: saarinen]
marr has quit [Ping timeout: 265 seconds]
soba has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
fijimunkii has quit [Read error: Connection reset by peer]
fijimunkii has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Ping timeout: 265 seconds]
panpainter has joined #ruby-lang
RoxasShadowRS has quit [Quit: Leaving]
kitak has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
supyo has quit [Remote host closed the connection]
EvilJStoker has quit [Excess Flood]
mykoweb has joined #ruby-lang
tkuchiki has joined #ruby-lang
EvilJStoker has joined #ruby-lang
Cakey has joined #ruby-lang
kalehv has joined #ruby-lang
panpainter has quit [Quit: panpainter]
jonr22 has quit [Remote host closed the connection]
clamstar has quit [Quit: ZNC - http://znc.in]
clamstar has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
havenwood has joined #ruby-lang
clamstar has quit [Client Quit]
clamstar has joined #ruby-lang
eban1 is now known as eban
Barrin6 has quit [Quit: Leaving]
clamstar has quit [Remote host closed the connection]
maseda has joined #ruby-lang
CaptainJet has quit []
clamstar has joined #ruby-lang
<maseda> i am getting "unexpected null" after attempting to insert this inside of a lambda method: `"event['tags'] ||= []) << "something"`. any thoughts?
mistym has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
retro|cz has quit [Ping timeout: 272 seconds]
<centrx> maseda, So it is a string inside of backticks with unmatched parentheses?
<centrx> unmatched quotation marks too
<centrx> So yeah, completely invalid syntax
<centrx> and I doubt the error it gives is "unexpected null" too
broconne has joined #ruby-lang
<maseda> centrx: my bad, plz ignore backticks
kalehv has quit [Remote host closed the connection]
mykoweb has quit [Remote host closed the connection]
kalehv has joined #ruby-lang
<maseda> centrx: my situation is fairly unique...
Xuisce has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
<maseda> i am attempting to pass ruby code to an app called logstash via a "ruby filter" that they provide
mykoweb has joined #ruby-lang
<maseda> logstash runs on jruby
elliotec has joined #ruby-lang
<maseda> i'm pretty sure jruby is throwing unexpected null
<maseda> here is what i am passing to logstash ruby filter via a "code =>" option: http://hastebin.com/wetehodaru.coffee
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
kalehv has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
broconne has quit [Ping timeout: 248 seconds]
broconne has joined #ruby-lang
jtw_ has joined #ruby-lang
jamto11 has joined #ruby-lang
jtw has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby-lang
Skinns has joined #ruby-lang
Skinns has left #ruby-lang [#ruby-lang]
fuhgeddaboudit has joined #ruby-lang
Skinns has joined #ruby-lang
<Skinns> Can anyone tell me a good ruby on rails channel? I tried #rubyonrails but it does not let me join
<centrx> Skinns, That is the one. Register your nick with Freenode and you can join
<Skinns> ok thanks
<Skinns> out of curiosity anyone ever try to use foundation 5 with ruby on rails?
<broconne> Hoping someone can point me in the right direction.. Trying to do my first bit ever of metaprogramming.. Searched a lot, and also watched The MetaProgramming video by Dave Thomas on InfoQ.. And still am not sure how to accomplish my goal here. I am working inside a specific DSL (chef) and I want to introduce a bit of meta programming. Across a set of resources in the chef DSL there is a set of common attributes. I have those attribu
<broconne> So, for example. Here is one of the resources. and it would have code like this. File '/location/for/file' do
<broconne> mode '066'
<broconne> group 'root'
<broconne> end
<broconne> owner 'root'
<centrx> !paste
<broconne> sorry.. should I pastebin it?
<centrx> If you have any more
FlyingLeap has joined #ruby-lang
<centrx> What you have there does not look like metaprogramming...
<broconne> correct, its meta programming I want to add (I think)
<broconne> I want to create an method that I put inside that do block, wherein a I pass it a class, and it sets mode,owner and root for me..
<broconne> if that makes sense.
knu has quit [Ping timeout: 272 seconds]
<broconne> but, I don't want to extend any of the classes in this DSL, because there are many differnt ones.
<centrx> The do...end is a block, and you can pass a block to a method, like: file('/location/for/file', block)
<centrx> Or rather, you can pass a Proc
<broconne> put the whole thing up there, if its clearer
<centrx> What is magic_method? perms
<broconne> what I am trying to create in ruby metaprogramming, I think :-)
<broconne> I essentially want magic_method to set the mode,owner, group of the enclsoing object
<broconne> wit the values from the object I pass it
<broconne> its the magic part that I don't know how to do, or if its possible
mehlah has joined #ruby-lang
<centrx> So why is it a question? method
<broconne> sorry, I put the question on it because that is what I don't know how to do.. not because its the standard ruby ? ending
<centrx> Okay
kalehv has joined #ruby-lang
aef has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<centrx> broconne, I am trying to find the source for what chef is doing with "file"
xcesariox has joined #ruby-lang
<broconne> Sure.. file is a type of Resource: https://github.com/opscode/chef/blob/master/lib/chef/resource.rb
<broconne> that is the base.
<broconne> That is file itself.
<broconne> And as I said before, I need it to work across more than just the File resource, that was just an example.
<centrx> Yes, it is somewhere in there
<broconne> If it was just the File resource, I cold monkeypatch it
vlad_starkov has quit [Read error: Connection reset by peer]
<broconne> so, I was looking for a more generic solution.
<centrx> Using chef may not be the best way to learn metaprogramming, since Chef appears to be doing fancy things with the block context
<broconne> true, probably not optimal, just my current problem domain
hahuang61 has joined #ruby-lang
chouhoulis has joined #ruby-lang
hahuang65 has quit [Ping timeout: 272 seconds]
<broconne> Am, I looking to do some sort of dynamic mixin? Is that what I am trying to do? if you include "magic_method" or whatever you call it in the block.. it mixes with what class its part of the do/end of? And adds its method to call self.owner,self.group.self.mode? Does that make sense?
<centrx> mixins are modules that get included in a class
mbj has joined #ruby-lang
<centrx> I am really not sure what file is doing
kalehv_ has joined #ruby-lang
<centrx> But you should be able to use #send to call the methods in this block
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
<broconne> hmm.. can you give me a pastebin example? or a link?
kalehv has quit [Read error: Connection reset by peer]
_tockitj has quit [Ping timeout: 265 seconds]
xcesariox has quit [Ping timeout: 272 seconds]
<centrx> perms.each { |action| send(action) }
<centrx> You can call any method with send
<centrx> [1,2,3].send(:max)
<centrx> my_instance.send(my_method)
<centrx> is the same as my_instance.my_method
<broconne> ok, let me give that a try
<centrx> my_instance.send(:my_method) <=> my_instance.my_method
achiu1 has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby-lang
rtl_ is now known as rtl
bzalasky has joined #ruby-lang
kalehv_ has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
mbj has quit [Quit: leaving]
kalehv has joined #ruby-lang
kalehv has quit [Read error: Connection reset by peer]
insidious has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
kalehv has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
gix has joined #ruby-lang
amclain has joined #ruby-lang
bzalasky has joined #ruby-lang
gix- has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
Skinns has quit []
vlad_starkov has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
<broconne> centrx - thanks for the help. got it working.. appreciate it.
hfp is now known as hfp`away
dm78 has quit [Remote host closed the connection]
kalehv_ has joined #ruby-lang
dm78 has joined #ruby-lang
teleological has joined #ruby-lang
kalehv has quit [Read error: Connection reset by peer]
teleological has left #ruby-lang [#ruby-lang]
yfeldblum has joined #ruby-lang
lele has quit [Ping timeout: 252 seconds]
dm78 has quit [Ping timeout: 272 seconds]
rjrj has joined #ruby-lang
arooni-mobile has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
yatish27 has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
kalehv_ has quit [Remote host closed the connection]
kalehv has joined #ruby-lang
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
kalehv has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby-lang
vpretzel has left #ruby-lang ["Adios!"]
skinny_much has quit [Quit: ZNC - http://znc.sourceforge.net]
dm78 has joined #ruby-lang
knu has joined #ruby-lang
skinny_much has joined #ruby-lang
Lewix has joined #ruby-lang
dm78 has quit [Ping timeout: 252 seconds]
kalehv has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
ohsix_ has quit [Quit: Reconnecting]
ohsix has joined #ruby-lang
havenwood has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mehlah has quit [Read error: No route to host]
broconne has quit [Quit: Leaving.]
knu has quit [Ping timeout: 272 seconds]
houhoulis has joined #ruby-lang
mucker has joined #ruby-lang
hfp`away has quit [Ping timeout: 264 seconds]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
hfp`away has joined #ruby-lang
<centrx> Quack quack
kitak has quit [Remote host closed the connection]
yatish27 has quit [Ping timeout: 272 seconds]
kitak has joined #ruby-lang
kitak_ has joined #ruby-lang
kitak has quit [Ping timeout: 245 seconds]
AKASkip has joined #ruby-lang
Guest71595 has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
vlad_starkov has joined #ruby-lang
shadoh has quit [Read error: Connection reset by peer]
dm78 has joined #ruby-lang
joelroa has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
joelroa has quit [Max SendQ exceeded]
joelroa has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
dm78 has quit [Ping timeout: 252 seconds]
arooni-mobile has quit [Ping timeout: 248 seconds]
mistym has joined #ruby-lang
Cakey has quit [Ping timeout: 265 seconds]
jsullivandigs has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
RobertBirnie has joined #ruby-lang
yatish27 has joined #ruby-lang
jamto11 has joined #ruby-lang
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
jmeeuwen has joined #ruby-lang
jtw_ has quit []
insidious has quit []
dik_dak has quit [Quit: Leaving]
houhoulis has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak has joined #ruby-lang
kalehv_ has joined #ruby-lang
kalehv has quit [Read error: Connection reset by peer]
kalehv has joined #ruby-lang
kalehv_ has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
|jemc| has quit [Ping timeout: 252 seconds]
tonni has quit [Remote host closed the connection]
D9 has joined #ruby-lang
D9 has quit [Max SendQ exceeded]
amclain has quit [Quit: Leaving]
D9 has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
kith_ has joined #ruby-lang
apeiros has joined #ruby-lang
joelroa has quit [Quit: Computer has gone to sleep.]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
vpretzel_ has joined #ruby-lang
elliotec_ has joined #ruby-lang
pkondzior____ has joined #ruby-lang
skinny_much_ has joined #ruby-lang
Karql has joined #ruby-lang
apeiros has quit [Ping timeout: 252 seconds]
floyd2_ has joined #ruby-lang
Gaelane has joined #ruby-lang
kirin` has quit [Disconnected by services]
rtl_ has joined #ruby-lang
tpope_ has joined #ruby-lang
badeball_ has joined #ruby-lang
kirin` has joined #ruby-lang
ljarvis_ has joined #ruby-lang
crankhar1er has joined #ruby-lang
jackyalcine has joined #ruby-lang
headius_ has joined #ruby-lang
Barrin6 has joined #ruby-lang
samlambe- has joined #ruby-lang
skinny_much has quit [*.net *.split]
elliotec has quit [*.net *.split]
soba has quit [*.net *.split]
Voker57 has quit [*.net *.split]
bryanl has quit [*.net *.split]
eban has quit [*.net *.split]
yugui_zzz has quit [*.net *.split]
Silex^^ has quit [*.net *.split]
floyd2 has quit [*.net *.split]
Karql_ has quit [*.net *.split]
rtl has quit [*.net *.split]
pkondzior___ has quit [*.net *.split]
kith has quit [*.net *.split]
Rickmasta has quit [*.net *.split]
samlambert has quit [*.net *.split]
crankharder has quit [*.net *.split]
jacky has quit [*.net *.split]
badeball has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
ljarvis has quit [*.net *.split]
headius has quit [*.net *.split]
GaelanAintAround has quit [*.net *.split]
tpope has quit [*.net *.split]
arBmind has joined #ruby-lang
pkondzior____ is now known as pkondzior___
centrx has quit [Quit: Leaving]
Rickmasta has joined #ruby-lang
eban has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Voker57 has joined #ruby-lang
Silex^^ has joined #ruby-lang
Barrin6 has quit [Quit: Leaving]
TvL2386 has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 265 seconds]
knu has joined #ruby-lang
albioner has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bryanl has joined #ruby-lang
elliotec_ has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 272 seconds]
yugui_zzz has joined #ruby-lang
jamto11 has quit [Remote host closed the connection]
kalehv has quit [Remote host closed the connection]
kalehv has joined #ruby-lang
jamto11 has joined #ruby-lang
charliesome has joined #ruby-lang
kalehv has quit [Ping timeout: 252 seconds]
lele has joined #ruby-lang
Markvilla has joined #ruby-lang
albioner has quit [Quit: Laptop went to sleep. ZZZzzz…]
albioner has joined #ruby-lang
albioner has quit [Max SendQ exceeded]
yatish27 has quit [Remote host closed the connection]
albioner has joined #ruby-lang
dik_dak has joined #ruby-lang
albioner has quit [Client Quit]
apeiros has joined #ruby-lang
ecnalyr has joined #ruby-lang
dagobah has joined #ruby-lang
dik_dak has quit [Client Quit]
Szop_ has joined #ruby-lang
elliotec has joined #ruby-lang
Cakey has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
skade has joined #ruby-lang
michd is now known as MichD
rjrj has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
Asher has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
soba has joined #ruby-lang
ikrima has quit [Ping timeout: 272 seconds]
Guest34875 has quit [Remote host closed the connection]
elliotec has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
Cakey has quit [Ping timeout: 272 seconds]
Markvilla has quit [Ping timeout: 272 seconds]
mistym has quit [Remote host closed the connection]
Markvilla has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
meinside has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
makoto has joined #ruby-lang
makoto is now known as Guest64354
ssb123 has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
kith_ is now known as kith
soba has quit [Ping timeout: 246 seconds]
solars has joined #ruby-lang
ssb123 has quit [Ping timeout: 240 seconds]
Cakey has joined #ruby-lang
knu has quit [Ping timeout: 272 seconds]
kirin` has quit [Ping timeout: 272 seconds]
kirin` has joined #ruby-lang
kalehv has joined #ruby-lang
charliesome has joined #ruby-lang
Markvilla has quit [Quit: Computer has gone to sleep.]
kalehv has quit [Ping timeout: 272 seconds]
_tockitj has joined #ruby-lang
AKASkip has joined #ruby-lang
yatish27 has joined #ruby-lang
bzalasky has quit []
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
Cakey has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby-lang
benlovell has joined #ruby-lang
Guest35109 is now known as sonne
arBmind has quit [Quit: Leaving.]
Cakey has joined #ruby-lang
symm- has joined #ruby-lang
mikecmpbll has joined #ruby-lang
tonni has joined #ruby-lang
tonni has quit [Remote host closed the connection]
tonni has joined #ruby-lang
jsrn has joined #ruby-lang
Szop_ has quit [Ping timeout: 252 seconds]
meinside has left #ruby-lang [#ruby-lang]
<yorickpeterse> morning
arBmind has joined #ruby-lang
elia has joined #ruby-lang
arBmind has quit [Read error: Connection reset by peer]
arBmind has joined #ruby-lang
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby-lang
Szop_ has joined #ruby-lang
bin7me has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
RoxasShadowRS has joined #ruby-lang
benlovell has joined #ruby-lang
soba has joined #ruby-lang
Cakey has quit [Ping timeout: 272 seconds]
darix has quit [Remote host closed the connection]
Guest64354 has quit [Remote host closed the connection]
Markvilla has joined #ruby-lang
darix has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
Lewix has joined #ruby-lang
AKASkip has quit [Quit: Leaving.]
nXqd has joined #ruby-lang
AKASkip has joined #ruby-lang
Pupeno_w has joined #ruby-lang
dhoss has joined #ruby-lang
jmeeuwen has quit [Ping timeout: 264 seconds]
Silex^^ is now known as Silex
Szop_ has quit [Ping timeout: 246 seconds]
phansch has joined #ruby-lang
marr has joined #ruby-lang
cnivolle has joined #ruby-lang
cnivolle_ has joined #ruby-lang
Cakey has quit [Ping timeout: 245 seconds]
<ljarvis_> morning
ljarvis_ is now known as ljarvis
cnivolle has quit [Ping timeout: 246 seconds]
jmeeuwen has joined #ruby-lang
rue_XIW has joined #ruby-lang
Thanatermesis has joined #ruby-lang
rue_XIW has quit [Remote host closed the connection]
rue_XIW has joined #ruby-lang
knu has joined #ruby-lang
jmeeuwen has quit [Ping timeout: 264 seconds]
mucker has quit [Remote host closed the connection]
makoto_ has joined #ruby-lang
kitak_ has joined #ruby-lang
kitak has quit [Ping timeout: 245 seconds]
makoto_ has quit [Ping timeout: 250 seconds]
postmodern has quit [Quit: Leaving]
pabloh has joined #ruby-lang
diegoviola has joined #ruby-lang
mehlah has joined #ruby-lang
Cakey has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
jmeeuwen has joined #ruby-lang
<yorickpeterse> lawl
<yorickpeterse> This one website shows their internal APIs docs upon invalid requests
<yorickpeterse> yet the status is 200 OK
<yorickpeterse> well thank you for that, now I know how to actually use the API
diegoviola has quit [Changing host]
diegoviola has joined #ruby-lang
yatish27 has quit [Ping timeout: 246 seconds]
<apeiros> ah sadly, it's not uncommon to deliver error messages with status 200 :(
yfeldblum has joined #ruby-lang
<yorickpeterse> it's not even the "API" that we're using
<yorickpeterse> granted we're sneaky bastards here
<yorickpeterse> lawl, so apparently I need to change the country code we sent to match the subdomain
<yorickpeterse> silly little travel websites
tpope_ has quit [Quit: Reconnecting]
tpope has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
soba has quit [Ping timeout: 250 seconds]
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
jmeeuwen_ has joined #ruby-lang
jmeeuwen_ is now known as jmeeuwen
vlad_starkov has joined #ruby-lang
nichtdiebohne has joined #ruby-lang
ADITYA has joined #ruby-lang
Abhishek has joined #ruby-lang
Szop_ has joined #ruby-lang
ADITYA has quit [Client Quit]
bin7me has quit [Ping timeout: 250 seconds]
AdityaRaj has joined #ruby-lang
retro|cz has joined #ruby-lang
broconne has joined #ruby-lang
heftig has joined #ruby-lang
broconne has quit [Ping timeout: 250 seconds]
Abhishek has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Abhishek has joined #ruby-lang
cnivolle has joined #ruby-lang
relix has joined #ruby-lang
cnivolle_ has quit [Ping timeout: 246 seconds]
artm has joined #ruby-lang
Abhishek has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Abhishek has joined #ruby-lang
Abhishek has quit [Client Quit]
mehlah has quit [Quit: Leaving...]
Lewix has quit [Remote host closed the connection]
makoto_ has joined #ruby-lang
AKASkip has quit [Ping timeout: 246 seconds]
AdityaRaj has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
makoto_ has quit [Ping timeout: 245 seconds]
AdityaRaj has joined #ruby-lang
AdityaRaj has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.2]
relix has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby-lang
ndrst_ is now known as ndrst
diegoviola has quit [Client Quit]
diegoviola has joined #ruby-lang
yatish27 has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
yatish27 has quit [Ping timeout: 250 seconds]
DouweM has joined #ruby-lang
shinnya has joined #ruby-lang
[dmp] has joined #ruby-lang
bin7me has joined #ruby-lang
skade has joined #ruby-lang
marcofernandez__ has joined #ruby-lang
LanceHaig has quit [Changing host]
LanceHaig has joined #ruby-lang
marcofernandez_ has quit [Ping timeout: 252 seconds]
mucker has joined #ruby-lang
Elico has joined #ruby-lang
miqui has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Mon_Ouie has joined #ruby-lang
<ljarvis> derp
<yorickpeterse> there's people playing Mario kart in the break area
<yorickpeterse> this is work, no fun is allowed
* yorickpeterse cracks whip
d4rkr4i has joined #ruby-lang
makoto_ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
Markvilla has quit [Quit: Computer has gone to sleep.]
kitak_ has quit [Remote host closed the connection]
kro___ is now known as kro_
makoto_ has quit [Ping timeout: 245 seconds]
lucas has quit [Quit: leaving]
lucas_ has quit [Quit: leaving]
sepp2k has joined #ruby-lang
lucas has joined #ruby-lang
michael_mbp has joined #ruby-lang
relix has joined #ruby-lang
arBmind has left #ruby-lang [#ruby-lang]
bin7me has quit [Ping timeout: 245 seconds]
AKASkip has joined #ruby-lang
relix has quit [Ping timeout: 245 seconds]
tonni has quit [Remote host closed the connection]
sandbags has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
yatish27 has joined #ruby-lang
cannie has joined #ruby-lang
prc has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
makoto_ has joined #ruby-lang
tkuchiki has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
d4rkr4i has quit [Ping timeout: 272 seconds]
makoto_ has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
relix has joined #ruby-lang
<apeiros> gnufied: ping
<gnufied> pong
<apeiros> you worked on rubygems/bundler dependency resolution?
<gnufied> A while back.
<gnufied> but since then Smit has been working on it.
<apeiros> is it reasonably easy to call from code?
sandbags has quit []
<gnufied> the algorithm? yes
<yorickpeterse> apeiros: what dark magic are you cooking up?
<gnufied> or hold on
<apeiros> i.e., can I do something like Bundler.resolve_dependencies_for([['gemname', '1.0'], ['gemname2', '>= 0.9'], …]) ?
<apeiros> yorickpeterse: being stupidly opinionated in my mobile webframework, that's all :)
jonr22 has joined #ruby-lang
VTLob has joined #ruby-lang
diegoviola has quit [Ping timeout: 246 seconds]
diegovio1 has joined #ruby-lang
<gnufied> if I had to redo in another environment, I will use libsolv ruby bindings done by Suse guys
cannie has quit []
diegovio1 is now known as diegoviola
<apeiros> libsolv is a native lib I suppose?
paulkim has joined #ruby-lang
sandbags has joined #ruby-lang
<gnufied> yep
<gnufied> two things if you want to use Bundler code there
<gnufied> you are going to need, SpecSet class
<gnufied> and then a way to represent requiremenets same as bundler I think
<gnufied> and then you can call resolver.start(requirements)
symm- has quit [Ping timeout: 272 seconds]
<apeiros> ok
nszceta has joined #ruby-lang
skade has joined #ruby-lang
Johz has joined #ruby-lang
skade has quit [Client Quit]
skade has joined #ruby-lang
skade has quit [Client Quit]
skade has joined #ruby-lang
tkuchiki has joined #ruby-lang
ahf has quit [Quit: Bye]
ahf has joined #ruby-lang
ahf has joined #ruby-lang
ahf has quit [Changing host]
yatish27 has quit [Remote host closed the connection]
Markvilla has joined #ruby-lang
EngierkO_ has joined #ruby-lang
EngierkO has quit [Ping timeout: 272 seconds]
<apeiros> gnufied: may I poke you about that issue for help later today? (maybe in ~7h)
<gnufied> sure
<apeiros> cool, thanks
<darix> libsolv \o/
<gnufied> sup!
<gnufied> :-)
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> gnufied: wrt libsolv: I'd prefer not to reinvent the wheel for this particular issue. if the work is halfway usable done already, I'll use that :)
<apeiros> also means I can shift blame easily in case of bugs :o)
<darix> apeiros: i think the solver stuff should be relatively rock solid ;)
<apeiros> I'd think so too
charliesome has joined #ruby-lang
<gnufied> somtimes I am not sure if other ruby implementations are holding back or moving ruby forward. :-)
<apeiros> but hooking libsolv into understanding different gem requirement notations leaves enough opportunities to introduce a bug
<apeiros> and since I have the precise same requirement as bundler (put some gem deps in, get specific versions out), I want to reuse its work
<darix> gnufied: probably both. you just have to make sure the sum is greater than 0 :)
<gnufied> heh
skade has quit [Ping timeout: 250 seconds]
charliesome has quit [Client Quit]
<apeiros> gnufied: of course, Bundler::SpecSet has *zero* documentation
<gnufied> Bundler code is mostly shitty I would say and I have tried people to use YARD to document things
<gnufied> but then I myself have not touched that stuff in last 3-4 months
<gnufied> there is some good stuff obviously.
<gnufied> but documentation is really crappy
toretore has quit [Quit: Leaving]
toretore has joined #ruby-lang
skade has joined #ruby-lang
imperator has joined #ruby-lang
<imperator> greetings programs
broconne has joined #ruby-lang
<workmad3> greetings programmer
<r0bgleeson> program says, [BUG] Segmentation Fault
skade has quit [Client Quit]
vpretzel_ is now known as vpretzel
paulkim has quit [Quit: paulkim]
<apeiros> ueh? why on earth does bundler put man pages into lib/man?!?
<apeiros> teh fuck?
<r0bgleeson> where do they usually go?
skade has joined #ruby-lang
rtlong has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
DevDoo has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
DevDoo has joined #ruby-lang
<r0bgleeson> maybe doc/man.
<apeiros> gnufied: also funny how Bundler::Resolver.resolve's docs seem to be completely out of date…
broconne has quit [Quit: Leaving.]
yfeldblum has joined #ruby-lang
<r0bgleeson> welcome to ruby? :P
<r0bgleeson> have to go through the code most of the time sadly.
DevDoo has quit [Ping timeout: 245 seconds]
<gnufied> no thats true actually, I would ticket it even.
miqui has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
makoto_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
<apeiros> gotta get back at company work now. this is private stuff :)
<apeiros> thanks for the help so far. seems quite involved to go from a gem-dep list to a gem-list :-S
micalexander has quit [Ping timeout: 250 seconds]
makoto_ has quit [Ping timeout: 250 seconds]
skade has joined #ruby-lang
_tockitj has quit [Ping timeout: 250 seconds]
skade has quit [Client Quit]
<r0bgleeson> i've come to the semi-conclusion that API documentation alongside code isn't worth it, often distracting(for those working on the code), & probably read by few, so I keep doc/(a wiki-like thing) to compensate. it's not science, sometimes when code comment is small it's fine.
<r0bgleeson> maybe just a comment to reference a file and build docs via that would work
<r0bgleeson> there's also an annoying cost to keeping the docs up to date with code change.
<gnufied> there are plugins out there for popular editors/IDEs that hide the comments from code if you want them hidden
<r0bgleeson> sure, but then I definitely won't update the docs when I make a code change :)
<r0bgleeson> it doesn't make the situation better for a code reader on github say, though
<r0bgleeson> my random thought was that through convention(doc/myclass/method.md), 'yardoc'(or similar) would build docs via that.
<r0bgleeson> instead of them existing inline with the code.
<r0bgleeson> you could also support different markup languages for each method, or class body, like method.{md,rdoc,textile} etc.
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby-lang
mykoweb has joined #ruby-lang
broconne has joined #ruby-lang
guns has joined #ruby-lang
jonr22 has quit [Remote host closed the connection]
DevDoo has joined #ruby-lang
DevDoo has quit [Client Quit]
skade has joined #ruby-lang
ItSANgo has quit [Quit: Leaving...]
dorei has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
ItSANgo has joined #ruby-lang
ecnalyr has quit [Ping timeout: 240 seconds]
MindfulMonk has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mucker has quit [Remote host closed the connection]
relix has joined #ruby-lang
rindolf has joined #ruby-lang
yfeldblum has joined #ruby-lang
breakingthings has joined #ruby-lang
<rindolf> Hi all. What is the recommended module/gem/etc. for parsing XML (or HTML in my case) with Ruby and extracting data out of it? And this seems suspicious - http://www.rubyxml.com/ (first link on https://duckduckgo.com/?q=ruby%20xml ).
elia has quit [Ping timeout: 250 seconds]
mehlah has joined #ruby-lang
yfeldblum has quit [Ping timeout: 246 seconds]
<r0bgleeson> rindolf: a lot of people use nokogiri for that and would be my recommended choice, there's also "rexml" in stdlib but wouldn't recommend it.
nszceta has quit [Remote host closed the connection]
<rindolf> r0bgleeson: OK, thanks, I'll try nokogiri.
<r0bgleeson> yw
<rindolf> http://stackoverflow.com/questions/8798179/xml-parsing-in-ruby - wow, they are trying to run Ruby and REXML on a 64-bit AIX box.
guns has quit [Quit: guns]
<darix> rindolf: after "64-bit AIX box" is enough sign for "crazy" ;)
<darix> rindolf: depends on the size of your documents and how much data you plan to munch
makoto_ has joined #ruby-lang
<darix> for small sizes rexml might be ok
<rindolf> darix: hi.
<rindolf> darix: are you the darix whom I knew on #svn ?
<darix> probably
<rindolf> darix: ah.
<darix> i am even there atm :p
TvL2386 has quit [Remote host closed the connection]
jtw has joined #ruby-lang
<AKASkip> nothing wrong with rexml
bradcliffe has joined #ruby-lang
yatish27 has joined #ruby-lang
micalexander has joined #ruby-lang
mrevd has joined #ruby-lang
<r0bgleeson> sure, rexml is an option too, you could give it a try. odds are sooner or later you'll move to nokogiri though(in my experience).
makoto_ has quit [Ping timeout: 246 seconds]
<drasch> darix, gnufied: we tried with unicorn (instead of passenger) last night and we seem to get no more errors
<r0bgleeson> drasch: cool, congreats! the SIGSEGV you showed happened inside new_relic, not sure if you got that message or not
<yorickpeterse> REXL is never an option
<yorickpeterse> * rexml
enebo has joined #ruby-lang
<darix> r0bgleeson: given he reported segfaults with lots of random places. i would bet on some memory corruption
sandbags has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
<darix> could even be hardware
<r0bgleeson> darix: yeah, but of the three logs, only one had a ruby backtrace.
<r0bgleeson> the rest were just log's of "[BUG] segmentation fault" from passenger.
<drasch> darix: we've seen this across many different hosts, hardware and virtualized
<drasch> at least 9 that I know of
jamto11 has joined #ruby-lang
<r0bgleeson> did you check out the file & line we pasted from the segv inside newrelic?
<r0bgleeson> and also try deploying without new_relic?
<r0bgleeson> i guess it's moot if it's fixed now
jtw_ has joined #ruby-lang
tonni has joined #ruby-lang
<drasch> r0bgleeson: we've tried without newrelic, and we've seen errors all over the place in different spots
<r0bgleeson> sucks :(
<drasch> segfault1: newrelic, segfault2: output_safety in activesupport, segfault3: journey gem
crankhar1er has quit [Quit: leaving]
crankharder has joined #ruby-lang
<r0bgleeson> from the logs in bugs.ruby-lang.org, segfault2/3 didn't seem to have anything
jtw has quit [Ping timeout: 272 seconds]
<r0bgleeson> just logging info from passenger reporting a sigsegv
<r0bgleeson> but i may have missed it
ecnalyr has joined #ruby-lang
mbj has joined #ruby-lang
<darix> drasch: ok
smashwilson has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
<drasch> we're going to re-run the test of spawn methods in passenger to see if that's causing an issue-- we have results from earlier that say using direct vs. smart spawn didn't make a difference
<r0bgleeson> drasch: that's not in your log in redmine/bugs
<r0bgleeson> if you want it fixed(maybe it has been?) you should include that
<r0bgleeson> ah i see, it actually is in there
<r0bgleeson> it's extremely hard to dicipher though
<drasch> r0bgleeson: ok, I'm sure we both thought we were going slightly mad
yatish27_ has joined #ruby-lang
yatish27 has quit [Read error: Connection reset by peer]
<r0bgleeson> hehe, i'm already 110% mad
<darix> drasch: without understanding segfaults you cant file bugreportss that will get those bugs fixed.
<darix> yes debugging memory corruptions is pita
<darix> but someone has to do it
yatish27_ has quit [Remote host closed the connection]
<r0bgleeson> a way to reproduce the problem always helps the person on the other end
<darix> r0bgleeson: sure
<r0bgleeson> otherwise it could become a lot of work trying to figure out how to reproduce the exact environment that caused the error
<r0bgleeson> from the new_relic one, it seemed to happen in upcase!(String) of all things
<r0bgleeson> bb
<r0bgleeson> brb
skade has quit [Quit: Computer has gone to sleep.]
ssb123 has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
<darix> drasch: yesterday you said with unicorn you also saw those crashes.
cnivolle has quit [Remote host closed the connection]
<gnufied> drasch: good to hear
shinnya has quit [Ping timeout: 272 seconds]
cnivolle has joined #ruby-lang
ikrima has joined #ruby-lang
skade has joined #ruby-lang
skade has quit [Client Quit]
<drasch> darix: right, I'm not advocating the "don't bother" attitude w/ segfaults
skade has joined #ruby-lang
<drasch> darix: that was my understanding, it seems I was mistaken
phansch has quit [Ping timeout: 252 seconds]
mykoweb has quit [Remote host closed the connection]
imperator has quit [Ping timeout: 245 seconds]
mykoweb has joined #ruby-lang
<drasch> (i was mistaken re: unicorn)
mykoweb has quit [Remote host closed the connection]
<rindolf> Working now.
<rindolf> I had a problem with .css('td') returning an empty list (I guess due to the first row that contained <th>s).
<rindolf> Took me a while to debug.
skade has quit [Quit: Computer has gone to sleep.]
<rindolf> http://pastie.org/8698129 - that's my code.
diegoviola has quit [Ping timeout: 272 seconds]
<rindolf> Quit short.
<rindolf> Quite short.
skade has joined #ruby-lang
tylersmith has joined #ruby-lang
skade has quit [Client Quit]
<yorickpeterse> rindolf: you can just do `tr.css('td').each`
<yorickpeterse> saves you having to check if it's there
phansch has joined #ruby-lang
<rindolf> yorickpeterse: but I need only the first one and the last one.
heftig has quit [Quit: Quitting]
<yorickpeterse> ah
<rindolf> yorickpeterse: and if there's more than one td (which is usually the case) then I'll iterate several times.
prc has quit [Ping timeout: 245 seconds]
nathanstitt has joined #ruby-lang
Szop_ has quit [Ping timeout: 246 seconds]
retro|cz has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby-lang
rippa has joined #ruby-lang
yfeldblum has joined #ruby-lang
seanlinsley has quit [Quit: …]
yfeldblum has quit [Ping timeout: 250 seconds]
AKASkip has quit [Ping timeout: 250 seconds]
d4rkr4i has joined #ruby-lang
makoto_ has joined #ruby-lang
robmiller has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
bantic has joined #ruby-lang
skade has joined #ruby-lang
makoto_ has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
yatish27 has joined #ruby-lang
rippa has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
Guest90798 has quit [Quit: Guest90798]
jperry has joined #ruby-lang
FiXato|VPS has quit [Quit: Quit my IRC client. I'll probably be back soon after a restart of it.]
symm- has joined #ruby-lang
FiXato has joined #ruby-lang
FiXato is now known as Guest5584
arooni-mobile has joined #ruby-lang
<darix> rindolf: btw: not every html document is a valid xml document. hope you keep that in mind
<darix> yorickpeterse just learned that the hard way
havenwood has quit [Ping timeout: 250 seconds]
Guest5584 is now known as FiXato
<rindolf> darix: yes, I know.
<rindolf> darix: I used Nokogiri's HTML parser.
<rindolf> On HTML.
<darix> ok
<rindolf> Nokogiri seems nifty.
<yorickpeterse> darix: hush
arBmind1 has joined #ruby-lang
<darix> hm?
<yorickpeterse> re nokogiri
phansch has quit [Read error: Connection reset by peer]
phansch_ has joined #ruby-lang
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bradcliffe has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
mistym has joined #ruby-lang
|jemc| has joined #ruby-lang
apeiros has joined #ruby-lang
d4rkr4i has quit [Quit: Leaving.]
Markvilla has quit [Quit: Computer has gone to sleep.]
phansch_ has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 272 seconds]
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby-lang
bjh13 has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
senj has joined #ruby-lang
nszceta has joined #ruby-lang
saarinen has joined #ruby-lang
seanlinsley has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
seanlinsley has quit [Client Quit]
micalexander has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby-lang
seanlinsley has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
MindfulMonk has quit [Ping timeout: 272 seconds]
d4rkr4i has joined #ruby-lang
ikrima has quit [Ping timeout: 272 seconds]
ikrima has joined #ruby-lang
micalexander has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
jsullivandigs has joined #ruby-lang
jamto11 has quit []
miqui has quit [Remote host closed the connection]
solars has quit [Ping timeout: 250 seconds]
miqui has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
rue|w has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby-lang
havenwood has joined #ruby-lang
Markvilla has joined #ruby-lang
havenn has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
makoto_ has joined #ruby-lang
makoto_ has quit [Ping timeout: 272 seconds]
robmiller1 has joined #ruby-lang
robmiller has quit [Ping timeout: 244 seconds]
robmiller1 is now known as robmiller
kirin` has quit [Ping timeout: 272 seconds]
kalehv has joined #ruby-lang
senj has quit [Quit: Sleep Now]
senj has joined #ruby-lang
robmiller has quit [Quit: Leaving.]
elliotec has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
dagobah has quit [Quit: Leaving...]
yatish27 has quit []
sandbags has quit []
phansch has joined #ruby-lang
kirin` has joined #ruby-lang
jsrn has quit [Ping timeout: 246 seconds]
ssb123_ has joined #ruby-lang
centrx has joined #ruby-lang
ssb123_ has quit [Read error: Connection reset by peer]
ssb123_ has joined #ruby-lang
nszceta has quit [Remote host closed the connection]
heftig has joined #ruby-lang
leandrosnunes has joined #ruby-lang
Szop_ has joined #ruby-lang
ssb123 has quit [Ping timeout: 240 seconds]
<yorickpeterse> bah, nokogiri sax api
phansch has quit [Quit: Leaving]
<r0bgleeson> Nokogiri::Saxophone.play ?
jxpx777 has joined #ruby-lang
Cakey has quit [Ping timeout: 245 seconds]
badeball_ is now known as badeball
anjen has joined #ruby-lang
mistym has quit [Remote host closed the connection]
dm78 has joined #ruby-lang
pabloh has quit [Quit: Saliendo]
kalehv has quit [Remote host closed the connection]
kalehv has joined #ruby-lang
mucker has joined #ruby-lang
kalehv has quit [Ping timeout: 272 seconds]
RobertBirnie has joined #ruby-lang
ssb123_ has quit [Remote host closed the connection]
Thanatermesis has left #ruby-lang ["ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ"]
ssb123 has joined #ruby-lang
<ericwood> Nokogiri is nifty
<ericwood> I wish we still had a library that would do cleaning for broken markup, though, like hpricot did :(
hahuang61 has quit [Ping timeout: 245 seconds]
ssb123_ has joined #ruby-lang
ssb123 has quit [Read error: Connection reset by peer]
<drbrain> apeiros: you can also look at the RubyGems resolver in 2.2+, might be a bit easier to call into
<drbrain> apeiros: I can guide you through it in ~ 3 hours
vlad_starkov has quit [Remote host closed the connection]
CaptainJet has joined #ruby-lang
ecnalyr has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
<whitequark> ericwood: roundtrip it through nokogiri?
retro|cz has joined #ruby-lang
anjen has quit [Quit: anjen]
jtw_ has quit []
Cakey has joined #ruby-lang
jonr22 has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 246 seconds]
deception has joined #ruby-lang
jsrn has joined #ruby-lang
makoto_ has joined #ruby-lang
Cakey has quit [Read error: Connection reset by peer]
nszceta has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
benlovel1 has joined #ruby-lang
makoto_ has quit [Ping timeout: 250 seconds]
Xzyx987X has quit [Read error: Connection reset by peer]
ironcamel has quit [Read error: Operation timed out]
imperator has joined #ruby-lang
Thana` has joined #ruby-lang
Thana` has joined #ruby-lang
<imperator> strace?
benlovell has quit [Ping timeout: 272 seconds]
ironcamel has joined #ruby-lang
<apeiros> drbrain: awesome! will certainly make use of that gracious offer!
<apeiros> using rubygems itself would also rid me of bundler as a dependency
paul__k has joined #ruby-lang
ecnalyr has joined #ruby-lang
headius_ is now known as headius
benlovel1 has quit [Ping timeout: 245 seconds]
paul__k is now known as paul_k
micalexander has quit [Write error: Broken pipe]
micalexander has joined #ruby-lang
ssb123_ has quit [Remote host closed the connection]
maseda has left #ruby-lang [#ruby-lang]
FiXato has quit [Excess Flood]
Mon_Ouie has quit [Ping timeout: 250 seconds]
ssb123 has joined #ruby-lang
FiXato has joined #ruby-lang
mikecmpbll has joined #ruby-lang
FiXato is now known as Guest26978
Thana` has left #ruby-lang ["ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ"]
ssb123_ has joined #ruby-lang
ssb123 has quit [Read error: Connection reset by peer]
Szop_ has quit [Remote host closed the connection]
micalexander has quit [Ping timeout: 245 seconds]
nszceta has quit [Remote host closed the connection]
jonr22 has quit [Remote host closed the connection]
ssb123_ has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
timelord_cout is now known as cout
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
hfp`away is now known as hfp
chouhoulis has quit [Ping timeout: 250 seconds]
saarinen has quit [Quit: saarinen]
arBmind1 has quit [Quit: Leaving.]
arBmind has joined #ruby-lang
chouhoulis has joined #ruby-lang
enebo has quit [Quit: enebo]
arBmind has left #ruby-lang [#ruby-lang]
kn8wolf has joined #ruby-lang
wallerdev has joined #ruby-lang
hahuang61 has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
kn8wolf has left #ruby-lang [#ruby-lang]
enebo has joined #ruby-lang
AKASkip has joined #ruby-lang
MichD is now known as michd
workmad3 has quit [Ping timeout: 245 seconds]
w1zeman1p has joined #ruby-lang
tdy has quit [Quit: WeeChat 0.4.2]
tdy has joined #ruby-lang
alekst has joined #ruby-lang
ikrima has quit [Ping timeout: 246 seconds]
enebo has quit [Ping timeout: 250 seconds]
enebo has joined #ruby-lang
tylersmith has joined #ruby-lang
rue|w has joined #ruby-lang
jonr22 has joined #ruby-lang
mbj has quit [Quit: leaving]
senj has quit [Quit: Sleep Now]
ikrima has joined #ruby-lang
senj has joined #ruby-lang
w1zeman1p has quit [Remote host closed the connection]
arooni-mobile__ has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
imperator has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
momomomomo has joined #ruby-lang
makoto_ has joined #ruby-lang
alekst has quit [Quit: Leaving...]
<ericwood> whitequark: doesn't work that way
<ericwood> whitequark: nokogiri will tell you errors, but it doesn't really remove them from what I can tell
<ericwood> going back to a string includes them again
<ericwood> granted, I didn't spend a ton of time on it
makoto_ has quit [Ping timeout: 250 seconds]
vlad_starkov has joined #ruby-lang
<whitequark> ericwood: hmm, perhaps
<whitequark> I'm pretty sure there is an option to control that
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
saarinen has joined #ruby-lang
<ericwood> idk
<ericwood> I threw in the towel and said 'fuck malformed markup'
<ericwood> wrote some stuff to clean up things
<ericwood> used regex
nichtdiebohne has quit [Quit: Linkinus - http://linkinus.com]
<ericwood> went home and wondered how I live with myself
skade has joined #ruby-lang
arBmind has joined #ruby-lang
skade has quit [Ping timeout: 272 seconds]
rindolf has quit [Quit: Leaving]
ggherdov_ has quit [Ping timeout: 264 seconds]
havenwood has quit []
elliotec has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
havenwood has joined #ruby-lang
ggherdov_ has joined #ruby-lang
micalexander has quit [Ping timeout: 250 seconds]
elliotec has joined #ruby-lang
benanne has joined #ruby-lang
yfeldblum has joined #ruby-lang
havenwood has quit [Ping timeout: 250 seconds]
arBmind has quit [Quit: Leaving.]
yfeldblum has quit [Remote host closed the connection]
<yorickpeterse> ericwood: the word you're looking for is "sadism"
bahar has quit [Changing host]
bahar has joined #ruby-lang
<yorickpeterse> Also re: errors, part of the reason for using Nokogiri is that it's capable of handling invalid stuff without complaining (too much)
<ericwood> yorickpeterse: yeah, I ran into issues with it spitting invalid stuff back out
<yorickpeterse> heh
<yorickpeterse> should've used REXML, then you would've never reached that point :>
<ericwood> I find that every time I have to deal with html from arbitrary sources I get fucked over
benlovell has joined #ruby-lang
<bahar> hey.... if i wanted to create a matrix from a collection of arrays with different row lengths, what should i use? Matrix only deals with lines of even row lengths, it looks like.
benlovell has quit [Client Quit]
<centrx> That's the definition of a matrex
<darix> bahar: array of arrays?
<centrx> And...it's gone
jtw has joined #ruby-lang
imperator has joined #ruby-lang
broconne has quit [Read error: Connection reset by peer]
alekst has joined #ruby-lang
__butch__ has joined #ruby-lang
workmad3 has joined #ruby-lang
mehlah has joined #ruby-lang
mucker has quit []
makoto_ has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
deens has joined #ruby-lang
havenwood has joined #ruby-lang
yfeldblum has joined #ruby-lang
mucker has joined #ruby-lang
<ericwood> matrex
makoto_ has quit [Ping timeout: 250 seconds]
<centrx> mattrex
d4rkr4i has quit [Quit: Leaving.]
vlad_sta_ has joined #ruby-lang
cnivolle has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby-lang
<apeiros> drbrain: seems halfway intuitive. deps = [Gem::Dependency.new('haml', '>= 4'), Gem::Dependency.new('rack', '>= 1.5')]; puts Gem::Resolver.new([dep1, dep2]).resolve.map(&:full_name)
<apeiros> s/halfway/reasonably/
<apeiros> does that look like how I should be doing this?
imperator has quit [Ping timeout: 272 seconds]
mrevd has quit [Quit: Leaving.]
vlad_sta_ has quit [Write error: Broken pipe]
<apeiros> should of course have been `deps` instead of `[dep1, dep2]`
deens has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dik_dak has joined #ruby-lang
<bahar> centrx / ericwood: say first line is 1 number, second line is 2 numbers, 3rd line is 3 numbers. Matrix isn't cutting it. Is there another method that would handle that scenario?
<drbrain> apeiros: IIRC, pretty much
<drbrain> I just got back to my computer, so give me a second to check
arBmind has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
solars has joined #ruby-lang
clamstar has quit [Quit: ZNC - http://znc.in]
deens has joined #ruby-lang
Pupeno_w has quit [Ping timeout: 272 seconds]
arooni-mobile__ has quit [Ping timeout: 246 seconds]
elliotec has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
rhodee has joined #ruby-lang
ssb123_ has joined #ruby-lang
ssb123__ has joined #ruby-lang
ssb123_ has quit [Read error: Connection reset by peer]
ssb123 has quit [Ping timeout: 240 seconds]
jsilver has joined #ruby-lang
<drbrain> the Gem::Dependency has to be wrapped in a Gem::Resolver::DependencyRequest but there's a slightly easier way…
<jsilver> Rooby: Gives programmers a funny little feeling inside
deens has quit [Remote host closed the connection]
<apeiros> drbrain: hm? it worked without such a wrapping for me, and your test doesn't seem to wrap either?
<drbrain> apeiros: line 148 wraps it, but I guess it will work without
<apeiros> make_dep is just Gem::Dependency.new(name, *req)
<drbrain> oh, heh
<apeiros> unless I'm overlooking something
<drbrain> then I'm misremembering
<apeiros> I noticed that Gem::Resolver.new(deps) was quite slow (took ~400ms here). I assume it fetches some informations?
elliotec has joined #ruby-lang
<drbrain> by default it looks up gems remotely
<drbrain> err, hrm, it shouldn't do any lookups until #resolve
<drbrain> let me check…
* apeiros is currently looking into the code to actually download/install the resolved gems into a custom dir
<drbrain> yes, it does a lookup by default
<drbrain> the default set should probably be BestSet instead of IndexSet
mrevd has joined #ruby-lang
<drbrain> apeiros: if you only need resolution from the installed gems you could use CurrentSet
<apeiros> no, I won't know whether they're installed already or not
<drbrain> BestSet is not much faster since it probes the sources to see if the bundler API is supported
<apeiros> what's the difference between BestSet and IndexSet?
<drbrain> BestSet uses APISet if it is supported (bundler API) or IndexSet if it is not (marshal index)
<apeiros> ah
<drbrain> there's a DNS SRV lookup and a HEAD request involved
<apeiros> so IndexSet will download that huge marshal thing
<drbrain> yes
<apeiros> can IndexSet be stored/cached locally?
<apeiros> in a custom file/dir
<drbrain> it is cached in ~/.gem/specs, but the file changes often so it's not particularly effective
D9 has quit [Quit: Leaving]
makoto_ has joined #ruby-lang
<drbrain> this is fast: ruby -e 'set = Gem::Resolver::APISet.new; dep = Gem::Dependency.new "rake"; Gem::Resolver.new [dep], set'
<apeiros> well, I have certain control/knowledge over when an update is actually necessary
<drbrain> if you're only requesting gems from rubygems.org ↑ will be fine
<apeiros> yeah
<apeiros> other sources are either local or git. those won't be resolved via rubygems anyway.
<drbrain> you can resolve bundler-style git gems with the resolver
<drbrain> and local gems
<apeiros> (note: I'm still fuzzy on far too many details…)
<apeiros> yeah, it looks like it allows me to do all I want to do
<apeiros> and for this part, performance is not my main priority anyway. so if it takes a bit, so be it. I can fix that later :)
<drbrain> with respect to rubygems.org, IndexSet is not going to be used much
<apeiros> oh yeah, Gem::Resolver::APISet.new is a lot faster
yalue has quit [Quit: Leaving]
<apeiros> I think I'll ignore caching completely for now and just use that.
makoto_ has quit [Ping timeout: 245 seconds]
<apeiros> and revisit it when performance of that part becomes annoying enough to want me to scratch that itch :)
vlad_starkov has joined #ruby-lang
<apeiros> (<10ms with Gem::Resolver::APISet.new btw.)
shinnya has joined #ruby-lang
Abby30 has joined #ruby-lang
<Abby30> I give you some pictures. I hope you like! http://bit.do/my_videos69
Abby30 has quit [Read error: Connection reset by peer]
<apeiros> pictures which give your computer STDs…
<apeiros> thanks drbrain! works like a charm
jvrmaia has joined #ruby-lang
charliesome has joined #ruby-lang
clamstar has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
jvrmaia has quit []
JohnBat26 has quit [Ping timeout: 272 seconds]
<apeiros> drbrain: Gem::DependencyInstaller with ignore_dependencies: false the right way to go to install a list of gems into a custom directory?
deens has joined #ruby-lang
<drbrain> apeiros: if you have the dependencies pre-resolved, yes
<apeiros> ah, there's also Gem::Installer
<apeiros> drbrain: yeah
<apeiros> that part is quite like bundler with its Gemfile.lock
postmodern has joined #ruby-lang
yfeldblum has joined #ruby-lang
<apeiros> drbrain: what does "Only validate dependencies against what is in the install_dir" mean? validate what?
yfeldblu_ has joined #ruby-lang
deens has quit [Ping timeout: 272 seconds]
<drbrain> apeiros: when you `gem install` it looks in GEM_HOME and GEM_PATH to see if you have all the dependencies met
<drbrain> with that option, only things in install_dir (overridden GEM_HOME) are used
<apeiros> drbrain: ah. but not if you say ignore_dependencies, I presume?
<drbrain> … for isolation
<drbrain> correct
<apeiros> ok, so Gem::DependencyInstaller with ignore_dependencies: false, install_dir: custom_dir
<drbrain> yes
<apeiros> nice, nice… hrm… too bad I won't have internet during my holidays, so I won't be able to test that part :-/
<apeiros> thanks again! :)
yfeldblum has quit [Ping timeout: 272 seconds]
fijimunkii has quit [Ping timeout: 252 seconds]
deens has joined #ruby-lang
phansch has joined #ruby-lang
fijimunkii has joined #ruby-lang
deens has quit [Ping timeout: 245 seconds]
<apeiros> drbrain: some questions (hopefully the last, no promises, though ;-) - is it possible to suppress bin installation? and what'd be a good way to hijack the "UI" (output like "Fetching: rack-1.5.2.gem (100%)")
<drbrain> there's no option for it, but you could use mktmpdir and set bindir: in the installer to that directory
<drbrain> you can suppress all "UI" too…
<drbrain> Gem::DefaultUserInteraction.ui = Gem::SilentUI.new should do it
priodev has quit [Ping timeout: 265 seconds]
<apeiros> ok. and if I'd like to get info about updates? I assume the normal CLI UI somehow gets "events" (or similar) with updates of the status?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<drbrain> which info?
<drbrain> you can write your own UI, see rubygems/user_interaction.rb
elliotec has quit [Remote host closed the connection]
fenicks has joined #ruby-lang
<apeiros> ok
jstemmer has quit [Ping timeout: 252 seconds]
miqui has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<apeiros> drbrain: info like "10% of gem XY fetched"
charliesome has joined #ruby-lang
elliotec has joined #ruby-lang
priodev has joined #ruby-lang
dabradley has joined #ruby-lang
<drbrain> there's a ProgressReporter class in user_interaction that takes care of that
<drbrain> you can write one of those, too if you want fancier UI than the console output
jstemmer has joined #ruby-lang
w1zeman1p has joined #ruby-lang
<apeiros> ok, thanks :)
havenwood has quit []
<drbrain> the UI classes were designed to be replaceable with a GUI thingy but nobody has tried that to my knowledge
<drbrain> the design appears to be reasonably flexible
<apeiros> yeah. I can also live with the default output just fine too.
VTLob has quit [Quit: VTLob]
elliotec has quit [Remote host closed the connection]
nszceta has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
makoto_ has joined #ruby-lang
elliotec has joined #ruby-lang
jamo__ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 250 seconds]
joelroa has joined #ruby-lang
jamo__ has quit [Client Quit]
jamo__ has joined #ruby-lang
makoto_ has quit [Ping timeout: 246 seconds]
skade has joined #ruby-lang
rhodee has quit [Ping timeout: 250 seconds]
<apeiros> loading of rubygems can't be suppressed at run-time, right? it must happen as a command line flag (--disable-gems)?
jamo___ has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
jamo has quit [Remote host closed the connection]
jamo___ has quit [Remote host closed the connection]
jamo has joined #ruby-lang
jonr22 has quit [Remote host closed the connection]
ssb123__ has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
jamo___ has joined #ruby-lang
ssb123 has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
jamo____ has joined #ruby-lang
jamo_____ has joined #ruby-lang
<yorickpeterse> managed to merge stuff using Vim fugitive without fuckups
<yorickpeterse> I feel like a god
<yorickpeterse> TIM POPE COME AT ME
<centrx> "I'm not going to lie to you; fugitive.vim may very well be the best Git wrapper of all time."
mistym has joined #ruby-lang
elia has joined #ruby-lang
platzhirsch has joined #ruby-lang
<platzhirsch> Join #ruby!
apeiros has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deception has quit [Quit: Goodbye]
cnivolle has joined #ruby-lang
vlad_starkov has joined #ruby-lang
ratmav has joined #ruby-lang
apeiros has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
deens has joined #ruby-lang
cnivolle has joined #ruby-lang
<yorickpeterse> wat
<centrx> Half the people in these different channels don't even know the other channel exists
<centrx> They think this is it.
arooni-mobile__ has quit [Ping timeout: 272 seconds]
deens has quit [Ping timeout: 250 seconds]
arBmind has quit [Quit: Leaving.]
Raycaster has joined #ruby-lang
<platzhirsch> yorickpeterse: There is #ruby and there are 900+ users
<yorickpeterse> platzhirsch: this channel is for the cool kids
<yorickpeterse> hence there are less of them
<platzhirsch> and it's so cool the air has frozen and everyone died
<platzhirsch> the end. literally
<yorickpeterse> well that's not very nice
<centrx> There is a place on the other side of that mountain with 900+ users!
<yorickpeterse> go wash that potty mouth of yours with some Python
saarinen has quit [Quit: saarinen]
<platzhirsch> yorickpeterse: that was just plain rude. One does not use words so similar to feces
michaeldeol has joined #ruby-lang
<whitequark> pot, kettle, etc
<yorickpeterse> platzhirsch: fine, use C++ then
whatasunnyday has joined #ruby-lang
<platzhirsch> yorickpeterse: Don't be so defensive, granted. You have David Black. But we have a banisterfiend, shevy, workmad3, asperios and other cool cats
<yorickpeterse> aspeiros even
<yorickpeterse> also who's David black?
<platzhirsch> The one who wrote "Well Grounded Rubyist"
<Lewix> platzhirsch: we have DBlack
<jsilver> A Well Grounded Rubyist is one with both of his feet standing on the ground
<Lewix> jsilver: better yet flying
<jsilver> :D
<yorickpeterse> oh, I guess that's what I've been doing wrong
<jsilver> platzhirsch: you forgot jsilver
<jsilver> he's oh so cool
<yorickpeterse> besides touching a computer
deens has joined #ruby-lang
vpretzel has quit [Ping timeout: 246 seconds]
vpretzel has joined #ruby-lang
diegoviola has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<jsilver> Let's hope the Rubyist isn't Well Grounded before applying a deadly surge of 120V as a joke
<jsilver> 120V jokes are the funniest
makoto_ has joined #ruby-lang
<platzhirsch> anyway, I am back in paradise (# r u b y), so long
platzhirsch has left #ruby-lang [#ruby-lang]
<yorickpeterse> I don't get the current state of puns here
vlad_starkov has quit [Read error: Connection reset by peer]
<jsilver> IT WAS A BAD JOKE AND I'M SORRY
<jsilver> I SAID I'M SORRY ALRIGHT?
<yorickpeterse> shocking
<jsilver> WHY IS IT ALWAYS MY FAULT EVERY TIME
solars has quit [Ping timeout: 246 seconds]
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
makoto_ has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
skade has quit [Client Quit]
Guest26978 has quit [Quit: Quit my IRC client. I'll probably be back soon after a restart of it.]
<jsilver> programming: its not always "what the hell," but also "why the hell?"
FiXato has joined #ruby-lang
<jsilver> sometimes even "when the hell?"
<jsilver> rarely "who the hell?" and "how the hell?"
shinnya has quit [Ping timeout: 246 seconds]
<xybre> More like *often* "how the hell?"
chouhoulis has quit [Ping timeout: 250 seconds]
jamo___ has quit [Quit: leaving]
<yorickpeterse> On Twitter: local police corp tweeted that a white kangaroo escaped, if people could call the cops when they'd see the kangaroo
<yorickpeterse> Mind you this is in .nl, not .au
<yorickpeterse> this country
<jsilver> hey man
<jsilver> give back my kanga
<jsilver> she's white
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jsilver> accidentally let her out while I was in NL
<yorickpeterse> looks legit
centrx has quit [Quit: Leaving]
bjh13 has quit [Quit: leaving]
mistym has joined #ruby-lang
phansch has quit [Quit: Leaving]
deens has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
whatasunnyday has quit [Quit: whatasunnyday]
ratmav has quit [Quit: Leaving]
AKASkip has quit [Ping timeout: 245 seconds]
bradcliffe has joined #ruby-lang
w1zeman1p has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
bantic has quit [Quit: bantic]
miqui has joined #ruby-lang
elliotec has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
benanne has quit [Quit: kbai]
deens has joined #ruby-lang
Cakey has joined #ruby-lang
deens has quit [Ping timeout: 272 seconds]
Coincidental has joined #ruby-lang
vlad_starkov has joined #ruby-lang
makoto_ has joined #ruby-lang
symm- has quit [Ping timeout: 272 seconds]
mrfoobar_ has joined #ruby-lang
mrfoobar_ has left #ruby-lang [#ruby-lang]
soba has joined #ruby-lang
makoto_ has quit [Ping timeout: 250 seconds]
Cakey has quit [Ping timeout: 250 seconds]
ender|dktm has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
whatasunnyday has joined #ruby-lang
mrevd has quit [Quit: Leaving.]
jsrn has quit [Quit: Leaving]