apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p327: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
mercwith1mouth has quit [Ping timeout: 255 seconds]
eka has joined #ruby
byennen has joined #ruby
ircmouser has quit [Quit: i dont know why i do this]
Xeago has quit [Remote host closed the connection]
TheFuzzball has quit [Ping timeout: 265 seconds]
ryanf has joined #ruby
plains has left #ruby [#ruby]
charlies_ has joined #ruby
charlies_ is now known as charliesome
cj3kim has joined #ruby
SwooshyCueb has quit [Ping timeout: 255 seconds]
Michael_ has quit [Remote host closed the connection]
jrunning has joined #ruby
Michael_ has joined #ruby
<jrunning> Is there a way to undef a module?
TheFuzzball has joined #ruby
TheFuzzball has quit [Max SendQ exceeded]
<Mon_Ouie> When you create the module, you're setting a constant. So you could just remove the constant.
<charliesome> jrunning: ModuleOwner.send :remove_const, :MyModule
lolcathost has joined #ruby
fyolnish has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
TheFuzzball has quit [Max SendQ exceeded]
swex_ has quit [Read error: Connection reset by peer]
TheFuzzball has joined #ruby
nazty has joined #ruby
TheFuzzball has quit [Max SendQ exceeded]
swex has joined #ruby
ryanf has quit [Ping timeout: 264 seconds]
u89 has quit [Remote host closed the connection]
byennen has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
TheFuzzball has quit [Max SendQ exceeded]
u89 has joined #ruby
<jrunning> charliesome: I'm a little slow. What's ModuleOwner?
tbrock_ has joined #ruby
gyre007 has quit [Remote host closed the connection]
statarb3 has quit [Quit: Leaving]
<charliesome> the module where your module is defined
somazero has quit [Read error: Connection reset by peer]
<charliesome> so if you have A::B and you want to remove B, A.send(:const_remove, :B)
TheFuzzball has joined #ruby
Michael_ has quit [Ping timeout: 264 seconds]
<charliesome> if it's a top level module, Object.send(:const_remove, :B)
jds_ has joined #ruby
pyx has quit [Read error: Connection reset by peer]
TheFuzzball has quit [Max SendQ exceeded]
lolcathost has quit [Ping timeout: 255 seconds]
TheFuzzball has joined #ruby
Michael_ has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
swex has quit [Read error: Operation timed out]
jenrzzz has quit [Ping timeout: 240 seconds]
skattyadz has joined #ruby
medik has quit [Quit: medik has no reason]
Chryson has joined #ruby
jds_ has quit [Ping timeout: 252 seconds]
<jrunning> charliesome: Ah, it was :remove_const. Thanks.
<charliesome> oops
swex has joined #ruby
<shevy> hehe
<shevy> charliesome, you used both variants ;-)
pcarrier has quit [Ping timeout: 260 seconds]
generalissimo has joined #ruby
yshh has quit [Remote host closed the connection]
qonk has quit [Quit: Ex-Chat]
swex has quit [Read error: Connection reset by peer]
thone has quit [Ping timeout: 246 seconds]
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
swex has joined #ruby
jimeh has joined #ruby
elkclone has quit [Remote host closed the connection]
thone has joined #ruby
jamesaxl has quit [Ping timeout: 248 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
fantazo has quit [Remote host closed the connection]
azorac has joined #ruby
havenn has joined #ruby
ryanf has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
jamesaxl has joined #ruby
swex has quit [Read error: Operation timed out]
tomsthumb has quit [Quit: Leaving.]
jenrzzz has joined #ruby
byennen has joined #ruby
danktamagachi has quit [Ping timeout: 260 seconds]
jrunning has quit [Ping timeout: 248 seconds]
icole has joined #ruby
miphe has quit [Quit: Leaving]
chthonios has quit [Quit: Ex-Chat]
gyre007 has joined #ruby
yshh has joined #ruby
sailias has joined #ruby
ryanf has quit [Ping timeout: 252 seconds]
BigO_ has joined #ruby
DrShoggoth has joined #ruby
BigO_ has quit [Remote host closed the connection]
g-ram has joined #ruby
swex has joined #ruby
jds_ has joined #ruby
jsilver has joined #ruby
cj3kim has joined #ruby
havenn has quit [Remote host closed the connection]
<seanstickle> jsilver: is that good?
gyre007 has quit [Ping timeout: 252 seconds]
swarley has joined #ruby
fyolnish has joined #ruby
grzywacz has quit [Quit: :wq]
<jsilver> seanstickle: i believe so, yes
<jsilver> tests coming too, since platform is stable
<seanstickle> Well then, hurrah
<jsilver> hurrah :D
<jsilver> 100% Ruby even tho it has native iOS and Android clients ;)
fyolnish has quit [Remote host closed the connection]
fyolnish has joined #ruby
<seanstickle> It's an IRC client, right?
<seanstickle> I can't quite figure it out.
ircmouser has joined #ruby
icole has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
Vert has joined #ruby
xyzodiac has joined #ruby
Bosma has joined #ruby
Michael_ has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
<jsilver> seanstickle: it's an IRC knockoff but with some features added back that don't exist in IRC, mainly ability to say multiple lines (pastes) and persistent log-saving and scrollback (ZNC-style buffer replay built in)
<seanstickle> Neato.
<jsilver> seanstickle: other than that, it's mostly equivelent to a single channel, operator-less, global, one-room IRC channel
<jsilver> thx! :D
<jsilver> also, it's intended to be super-coder friendly, so /slash commands and emoticon:)s are not used
<jsilver> :D
jds_ has quit [Ping timeout: 255 seconds]
Michael_ has joined #ruby
Michael_ has quit [Remote host closed the connection]
Goles has joined #ruby
tomsthumb has joined #ruby
byennen has quit [Remote host closed the connection]
byennen has joined #ruby
adeponte has joined #ruby
TheNumb has quit [Ping timeout: 276 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
tbrock_ has quit [Quit: Computer has gone to sleep.]
xkx has quit [Ping timeout: 264 seconds]
byennen has quit [Ping timeout: 264 seconds]
swex has quit [Ping timeout: 260 seconds]
jjang has quit [Ping timeout: 256 seconds]
<seanstickle> jsilver: screenshots anywhere?
<jsilver> yes
jrunning has joined #ruby
kil0byte has joined #ruby
ryanf has joined #ruby
xkx has joined #ruby
jamesaxl has quit [Ping timeout: 276 seconds]
<seanstickle> Wow, that is … minimal
noyb has joined #ruby
TheNumb has joined #ruby
<jsilver> it is. purposefully
<jsilver> to be unnanoying
swarley has quit [Ping timeout: 264 seconds]
jamesaxl has joined #ruby
<jsilver> planned support for weird things IRC will never support tho, like HTML mode and syntax coloring
byennen has joined #ruby
<seanstickle> That'd be ok.
<seanstickle> So … desktop Campfire?
<jsilver> precisely
kbeddingfield has quit [Remote host closed the connection]
<jsilver> yea, it's intended to be kind of a secret "codechat" but can be used by n00bs too without ever knowing that it was
<jsilver> hence the overly simplistic, "i regive you IRC but this time easy" approach
jenrzzz has quit [Ping timeout: 252 seconds]
u89 has quit [Remote host closed the connection]
Rym has quit [Remote host closed the connection]
<matchaw__> hi, could someone help with this: http://pastie.org/5433999
Rym has joined #ruby
<matchaw__> Trying to combine hashs together.
<Muz> See Hash#merge
<matchaw__> Muz, but this is just for 2 hashes, right?
<matchaw__> what happens if I have 3,4.. ?
<Muz> You can just keep merging them
<jsilver> merge them all to {} on loop
<jsilver> yea
<jsilver> a merge b, b merge c, etc
<matchaw__> jsilver? would you mind giving an example?
<jsilver> hash = {}; [{}, {}, {}].each do |h| hash.merge(h) end
<jsilver> sorry
<jsilver> hash = {}; [{}, {}, {}].each do |h| hash.merge!(h) end
<jsilver> or
<jsilver> hash = {}; [{}, {}, {}].each do |h| hash = hash.merge(h) end
<jsilver> matchaw__: correct?
Michae___ has joined #ruby
<matchaw__> let me test
<matchaw__> but how do I create the new key 'persons' ?
<jsilver> merge should create it in the hash to be merged to
ryanf has quit [Ping timeout: 255 seconds]
<jsilver> that's definition of a merge operation
<jsilver> unless you mean hash[:persons] =
generalissimo has quit [Remote host closed the connection]
Michae___ has quit [Remote host closed the connection]
<seanstickle> a = {}; b = {}; c = {}; d = [a,b,c].reduce({}) {|x,y| x = x.merge y; x }
<seanstickle> That'll also do it
<matchaw__> jsilver, http://pastie.org/5433999, the bottom hash is what I am looking to create using the 2 hashes above.
<matchaw__> So i guess I have to specify 'persons'
<jsilver> thats not merging, it's splitting
<jsilver> just pull out what you want with the keys, you can loop a hash like so
<jsilver> hash.each do |k, v|
danktamagachi has joined #ruby
<jsilver> k and v will be the key and value of the hash
dantesun has joined #ruby
dantesun has quit [Max SendQ exceeded]
<jsilver> of each row
<matchaw__> I need to keep both 'person_01' and 'person_02' intact, and just need to nest them in a new hash called 'persons'
dantesun has joined #ruby
love_color_text has joined #ruby
<jsilver> is this homework lol
<jsilver> yo lobak
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
skattyadz has quit [Quit: skattyadz]
<jsilver> yo love_color_text
<love_color_text> jsilver: sup
<matchaw__> jsilver, just playing with ruby! :)
<jsilver> matchaw__: k i wil solve
<jsilver> love_color_text: not much just documented GC2
<matchaw__> the hashes are just examples..
<jsilver> check ya email
<jsilver> u gots a present
<love_color_text> oh yea how much of it is going to charity?
<jsilver> :D
<jsilver> $30
<jsilver> :D
<jsilver> Goodwill
<love_color_text> jsilver: what documenting language is this? Rdoc?
<jsilver> yes
<jsilver> they said its the best
<jsilver> brb food
<seanstickle> matchaw__: so you have foo = {:person_01 => { :age => '21', :sex => 'male'}} ?
<seanstickle> matchaw__: and something like that against for :person_02 ?
jamesaxl has quit [Ping timeout: 246 seconds]
<matchaw__> seanstickle, yes and I want to put both of those into a new hash { persons = > {} }
kiwnix has quit [Quit: Saliendo]
<seanstickle> {:persons => foo.merge(bar) }
<Retistic> is there an operator opposite to =~ ?
<Retistic> that returns the inverse boolean?
<Muz> !~
<matchaw__> seanstickle, again, thats just for 2 hashes..
blacktulip has quit [Read error: Operation timed out]
<matchaw__> plus when I tested that it removes the 'person_01' and just adds the key/values under 'persons'
blacktulip has joined #ruby
<Retistic> Muz: thanks
<seanstickle> {:persons => [foo,bar,baz].reduce({}){|a,x| a.merge! x; a } }
<seanstickle> matchaw__: ^^
lampe21 has joined #ruby
Goles_ has joined #ruby
LouisGB has quit [Read error: Connection reset by peer]
kbeddingfield has joined #ruby
<matchaw__> seanstickle, for me that doesn't output correctly.
Michae___ has joined #ruby
<seanstickle> matchaw__: what does it do?
<Retistic> also, is there pretty a method it check if an array has something in it?
<matchaw__> let me try and put it into a seperate script and get outpu
shiin has quit [Quit: Computer has gone to sleep.]
<Retistic> is there a pretty method*
<seanstickle> Retistic: include?
<Retistic> seanstickle: not a specific value, i mean to check if it has anything in it
<seanstickle> Retistic: or any? if you mean to check whether it has anything in it
<Retistic> seanstickle: perfect
havenn has joined #ruby
<Retistic> seanstickle: hmm i kind of like !array.empty? better
Goles has quit [Ping timeout: 255 seconds]
lampe2 has quit [Ping timeout: 264 seconds]
BigO_ has joined #ruby
<seanstickle> Retistic: then you're daft
lampe21 has quit [Client Quit]
nkts_ has joined #ruby
lampe2 has joined #ruby
<Retistic> seanstickle: why? "if not array empty" reads better to me that "if array any"
lolcathost has joined #ruby
<Retistic> any is a bad adjective imho for this case
<matchaw__> seanstickle : http://pastie.org/5434070
mahmoudimus has joined #ruby
<matchaw__> seems to be only outputting the last hash
<matchaw__> and its not in this format
<matchaw__> any ideas?
jamesaxl has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
<seanstickle> Ah, that's not what you posted originally...
Goles_ has quit [Remote host closed the connection]
<seanstickle> You had raw hashes with the name (person_00, person_01) as the keys
havenn has quit [Remote host closed the connection]
<matchaw__> seanstickle, oh..sorry
<matchaw__> I was trying to show what i was trying to get the output to look like.
iamjarvo has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby
<matchaw__> I need to keep the keys 'person_00' etc intact
<matchaw__> but in a new hash 'persons'
swiftsure has joined #ruby
<seanstickle> You don't have "person_00" as a key in your code
<seanstickle> You have it as the name of a variable
techhelp has joined #ruby
jeffreybaird has quit [Read error: No route to host]
techhelp has quit [Remote host closed the connection]
<matchaw__> seanstickle, can I use this variable to create the new key in the new hash?
<seanstickle> Not by the name of the variable
jeffreybaird has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
<matchaw__> ok so if I had another variable lookup = 'person_00' can I use this to create a new key?
x82_nicole has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Remote host closed the connection]
<seanstickle> Sure
ryanf has joined #ruby
lenovodroid has quit [Remote host closed the connection]
jeffreybaird has quit [Ping timeout: 264 seconds]
<matchaw__> seanstickle : http://pastie.org/5434091
ttt has joined #ruby
<seanstickle> I don't know what that code means
CodeVision has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
thinkdevcode has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
<matchaw__> Iseanstickle, ok let me try and show a different example
tbrock_ has joined #ruby
x77686d has quit [Quit: x77686d]
joeycarmello has joined #ruby
joeycarmello has quit [Remote host closed the connection]
squeakywheel has joined #ruby
squeakywheel has left #ruby [#ruby]
NiteRain has joined #ruby
joeycarmello has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
soulcake has quit [Ping timeout: 252 seconds]
no_i_wont has quit [Quit: ZNC - http://znc.sourceforge.net]
yosafbridge` has quit [Ping timeout: 252 seconds]
mephux has quit [Remote host closed the connection]
no_i_wont has joined #ruby
mephux has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
yosafbridge has joined #ruby
soulcake has joined #ruby
ikaros has quit [Quit: Ex-Chat]
Hanmac has quit [Ping timeout: 265 seconds]
samphippen has joined #ruby
ryanf has quit [Ping timeout: 252 seconds]
samphippen has quit [Client Quit]
mac_cosmo has joined #ruby
mac_cosmo has left #ruby [#ruby]
JoeTheGuest has quit [Changing host]
JoeTheGuest has joined #ruby
nari has joined #ruby
jeffreybaird has joined #ruby
icole has joined #ruby
kbeddingfield has joined #ruby
icole has quit [Read error: Operation timed out]
tbrock_ has quit [Quit: Computer has gone to sleep.]
cantonic has quit [Quit: cantonic]
seich- has quit [Ping timeout: 246 seconds]
<matchaw__> seanstickle: http://pastie.org/5434130
<matchaw__> I am pulling the data from a json file, line 5, interface_00 is the original key name
k776 has joined #ruby
<matchaw__> so basically i need to create a new hash like { interfaces => { interface_00 => {}, interface_01 => {} } }
<k776> Anyone know any simple ways to speed up Ruby or Ruby on Rails? For example: Recompiling ruby with −03 optimization halved the execution time for nearly every action. Any other similar quick wins?
i_s has quit [Quit: i_s]
emmanuelux has quit [Quit: emmanuelux]
<seanstickle> foo = {}; foo[:interface_00] = interface_00; foo[:interface_01] = interface_01; result = { :interfaces => foo }
<seanstickle> Done
seich- has joined #ruby
arya has joined #ruby
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
Slivka has joined #ruby
<matchaw__> seanstickle, legend! thankyou!
<matchaw__> this was the fix: out['interface_00'] = JSON.parse(answer)['interface_00']
lampe2 is now known as lampe2_afk
arya has quit [Read error: Connection reset by peer]
<k776> Does anyone know if I should be compiling ruby with —disable-shared ? I hear it can cause problems?
jsilver has quit [Remote host closed the connection]
arya has joined #ruby
rhys has quit [Quit: Leaving]
jamesaxl has quit [Ping timeout: 264 seconds]
lolcathost has joined #ruby
azorac has quit [Ping timeout: 245 seconds]
swex has joined #ruby
slainer68 has joined #ruby
VegetableSpoon has quit [Quit: Leaving]
Michae___ has quit [Ping timeout: 264 seconds]
ryanf has joined #ruby
phantasm66 has joined #ruby
Michael_ has joined #ruby
jgrevich_ has joined #ruby
g-ram has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Michael_ has quit [Remote host closed the connection]
mneorr has joined #ruby
jgrevich has quit [Ping timeout: 255 seconds]
jgrevich_ is now known as jgrevich
Michael_ has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
Fretta has joined #ruby
mand_ has joined #ruby
lolcathost has quit [Ping timeout: 260 seconds]
CodeVision has joined #ruby
ryanf has quit [Ping timeout: 264 seconds]
kbeddingfield has quit [Remote host closed the connection]
mand has quit [Ping timeout: 265 seconds]
CodeVision has quit [Client Quit]
CodeVision has joined #ruby
jayne has quit [Read error: Connection timed out]
jayne has joined #ruby
Michael_ has quit [Remote host closed the connection]
Goles has joined #ruby
generalissimo has joined #ruby
fir_ed has quit [Ping timeout: 250 seconds]
Michael_ has joined #ruby
fir_ed has joined #ruby
ircmouser has quit [Ping timeout: 276 seconds]
nkts has joined #ruby
Michael_ has quit [Remote host closed the connection]
rhys has joined #ruby
rhys has quit [Changing host]
rhys has joined #ruby
Nanuq has quit [Ping timeout: 246 seconds]
Michael_ has joined #ruby
Goles has quit [Ping timeout: 240 seconds]
tuannat has joined #ruby
Michael_ has quit [Remote host closed the connection]
joofsh has joined #ruby
tbrock_ has joined #ruby
Michael_ has joined #ruby
arya has quit [Ping timeout: 244 seconds]
havenn has joined #ruby
pipopopo has quit [Quit: ZNC - http://znc.sourceforge.net]
Nanuq has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
pipopopo has joined #ruby
ananthakumaran has joined #ruby
havenn has quit [Ping timeout: 264 seconds]
swex has quit [Remote host closed the connection]
thinkdevcode has quit [Remote host closed the connection]
jayne has quit [Read error: Connection timed out]
Michael_ has quit [Remote host closed the connection]
swarley has joined #ruby
ejnahc has quit [Quit: leaving]
rhys has quit [Ping timeout: 240 seconds]
ejnahc has joined #ruby
ryanf has joined #ruby
jenrzzz has joined #ruby
Fretta has quit [Quit: Fretta Be Gone!]
Michael_ has joined #ruby
brtdv has quit [Ping timeout: 260 seconds]
<charliesome> what happened to the evaluator bot that used to be in here?
areil has joined #ruby
<GeekOnCoffee> charliesome: evaluator bots tend to have stability issues
jeffreybaird has quit [Read error: Connection reset by peer]
<charliesome> hmm
<charliesome> i suppose i might throw in an evaluator bot of my own
jeffreybaird has joined #ruby
<charliesome> with blackjack and hookers
brtdv has joined #ruby
Michael_ has quit [Remote host closed the connection]
jayne has joined #ruby
pac1 has quit [Quit: I got it one line of code at a time]
xfernandox has joined #ruby
ejnahc has quit [Quit: leaving]
Goles has joined #ruby
krz has joined #ruby
xfernandox has left #ruby [#ruby]
Monie[ip] has joined #ruby
rhys has joined #ruby
ryanf has quit [Ping timeout: 265 seconds]
ejnahc has joined #ruby
Chryson has quit [Quit: Leaving]
ejnahc has quit [Client Quit]
ejnahc has joined #ruby
swex has joined #ruby
jayne has quit [Read error: Connection timed out]
swex has quit [Remote host closed the connection]
Michael_ has joined #ruby
mikepack has quit [Remote host closed the connection]
Goles has quit [Ping timeout: 240 seconds]
snorkdude has joined #ruby
noyb has quit [Ping timeout: 260 seconds]
DanBoy has quit [Remote host closed the connection]
swarley has quit [Ping timeout: 252 seconds]
Monie[ip] has quit [Read error: Connection reset by peer]
Monie[ip] has joined #ruby
eval-in has joined #ruby
<charliesome> >> puts 1 + 2
<eval-in> charliesome: Output: "3\n" (http://eval.in/3920)
<charliesome> kewl
ryanf has joined #ruby
<seanstickle> >> puts 1 + 1
<eval-in> seanstickle: Output: "2\n" (http://eval.in/3921)
<seanstickle> Neato
<seanstickle> >> Dir["*"]
<eval-in> seanstickle: Output: "" (http://eval.in/3922)
k776 has left #ruby [#ruby]
seich- has quit [Ping timeout: 246 seconds]
Monie[ip] has quit [Read error: Connection reset by peer]
<seanstickle> >> Dir["/*"]
<eval-in> seanstickle: Output: "" (http://eval.in/3923)
<seanstickle> Boo
<charliesome> you need puts
<ryanf> >> p Dir["../*"]
<eval-in> ryanf: Output: "" (http://eval.in/3924)
<charliesome> >> def x; binding; end; eval("x { }").eval("yield")
<eval-in> charliesome: Output: "source-5b86cf1e16ed:1: [BUG] Segmentation fault\nruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]\n\n-- Control frame information -----------------------------------------------\nc:0006 p:0005 s:001 ..." (http://eval.in/3925)
<seanstickle> >> system("ls")
<eval-in> seanstickle: Output: "" (http://eval.in/3926)
seich- has joined #ruby
iga3k has joined #ruby
<postmodern> >> sleep
<eval-in> postmodern: Output: "" (http://eval.in/3927)
<postmodern> >> (1..10_000_000_000).to_a
<eval-in> postmodern: Output: "" (http://eval.in/3928)
<seanstickle> >> %x[ls]
<eval-in> seanstickle: Output: "" (http://eval.in/3929)
hackerdude has joined #ruby
<postmodern> not a bad setup
<seanstickle> Covers all the obvious bases
<postmodern> i assume $SAFE is 4?
<charliesome> >> puts $SAFE
<eval-in> charliesome: Output: "0\n" (http://eval.in/3930)
<charliesome> syscall jail
<postmodern> ah much better
<postmodern> don't have to worry about MRI vulnerabilities
bakis has quit [Quit: WeeChat 0.3.2]
<charliesome> i'd like to get jruby running, but i'm not sure how well behaved the jvm is under a syscall jail
<charliesome> and i don't trust the jvm for security
tbrock_ has quit [Quit: Computer has gone to sleep.]
bluOxigen has joined #ruby
rismoney has joined #ruby
linoj_ has joined #ruby
ewag has joined #ruby
<postmodern> yep, it has been the year of JVM vulns
swiftsure has quit [Ping timeout: 246 seconds]
ryanf has quit [Quit: broken pipes |||]
ryanf has joined #ruby
malcolmva has quit [Remote host closed the connection]
danktamagachi has quit [Ping timeout: 252 seconds]
adeponte has joined #ruby
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
gyre007 has joined #ruby
malcolmva has joined #ruby
machty has joined #ruby
BigO_ has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
Goles has joined #ruby
gyre007 has quit [Ping timeout: 245 seconds]
Michael_ has quit [Remote host closed the connection]
TheFuzzball has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
Michael_ has joined #ruby
ryanf has quit [Ping timeout: 255 seconds]
ewag has quit [Ping timeout: 252 seconds]
Michael_ has quit [Remote host closed the connection]
brandon_ has joined #ruby
rohit has joined #ruby
brandon has quit [Ping timeout: 246 seconds]
brandon_ is now known as brandon
Goles has quit [Ping timeout: 255 seconds]
adeponte has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
mikekelly has quit [Ping timeout: 265 seconds]
seich- has quit [Ping timeout: 246 seconds]
swex has joined #ruby
Eiam has joined #ruby
mjolk has joined #ruby
nwertman has joined #ruby
mikekelly has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 240 seconds]
seich- has joined #ruby
adeponte has joined #ruby
Nisstyre-laptop has joined #ruby
nkts has quit []
nkts has joined #ruby
nkts has quit [Client Quit]
linoj_ has quit [Quit: linoj_]
nkts has joined #ruby
nkts has quit [Client Quit]
tommyvyo has quit [Quit: Computer has gone to sleep.]
TheFuzzball has joined #ruby
TheFuzzball has quit [Read error: Connection reset by peer]
nkts has joined #ruby
blazes816 has quit [Quit: blazes816]
Shamgar has quit [Ping timeout: 252 seconds]
TheFuzzball has joined #ruby
TheFuzzball has quit [Read error: Connection reset by peer]
nkts has quit [Client Quit]
afgeneralist has joined #ruby
Shamgar has joined #ruby
nkts has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
TheFuzzball has joined #ruby
TheFuzzball has quit [Read error: Connection reset by peer]
jianxioy has joined #ruby
nkts has quit [Client Quit]
TheFuzzball has joined #ruby
TheFuzzball has quit [Read error: Connection reset by peer]
nkts has joined #ruby
nkts has quit [Client Quit]
snorkdude is now known as double_a
double_a is now known as snorkdude
snorkdude is now known as double_a
jamesaxl has joined #ruby
TheFuzzball has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
TheFuzzball has quit [Read error: Connection reset by peer]
TheFuzzball has joined #ruby
ryanf has joined #ruby
TheFuzzball has quit [Read error: Connection reset by peer]
jianxioy has quit [Quit: leaving]
xaxxon has left #ruby ["Leaving"]
gbchaos has joined #ruby
Goles has joined #ruby
undersc0re97 has quit [Quit: Leaving]
TheFuzzball has joined #ruby
TheFuzzball has quit [Read error: Connection reset by peer]
afgeneralist has quit [Ping timeout: 276 seconds]
TheFuzzball has joined #ruby
gbchaos is now known as gbchaosmaster
TheFuzzball has quit [Read error: Connection reset by peer]
undersc0re97 has joined #ruby
iga3k has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
TheFuzzball has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
Monie[ip] has joined #ruby
Monie[ip] has quit [Client Quit]
tommyvyo has joined #ruby
undersc0re97 has quit [Client Quit]
diegoviola has quit [Quit: leaving]
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
Goles has quit [Ping timeout: 252 seconds]
danktamagachi has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
radic has quit [Disconnected by services]
radic_ has joined #ruby
c0rn has joined #ruby
TheFuzzball has joined #ruby
TheFuzzball has quit [Read error: Connection reset by peer]
tuannat has quit [Ping timeout: 265 seconds]
TheFuzzball has joined #ruby
double_a has quit [Quit: double_a]
TheFuzzball has quit [Read error: Connection reset by peer]
seanstickle has quit [Quit: seanstickle]
BoomCow has joined #ruby
double_a has joined #ruby
tommyvyo_ has joined #ruby
double_a has quit [Client Quit]
snorkdude has joined #ruby
ewag has joined #ruby
alee- has quit [Remote host closed the connection]
alee- has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
kbeddingfield has joined #ruby
jsilver has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
chimkan has joined #ruby
jwang has joined #ruby
TheFuzzball has joined #ruby
lolcathost has joined #ruby
fantazo has joined #ruby
joofsh has quit [Remote host closed the connection]
Bosma has quit [Quit: leaving]
seich- has quit [Ping timeout: 246 seconds]
nilg has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
burgestrand has quit [Quit: Leaving.]
Goles has joined #ruby
fantazo has quit [Remote host closed the connection]
cj3kim has joined #ruby
adeponte has joined #ruby
gridaphobe has joined #ruby
rohit has quit [Ping timeout: 240 seconds]
tbrock_ has joined #ruby
tuannat has joined #ruby
Goles_ has joined #ruby
burgestrand has joined #ruby
phantasm66 has joined #ruby
ananthakumaran has joined #ruby
byennen has quit [Remote host closed the connection]
Goles has quit [Ping timeout: 240 seconds]
byennen has joined #ruby
jwang has quit [Ping timeout: 255 seconds]
lampe2_afk has quit [Quit: Leaving.]
Goles_ has quit [Ping timeout: 264 seconds]
fir_ed has quit [Ping timeout: 248 seconds]
jamesaxl has quit [Ping timeout: 248 seconds]
ebouchut has joined #ruby
azorac has joined #ruby
Slivka has quit [Remote host closed the connection]
seanwash has quit [Quit: Computer has gone to sleep.]
afgeneralist has joined #ruby
rohit has joined #ruby
jwang has joined #ruby
danktamagachi has quit [Ping timeout: 264 seconds]
danktamagachi has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
AlecTaylor has joined #ruby
<AlecTaylor> hi
<azorac> hello
love_color_text_ has joined #ruby
love_color_text_ has quit [Changing host]
love_color_text_ has joined #ruby
love_color_text_ is now known as keyvan
arya_ has joined #ruby
burgestrand has quit [Ping timeout: 264 seconds]
mosez has quit [Ping timeout: 248 seconds]
alee-_ has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
lolcathost has quit [Quit: lag]
alee- has quit [Ping timeout: 276 seconds]
slainer68 has joined #ruby
kil0byte has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 264 seconds]
Shamgar has quit [Ping timeout: 264 seconds]
Shamgar has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
Goles has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
arya_ has joined #ruby
seich- has joined #ruby
tuannat has quit [Ping timeout: 252 seconds]
himsin has quit [Ping timeout: 256 seconds]
reset has joined #ruby
aeontech has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
b6 has joined #ruby
azorac has quit [Ping timeout: 245 seconds]
Goles has quit [Ping timeout: 240 seconds]
yeban_ is now known as yeban
ewag has quit [Ping timeout: 240 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
kbeddingfield has quit [Remote host closed the connection]
<b6> i can't get gem(1) to stop putting stuff in ~/.gem. is there some environment variable other than GEM_HOME to set?
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
lolcathost has joined #ruby
hackerdude has quit [Remote host closed the connection]
qwerxy has joined #ruby
tuannat has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
jrunning has quit [Ping timeout: 252 seconds]
noyb has joined #ruby
snorkdude has quit [Quit: snorkdude]
generalissimo has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
lowg has quit [Read error: Connection reset by peer]
joeycarmello has quit [Remote host closed the connection]
lowg has joined #ruby
afgeneralist has quit [Ping timeout: 265 seconds]
joeycarmello has joined #ruby
generalissimo has joined #ruby
gridaphobe has quit [Read error: Operation timed out]
lolcathost has quit [Ping timeout: 264 seconds]
arya_ has quit [Ping timeout: 244 seconds]
tjbiddle has joined #ruby
arya_ has joined #ruby
tbrock_ has quit [Quit: Computer has gone to sleep.]
generalissimo has quit [Remote host closed the connection]
areil_ has joined #ruby
tjbiddle has quit [Client Quit]
joeycarmello has quit [Ping timeout: 246 seconds]
areil has quit [Ping timeout: 252 seconds]
codecop has joined #ruby
tuannat has quit [Ping timeout: 252 seconds]
kil0byte has joined #ruby
cj3kim has joined #ruby
chimkan has joined #ruby
Goles has joined #ruby
<b6> seriously, i can't get gem(1) to quit crapping in ~/.gem, even with GEM_HOME and GEM_PATH and --install-dir. is this a bug?
kingsidharth_ has joined #ruby
rakl has joined #ruby
<Blaster> hey if I define a variable in an example.rb file like varX = 123; and then inside irb type > load "example.rb" how come when I type varX it says not defined?
<rohit> b6, Try asking in #ruby-lang
arya_ has quit [Ping timeout: 244 seconds]
Retistic has quit [Quit: Retistic]
caiges has joined #ruby
jrunning has joined #ruby
thinkdevcode has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
freezway has quit [Ping timeout: 255 seconds]
Goles has quit [Ping timeout: 240 seconds]
ewag has joined #ruby
burgestrand has joined #ruby
tuannat has joined #ruby
arya_ has joined #ruby
qwerxy has quit [Quit: offski]
tjbiddle has joined #ruby
CaptainJet has quit []
tjbiddle has quit [Client Quit]
jrunning has quit [Ping timeout: 264 seconds]
cirwin has joined #ruby
bakis has joined #ruby
u89 has joined #ruby
shtirlic has joined #ruby
tagrudev has joined #ruby
joeycarmello has joined #ruby
shtirlic_ has quit [Read error: Connection reset by peer]
uxp has quit [Read error: Connection reset by peer]
kennyvb has quit [Ping timeout: 245 seconds]
uxp has joined #ruby
kingsidharth_ has left #ruby [#ruby]
noyb has quit [Quit: Lost terminal]
kennyvb has joined #ruby
yikem has joined #ruby
bakis has quit [Quit: WeeChat 0.3.2]
<reactormonk> Blaster, because each file has its own main
<reactormonk> Blaster, when a file is loaded, it is executed in scope of Object.new
<reactormonk> basically def load(path) Object.new.instance_eval File.read(path) end
JohnBat26 has joined #ruby
caiges has quit [Read error: Operation timed out]
u89 has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
mjolk has quit [Quit: returning some videotapes]
fooo has quit [Ping timeout: 255 seconds]
Goles has joined #ruby
<rohit> I didn't know that.
<rohit> Cool
x82_nicole has joined #ruby
Hannes3_ has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
answer_42 has joined #ruby
tuan_nat has joined #ruby
nkts has joined #ruby
nomenkun has quit [Remote host closed the connection]
nomenkun has joined #ruby
Scriptwriter has joined #ruby
chimkan has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
tuannat has quit [Ping timeout: 255 seconds]
Goles has quit [Ping timeout: 240 seconds]
shiin has joined #ruby
_guy has joined #ruby
<Scriptwriter> Hello, world. What's the best gem for parsing RSS feeds? I'm using the 'rss' gem but it chokes on <guid isPermalink=false> entries.
AlecTaylor has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
FredLe has joined #ruby
areil_ has quit []
LucidDreamZzZ has joined #ruby
h4mz1d has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
djdb has joined #ruby
yikem has quit [Quit: Computer has gone to sleep.]
tonini has joined #ruby
maesbn has joined #ruby
siori has joined #ruby
siori has quit [Remote host closed the connection]
siori has joined #ruby
Scriptwriter has quit [Quit: Things are more like they are now than they have ever been before.]
xyzodiac has quit [Quit: Computer has gone to sleep.]
BoomCow has quit [Quit: This computer has gone to sleep]
zommi has joined #ruby
jamesaxl has joined #ruby
BoomCow has joined #ruby
machty has quit [Quit: machty]
ChampS666 has joined #ruby
piotr_ has joined #ruby
jamesaxl has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
lolcathost has joined #ruby
a_a_g has joined #ruby
b6 has left #ruby ["*"]
danktamagachi has quit [Ping timeout: 245 seconds]
fooo has joined #ruby
jamesaxl has quit [Read error: Operation timed out]
Elico has quit [Quit: elico]
jamesaxl has joined #ruby
<ryanf> reactormonk: that is so not true. otherwise you couldn't share top-level methods between files
<ryanf> also he's talking about assigning locals, which doesn't really have anything to do with what self is
hakunin has joined #ruby
kil0byte has quit [Ping timeout: 255 seconds]
rhys has quit [Quit: Leaving]
Rious has quit [Excess Flood]
kil0byte has joined #ruby
Goles has joined #ruby
Rious has joined #ruby
nkts has quit []
nkts has joined #ruby
senny has joined #ruby
<cirwin> new binding, same slef
<shevy> Blaster @varX = 123 would work
areil has joined #ruby
imami|afk has quit [Remote host closed the connection]
zodiak has quit [Ping timeout: 244 seconds]
slainer68 has joined #ruby
cirwin has quit [Ping timeout: 240 seconds]
Goles has quit [Ping timeout: 240 seconds]
bigkevmcd has joined #ruby
danktamagachi has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.9.2]
slainer68 has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
answer_42 has joined #ruby
chimkan has quit [Quit: chimkan]
bluOxigen has joined #ruby
rohit has quit [Quit: Leaving]
danktamagachi has quit [Ping timeout: 255 seconds]
timonv has quit [Remote host closed the connection]
aganov has joined #ruby
jamesaxl has quit [Ping timeout: 264 seconds]
margle has joined #ruby
jamesaxl has joined #ruby
jprovazn has joined #ruby
BoomCow has quit [Ping timeout: 248 seconds]
chococrois has joined #ruby
chococrois has quit [Max SendQ exceeded]
jds_ has joined #ruby
senny has quit [Remote host closed the connection]
zigomir has joined #ruby
arya has joined #ruby
gbchaosmaster has quit [Quit: <insert witty quit message here>]
jsilver has quit [Remote host closed the connection]
BoomCow has joined #ruby
ryanf has quit [Quit: leaving]
Advocation has joined #ruby
chococrois has joined #ruby
zodiak has joined #ruby
chococrois has quit [Max SendQ exceeded]
arya_ has quit [Ping timeout: 244 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
dakine has quit [Remote host closed the connection]
chococrois has joined #ruby
chococrois has quit [Max SendQ exceeded]
mengu has quit [Remote host closed the connection]
zodiak has quit [Read error: Operation timed out]
h4mz1d has quit [Ping timeout: 240 seconds]
dakine has joined #ruby
eldariof has joined #ruby
cirwin has joined #ruby
chococrois has joined #ruby
dr_bob has joined #ruby
xsbeats_ has quit [Read error: Connection reset by peer]
chococrois has quit [Max SendQ exceeded]
xsbeats has joined #ruby
monkegjinni has joined #ruby
chococrois has joined #ruby
monkegjinni has quit [Remote host closed the connection]
chococrois has quit [Client Quit]
zodiak has joined #ruby
Advocation has quit [Ping timeout: 256 seconds]
Morkel has joined #ruby
Goles has joined #ruby
greenarrow has joined #ruby
senny has joined #ruby
Elico has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
hamed_r has joined #ruby
ChampS666 has quit [Ping timeout: 260 seconds]
mneorr has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
Xeago has joined #ruby
sn0wb1rd has joined #ruby
eb has joined #ruby
ebt has quit [Ping timeout: 248 seconds]
Retistic has joined #ruby
Xeago has quit [Remote host closed the connection]
Goles has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
Xeago has joined #ruby
punkrawkR has joined #ruby
jamesaxl has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
jslowe has joined #ruby
rippa has joined #ruby
Eplemosen has joined #ruby
nkts has quit []
matrixise has quit [Ping timeout: 256 seconds]
rippa has quit [Ping timeout: 264 seconds]
kil0byte has quit [Ping timeout: 246 seconds]
k610 has joined #ruby
kingsidharth has joined #ruby
dakine has quit [Quit: Leaving]
nemesit has joined #ruby
kil0byte has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
Beoran__ has quit [Read error: Connection reset by peer]
tPl0ch has joined #ruby
Elico has quit [Quit: elico]
Beoran__ has joined #ruby
atmosx has joined #ruby
jamesaxl has joined #ruby
u89 has joined #ruby
u89 has quit [Remote host closed the connection]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
codecaster has joined #ruby
jimeh has joined #ruby
Goles has joined #ruby
u89 has joined #ruby
fyolnish has quit [Remote host closed the connection]
fyolnish has joined #ruby
BiHi has joined #ruby
emergion has joined #ruby
mugger has quit [Ping timeout: 260 seconds]
jds_ has quit [Remote host closed the connection]
lolcathost has quit [Ping timeout: 246 seconds]
Goles has quit [Ping timeout: 260 seconds]
Elhu has joined #ruby
jgrevich has quit [Remote host closed the connection]
sk87 has joined #ruby
fyolnish has quit [Remote host closed the connection]
morf has joined #ruby
hotovson has joined #ruby
nomenkun has joined #ruby
BiHi has quit [Quit: Computer has gone to sleep]
nomenkun has quit [Read error: Connection reset by peer]
Virunga has joined #ruby
nomenkun has joined #ruby
lolcathost has joined #ruby
nomenkun_ has joined #ruby
mand_ has quit [Ping timeout: 252 seconds]
nomenkun has quit [Ping timeout: 260 seconds]
Shamgar has quit [Ping timeout: 264 seconds]
kil0byte_ has joined #ruby
<witchdoc> hi all
freeayu has joined #ruby
TheFuzzball has quit [Quit: Leaving...]
nemesit has quit [Ping timeout: 276 seconds]
Guest92676 has joined #ruby
zeromodu_ has quit [Remote host closed the connection]
<oqa> shevy: yea, the API is a little intricate. I wrote a replacement with less features to work around the issue I had, 76 lines vs 1600 lines in optparse.rb
kil0byte has quit [Ping timeout: 240 seconds]
BiHi has joined #ruby
Elico has joined #ruby
codecaster has quit [Read error: Connection reset by peer]
codecaster has joined #ruby
ExxKA has joined #ruby
siori has quit [Remote host closed the connection]
siori has joined #ruby
elsifaka has joined #ruby
habib has joined #ruby
six has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
ananthakumaran has joined #ruby
siori has quit [Ping timeout: 252 seconds]
tobinharris has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Goles has joined #ruby
slainer68 has joined #ruby
KevinSjoberg has joined #ruby
apeiros_ has joined #ruby
pcarrier has joined #ruby
pcarrier has quit [Excess Flood]
pcarrier has joined #ruby
pcarrier has quit [Excess Flood]
pcarrier has joined #ruby
_bart has quit [Quit: _bart]
reset has quit [Quit: Leaving...]
elaptics`away is now known as elaptics
freeayu has quit [Read error: Connection reset by peer]
bartj3 has joined #ruby
Goles has quit [Ping timeout: 259 seconds]
k610 has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
cirwin has quit [Ping timeout: 240 seconds]
eb has quit [Read error: Operation timed out]
mand_ has joined #ruby
matrixise has joined #ruby
eb has joined #ruby
nari has joined #ruby
k610 has joined #ruby
berserkr has joined #ruby
cdt has joined #ruby
shtirlic_ has joined #ruby
zz_chrismcg is now known as chrismcg
margle has joined #ruby
ephemerian has joined #ruby
adambeynon has joined #ruby
chussenot has joined #ruby
cdt has quit [Ping timeout: 241 seconds]
keymone has quit [Quit: keymone]
k611 has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
Weazy has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
matip_ has joined #ruby
Retistic has quit [Quit: Retistic]
margle has joined #ruby
matip has quit [Ping timeout: 245 seconds]
ikaros has joined #ruby
timonv has joined #ruby
nemesit has joined #ruby
lkba has quit [Ping timeout: 248 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
<shevy> oqa hehehehe
<shevy> in my experience with OptionParser, every time I look at its documentation and try to find anything, I go "Wtf???"
Vainoharhainen has joined #ruby
jamesaxl has quit [Read error: No route to host]
spursrails has joined #ruby
sn0wb1rd has joined #ruby
kil0byte has joined #ruby
<spursrails> help
<spursrails> how can i indent ruby code properly in emacs
<spursrails> I'm learing ruby from ruby-koans, and some lines like "long_string = %{It was the best of times,It was the worst of times.}" can't be indented very well
pcarrier has quit [Read error: No buffer space available]
kil0byte_ has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 244 seconds]
berserkr has quit [Quit: Leaving.]
emergion has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
grzywacz has quit [Quit: :wq]
zaki has quit [Read error: Operation timed out]
arya_ has joined #ruby
pcarrier has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
beiter has joined #ruby
arya has quit [Ping timeout: 244 seconds]
nkts has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
workmad3 has joined #ruby
bartj3 has quit []
nkts has quit [Remote host closed the connection]
nkts has joined #ruby
<shevy> spursrails by pressing the space key properl
<shevy> y
nkts has quit [Client Quit]
<shevy> well, this may be a problem to indent such a long string spursrails, I think the string would include the indent too
Tania has joined #ruby
<spursrails> the longstring is multi-lines
sspiff has joined #ruby
<spursrails> no spaces before 'It was the best of times' and the closed } is not indented
<spursrails> rails.vim could not resolve this also
bpfh has joined #ruby
<spursrails> SPACE or TAB doesn't work either
nkts has joined #ruby
nkts has quit [Changing host]
nkts has joined #ruby
tvw has joined #ruby
reinaldob has joined #ruby
gyre007 has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kil0byte_ has joined #ruby
mengu has joined #ruby
zaki has joined #ruby
spursrai` has joined #ruby
spursrai` has left #ruby [#ruby]
spursrails has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
bartj3 has joined #ruby
kil0byte has quit [Ping timeout: 260 seconds]
<xbayrockx> anyone with XP in image or pattern recognition?
skattyadz has joined #ruby
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
elementz has joined #ruby
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
elementz has quit [Client Quit]
Iszak has joined #ruby
arya_ has quit []
tobinharris has quit [Quit: tobinharris]
_bart has joined #ruby
tobinharris has joined #ruby
Goles has joined #ruby
allanm_ has joined #ruby
topek has joined #ruby
AlSquirrel has joined #ruby
allanm has quit [Read error: Connection reset by peer]
AlSquire has quit [Read error: Connection reset by peer]
Raboo has joined #ruby
allanm_ has quit [Read error: No buffer space available]
<RubyPanther> he left before he could learn about '(truncate-partial-width-windows nil))
allanm_ has joined #ruby
Raboo_ has quit [Read error: Operation timed out]
Goles_ has joined #ruby
beiter has quit [Quit: beiter]
daniel_- has joined #ruby
spursrails has joined #ruby
topek has quit [Client Quit]
spursrails has left #ruby [#ruby]
topek has joined #ruby
Goles has quit [Ping timeout: 252 seconds]
<shevy> he is too obsessed with an editor
<shevy> typical for emacs users
tvw has quit [Remote host closed the connection]
tvw has joined #ruby
phelps_ has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
phelps has quit [Read error: No buffer space available]
tk__ has joined #ruby
siori_ has joined #ruby
Goles_ has quit [Ping timeout: 264 seconds]
joeycarmello has quit [Ping timeout: 260 seconds]
<nkts> Hi, I have rackup gem installed, but I can't find rackup ...
ABK has joined #ruby
samphippen has joined #ruby
freeayu has joined #ruby
siori_ has quit [Ping timeout: 256 seconds]
<sonne> nkts, rbenv rehash?
<nkts> ghm no rbenv …
<nkts> but I found rackup
berserkr has joined #ruby
allanm_ has quit [Read error: Connection reset by peer]
estan_ is now known as estan
robustus has joined #ruby
allanm_ has joined #ruby
spike|spiegel has joined #ruby
cascalheira has joined #ruby
nemesit has quit [Quit: Leaving...]
kil0byte has joined #ruby
<Xeago> someone that gets interviewed is an interviewee right?
<workmad3> Xeago: or a candidate
<workmad3> Xeago: or a suspect...
<Xeago> is it applicable for formal use?
<JonnieCache> yes
<Xeago> thanks!
adeponte has quit [Remote host closed the connection]
Rym_ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
kil0byte_ has quit [Ping timeout: 256 seconds]
Rym has quit [Ping timeout: 240 seconds]
Rym_ is now known as Rym
JohnBat26 has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
FredLe has quit [Read error: Operation timed out]
FredLe has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
ZubKonst has quit [Read error: Connection reset by peer]
ZubKonst_ has joined #ruby
hamed_r has quit [Quit: Leaving]
kil0byte has quit [Ping timeout: 265 seconds]
sepuku has quit [Ping timeout: 260 seconds]
margle has joined #ruby
_bart has quit [Quit: _bart]
sepuku has joined #ruby
xcvd`` has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
emergion has joined #ruby
Goles has joined #ruby
Goles_ has joined #ruby
Averna has joined #ruby
jslowe has quit [Ping timeout: 255 seconds]
Goles___ has joined #ruby
Goles has quit [Ping timeout: 264 seconds]
joeycarmello has joined #ruby
rohit has joined #ruby
<txdv> I need to resolve a hostname into an ip address, what is the fastest with ruby to do so?
Goles_ has quit [Ping timeout: 248 seconds]
ttt has quit [Remote host closed the connection]
Goles___ has quit [Ping timeout: 256 seconds]
daniel_- has joined #ruby
Goles has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 246 seconds]
JohnBat26 has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
emergion has quit [Quit: Computer has gone to sleep.]
fyolnish has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
Goles_ has joined #ruby
Goles has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
Goles has joined #ruby
<txdv> i have to supply a nameserveri n that one?
nari has quit [Ping timeout: 245 seconds]
kil0byte_ has quit [Ping timeout: 248 seconds]
<txdv> yeah ok
<txdv> works fine
<txdv> thanks
Goles_ has quit [Ping timeout: 240 seconds]
Goles___ has joined #ruby
Goles has quit [Ping timeout: 241 seconds]
nemesit has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
Goles has joined #ruby
ExxKA has joined #ruby
Michael__ has joined #ruby
Lemonism has quit [Read error: Connection reset by peer]
Goles___ has quit [Ping timeout: 252 seconds]
senny has quit [Read error: Connection reset by peer]
samphippen has joined #ruby
wallerdev has quit [Quit: wallerdev]
kp666 has joined #ruby
gokul has joined #ruby
Goles has quit [Ping timeout: 248 seconds]
nemesit has quit [Ping timeout: 244 seconds]
spry_dave has joined #ruby
spry_dave has quit [Client Quit]
sepp2k has joined #ruby
davidrhyswhite has joined #ruby
fir_ed has joined #ruby
bartj3 has quit []
_bart has joined #ruby
allanm_ has quit [Read error: No buffer space available]
allanm_ has joined #ruby
gokul has quit [Client Quit]
shtirlic_ has quit [Remote host closed the connection]
pcarrier has quit []
sspiff has quit [Ping timeout: 256 seconds]
arturaz has joined #ruby
tuan_nat has quit [Ping timeout: 246 seconds]
caiges has joined #ruby
nemesit has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
brandon_ has joined #ruby
caiges has quit [Client Quit]
bartj3 has joined #ruby
brandon has quit [Ping timeout: 246 seconds]
brandon_ is now known as brandon
lolcathost has quit [Quit: Lost terminal]
Goles has joined #ruby
Lemtzas has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
Michael__ has quit [Ping timeout: 240 seconds]
mathie has joined #ruby
Axsuul has quit [Ping timeout: 250 seconds]
postmodern has quit [Quit: Leaving]
Goles has quit [Ping timeout: 240 seconds]
daniel_- has quit [Ping timeout: 252 seconds]
bier_ has quit [Ping timeout: 250 seconds]
Michael__ has joined #ruby
bier has quit [Ping timeout: 252 seconds]
BiHi has quit [Read error: Connection reset by peer]
Michael__ has quit [Remote host closed the connection]
skattyadz has quit [Quit: skattyadz]
sspiff has joined #ruby
margle has joined #ruby
Goles has joined #ruby
Goles_ has joined #ruby
pcarrier has joined #ruby
Goles__ has joined #ruby
Goles has quit [Ping timeout: 240 seconds]
ksk_ is now known as ksk
hamed_r has joined #ruby
Goles_ has quit [Read error: Connection reset by peer]
heftig has quit [Quit: leaving]
pcarrier has quit [Ping timeout: 260 seconds]
Goles__ has quit [Ping timeout: 241 seconds]
bier has joined #ruby
bier_ has joined #ruby
pcarrier has joined #ruby
pcarrier has quit [Excess Flood]
skattyadz has joined #ruby
allanm_ has quit [Read error: No buffer space available]
pcarrier has joined #ruby
Goles_ has joined #ruby
[Neurotic] has quit [Ping timeout: 265 seconds]
allanm_ has joined #ruby
beiter has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
lolcathost has joined #ruby
ExxKA has joined #ruby
segv- has joined #ruby
_bart has quit [Quit: _bart]
rohit has quit [Ping timeout: 240 seconds]
<nkts> how to specify inline if ?
<nkts> foo? bar : boo
<nkts> usually I get "unexpected :"
<arturaz> foo? ? bar : boo
lkba has joined #ruby
Goles_ has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
<nkts> arturaz, dekui :)
<arturaz> prašom ;)
dr_bob has quit [Ping timeout: 240 seconds]
dr_bob has joined #ruby
kil0byte has quit [Ping timeout: 248 seconds]
margle has quit [Quit: Computer has gone to sleep.]
chussenot has quit [Ping timeout: 240 seconds]
ttt has joined #ruby
Slivka has joined #ruby
krz has quit [Quit: krz]
Tania has quit [Read error: Connection reset by peer]
rohit has joined #ruby
carloslopes has joined #ruby
tobinharris has quit [Ping timeout: 240 seconds]
ttt has quit [Ping timeout: 276 seconds]
Averna has quit [Quit: Leaving.]
diegoviola has joined #ruby
LouisGB has joined #ruby
capaterra has quit [Quit: Leaving]
Elhu has quit [Quit: Computer has gone to sleep.]
LouisGB has quit [Client Quit]
u89 has quit [Remote host closed the connection]
topek has quit [Quit: Leaving.]
topek has joined #ruby
senny has joined #ruby
yoklov has quit [Quit: computer sleeping]
LouisGB has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
rohit has quit [Ping timeout: 245 seconds]
senny_ has joined #ruby
rdark has joined #ruby
mercwithamouth has joined #ruby
mercwith1mouth has joined #ruby
senny has quit [Ping timeout: 240 seconds]
arya has joined #ruby
phelps has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
chussenot has joined #ruby
sarguru_ has joined #ruby
phelps_ has quit [Ping timeout: 240 seconds]
evelyette has quit [Ping timeout: 240 seconds]
evelyette has joined #ruby
Dreamer3 has quit [Ping timeout: 264 seconds]
codecaster has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
<sarguru_> Hi. I need an rails help. I have been getting hostname "localhost" does not match the server certificate error on using Actionmailer. But surprisingly I use sendmail and I don't know where tls comes into play. Even I tired ActionMailer::Base.smtp_settings[:enable_starttls_auto] = false still no luck. will be helpful if any1 tells me which way tp proceed
codecaster has joined #ruby
Jasko2 has quit [Ping timeout: 264 seconds]
Dreamer3 has joined #ruby
arya has quit [Ping timeout: 244 seconds]
rohit has joined #ruby
cakehero has joined #ruby
rohit has quit [Read error: Connection reset by peer]
Dreamer3 has quit [Max SendQ exceeded]
rohit has joined #ruby
<apeiros_> sarguru_: if you need a rails help then you're in the wrong channel
<apeiros_> you want #rubyonrails
andrewvos has joined #ruby
<andrewvos> eval-in: Hi
<sarguru_> apeiros_: I thought its related to generic ruby + action mailer issue too
<andrewvos> >> puts 1+2
<eval-in> andrewvos: Output: "3\n" (http://eval.in/3948)
<andrewvos> >> `ls`
<eval-in> andrewvos: Output: "" (http://eval.in/3949)
<apeiros_> sarguru_: you start with "I need a rails help"…
arya_ is now known as arya
<andrewvos> hehe
bigkevmcd has quit [Quit: outta here]
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
bigkevmcd has joined #ruby
<andrewvos> >> `ls /`
<eval-in> andrewvos: Output: "" (http://eval.in/3950)
<andrewvos> :'(
<sarguru_> >> `pwd`
<eval-in> sarguru_: Output: "" (http://eval.in/3951)
Goles has joined #ruby
<apeiros_> andrewvos: move that to privmsg, thanks
<andrewvos> apeiros_: Yarp
<apeiros_> sarguru_: you too
<sarguru_> apeiros_: sure
Nisstyre-laptop has quit [Ping timeout: 245 seconds]
hoelzro|away is now known as hoelzro
Dreamer3 has joined #ruby
chussenot has quit [Ping timeout: 240 seconds]
kingsidharth has left #ruby [#ruby]
rohit has quit [Quit: Leaving]
BBonifield has quit [Ping timeout: 240 seconds]
kp666 has quit [Remote host closed the connection]
ffranz has joined #ruby
arya_ has joined #ruby
BBonifield has joined #ruby
geekbri has joined #ruby
Jasko has joined #ruby
arya has quit [Ping timeout: 244 seconds]
Dreamer3 has quit [Ping timeout: 240 seconds]
nari has joined #ruby
arya_ is now known as arya
statarb3 has quit [Quit: Leaving]
daniel_- has joined #ruby
phelps has quit [Remote host closed the connection]
phelps has joined #ruby
yoklov has joined #ruby
yoklov has quit [Max SendQ exceeded]
u89 has joined #ruby
yoklov has joined #ruby
daniel_-_ has joined #ruby
Morkel_ has joined #ruby
FDj_ has joined #ruby
Dreamer3 has joined #ruby
weasels has joined #ruby
B|aster has joined #ruby
bitZero_1 has joined #ruby
dr_bob1 has joined #ruby
nilg` has joined #ruby
beiter has quit [Quit: beiter]
joschi_ has joined #ruby
jeffreybaird has joined #ruby
davidrhyswhite has quit [Remote host closed the connection]
txdv_ has joined #ruby
hiroyuki has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
issyl0 has joined #ruby
taec_ has joined #ruby
adamholt_ has joined #ruby
emdub has joined #ruby
new299_ has joined #ruby
rmc3_ has joined #ruby
tdubz has joined #ruby
issyl0 is now known as Guest33668
elliottc1ble has joined #ruby
MarcWebe1 has joined #ruby
skaczor has joined #ruby
Sargun has joined #ruby
arubin_ has joined #ruby
Kov|abx has joined #ruby
wereHams1er has joined #ruby
Seventoe1 has joined #ruby
BiHi has joined #ruby
mark_locklear has joined #ruby
<JonnieCache> oooh we have a bot again
<JonnieCache> who was kind enough to sort that out?
dr_bob1 has quit [Quit: Leaving.]
Slivka has quit [Remote host closed the connection]
uxp_ has joined #ruby
tommyvyo has joined #ruby
<apeiros_> charliesome: eval-in your bot?
Gm4n_ has joined #ruby
<charliesome> apeiros_: yep
ExxKA has joined #ruby
dr_bob1 has joined #ruby
bastl_ has joined #ruby
<apeiros_> does it have protection against people abusing it to spam the channel?
timonv_ has joined #ruby
justinlilly has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
otters has quit [Read error: Connection reset by peer]
bastl has quit [Ping timeout: 252 seconds]
adamholt has quit [Ping timeout: 252 seconds]
justinabrahms has quit [Ping timeout: 252 seconds]
alexwh has quit [Ping timeout: 252 seconds]
aganov has quit [Ping timeout: 252 seconds]
joschi has quit [Ping timeout: 252 seconds]
Gm4n has quit [Ping timeout: 252 seconds]
daniel_- has quit [Ping timeout: 273 seconds]
mand_ has quit [Ping timeout: 295 seconds]
elsifaka has quit [Ping timeout: 295 seconds]
Morkel has quit [Ping timeout: 251 seconds]
MarcWeber has quit [Ping timeout: 273 seconds]
ewag has quit [Ping timeout: 295 seconds]
uxp has quit [Ping timeout: 273 seconds]
Vert has quit [Ping timeout: 295 seconds]
Koven has quit [Ping timeout: 295 seconds]
Sargun_ has quit [Ping timeout: 273 seconds]
rmc3 has quit [Ping timeout: 273 seconds]
clocKwize has quit [Ping timeout: 295 seconds]
FDj has quit [Ping timeout: 295 seconds]
emdub_ has quit [Ping timeout: 295 seconds]
txdv has quit [Ping timeout: 295 seconds]
Seventoes has quit [Ping timeout: 251 seconds]
arubin has quit [Ping timeout: 273 seconds]
wereHamster has quit [Ping timeout: 251 seconds]
stigmux has quit [Ping timeout: 295 seconds]
bitZero__ has quit [Ping timeout: 273 seconds]
elliottcable has quit [Ping timeout: 273 seconds]
taec has quit [Ping timeout: 295 seconds]
new299 has quit [Ping timeout: 273 seconds]
Blaster has quit [Ping timeout: 365 seconds]
hiroyuki_ has quit [Ping timeout: 343 seconds]
nilg has quit [Ping timeout: 343 seconds]
lushious has quit [Ping timeout: 365 seconds]
Guest30602 has quit [Read error: Connection reset by peer]
lushious has joined #ruby
Vert has joined #ruby
Morkel_ is now known as Morkel
<charliesome> was that the problem with the old one?
alexwh has joined #ruby
g-ram has joined #ruby
<apeiros_> I don't know why the others aren't here anymore
timonv has quit [Ping timeout: 260 seconds]
<charliesome> in any case, it can't feed back to itself
<apeiros_> but they had that problem, yes
thomas has quit [Ping timeout: 609 seconds]
BBonifield has quit [Ping timeout: 242 seconds]
stigmux has joined #ruby
<apeiros_> >> 1+1
<eval-in> apeiros_: Output: "" (http://eval.in/3957)
m4rtijn has joined #ruby
<m4rtijn> ih
aganov has joined #ruby
a_a_g has quit [Quit: Leaving.]
<apeiros_> >> "hello"*1000
<eval-in> apeiros_: Output: "" (http://eval.in/3958)
clocKwize has joined #ruby
<apeiros_> >> puts "hello"*1000
<eval-in> apeiros_: Output: "hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohelloh ..." (http://eval.in/3959)
ewag has joined #ruby
mand_ has joined #ruby
<apeiros_> ih m4rtijn
dr_bob1 has quit [Client Quit]
<m4rtijn> :p
<apeiros_> charliesome: ok, it shortens the output, that's a start
elsifaka has joined #ruby
no_i_wont has quit [Ping timeout: 241 seconds]
<m4rtijn> ?gniog ti swoh
Guest34355 has joined #ruby
dr_bob has joined #ruby
sailias has joined #ruby
pcarrier has quit []
<apeiros_> ?uoy dna !doog doog
x0F has quit [Disconnected by services]
BBonifield has joined #ruby
<m4rtijn> !tnellexe
x0F_ has joined #ruby
<m4rtijn> :)
x0F_ is now known as x0F
rakl has quit [Ping timeout: 240 seconds]
wereHams1er is now known as wereHamster
no_i_wont has joined #ruby
<apeiros_> ?noitseuq rouy s'tahw os .ecin
<apeiros_> oh, typo
jmccune has quit [Ping timeout: 240 seconds]
Monie has joined #ruby
piotr_ has quit [Ping timeout: 240 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Proshot has joined #ruby
Proshot has quit [Client Quit]
jmccune has joined #ruby
rakl has joined #ruby
krawchyk has joined #ruby
<m4rtijn> ereh eldi ot ekil tsuj, snoitseuq on
<apeiros_> ko
<apeiros_> nuf evah
samphippen has quit [Quit: Computer has gone to sleep.]
pcarrier has joined #ruby
verto|off is now known as verto
workmad3 has joined #ruby
verto is now known as verto|off
machty has joined #ruby
pcarrier_ has joined #ruby
chimkan has joined #ruby
D4T_ has joined #ruby
schaerli has joined #ruby
mercwith1mouth has quit [Ping timeout: 265 seconds]
mercwithamouth has quit [Ping timeout: 265 seconds]
<D4T_> Hi all, trying to write a class to interact with a third party API. They state the following "The API is accessed by sending and receiving XML messages to an encrypted (TLS) port on our server". Any suggestions on where to start here?
mislav has joined #ruby
<D4T_> I'm happy building the XML etc. just not sure on the best way to transport?
<Xeago> D4T_: what is the transport layer on TLS?
<Xeago> HTTP?
<D4T_> yeah
niklasb has joined #ruby
<D4T_> net/http?
<Xeago> or any of the gems that exist
pcarrier has quit [Ping timeout: 276 seconds]
pcarrier_ is now known as pcarrier
<D4T_> ok will give it a shot, am i right in thinking there is no https support in net/http in Ruby 1.8.7?
<D4T_> It was added in 1.9 ?
<Xeago> yes, you are wrong
hoelzro is now known as hoelzro|away
<D4T_> lol ok thanks
<Xeago> SSL support comes from libraries, most commonly OpenSSL
<Xeago> rarely seen something else used but it's possible
<D4T_> ok
<D4T_> so net/http can use the openssl module presumably?
chussenot has joined #ruby
<Xeago> not sure if net/http has ssl support, but it also depends on your ruby compilation
daniel_-_ has quit [Ping timeout: 255 seconds]
<workmad3> net/https brings in https support :)
<D4T_> ok not http
tvw has quit [Read error: Operation timed out]
<D4T_> "Each request frame (sent or received) consists of the length as a network-order (big-endian) 32-bit number followed by the actual request. This is the standard EPP approach, and simplifies request handling at both ends. "
<Xeago> ok, I doubt that is HTTP
<Xeago> or maybe it is EPP after the 32bit number?
<Xeago> err HTTP*
<D4T_> hmmm, don't think so.
tomsthumb has quit [Quit: Leaving.]
<Xeago> do you have a complete transport description like that?
<Xeago> as then you'll have to write the protocol up in ruby aswell
<Guest34355> hello, I call an external programm which prompts for a password, how do I wait for that stdin prompt?
<D4T_> just looking, the documentation is poor at best
allanm_ has quit [Read error: Connection reset by peer]
* D4T_ just found an epp gem
allanm_ has joined #ruby
<Xeago> never heard of EPP, will have a look at it
<D4T_> me either until now
<D4T_> :)
arya_ has joined #ruby
<Xeago> extensible provision protocol?
<D4T_> thats it
<D4T_> the gem looks like it will do me
<D4T_> seems to fit in with the bad api documentation
<Xeago> and otherwise there's a bunch of rfc's for protocol definition
Guest92676 is now known as Jackneill
Jackneill has quit [Changing host]
Jackneill has joined #ruby
<Xeago> the documentation probably is and looks bad because it is defined elsewhere but not commonly known
<Xeago> everybody knows http so mentioning that is sufficient
<D4T_> true
arya has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
<D4T_> ok, bad = beyond me initially
<D4T_> i'll get there :)
king313 has joined #ruby
king313 has quit [Changing host]
king313 has joined #ruby
atno|Zzz is now known as atno
sailias has quit [Quit: Leaving.]
senny_ has quit [Remote host closed the connection]
byteminister has joined #ruby
nari has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
<Xeago> D4T_: there's several gems
<D4T_> yeah
nari has joined #ruby
<Xeago> ultraspeed/epp blaz/epp hkairi/epp to name the top 3 on github
daniel_-_ has joined #ruby
<D4T_> will check them out, thanks
carloslopes has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
nomenkun_ has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
nomenkun has joined #ruby
Banistergalaxy has joined #ruby
mathie has quit [Quit: Sleeping...]
jeffreybaird has joined #ruby
senny has joined #ruby
carloslopes has joined #ruby
samphippen has joined #ruby
AndChat| has quit [Ping timeout: 264 seconds]
tommyvyo_ has joined #ruby
andrewvos has left #ruby [#ruby]
ExxKA has quit [Quit: This computer has gone to sleep]
kil0byte_ has quit [Ping timeout: 255 seconds]
ExxKA has joined #ruby
Uranio has joined #ruby
chussenot has quit [Ping timeout: 240 seconds]
kil0byte has joined #ruby
carloslopes has quit [Remote host closed the connection]
chimkan has quit [Ping timeout: 248 seconds]
atno has quit [Read error: Connection timed out]
chimkan has joined #ruby
atno has joined #ruby
<Guest34355> hello what do I have to do to write to STDIN, e.g. provide a password?
<apeiros_> you don't write to STDIN, you read from it.
<apeiros_> or do you mean the STDIN of another process?
<Guest34355> i know
<Guest34355> yes I start another process with Open3.popen3 and that process prompts for a password
busybox42 has quit [Ping timeout: 276 seconds]
_guy has quit [Remote host closed the connection]
krawchyk_ has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
_guy has joined #ruby
byteminister has quit [Remote host closed the connection]
<apeiros_> you print on it
<apeiros_> see IO
chimkan has quit [Client Quit]
<apeiros_> puts, print, write…
busybox42 has joined #ruby
jipiboily has joined #ruby
jipiboily has left #ruby [#ruby]
chimkan has joined #ruby
Elhu has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
krawchy__ has joined #ruby
machty has quit [Quit: machty]
Neomex has joined #ruby
krawchyk has quit [Ping timeout: 252 seconds]
sarguru_ has left #ruby [#ruby]
jlwestsr has joined #ruby
Neomex has quit [Client Quit]
<tbrock> is there any way to get erb to automatically include a newline
macabre has joined #ruby
tomsthumb has joined #ruby
volta has joined #ruby
schaerli has quit [Remote host closed the connection]
<Guest34355> apeiros_, the simple examples from http://ruby-doc.org/stdlib-1.9.3/libdoc/open3/rdoc/Open3.html#method-c-popen3 are working
dr_bob has quit [Read error: No buffer space available]
dr_bob has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<Guest34355> apeiros_, but when I call svn with ssh to get the log of a repo, then i doesnt work
mathie has joined #ruby
xyzodiac has joined #ruby
pixie79 has joined #ruby
xyzodiac has quit [Client Quit]
Jackneill has quit [Quit: Jackneill]
carlyle has joined #ruby
linoj has joined #ruby
SwooshyCueb has joined #ruby
Jackneill has joined #ruby
<apeiros_> Guest34355: ssh does not accept input from non tty's iirc
Jackneill has quit [Read error: Connection reset by peer]
<apeiros_> use net/ssh
<pixie79> hi all, i have a problem with the following bit of ruby - it should be using the rackspace gem cloudfiles, and downloading a file from our cloudfiles store. However, it seems to stick the file in memory rather or during the write to the file. As the file is around 2Gb that is too big for my server to hold in RAM whilst it is downloaded. Can someone show me how to adjust it to spool straight to the file on disk. - Thanks
<Guest34355> apeiros_, mhmh ok. I will try it. thank you!
chussenot has joined #ruby
schaerli has joined #ruby
heftig has joined #ruby
arya_ has quit [Ping timeout: 255 seconds]
mercwith1mouth has joined #ruby
mercwithamouth has joined #ruby
xyzodiac has joined #ruby
ner0x has joined #ruby
ewag has quit [Ping timeout: 252 seconds]
arya has joined #ruby
nari has quit [Ping timeout: 241 seconds]
xyzodiac has quit [Client Quit]
GoGoGarrett has joined #ruby
Jasko has quit [Quit: Leaving]
nga4 has joined #ruby
<pixie79> opps sorry realised i had not pasted the code i had written about
ananthakumaran has quit [Quit: Leaving.]
Slivka has joined #ruby
<apeiros_> pixie79: a) use File.open with a block instead of manually closing, b) read and write in chunks. see File#read
habib has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
senny has quit [Remote host closed the connection]
mercwith1mouth has quit [Ping timeout: 246 seconds]
xyzodiac has joined #ruby
allanm_ has quit [Read error: Connection reset by peer]
elliottc1ble is now known as elliottcable
senny has joined #ruby
allanm_ has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
<pixie79> ok
<apeiros_> might be in IO#read (File < IO)
allanm_ has quit [Read error: Connection reset by peer]
allanm_ has joined #ruby
davidrhyswhite has joined #ruby
seanwash has joined #ruby
Coolhand_ has quit [Ping timeout: 265 seconds]
nanderoo has joined #ruby
nwertman has joined #ruby
<pixie79> my issue is it is a write not a read, the data is comming from the internet as a binary stream of compressed data
Coolhand has joined #ruby
ltsstar has joined #ruby
hamed_r has quit [Quit: Leaving]
robustus has quit [Ping timeout: 255 seconds]
robustus has joined #ruby
<apeiros_> pixie79: then paste the real code. the code you pasted is a file.
<apeiros_> file = open("/opt/dump/#{filename}", 'wb') # <-- or are you not talking about this?
demian`_ has joined #ruby
mislav has quit [Ping timeout: 246 seconds]
Shamgar has joined #ruby
_guy has quit [Remote host closed the connection]
<allsystemsarego> http://pastebin.com/raw.php?i=PHLvDTm4 Hi all, I wrote this toy app in Ruby, it does what I want, but I'd like to know how an experienced Rubyist would grade it on a "clean code" scale of 1 to 10
krawchy__ has quit [Read error: Connection reset by peer]
_guy has joined #ruby
<pixie79> apeiros_: that is the file i am opening to write the data too
krawchyk has joined #ruby
<pixie79> object.data causes the data to be downloaded and i believe streamed out
<pixie79> it is part of the cloudfiles gem
SwooshyCueb has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
m4rtijn has quit [Ping timeout: 265 seconds]
m4rtijn has joined #ruby
m4rtijn is now known as Guest74373
phelps has quit [Quit: Linkinus - http://linkinus.com]
v0n has joined #ruby
sailias has joined #ruby
pothibo has joined #ruby
arya has quit [Ping timeout: 246 seconds]
pvh has quit [Remote host closed the connection]
wallmani is now known as wolfmani
jhowarth has quit [Read error: Connection reset by peer]
oqa has quit [Ping timeout: 264 seconds]
garndt has quit [Remote host closed the connection]
oqa has joined #ruby
bbttxu has joined #ruby
dkannan has quit [Ping timeout: 260 seconds]
SoonerBourne has quit [Read error: Connection reset by peer]
pothibo has quit [Client Quit]
dkannan has joined #ruby
arya has joined #ruby
garndt has joined #ruby
devdazed has joined #ruby
jhowarth has joined #ruby
devdazed has quit [Max SendQ exceeded]
dedis has quit [Read error: Operation timed out]
codecop has quit [Remote host closed the connection]
<apeiros_> pixie79: then you'll have to study the docs of the cloudfiles gem
devdazed has joined #ruby
pvh has joined #ruby
fyolnish has quit [Remote host closed the connection]
asobrasil has joined #ruby
fyolnish has joined #ruby
beiter has joined #ruby
margle has joined #ruby
vlad_starkov has joined #ruby
<pixie79> yep thats what i have been doing - i have managed to get the files up - but have not found how to download
nari has joined #ruby
machty has joined #ruby
ltsstar has quit [Ping timeout: 252 seconds]
jaygen has joined #ruby
atno has quit [Quit: Leaving]
NiteRain has joined #ruby
siori has joined #ruby
siori has quit [Remote host closed the connection]
x82_nicole has joined #ruby
lampe2 has joined #ruby
Zai00 has joined #ruby
SwooshyCueb has joined #ruby
generalissimo has joined #ruby
atno has joined #ruby
atno is now known as atno|Ping
phantasm66 has joined #ruby
daniel_-_ has quit [Ping timeout: 264 seconds]
danktamagachi has joined #ruby
dmerrick has joined #ruby
berserkr has quit [Quit: Leaving.]
jbpros has quit [Ping timeout: 240 seconds]
jbpros_ has joined #ruby
jbpros_ is now known as jbpros
tobinharris has joined #ruby
ToTo has joined #ruby
stopbit has joined #ruby
reinaldob has joined #ruby
X-Jester has quit [Ping timeout: 248 seconds]
lukeholder has joined #ruby
freezway has joined #ruby
cmarques has joined #ruby
Jackneill has joined #ruby
frem has joined #ruby
Jackneill is now known as Guest24042
ryanlecompte has quit [Remote host closed the connection]
tk__ has quit [Quit: ばいばい]
yshh has quit [Remote host closed the connection]
BiHi has quit [Read error: Connection reset by peer]
ryanlecompte has joined #ruby
dkannan is now known as dkannan_
dkannan_ has quit [Excess Flood]
jeffreybaird has quit [Quit: jeffreybaird]
freeayu has quit [Remote host closed the connection]
dkannan has joined #ruby
tobinharris has quit [Quit: tobinharris]
philcrissman has joined #ruby
<rking> Anyone know if there is such a thing as a semi-manual test framework?
ExxKA has quit [Quit: This computer has gone to sleep]
nilg` has quit [Ping timeout: 264 seconds]
<rking> That is, I have some legacy code that I'm taking over, and it occurs to me that it would be better to script a bunch of "Hit OK once you've verified that a product can be added to the cart" prompts
<rking> Then automate them one by one as proves profitable.
ExxKA has joined #ruby
NiteRain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<allsystemsarego> rking, "Hit OK" sounds like there's some kind of GUI involved
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
NiteRain has joined #ruby
ktaz has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
daniel_-_ has joined #ruby
<rking> I mean a stdio prompt, but that could work, too.
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
bwlang has joined #ruby
jeffreybaird has joined #ruby
asteve has joined #ruby
<allsystemsarego> you could always include I/O as part of the test code
x77686d has joined #ruby
<allsystemsarego> then remove as needed
BiHi has joined #ruby
jrajav has joined #ruby
<rking> Yep
arya_ has joined #ruby
joofsh has joined #ruby
<rking> That's what I'm going to do, but it seems like this would be a common approach for codebases with no tests.
<shevy> rking!
<shevy> what evil plans are you up to again
<rking> Because then you could do things like record how much time it takes to do the manual tests.
<rking> shevy: Hehe
<shevy> when I will do tests, I will hire cheap chinese workers for that
generalissimo has quit [Read error: Connection reset by peer]
generali_ has joined #ruby
<rking> Oh man
<rking> I didn't think about using mturk for this.
<rking> That's actually kind of evil
<rking> But also kind of potentialful.
<JonnieCache> that describes almost everything thats ever happened on mturk
<rking> Haha
arya has quit [Ping timeout: 264 seconds]
nemesit has quit [Ping timeout: 264 seconds]
arya_ has quit [Client Quit]
jrajav has quit [Client Quit]
SeySayux has quit [Ping timeout: 241 seconds]
slainer68 has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
<allsystemsarego> So if #ruby is not a good place to ask for code reviews, where is a good place to do that? stackoverflow?
Vert has quit [Remote host closed the connection]
SeySayux has joined #ruby
slainer68 has joined #ruby
<JonnieCache> >> def ( ); *2; end; (8)
<eval-in> JonnieCache: Output: "source-0fda0e0cf00d:1: syntax error, unexpected ')'\ndef ( ); *2; end; (8)\n ^\n" (http://eval.in/3965)
<JonnieCache> booooo!
freezway has quit [Ping timeout: 246 seconds]
<rking> allsystemsarego: Who said that it isn't?
<rking> JonnieCache: I saw that one.
<GeekOnCoffee> allsystemsarego: why is it not a good place to ask for code review?
arya_ has joined #ruby
generali_ is now known as generalissimo
<allsystemsarego> well I had asked a few minutes ago, and noone volunteered, should I paste the link again?
kil0byte has quit [Ping timeout: 264 seconds]
xyzodiac has quit [Ping timeout: 252 seconds]
<allsystemsarego> http://pastebin.com/raw.php?i=PHLvDTm4 Here goes, is anyone bored enough to do a code review of my toy app?
Morkel has quit [Quit: Morkel]
syamajala has joined #ruby
<GeekOnCoffee> allsystemsarego: what is Plant#x
jasond has joined #ruby
<rking> allsystemsarego: Classic smell right off the bat is that self.move_forward_in_time should be a method of an object.
lampe2 has quit [Ping timeout: 240 seconds]
Sou|cutter has joined #ruby
<allsystemsarego> GeekOnCoffee, it's the x-axis position
<rking> Notice how all it really does is call methods on game_state. That's the object right there.
cheez0r_ is now known as cheez0r
<allsystemsarego> rking, oh I see
heftig has quit [Quit: leaving]
<GeekOnCoffee> allsystemsarego rather than doing initialize_lives_remaining you should be defining that as initialize, and then calling super
<allsystemsarego> ok
<rking> GeekOnCoffee: You can move the .start method there as well. Would look better as GameState#initialize
rippa has joined #ruby
lampe2 has joined #ruby
dnyy has quit [Ping timeout: 246 seconds]
<rking> GeekOnCoffee: Sorry, bad tab. ☺
dnyy has joined #ruby
samphippen has joined #ruby
zommi has quit [Quit: Leaving.]
BigO has joined #ruby
<rking> allsystemsarego: @countdown is confusingly-handled.
<rking> Set it to ten. Don't set it to ten. Do decrement it by 1. == ??
<rking> allsystemsarego: The on_clock_tick stuff should be possible to be made consistent across all game objects.
allanm_ has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 260 seconds]
allanm_ has joined #ruby
<allsystemsarego> I see
<rking> Right now it does one thing for plants, a different thing for zombies, a different one for projectiles. All 3 have different signatures
axl_ has joined #ruby
<rking> GameState might have to pass self into it. Which is liable to couple things together tightly in a different way, but certainly GameState shouldn't be orchestrating behavior itself.
<nomenkun> bite_countdown is even trickier for me. SnowPea doubles it but then it is reset to 5 or 10. Hit - double again.
banseljaj has joined #ruby
tobinharris has joined #ruby
allanm_ has quit [Read error: No buffer space available]
<rking> nomenkun: You're right. I hadn't read that one, yet. ☺
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
krawchyk has quit [Remote host closed the connection]
allanm_ has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
jlast has joined #ruby
<rking> Actually, I don't think this code would really run
<rking> if @plant_being_devoured.lives_remaining == 0 … @plant_being_devoured = nil
<allsystemsarego> rking, I tested it and it works for me
krawchyk has joined #ruby
<rking> That means the next time that method is called you'll get a NoMethodError of #lives_remaining on NilClass
king313 has quit [Quit: Saliendo]
yshh has joined #ruby
<allsystemsarego> ok, it's a little tricky to decouple that
<GeekOnCoffee> allsystemsarego: sometimes good design is tricky ;)
BoomCow has quit [Ping timeout: 265 seconds]
<allsystemsarego> do you guys think another layer of abstraction on top of this would help?
banseljaj is now known as imami|afk
<rking> allsystemsarego: Which one?
imami|afk is now known as banseljaj
tagrudev has quit [Remote host closed the connection]
rdark has joined #ruby
<allsystemsarego> something like the mediator pattern in Java
ExxKA has joined #ruby
<allsystemsarego> don't let a zombie directly bite a plant
<allsystemsarego> let the zombie announce his intention to the mediator
<allsystemsarego> then the mediator does all the interaction
tonini has quit [Remote host closed the connection]
<rking> Sounds crazy.
<allsystemsarego> but it's the only way I can see to address the issues you've raised
_bart has joined #ruby
<allsystemsarego> and to decouple behavior
adamholt_ is now known as adamholt
kloeri has joined #ruby
<rking> All I said on that one is that you're assigning nil to something you later call a method on.
eldariof has quit [Read error: Operation timed out]
xyzodiac has joined #ruby
<allsystemsarego> ok, I'll reconsider the design on this, thanks all for the very good feedback
<rking> But actually, I think it escapes that problem
jlast has quit [Remote host closed the connection]
<rking> Because you set @walking = true, so that branch doesn't get exercised until the next time it gets a start_devouring
mybrainis404 has joined #ruby
<rking> But anyway that particular issue wouldn't be the first thing I'd start with on this code.
<allsystemsarego> yes, and that means that logic that should be all in one place is all over the place :D
burgestrand has quit [Quit: Leaving.]
znake has joined #ruby
<allsystemsarego> what would be the first thing?
kloeri has quit [Changing host]
kloeri has joined #ruby
jlast has joined #ruby
kloeri has quit [Quit: brb]
mybrainis404 has quit [Remote host closed the connection]
kloeri has joined #ruby
carloslopes has joined #ruby
mosez has joined #ruby
<rking> That initialize_lives_remaining → initialize … super one is basically a freebie
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
chimkan has quit [Quit: chimkan]
<allsystemsarego> ok, thanks
xyzodiac has quit [Ping timeout: 265 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<rking> Then merging GamePlay into GameState is juicy
pu22l3r has joined #ruby
xyzodiac has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
<rking> Homogenizing on_clock_tick doesn't look too far behind that.
awarner has joined #ruby
_bart has quit [Quit: _bart]
byennen has quit [Remote host closed the connection]
devdazed has quit [Ping timeout: 240 seconds]
JohnBat26 has quit [Ping timeout: 276 seconds]
iNerd has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
pcarrier has quit []
devdazed has joined #ruby
knirhs has joined #ruby
jlast has quit [Ping timeout: 276 seconds]
Shrink has quit [Read error: Connection reset by peer]
jlast has joined #ruby
sgupta has joined #ruby
beiter has quit [Quit: beiter]
cj3kim has quit [Quit: This computer has gone to sleep]
dedis has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
jprovazn has quit [Quit: Leaving]
krawchyk has quit [Remote host closed the connection]
atno|Ping is now known as atno
knirhs has quit [Ping timeout: 245 seconds]
krawchyk has joined #ruby
tobinharris has quit [Quit: tobinharris]
Brainix has joined #ruby
Brainix has quit [Client Quit]
demian`_ is now known as demian_
ananthakumaran has joined #ruby
_alejandro has joined #ruby
alvaro_o has joined #ruby
jlast has quit [Remote host closed the connection]
samphippen has joined #ruby
demian_ is now known as malte_
sts_ is now known as sts
mahmoudimus has joined #ruby
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
topek has quit [Quit: Leaving.]
Brainix has joined #ruby
bluOxigen has quit []
wolfmani is now known as wallmani
alex__c2022 has joined #ruby
rakl has quit [Quit: sleeping]
elsifaka has quit [Quit: Veloma e!]
DrWhax has quit [Read error: Connection reset by peer]
<D4T_> best way to generate a 32 character string using only lower case letters and numbers? :)
<D4T_> was hoping for a nice one liner
<iNerd> A baby seal walks into a club
<D4T_> :P
<allsystemsarego> D4T, I believe the activesupport gem has something called securerandom
kil0byte_ has quit [Remote host closed the connection]
<D4T_> google got me this: rand(36 ** 32).to_s(36)
tvw has quit [Remote host closed the connection]
<iNerd> graah. trying to work out why this process keeps not quitting
<D4T_> cos your not quitting it?
byennen has joined #ruby
grzywacz has quit [Ping timeout: 240 seconds]
<apeiros_> D4T_: the generic solution: alpha = [*'a'..'z',*'0'..'9']; alpha.sample(size).join
<apeiros_> (if you need a custom alphabet)
Slivka has quit [Remote host closed the connection]
thinkdevcode has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
<D4T_> thanks all
_nitti has joined #ruby
jrajav has joined #ruby
<iNerd> no, pretty sure it's getting a kill
<iNerd> s'just spawning processes that aren't somehow
slainer68 has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
slainer68 has joined #ruby
jlast has joined #ruby
danktamagachi has quit [Read error: Operation timed out]
invisime has joined #ruby
mathie has quit [Quit: Sleeping...]
schaerli has quit [Remote host closed the connection]
codecaster has quit [Read error: Connection reset by peer]
joofsh has quit [Ping timeout: 240 seconds]
nari has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
allanm_ has quit [Read error: No buffer space available]
chimkan_ has joined #ruby
k610 has quit [Ping timeout: 256 seconds]
codecaster has joined #ruby
allanm_ has joined #ruby
ckrailo has joined #ruby
baroquebobcat has joined #ruby
k611 has quit [Ping timeout: 264 seconds]
ryanlecompte has quit [Remote host closed the connection]
znake has quit [Quit: Linkinus - http://linkinus.com]
cakehero has quit [Quit: Computer has gone to sleep.]
grzywacz has joined #ruby
<shevy> hehe so true
dakine has joined #ruby
flip_digits has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jeffreybaird has quit [Quit: jeffreybaird]
cakehero has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Ping timeout: 240 seconds]
byennen_ has joined #ruby
jeffreybaird has joined #ruby
jekotia has joined #ruby
jekotia_ has joined #ruby
byennen has quit [Ping timeout: 264 seconds]
mkillebrew2 has joined #ruby
rdark has joined #ruby
joeycarmello has quit [Read error: Connection reset by peer]
zigomir has quit [Quit: Leaving]
joeycarmello has joined #ruby
mathie has joined #ruby
D4T_ has quit [Quit: Textual IRC Client: www.textualapp.com]
chimkan___ has joined #ruby
bartj3 has quit []
jeedey has quit [Ping timeout: 241 seconds]
asteve has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
Whoop has quit [Remote host closed the connection]
jeedey has joined #ruby
iamjarvo has joined #ruby
kingsidharth has joined #ruby
Xeago has quit [Ping timeout: 250 seconds]
jekotia_ has quit [Client Quit]
carlzulauf has quit [Ping timeout: 248 seconds]
joeycarmello has quit [Ping timeout: 264 seconds]
zigomir has joined #ruby
chimkan_ has quit [Ping timeout: 252 seconds]
generalissimo has joined #ruby
kil0byte has joined #ruby
carlzulauf has joined #ruby
moted has joined #ruby
WanderingGlitch has joined #ruby
xyzodiac has quit [Ping timeout: 246 seconds]
xclite has joined #ruby
iNerd has left #ruby [#ruby]
Whoop has joined #ruby
tobinharris has joined #ruby
pcarrier has joined #ruby
pcarrier has quit [Excess Flood]
xyzodiac has joined #ruby
pcarrier has joined #ruby
dr_bob has quit [Quit: Leaving.]
berserkr has joined #ruby
mahmoudimus has joined #ruby
kebomix has joined #ruby
aganov has quit [Read error: Connection reset by peer]
rehat has joined #ruby
joeycarmello has joined #ruby
havenn has joined #ruby
<rehat> how do I create a string of 50 words separated by commas? I tried this 50.times {|i| puts a.to_s << i.to_s << ","}
headius has joined #ruby
davidcelis has quit [Quit: K-Lined.]
<rehat> 'a' is a string and I want to increment each string by a number in the loop
ABK has quit [Ping timeout: 264 seconds]
stkowski has joined #ruby
ryanlecompte has joined #ruby
<ner0x> Any good books worth purchasing?
xyzodiac has quit [Ping timeout: 240 seconds]
ToTo has quit [Ping timeout: 240 seconds]
maesbn has quit [Remote host closed the connection]
a_a_g has joined #ruby
lectrick has quit [Changing host]
lectrick has joined #ruby
nwertman has joined #ruby
<jrajav> ner0x: Yes.
jsilver has joined #ruby
pixie79 has quit [Ping timeout: 246 seconds]
chussenot has quit [Quit: chussenot]
kebomix has quit [Quit: Page closed]
Guest74373 is now known as m4rtijn
daniel_-_ has quit [Ping timeout: 245 seconds]
aeontech has quit [Quit: aeontech]
xyzodiac has joined #ruby
<m4rtijn> ner0x, matt ruff - best author in the universe
<m4rtijn> :p
pixie79 has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
machty has quit [Ping timeout: 264 seconds]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
rasbonics has joined #ruby
machty has joined #ruby
nwertman has quit [Quit: leaving]
w400z has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
beiter has joined #ruby
nemesit has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
timonv_ has quit [Remote host closed the connection]
axl__ has joined #ruby
morf has quit [Quit: eof]
grzywacz has quit [Ping timeout: 240 seconds]
grzywacz has joined #ruby
elaptics is now known as elaptics`away
blazes816 has joined #ruby
elaptics`away is now known as elaptics
timonv has joined #ruby
tPl0ch has quit [Quit: Verlassend]
axl_ has quit [Ping timeout: 264 seconds]
axl__ is now known as axl_
kingsidharth has quit [Quit: kingsidharth]
timonv has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
jaygen has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
samphippen has joined #ruby
nwertman has joined #ruby
virtuose has quit [Read error: Connection reset by peer]
wereHamster has quit [Changing host]
wereHamster has joined #ruby
cakehero has joined #ruby
jaygen has joined #ruby
bbttxu has quit [Read error: Operation timed out]
Eplemosen has quit [Quit: Hexchat FTW! http://www.hexchat.org/]
seanwash has quit [Quit: Computer has gone to sleep.]
_bart has joined #ruby
bbttxu has joined #ruby
g-ram has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
u89 has quit [Remote host closed the connection]
virtuose has joined #ruby
flip_digits has quit [Ping timeout: 259 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Read error: No buffer space available]
jgrevich has joined #ruby
pcarrier has quit []
lukeholder has quit [Quit: Computer has gone to sleep.]
zigomir has quit [Quit: Leaving]
codecaster has quit [Quit: Leaving.]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
davidrhyswhite has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
m4rtijn has left #ruby ["Verlassend"]
jslowe has joined #ruby
maz-dev has joined #ruby
afgeneralist has joined #ruby
ericwood_ is now known as ericwood
_bart has quit [Quit: _bart]
vipaca has joined #ruby
bier has quit [Remote host closed the connection]
BoomCow has joined #ruby
jrajav has joined #ruby
bier has joined #ruby
fyolnish has quit [Remote host closed the connection]
Zai00 has quit [Read error: Connection reset by peer]
statarb3 has quit [Quit: Leaving]
davidcelis has joined #ruby
moted has quit [Ping timeout: 255 seconds]
yoklov has quit [Quit: bye!]
Morkel has joined #ruby
cirwin has joined #ruby
skattyadz has quit [Quit: skattyadz]
Rym has quit [Quit: Rym]
x77686d has joined #ruby
pcarrier has joined #ruby
Zai00 has joined #ruby
codezombie has joined #ruby
chimkan___ has quit [Quit: chimkan___]
BoomCow has quit [Quit: Leaving]
F1skr has joined #ruby
senny has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
icooba has joined #ruby
pcarrier has quit [Read error: Operation timed out]
bluOxigen has joined #ruby
futilegames has joined #ruby
ozzloy_ is now known as ozzloy
d2dchat has joined #ruby
timonv has joined #ruby
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
pcarrier has joined #ruby
pcarrier has quit [Excess Flood]
schaerli has joined #ruby
allanm_ has quit [Read error: No buffer space available]
pcarrier has joined #ruby
pcarrier has quit [Excess Flood]
allanm_ has joined #ruby
pcarrier has joined #ruby
pcarrier has quit [Excess Flood]
nga4 has quit []
pcarrier has joined #ruby
pcarrier has quit [Excess Flood]
chimkan_ has joined #ruby
nga4 has joined #ruby
ewag has joined #ruby
pcarrier has joined #ruby
pcarrier has quit [Excess Flood]
allsystemsarego has quit [Quit: Leaving]
pcarrier has joined #ruby
pcarrier has quit [Excess Flood]
pcarrier has joined #ruby
pcarrier has quit [Excess Flood]
<shevy> dumdedum
pcarrier has joined #ruby
pcarrier has quit [Excess Flood]
d2dchat has quit [Remote host closed the connection]
pcarrier has joined #ruby
daniel_-_ has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
nat2610 has joined #ruby
mvangala_ has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
pcarrier has quit [Client Quit]
talsafran has joined #ruby
mvangala has joined #ruby
moted has joined #ruby
Dreamer3 has quit [Ping timeout: 264 seconds]
ExxKA has quit [Quit: This computer has gone to sleep]
matrixise has quit [Ping timeout: 264 seconds]
ExxKA has joined #ruby
<talsafran> Hey, I hope someone can help me with something. I'm wondering if there's a gotcha in String#gsub I don't know about?
axl_ has joined #ruby
timonv has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
<talsafran> Any ideas?
timonv has joined #ruby
adeponte has joined #ruby
JohnBat26 has joined #ruby
banisterfiend has joined #ruby
jackbrownhf has quit [Ping timeout: 265 seconds]
<ksk> hey guys. is there an "official" extension/toolset to maintain bind-zonefiles ( google just tells me about scripts written in ruby to do that )
<shevy> talsafran my estimate is that no match was found
<ksk> mhm, zonefile gem
<talsafran> Shevy – when I run it the second time, it finds a match.
<talsafran> After refernecing $0.
EyesIsServer has quit [Remote host closed the connection]
<shevy> when I run:
<shevy> 'http://www.ultimate-guitar.com/tabs/bob_dylan_tabs.htm'.gsub(/tabs\/(.*)_tabs\.htm/, "#{$1[0]}/#{$1}")
<shevy> I get a NilClass
<talsafran> shevy: Run the same thing, but substitute $0 for $1. Then run again with $1.
mahmoudimus has joined #ruby
axl_ has quit [Remote host closed the connection]
<talsafran> shevy: I have no idea why that works. Can you explain?
axl_ has joined #ruby
<shevy> I cant reproduce so far so how can I explain? ;)
<chiel> talsafran: $0 is the entire match
<chiel> $1 etc are captures
ephemerian has quit [Quit: Leaving.]
<talsafran> shevy: Did you replace $1 with $0?
<chiel> so when you want the (.*) from the line above, that's $1
ltsstar has joined #ruby
<talsafran> chiel: When I'm in IRB, $0 actually returns "irb"
<chiel> interesting
<shevy> 'http://www.ultimate-guitar.com/tabs/bob_dylan_tabs.htm'.gsub(/tabs\/(.*)_tabs\.htm/, "#{$1}/#{$1}")
wallerdev has joined #ruby
<shevy> 'http://www.ultimate-guitar.com/tabs/bob_dylan_tabs.htm'.gsub(/tabs\/(.*)_tabs\.htm/, "\\1/\\1")
<shevy> nicer with \\1
vlad_starkov has quit [Read error: Connection reset by peer]
aeontech has joined #ruby
<shevy> or use the matchdata object directly
<shevy> m = /(.)(.)(\d+)(\d)/.match("THX1138.")
<shevy> m[0] # => "HX1138"
gridaphobe has joined #ruby
<rking> Or use single quotes and do '\1/\1'
darkc0met has joined #ruby
<shevy> hey I like that
arietis has joined #ruby
<shevy> looks like a cheering dude \o/
<shevy> \0/
ABK has joined #ruby
<shevy> \1/
<rking> Or even if you are going to interpolate, you don't have to for the sigil vars. Above would be "#$1/#$1"
reset has joined #ruby
<shevy> oh that looks like snoopy cursing again
wallerdev has quit [Client Quit]
sn0wb1rd has joined #ruby
mneorr has joined #ruby
jalcine has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<rking> I'm not really sure if that version is doing what we think it is, though.
Mon_Ouie has quit [Remote host closed the connection]
<rking> Because it's interpolating $1 right away,
ABK has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<talsafran> Guys – please look at http://pastie.org/5438378 and tell me if you get different output,
<talsafran> Do it on a fresh irb instance.
<talsafran> I'm not on crack, I promise.
<rking> Yeah:
<rking> 'asdf'[/(.)/]; 'http://www.ultimate-guitar.com/tabs/bob_dylan_tabs.htm'.gsub(/tabs\/(.*)_tabs\.htm/, "#{$1}/#{$1}")
EyesIsMine has joined #ruby
tobinharris has quit [Quit: tobinharris]
eldariof has joined #ruby
<rking> talsafran: That's the exact issue I'm describing.
Mon_Ouie has joined #ruby
<rking> talsafran: Just use '\1/\1' and be happy.
<shevy> yes use \\ man
<talsafran> rking: Thanks, didn't get you at first. Pretty weird right?
wallerdev has joined #ruby
<shevy> noone gets rking at first :(
<rking> Not weird at all. ☺
<shevy> rking, you should change your nick to RKING
<shevy> it looks bigger
<rking> LOL
<talsafran> rking: I'd like to access the first character of \1 though. And you can't do that in single quotes.
SoonerBourne has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<rking> shevy += rking.delete[:karma]
<talsafran> I'm looking for /b/bob_dylan. Writing a scraper :)
<rking> talsafran: Then use the block form
vipaca has quit [Quit: Leaving...]
phantummm has joined #ruby
<talsafran> Hmmm let's try that.
slainer68 has quit [Remote host closed the connection]
GoGoGarrett has quit [Remote host closed the connection]
<talsafran> Works! :)
<talsafran> If anyone can explain the previous issue, I'll give them a dollar.
sn0wb1rd has quit [Quit: sn0wb1rd]
<talsafran> :P
eldariof has quit [Remote host closed the connection]
mybrainis404 has joined #ruby
<chiel> 'http://www.ultimate-guitar.com/tabs/bob_dylan_tabs.htm'.gsub(/tabs\/(.{1})(.*)_tabs\.htm/, "\\1/\\1\\2") ?
ABK has quit [Read error: Connection reset by peer]
<shevy> see everyone uses the \\1
<shevy> :)
<shevy> noone uses MatchData, you evil guys
ABK has joined #ruby
<chiel> better actually: 'http://www.ultimate-guitar.com/tabs/bob_dylan_tabs.htm'.gsub(/tabs\/(.{1})(.*)_tabs\.htm/, '\1/\1\2')
<chiel> basically just capturing the first letter separately
<chiel> that way you don't have to do dodgy shit in the replace :p
<talsafran> chiel: I like the way you think :)
Vainoharhainen has quit [Quit: Leaving...]
<shevy> chiel and talsafran: happy wedding days to you two!
voodoofish has quit [Quit: Leaving]
fmcgeough has joined #ruby
timonv has quit [Remote host closed the connection]
ZubKonst_ has quit [Remote host closed the connection]
<talsafran> lol
sk87 has quit [Quit: sk87]
pu22l3r has joined #ruby
chimkan_ has quit [Quit: chimkan_]
slainer68 has joined #ruby
ABK has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
ABK has joined #ruby
<chiel> lol
<talsafran> the {1} is unncessesary. Final answer: url.gsub(/tabs\/(.)(.*)_tabs\.htm/, '\1/\1\2')
<chiel> err, yeah, indeed :p
heftig has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
<chiel> talsafran: AND it looks like boobies, what more could you want?
<rking> With a tattoo.
<chiel> hahahaha
<chiel> yes
<talsafran> i try to maximize the boobies in my code
<talsafran> although they're not the same size
<chiel> they could be, think of it like you're looking at them from the side
<chiel> though I guess (.(.*) would be more accurate in that case
<chiel> but, no boobs are perfect, so, take what you can get! ;D
ewag has quit [Ping timeout: 252 seconds]
<waxjar> a hairy armpit?
weasels is now known as otters
KindTwo has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<chiel> nah, rking established it was a tattoo!
chrismcg is now known as zz_chrismcg
c0rn has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
rismoney has left #ruby [#ruby]
chimkan has joined #ruby
slainer68 has quit [Remote host closed the connection]
matip_ has quit [Remote host closed the connection]
mathie has quit [Quit: Sleeping...]
enroxorz-work has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
ChampS666 has joined #ruby
verto|off is now known as verto
chimkan has quit [Ping timeout: 256 seconds]
verto is now known as verto|off
samphippen has joined #ruby
Lope has joined #ruby
<Lope> could you please help me with a Ruby question? I'm having problems with http://railsforzombies.org/levels/4/challenges/4 i don't understand why there should be a before_filter to check if a zombie has no tweets, but only perform the redirect on show.
<Lope> i would have thought the before filter would be unnecessary. I would just write something like if @zombie.tweets.size==0 redirect_to(zombie_path) else render :action => :show end
mercwithamouth has joined #ruby
mercwith1mouth has joined #ruby
mengu has joined #ruby
Morkel has quit [Quit: Morkel]
<davidcelis> We're sorry, but something went wrong
<davidcelis> cool story Rails for Zombies
<rking> Hehe
<rking> Probably because we were jumping past the first screens.
xyzodiac has quit [Quit: Computer has gone to sleep.]
Morkel has joined #ruby
<davidcelis> then maybe they should have an actual error page :(
<Lope> ah, sorry about that, it should load :/
Morkel has quit [Client Quit]
<Lope> i think once you've loaded the root page you can load the URL
<davidcelis> nope
ABK has joined #ruby
<davidcelis> lol
kerm-ekhar has joined #ruby
<davidcelis> rails for zombies sucks anyway
Morkel has joined #ruby
reinaldob has quit [Remote host closed the connection]
Skelz0r_ is now known as Skelz0r
nasso has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
samphippen has quit [Quit: Computer has gone to sleep.]
<Eiam> wait a second
x77686d has quit [Quit: x77686d]
<Eiam> i feel like I'm watchin the same 3 people have the same conversation in two places at once
<davidcelis> yeah he x-posted to #ror
kerm-ekhar has quit [K-Lined]
xyzodiac has joined #ruby
Nisstyre has joined #ruby
<Lope> sorry guys, it didn't look like the guys at #ror were interested in my q
love_color_text has quit [Remote host closed the connection]
aeontech has quit [Quit: aeontech]
dakine has quit [Quit: Leaving]
berserkr has quit [Ping timeout: 264 seconds]
pyr0commie has joined #ruby
<Lope> okay I got a screenshot of the railsforzombies.org tutorial page I'm on. http://i.imgur.com/dSpZK.jpg
<Lope> I don't understand the need for a before_filter
ktaz has quit [Quit: Leaving]
ninegrid has quit [Ping timeout: 248 seconds]
<Lope> why not just check if the zombie has no tweets inside def show (an extra before filter seems superflous)
Hanmac1 is now known as Hanmac
<x82_nicole> Can someone point me to an explanation as to why namespaces are? Every single guide I've read today says modules are for namespacing, but fails to explains what that even means. About to throw my laptop out the window at this point.
xclite has quit [Remote host closed the connection]
<rking> Lope: What do Tweets have to do with anything?
aeontech has joined #ruby
<rking> Oh, the task desc up top
seanstickle has joined #ruby
<Lope> its a rails tutorial where zombies make tweets in a twitter like application.
<rking> Lope: I'd say you could do it either way. They're probably just demo'ing the kinds of options you have with filters.
ABK has quit [Read error: Connection reset by peer]
seanstickle has quit [Client Quit]
kirun has joined #ruby
x77686d has joined #ruby
ABK has joined #ruby
ninegrid has joined #ruby
xclite has joined #ruby
<Lope> oh lol, I passed the challenge without adding a before filter.
_guy has quit [Remote host closed the connection]
_guy has joined #ruby
<Lope> i just changed the render into an if statement. if @zombie.tweets.size==0 redirect_to(zombies_path) else render :action => :show end
<Lope> i just really don't see what another before_filter would achieve that would be necessary.
jackbrownhf has joined #ruby
ossareh has joined #ruby
<davidcelis> x82_nicole: a namespace is something you can nest classes or other modules inside to avoid collision
slash_nick has joined #ruby
<davidcelis> x82_nicole: Say you want to make your own kind of Hash class and call it Hash. but obviously you wouldn't want to overwrite the main Hash
<rking> Lope: It's not necessary.
<rking> Lope: But it's another way to organize the code, so it might be a nice option in some circumstances.
<slash_nick> Why would $PM_PATH from shell return the value I set, while ENV["PM_PATH"] in console returns nil?
<davidcelis> x82_nicole: So you could put it inside a module and it won't collide. `module Nicole; class Hash; end; end` so your Hash class can live alongside the built-in Hash class (and instead be called Nicole::Hash)
<rking> slash_nick: Maybe it's not exported ?
<Lope> rking: yes it is another option to do the redirect inside a before filter. but they specifically say you should only redirect "only on show"
<Lope> so thats why it makes no sense to me.
jenrzzz has quit [Ping timeout: 265 seconds]
<alvaro_o> is there a special meaning of having a variable with an asterisk before it? ( like *variable_name)
<rking> Lope: Iunno, maybe they're setting you up for the next thing.
* slash_nick slaps himself
<rking> alvaro_o: Yes, it's splatting and unsplatting. More context is needed to say which it is
<Lope> rking: must be something like that.
rdk has joined #ruby
jrajav has joined #ruby
ebouchut has joined #ruby
<alvaro_o> thanks Lope, I'll read more about splatting
ABK has quit [Read error: Connection reset by peer]
mathie has joined #ruby
ABK has joined #ruby
rehat has quit [Remote host closed the connection]
<davidcelis> *splat
sn0wb1rd has joined #ruby
<shevy> *countersplat
sn0wb1rd has quit [Client Quit]
gridaphobe has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
gridaphobe has joined #ruby
berserkr has joined #ruby
areil has quit [Remote host closed the connection]
<shevy> alvaro_o you can pass in variable amount of arguments to a method that way
<shevy> require 'pp';def foo(*i); pp i; end; foo('hi');foo('hi','there')
<alvaro_o> shevy: thanks
<shevy> now you can call foo() however you want to
schaary has joined #ruby
<rking> shevy: Can I call it like this? foo(`sudo rm -rf ~shevy`) ?
<shevy> yes
<rking> You said _HOWEVER_I_WANT_.
<rking> k.
<shevy> but only stupid people do that
<rking> o.
<shevy> really! I swear!
diegoviola has quit [Ping timeout: 246 seconds]
<shevy> but I am gonna disable `` with a patch once and for all in every rubies out there
alexim has joined #ruby
<davidcelis> why
<davidcelis> gonna disable %x() too?
<davidcelis> and Kernel#exec ?
w400z has quit []
kbeddingfield has joined #ruby
rails has quit [Ping timeout: 260 seconds]
rdk has left #ruby [#ruby]
xyzodiac has quit [Quit: Computer has gone to sleep.]
Dwarf has quit [Ping timeout: 246 seconds]
mathie has quit [Ping timeout: 252 seconds]
machty has quit [Ping timeout: 246 seconds]
<Hanmac> shevy: yeah and it prints: "you dont want to do that" :D
schaary has quit [Client Quit]
Oren has joined #ruby
Targen has joined #ruby
nomenkun has joined #ruby
<shevy> davidcelis YES
<shevy> we call it condom-ruby
<shevy> it's like mruby but larger
<shevy> Hanmac sounds like jedi-ruby
Oren has left #ruby [#ruby]
cirwin has quit [Ping timeout: 245 seconds]
<Hanmac> shevy you mean like: "not you want to do that" ?
JohnBat26 has joined #ruby
Targen has quit [Read error: Connection reset by peer]
ktaz has joined #ruby
w400z has joined #ruby
codecop has joined #ruby
sn0wb1rd has joined #ruby
rdark has quit [Quit: leaving]
krawchyk has quit [Remote host closed the connection]
grzywacz has quit [Quit: :wq]
chendo has quit [Read error: Operation timed out]
sn0wb1rd_ has joined #ruby
statarb3 has joined #ruby
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd_ is now known as sn0wb1rd
joofsh has joined #ruby
futilegames has quit [Quit: futilegames]
pu22l3r has quit [Remote host closed the connection]
Uranio has quit [Quit: WeeChat 0.3.8]
chendo has joined #ruby
xcvd`` has quit [Quit: Leaving]
Lope has quit [Ping timeout: 246 seconds]
bpfh has quit [Quit: Saindo]
ABK has quit [Read error: Connection reset by peer]
nazty has quit [Read error: Operation timed out]
ABK has joined #ruby
gyre007 has quit [Remote host closed the connection]
slash_nick has left #ruby [#ruby]
swex_ has joined #ruby
pcarrier has joined #ruby
Zai00 has quit [Quit: Zai00]
nazty has joined #ruby
swex has quit [Ping timeout: 252 seconds]
nkts has quit [Quit: Leaving]
gyre007 has joined #ruby
<shevy> no, not yoda, but jedi
apeiros_ has joined #ruby
jrist is now known as jrist-afk
machty has joined #ruby
robbyoconnor has joined #ruby
brianpWins has joined #ruby
nat2610 has quit [Quit: Leaving.]
codeFiend has joined #ruby
GoGoGarrett has joined #ruby
ryanf has joined #ruby
mand_ has quit [Ping timeout: 240 seconds]
icole has joined #ruby
joofsh has quit [Quit: Leaving]
iamjarvo has quit [Ping timeout: 252 seconds]
aeontech has quit [Ping timeout: 246 seconds]
codeFiend is now known as aeontech
nat2610 has joined #ruby
<x82_nicole> Can someone explain what happened on line 19? Why can't I call a method within a class? :/ - http://pastie.org/private/agakeron9p2z0b5ckaoq
<x82_nicole> I had to create a new object, and then call the method on that object.
arturaz has quit [Remote host closed the connection]
Slivka has joined #ruby
nemonic has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
carloslopes has quit [Read error: Connection reset by peer]
nemonic is now known as nignaztic
carloslopes has joined #ruby
Russell^^ has joined #ruby
tobinharris has joined #ruby
chendo has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
mfridh has quit [Read error: Operation timed out]
syamajala has quit [Remote host closed the connection]
keithcelt has joined #ruby
tobinharris has quit [Client Quit]
berserkr has quit [Quit: Leaving.]
mfridh has joined #ruby
<Hanmac> x82_because is an instance method, not a class method
keithcelt has left #ruby [#ruby]
chimkan has joined #ruby
timonv has joined #ruby
phantummm has quit [Quit: phantummm]
carloslopes has quit [Ping timeout: 260 seconds]
slainer68 has joined #ruby
gyre007 has quit [Remote host closed the connection]
snorkdude has joined #ruby
tomsthumb has quit [Quit: Leaving.]
Neomex has joined #ruby
Neomex has quit [Client Quit]
nemonic has joined #ruby
snorkdude has quit [Client Quit]
talsafran has quit [Quit: Leaving.]
ktaz has left #ruby [#ruby]
norm has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
slainer68 has quit [Ping timeout: 246 seconds]
gyre007 has joined #ruby
elaptics is now known as elaptics`away
<x82_nicole> I thought it was a class method? That's why it is in..a…class. I need to Google more.
afgeneralist has quit [Ping timeout: 252 seconds]
wargasm has joined #ruby
robbyoconnor has quit [Ping timeout: 256 seconds]
bluOxigen has joined #ruby
Pym has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
Pym has left #ruby [#ruby]
carloslopes has joined #ruby
kara_sweets has joined #ruby
<kara_sweets> can somebody please explain why line 7 in this script throws an error Array cannot be coerced into Fixnum https://gist.github.com/4150061
<Hanmac> x82_nicole: you need def self.price
<kara_sweets> Hanmac: any ideas>
<apeiros_> kara_sweets: f[0] = 0, f[1] = 1 # <-- that doesn't work how you think
<apeiros_> in ruby, it's a,b = 1,2
<apeiros_> not a=1,b=2
cirwin has joined #ruby
<apeiros_> the latter is interpreted as: a = (1, (b=2)) --> a = 1,2 --> a == [1,2]
<canton7> besides, do you really need to make that assignment explicit? f[0] is always 0 and f[1] is always 1
<canton7> or maybe you wanted `f = []`
<kara_sweets> apeiros_: thanks for the explanation!
<kara_sweets> canton7: you are right
nat2610 has left #ruby [#ruby]
mrsolo has joined #ruby
hotovson has quit [Remote host closed the connection]
<canton7> of even `f = [0, 1]`
byennen_ has quit [Remote host closed the connection]
FDj_ is now known as FDj
buscapepe has joined #ruby
mathie has joined #ruby
gyre007 has quit [Remote host closed the connection]
samphippen has joined #ruby
shevy has joined #ruby
emmanuelux has joined #ruby
hotovson has joined #ruby
<kara_sweets> whats the best way to run a for loop in ruby similar to C or Javascript, for i = 2, i < 10, i++ ?
<Hanmac> 2.upto(10) {|i| ... }
<Hanmac> or 2.upto(9)
mathie has quit [Ping timeout: 260 seconds]
a_a_g has quit [Quit: Leaving.]
banisterfiend has quit [Read error: Connection reset by peer]
kara_sweets has quit [Quit: kara_sweets]
nemonic has quit [Quit: WeeChat 0.3.7]
nignaztic has quit [Quit: Lost terminal]
hotovson has quit [Ping timeout: 246 seconds]
swarley has joined #ruby
tomsthumb has joined #ruby
matrixise has joined #ruby
spacebug has joined #ruby
norm_ has joined #ruby
chimkan__ has joined #ruby
s0ber_ has joined #ruby
GoGoGarr_ has joined #ruby
Slivka has quit [Remote host closed the connection]
estan_ has joined #ruby
nazty has quit [Read error: Connection reset by peer]
volta has quit [Remote host closed the connection]
Morkel_ has joined #ruby
byennen has joined #ruby
zurich_ has joined #ruby
schwap_ has joined #ruby
flagg0204 has joined #ruby
jrabbit_ has joined #ruby
maxmande1s has joined #ruby
shadewin1 has joined #ruby
Morkel has quit [Ping timeout: 250 seconds]
Morkel_ is now known as Morkel
Roa_ has joined #ruby
elspeth_ has joined #ruby
rotor` has joined #ruby
shaman42_ has joined #ruby
thinkdevcode has joined #ruby
stigmux_ has joined #ruby
ozzloy_ has joined #ruby
Seventoes has joined #ruby
Spaceboy has joined #ruby
dpk_ has joined #ruby
dpk has quit [Disconnected by services]
dpk_ is now known as dpk
arturaz has joined #ruby
segv-_ has joined #ruby
tectonic_ has joined #ruby
bastl has joined #ruby
voodoofish430 has joined #ruby
arya__ has joined #ruby
buscapepe has quit [Ping timeout: 246 seconds]
_main_ has joined #ruby
spike|spiegel has quit [Quit: WeeChat 0.3.9.2]
aeontech has quit [Remote host closed the connection]
JohnBat26 has quit [*.net *.split]
GoGoGarrett has quit [*.net *.split]
chimkan has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
Seventoe1 has quit [*.net *.split]
bastl_ has quit [*.net *.split]
stigmux has quit [*.net *.split]
lkba has quit [*.net *.split]
segv- has quit [*.net *.split]
flagg0205 has quit [*.net *.split]
maxmanders has quit [*.net *.split]
__main__ has quit [*.net *.split]
ozzloy has quit [*.net *.split]
s0ber has quit [*.net *.split]
shaman42 has quit [*.net *.split]
tectonic has quit [*.net *.split]
schwap has quit [*.net *.split]
estan has quit [*.net *.split]
sonne has quit [*.net *.split]
zurich has quit [*.net *.split]
nricciar has quit [*.net *.split]
Balthek has quit [*.net *.split]
Roa has quit [*.net *.split]
spacebug_ has quit [*.net *.split]
rotor has quit [*.net *.split]
norm has quit [*.net *.split]
jrabbit has quit [*.net *.split]
elspeth has quit [*.net *.split]
shadewind has quit [*.net *.split]
segv-_ is now known as segv-
norm_ is now known as norm
chimkan__ is now known as chimkan
s0ber_ is now known as s0ber
aeontech has joined #ruby
xyzodiac has joined #ruby
sonne_ has joined #ruby
allanm_ has quit [Read error: No buffer space available]
arya_ has quit [Ping timeout: 245 seconds]
allanm_ has joined #ruby
tenmilestereo has joined #ruby
arya__ is now known as arya_
_main_ is now known as __main__
buscapepe has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
pu22l3r has joined #ruby
nemesit has quit [Read error: Connection reset by peer]
nemesit has joined #ruby
Balthek has joined #ruby
Sou|cutter has joined #ruby
JohnBat26 has joined #ruby
daniel_-_ has quit [Quit: WeeChat 0.3.9.2]
_nitti has quit [Remote host closed the connection]
davidcelis has quit [Quit: K-Lined.]
rippa has quit [Ping timeout: 255 seconds]
nricciar has joined #ruby
mand_ has joined #ruby
futilegames has joined #ruby
h4mz1d has joined #ruby
_nitti has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
applesarefruits has joined #ruby
chendo has joined #ruby
mpereira has joined #ruby
Elhu has joined #ruby
lenovodroid has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
kara_sweets has joined #ruby
h4mz1d has quit [Ping timeout: 240 seconds]
nkts has joined #ruby
mkillebrew2 has quit [Quit: leaving]
Guest24042 has quit [Quit: Guest24042]
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
frem has quit [Ping timeout: 264 seconds]
clocKwize has quit [Ping timeout: 246 seconds]
h4mz1d has joined #ruby
xclite has quit [Remote host closed the connection]
Sou|cutter has quit [Changing host]
Sou|cutter has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.9.2]
BigO has quit [Read error: Connection reset by peer]
arya_ has quit []
the_jeebster1 has joined #ruby
BigO has joined #ruby
tvw has joined #ruby
arya_ has joined #ruby
frem has joined #ruby
nkts has quit []
<the_jeebster1> is ruby's Comparable::between? the best method to check whether an integer falls inbetween a range of integers?
ABK has quit [Ping timeout: 248 seconds]
lenovodroid has quit [Ping timeout: 240 seconds]
k610 has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<Sou|cutter> the_jeebster1: AFAIK yes
Elhu has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
kbeddingfield has joined #ruby
Grieg has quit [Quit: laterz! :D]
kara_sweets has quit [Quit: kara_sweets]
pu22l3r has quit [Remote host closed the connection]
talsafran has joined #ruby
talsafran has left #ruby [#ruby]
sn0wb1rd has quit [Quit: sn0wb1rd]
piotr_ has joined #ruby
sn0wb1rd has joined #ruby
jrist-afk is now known as jrist
mneorr has quit [Remote host closed the connection]
<reactormonk> the_jeebster1, the other way would be range.include? int
ozzloy_ is now known as ozzloy
ozzloy has quit [Changing host]
ozzloy has joined #ruby
<the_jeebster1> that's Enumerable:include?
<the_jeebster1> ?
diegoviola has joined #ruby
cek has joined #ruby
xclite has joined #ruby
kbeddingfield has quit [Ping timeout: 252 seconds]
h4mz1d has quit [Ping timeout: 260 seconds]
tvw has quit [Ping timeout: 246 seconds]
<Hanmac> the_jeebster1 yes and no, Range overwrite it to be faster
<cek> -> {}
mathie has joined #ruby
afgeneralist has joined #ruby
<Hanmac> cek you are looking for proc & lambda
odyssey4me has joined #ruby
Bidness has joined #ruby
diegovio1a has joined #ruby
<cek> i'd rather not at this time or year
diegoviola is now known as Guest14386
senj has joined #ruby
diegovio1a is now known as diegoviola
Elhu has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
ABK has joined #ruby
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
ABK has quit [Read error: Connection reset by peer]
Guest14386 has quit [Ping timeout: 260 seconds]
the_jeebster1 has quit [Quit: Leaving.]
sn0wb1rd has quit [Quit: sn0wb1rd]
ABK has joined #ruby
the_jeebster has joined #ruby
ABK has quit [Read error: Connection reset by peer]
weeb1e has joined #ruby
ABK has joined #ruby
Bidness has quit [Read error: Connection reset by peer]
Bidness has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ephemerian has joined #ruby
ABK has joined #ruby
monkegjinni has joined #ruby
emergion has joined #ruby
lenovodroid has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
carloslopes has quit [Remote host closed the connection]
w400z has quit []
kbeddingfield has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
<Eiam> if i want to see if an object has changed compared to another object (and it has many properties) is the easiest way to just md5 both objects and compare them?
sepp2k1 has joined #ruby
jgarvey has joined #ruby
chimkan has quit [Quit: chimkan]
<Eiam> oh haha there is a between? doh. i just use if (item > place and item < place)
sepp2k has quit [Ping timeout: 264 seconds]
<Eiam> well, place & place 2
ABK has quit [Read error: Connection reset by peer]
_nitti has quit [Remote host closed the connection]
ABK has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
kbeddingfield has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
mugger has joined #ruby
<Eiam> kara_sweets: each_with_index
davidcelis has joined #ruby
cmarques has quit [Ping timeout: 255 seconds]
_nitti has joined #ruby
Elhu has joined #ruby
elaptics`away is now known as elaptics
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
x77686d_ has joined #ruby
daniel_-_ has joined #ruby
_nitti has quit [Remote host closed the connection]
arya_ has quit []
ABK has quit [Read error: Connection reset by peer]
buscapepe has quit [Ping timeout: 246 seconds]
ABK has joined #ruby
x77686d has quit [Ping timeout: 246 seconds]
x77686d_ is now known as x77686d
mengu has quit [Read error: Connection reset by peer]
mengu_ has joined #ruby
mengu_ has joined #ruby
mengu_ has quit [Changing host]
daniel_- has quit [Ping timeout: 246 seconds]
Nisstyre has quit [Ping timeout: 246 seconds]
JuanMiguel has joined #ruby
Nisstyre has joined #ruby
pcarrier has quit []
arya_ has joined #ruby
applesarefruits has quit [Ping timeout: 246 seconds]
Synthead has joined #ruby
ABK has quit [Read error: Connection reset by peer]
wallmani has quit [Quit: WeeChat 0.3.9.2]
lenovodroid has quit [Read error: Connection reset by peer]
ABK has joined #ruby
bapa has quit [Read error: Connection reset by peer]
arya_ has quit [Client Quit]
bapa has joined #ruby
flip_digits has joined #ruby
Rym has joined #ruby
ABK has quit [Read error: Connection reset by peer]
tyfighter has joined #ruby
JuanMiguel has quit [Ping timeout: 252 seconds]
<flip_digits> anyone use ruby monk?
moted has quit [Ping timeout: 240 seconds]
ABK has joined #ruby
_nitti has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
jsilver has quit [Remote host closed the connection]
jackbrownhf has quit [Quit: Sto andando via]
pu22l3r has joined #ruby
chimkan_ has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
postmodern has joined #ruby
futilegames has quit [Remote host closed the connection]
futilegames has joined #ruby
odyssey4me has quit []
dgethings has joined #ruby
futilegames has quit [Client Quit]
Synthead has quit [Ping timeout: 260 seconds]
schaerli has quit [Remote host closed the connection]
mpereira has quit [Ping timeout: 264 seconds]
<dgethings> hey, I'm having problems with a ruby script that requires nokogiri. As far as I can tell the gem is installed correctly however the script complains it cannot locate the gem
<dgethings> I have details of the installation, script and error message at the following gist: https://gist.github.com/4150665
<eka> dgethings: how you tell that it's installed?
nomenkun has quit [Remote host closed the connection]
<dgethings> eka: gem list | grep nokogiri
<eka> dgethings: did you try from irb or pry?
mpereira has joined #ruby
<dgethings> also I'm the one who installed it ;)
<dgethings> eka: I'll give that a try
<txdv_> he did a gem list | grep nokogiri
<txdv_> are you using rvm?
<txdv_> doesnt seem like that
<dgethings> I'm not using rvm on this server. I am seeing the same error on another server where I am using rvm
s0ber_ has joined #ruby
<dgethings> rib cannot find the gem either
<eka> dgethings: what irb says?
schaerli has joined #ruby
schaerli has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby
<eka> dgethings: you using ruby 1.8.7?
<dgethings> I've updated gist with the output of irb
kebomix has joined #ruby
lkba has joined #ruby
<eka> dgethings: I think you need require 'rubygems' before require 'nokogiri'
<dgethings> eka: yes. that's the version debian squeeze uses
<dgethings> seeing the same error on another server that is running 1.9
<eka> dgethings: try that
s0ber has quit [Ping timeout: 246 seconds]
s0ber_ is now known as s0ber
jlwestsr has quit [Quit: Ex-Chat]
<dgethings> eka: yep that's done the trick! thanks very much
<eka> dgethings: yes.. you should put require 'rubygems' before all
<kebomix> hi i'm learning rails and have an error when executing "bundle exec rake db:migrate" after generating scaffold code http://fpaste.org/STsM/
<eka> dgethings: rubygems is included in 1.9.3 I think... not sure... for the rest you need to require 'rubygems' before any other require
Rym has quit [Quit: Rym]
<dgethings> ahhh! I see
banisterfiend has joined #ruby
<dgethings> I missed that dependency
<eka> kebomix: see the error.. you are having a permission denied
<kapowaz> anyone know how you can debug whether Pony is definitely sending emails through local postfix?
workmad3 has joined #ruby
Synthead has joined #ruby
<kebomix> eka: thanks didn't notice it :)
nemesit has quit [Quit: Leaving...]
xcvd`` has joined #ruby
<eka> np
kbeddingfield has joined #ruby
moted has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
jslowe has quit [Ping timeout: 245 seconds]
mathie has quit [Ping timeout: 260 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
Russell^^ has quit [Quit: Russell^^]
danneu has joined #ruby
lushious has quit [Remote host closed the connection]
Slivka has joined #ruby
nomenkun has joined #ruby
lushious has joined #ruby
nkts_ has quit [Remote host closed the connection]
cobragoat has joined #ruby
musl has quit [Quit: WeeChat 0.3.9.2]
geekbri has quit [Remote host closed the connection]
bricker has joined #ruby
lindenle has joined #ruby
dr_bob has joined #ruby
mpereira has quit [Read error: Operation timed out]
segv- has quit [Quit: segv-]
FDj has quit [Ping timeout: 260 seconds]
snorkdude has joined #ruby
samphippen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cobragoat has quit [Read error: Connection reset by peer]
samphippen has joined #ruby
mark_locklear has quit [Remote host closed the connection]
nanderoo has quit [Quit: Leaving.]
GoGoGarr_ has quit [Remote host closed the connection]
pcboy_ has quit [Ping timeout: 256 seconds]
kebomix has quit [Quit: Page closed]
ninegrid has quit [Read error: Connection reset by peer]
mengu_ has quit [Read error: Connection reset by peer]
mengu_ has joined #ruby
mengu_ has quit [Changing host]
mengu_ has joined #ruby
Gm4n_ is now known as Gm4n
Gm4n has quit [Changing host]
Gm4n has joined #ruby
gridaphobe has quit [Ping timeout: 260 seconds]
k610 has quit [Ping timeout: 264 seconds]
ltsstar has quit [Quit: ltsstar]
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
codecop has quit [Remote host closed the connection]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mpereira has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
Slivka has quit [Remote host closed the connection]
pcboy_ has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
dmerrick has quit [Ping timeout: 240 seconds]
mathie has joined #ruby
devdazed has quit [Quit: Bye]
Elhu has joined #ruby
sn0wb1rd has joined #ruby
linoj has quit [Quit: linoj]
mascool has joined #ruby
_bart has joined #ruby
Zai00 has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ninegrid has joined #ruby
ABK has joined #ruby
Morkel has quit [Quit: Morkel]
froy has joined #ruby
mathie has quit [Ping timeout: 244 seconds]
sn0wb1rd has quit [Ping timeout: 246 seconds]
apok has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
cascalheira has joined #ruby
slainer68 has joined #ruby
awarner_ has joined #ruby
awarner has quit [Read error: Operation timed out]
ninegrid has quit [Ping timeout: 246 seconds]
mtfk has quit [Remote host closed the connection]
jlast has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
robustus has quit [Quit: ZNC - http://znc.in]
sailias has quit [Quit: Leaving.]
<mikekelly> Is it normal for an instance of a SubClass of SimpleDelegator to represent itself as the class of the object being delegated to when you call #to_s on it ?
jackbrownhf has quit [Ping timeout: 250 seconds]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
s0ber_ has joined #ruby
statarb3 has quit [Quit: Leaving]
<apeiros_> mikekelly: #to_s I'd say it doesn't matter, but #inspect should not
<apeiros_> (sadly default #inspect uses redefined #to_s)
tenmilestereo has quit [Quit: Leaving]
banseljaj is now known as imami|afk
Ontolog has joined #ruby
<Ontolog> What's the technical term for a class that users a mixin?
<Ontolog> *uses
s0ber has quit [Ping timeout: 248 seconds]
s0ber_ is now known as s0ber
<mikekelly> apeiros_: I get the following..
u89 has joined #ruby
<mikekelly> class Bar;end; class Foo < SimpleDelegator;end;Foo.new(Bar.new).to_s #=> "#<Bar:0x007fdddaa5aa90>"
<mikekelly> inspect does the same thing
<apeiros_> mikekelly: class Bar is your class? you can redefine #inspect to whatever you want.
<mikekelly> I guess I assumed a delegator would handle all of that magically for me
<mikekelly> wait, are you saying I should redefine Bar#inspect or Foo#inspect
ABK has quit [Read error: Connection reset by peer]
<mikekelly> I thought you meant the latter but maybe you mean the former
ABK has joined #ruby
jlast has quit [Remote host closed the connection]
<mikekelly> basically I want my Foo.new(obj).to_s to return "#<Foo:0x007fdddaa5aa90>"
axl_ has quit [Read error: Connection reset by peer]
<mikekelly> but right now it's returning "#<#{obj.class}:0x007fdddaa5aa90>"
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
ninegrid has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
margle has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
<mikekelly> I think I just figured out why SimpleDelegator has to have that behaviour.
<mikekelly> nevermind, ignore me :)
ner0x has quit [Quit: Leaving]
axl_ has joined #ruby
blacktulip has quit [Remote host closed the connection]
dakine has joined #ruby
ABK has quit [Read error: Connection reset by peer]
[Neurotic] has joined #ruby
ABK has joined #ruby
musl has joined #ruby
jlwestsr has joined #ruby
musl has quit [Client Quit]
musl has joined #ruby
ABK has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
ABK has joined #ruby
dangerousdave has joined #ruby
matrixise has quit [Ping timeout: 248 seconds]
error_code has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
davidcelis has quit [Quit: K-Lined.]
hotovson has joined #ruby
axl_ has quit [Quit: axl_]
burgestrand has joined #ruby
hotovson has quit [Remote host closed the connection]
matrixise has joined #ruby
sn0wb1rd has joined #ruby
beiter has quit [Quit: beiter]
feju has joined #ruby
nari has joined #ruby
arturaz has quit [Remote host closed the connection]
<feju> hi
<feju> I'm trying to match any line of text not starting with ">" or "+" in an if clause
<feju> "if line.match(/[^>\+].*$/)" does not cut it. Can anyone help me?
Slivka has joined #ruby
<jrajav> Anchor it to the start of the line
<jrajav> With ^
chimkan_ has quit [Quit: chimkan_]
g-ram has joined #ruby
<jrajav> And you don't need to escape + when it's in a character class
<jrajav> /^[^>+].*$/
<feju> Thanks! That worked.
buibex has joined #ruby
Virunga has quit [Remote host closed the connection]
devdazed has joined #ruby
lenovodroid has joined #ruby
itchyouch has joined #ruby
xcvd`` has quit [Quit: Leaving]
jenrzzz has joined #ruby
emergion has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
Elhu has joined #ruby
chimkan has joined #ruby
Zai00 has quit [Quit: Zai00]
Elhu has quit [Client Quit]
davidcelis has joined #ruby
syamajala has joined #ruby
byennen_ has joined #ruby
frem has quit [Ping timeout: 246 seconds]
davidcelis has quit [Client Quit]
byennen has quit [Read error: Connection reset by peer]
kbeddingfield has quit [Remote host closed the connection]
davidcelis has joined #ruby
itchyouch has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
bbttxu has quit [Quit: bbttxu]
dangerousdave has quit [Quit: Leaving...]
Silowyi has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
ikaros has quit [Quit: Ex-Chat]
<Silowyi> So I'm using the Mail gem on ruby 1.8.7, and it seems that a random space (or spaces) is being inserted in outbound e-mail messages. I suspect it to be some sort of encoding issue going on with the whole 1.8.7 string encoding mess. Anyone encountered this before?
slainer68 has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
buibex has left #ruby [#ruby]
snorkdude has quit [Quit: snorkdude]
tjbiddle has joined #ruby
moted has quit [Ping timeout: 246 seconds]
dr_bob has quit [Quit: Leaving.]
awarner_ has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
<apeiros_> Silowyi: I think the mail gem does not support 1.8?
<apeiros_> iirc, you're supposed to use tmail for 1.8 and mail for 1.9
<apeiros_> (been a while since 1.8, and I'd strongly recommend upgrading to 1.9)
Bootstrapper has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
kbeddingfield has joined #ruby
awarner has joined #ruby
syamajala has quit [Remote host closed the connection]
jrajav has quit [Quit: I tend to be neutral about apples]
macabre has quit [Remote host closed the connection]
alanp has joined #ruby
pyr0commie has quit [Remote host closed the connection]
v0n has quit [Quit: Leaving]
telling has quit [Ping timeout: 240 seconds]
caveat- has quit [Ping timeout: 252 seconds]
iaj_ has quit [Read error: Connection reset by peer]
iaj has joined #ruby
zaiste_ has quit [Ping timeout: 252 seconds]
randym has quit [Ping timeout: 240 seconds]
emergion has quit [Ping timeout: 250 seconds]
mathie has joined #ruby
telling has joined #ruby
telling has joined #ruby
telling has quit [Changing host]
zaiste has joined #ruby
ikaros has joined #ruby
NiteRain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
feju has quit [Ping timeout: 260 seconds]
caveat- has joined #ruby
bwlang has left #ruby [#ruby]
alanp_ has quit [Ping timeout: 264 seconds]
h4mz1d has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<lectrick> Has anyone built ruby using gcc 4.7.x?
<lectrick> i'm bleeding edge. getting this error: /usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin11.4.2/4.7.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>." Is that soooo? :O
<lectrick> (I installed gcc with homebrew)
mathie has quit [Ping timeout: 260 seconds]
<swarley> Oh, is it just builtin?
moted has joined #ruby
jds_ has joined #ruby
danneu has quit [Ping timeout: 250 seconds]
theRoUS has quit [Ping timeout: 252 seconds]
kirun has quit [Quit: Client exiting]
hsbt is now known as hsbt_away
alex__c2022 has quit [Quit: alex__c2022]
randym has joined #ruby
awarner has quit [Remote host closed the connection]
chendo has quit [Ping timeout: 250 seconds]
<swarley> I don't see anything about varargs on google, let me check the source file
moshee has quit []
krisfremen has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
chendo has joined #ruby
stkowski has quit [Quit: stkowski]
sputnick has quit [Quit: bip...bip...bip...bip..KRSHHHHHHHH...beep...beep]
syamajala has joined #ruby
Michael_ has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
feju has joined #ruby
<lectrick> I mean, if I just can't compile ruby-1.9.3-p327 with gcc 4.7.x I'll just stop trying
<lectrick> swarley: but thank you for looking... ^
jeffreybaird has quit [Quit: jeffreybaird]
<lectrick> I googled myself, but couldn't seem to determine.
<swarley> I can probably tell you in just a minute, i'm curious myself now
ChampS666 has quit [Ping timeout: 252 seconds]
krisfremen has joined #ruby
ahuman has quit [Quit: No Ping reply in 180 seconds.]
<lectrick> nice. thanks in advance
ahuman has joined #ruby
afgeneralist has quit [Ping timeout: 256 seconds]
stopbit has quit [Quit: Leaving]
<swarley> lectrick; #error "Revise your code to use <stdarg.h>."
<Silowyi> apeiros_ I'd love to upgrade to 1.9, but we don't have the resources to do so. The upgrade from 1.8.5 to 1.8.7 nearly killed us off as it was, so many bugs were introduced.
<lectrick> swarley: Can't just use a simple search/replace for that tho (I tried :O)
nateberkopec has quit [Quit: Leaving...]
<apeiros_> Silowyi: hu? …ok
<swarley> You probably could with the right tools, but the easiest thing i could think to do would be
<lectrick> Silowyi: You're going to be in trouble soon, or at least completely an isolated island, as most new and updated things are being written to work with 1.9.x
<swarley> lectrick; make a file called vararg.h and put #include <stdarg.h> and then add -iquote<path to where vararg.h you made is>
<Beoran__> 1.8 is end of life... it son't even get bugfixes anymore
invisime has quit [Quit: Leaving.]
<Silowyi> lectrick: all of our new code is in 1.9.3, this is legacy code.
lowg has quit [Quit: Leaving]
<lectrick> Silowyi: ah, yeah :/
sn0wb1rd has joined #ruby
<swarley> err, actually just use -I not -iquote
<Beoran__> is it an old rails app?
<swarley> eh...
<Silowyi> It might actually be easier to switch to tmail than 1.9.3, Mail is only used in about 3 separate places in the entirety of the legacy app
<swarley> Actually you would have to use -I- -I<path>
<Silowyi> Beoran__: lol rails... no, this app actually began development before rails was released >.>
<swarley> But that's not a bad fix really
chimkan has quit [Quit: chimkan]
<swarley> and it should solve your problem
<Beoran__> I see :)
<swarley> lectrick; long story short, it can be done with a little tricking of the build chain
<Beoran__> hmmm, you'll have to upgrade that app eventually though, but for now a quick fix will buy you some time
<lectrick> swarley: where do I add the -iquote option agin?
<Silowyi> we started this in 2001, with I think Ruby 1.4 or 1.5... :P To give you an idea of the kind of baggae the code has
kil0byte has quit [Ping timeout: 252 seconds]
carlyle has quit [Remote host closed the connection]
<Silowyi> baggage*
<Beoran__> well, you guys were pioneers then. :)
Bidness has quit [Remote host closed the connection]
<lectrick> ah i read later swarley nvm
<swarley> lectrick; in your Makefile add this to the end of CFLAGS = ..., "-I- -I<path to the dir with varargs.h>" without quotes
statarb3 has quit [Quit: Leaving]
FDj has joined #ruby
<Silowyi> Beoran__: we had no idea what we were doing. Case in point, our CGI library which I replaced two years ago was a port of CGI.pl
BigO has quit [Remote host closed the connection]
<Beoran__> heh, no intention to put Rack under it?
<Beoran__> I also wrote my own web framework in ruby, but I went for rzaick bacuase itw was just out then and seemed promising
<Beoran__> Rack
<Silowyi> new 1.9.3 code uses sinatra/rack
<Beoran__> yeah
<Beoran__> so do I now, and Datamapper (I wrote my own datamapper-like API too°
<lectrick> hehe swarley "cc1: note: obsolete option -I- used, please use -iquote instead"
<Silowyi> We weren't ready to commit to rails primarily because of ActiveRecord nightmares with legacy databases... of course Rails doesn't REQUIRE ActiveRecord as an ORM...
<Beoran__> yeah, I'm using dataapper now and it's quite good
_alejandro has quit [Remote host closed the connection]
<swarley> lectrick; yeah, it should still compile though shouldn't it?
rasbonics has quit [Quit: rasbonics]
<Silowyi> we've been playing around with Sequel ORM... but I've been looking at datamapper.
<Beoran__> I believe in "code supremacy". The code should decide what is in the database
<Silowyi> oh, hello, it's 5:30pm
<Silowyi> I don't have to care anymore until tomorrow
<Silowyi> have fun everyone!
<Beoran__> ah good evening :)
<Silowyi> time to finish my nanowrimo
<swarley> if not, just use -I instead of both -I- and -I
<Silowyi> thanks for the input Apeiros_, Beoran__
Silowyi has quit []
<lectrick> swarley: you would think so
nateberkopec has joined #ruby
dankest has joined #ruby
chimkan_ has joined #ruby
piotr_ has quit [Ping timeout: 248 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
feju has left #ruby ["WeeChat 0.3.9.1"]
shiin has quit [Quit: Computer has gone to sleep.]
<RubyPanther> "ActiveRecord nightmares with legacy databases" sounds so 2006! I use AR outside of rails precisely _because_ I have legacy monsters I have to support.
<lectrick> AR has pretty good support for legacy crap, if you know how to set up the models correctly
<apeiros_> meh
<apeiros_> well, maybe I didn't try hard enough :)
moshee has quit [Remote host closed the connection]
<lectrick> wow i am running without a working ruby and it sucks
* apeiros_ will try now hard to get some sleep - n8!
apeiros_ has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
jjang has joined #ruby
Ordinaryus has joined #ruby
Ordinaryus has left #ruby [#ruby]
generalissimo has quit [Remote host closed the connection]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
byennen_ has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 260 seconds]
snorkdude has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ephemerian has quit [Quit: Leaving.]
jimeh has joined #ruby
syamajala has quit [Remote host closed the connection]
xclite has quit [Remote host closed the connection]
snorkdude has quit [Quit: snorkdude]
sn0wb1rd has quit [Quit: sn0wb1rd]
nkts_ has joined #ruby
jenrzzz has joined #ruby
nga4 has quit [Ping timeout: 256 seconds]
FredLe has quit [Quit: Leaving.]
headius has quit [Quit: headius]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
generalissimo has joined #ruby
_nitti has joined #ruby
slainer68 has quit [Remote host closed the connection]