apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
gensym` has quit [Read error: Connection reset by peer]
orien has joined #ruby
Asher has quit [Quit: Leaving.]
tommyvyo has quit [Quit:]
v0n has quit [Ping timeout: 248 seconds]
devoldmx3 has joined #ruby
amedeiros has quit [Ping timeout: 260 seconds]
devoldmx has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: nettoweb]
monkegjinni has quit [Remote host closed the connection]
bigoldrock has quit [Ping timeout: 260 seconds]
evenix has quit [Ping timeout: 260 seconds]
arya has quit [Ping timeout: 260 seconds]
ngoldman has joined #ruby
jonathanwallace has joined #ruby
Alamo777_ has joined #ruby
DanKnox is now known as DanKnox_away
Alina-malina has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
malkomalko has quit [Remote host closed the connection]
Spooner has quit [Remote host closed the connection]
vwoo has quit [Ping timeout: 260 seconds]
tommyvyo has joined #ruby
vwoo has joined #ruby
arya has joined #ruby
takeru has quit [Remote host closed the connection]
mansi has joined #ruby
saarinen has quit [Quit: saarinen]
bhaarat has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
saarinen has joined #ruby
vwoo has quit [Ping timeout: 264 seconds]
Michael__ has quit [Remote host closed the connection]
arya_ has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
Appineer has joined #ruby
Michael__ has joined #ruby
gyre007 has joined #ruby
vwoo has joined #ruby
nopolitica has joined #ruby
dv_ has quit [Ping timeout: 245 seconds]
Michae___ has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
Michael__ has quit [Read error: Connection reset by peer]
takeru has joined #ruby
arya has quit [Ping timeout: 248 seconds]
johnrlive has joined #ruby
pitzips has quit [Ping timeout: 248 seconds]
jamesaxl has quit [Ping timeout: 260 seconds]
dv_ has joined #ruby
johnrlive has quit [Read error: Operation timed out]
fridim_ has joined #ruby
k610 has quit [Ping timeout: 264 seconds]
yshh_ has quit [Remote host closed the connection]
headius has quit [Quit: headius]
marcdel_ has joined #ruby
marcdel_ has quit [Client Quit]
marcdel_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
marcdel_ has quit [Client Quit]
jbinto has joined #ruby
marcdel_ has joined #ruby
zeade has quit [Quit: Leaving.]
jkline has quit [Quit: jkline]
sailias has quit [Quit: Leaving.]
farn has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 260 seconds]
phipes has joined #ruby
timonv has quit [Ping timeout: 276 seconds]
_Renegade has quit [Quit: _Renegade]
marcdel_ has quit [Client Quit]
marcdel has joined #ruby
nfk has quit [Quit: yawn]
i8igmac has joined #ruby
jbinto has quit [Ping timeout: 256 seconds]
pierre1 has joined #ruby
dcunit3d has joined #ruby
arubin has joined #ruby
albertone has quit [Ping timeout: 240 seconds]
farn has joined #ruby
slash_nick has quit [Ping timeout: 246 seconds]
ppppaul has joined #ruby
bionhart has quit [Remote host closed the connection]
hogeo has joined #ruby
ChronocityLC has joined #ruby
nopolitica has quit [Quit: Lost terminal]
Evixion has quit []
jcromartie has quit [Quit: Computer has gone to sleep.]
marcdel has quit [Quit: Textual IRC Client: www.textualapp.com]
jkline has joined #ruby
osvico has quit [Ping timeout: 276 seconds]
tommyvyo has quit [Quit:]
d2dchat has quit [Remote host closed the connection]
harrymoreno has quit [Ping timeout: 260 seconds]
harrymoreno has joined #ruby
pitzips has joined #ruby
generali_ has quit [Remote host closed the connection]
verto has joined #ruby
BSaboia has joined #ruby
kil0byte has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has quit [Remote host closed the connection]
ngoldman has quit [Remote host closed the connection]
bhaarat has quit [Quit: bhaarat]
bhaarat has joined #ruby
malkomalko has joined #ruby
freerobby has quit [Quit: Leaving.]
yshh has joined #ruby
gyre007 has quit [Remote host closed the connection]
Davey has joined #ruby
Michae___ has quit [Remote host closed the connection]
Michael__ has joined #ruby
HecAtic has joined #ruby
chrishough has quit [Quit: chrishough]
Michael__ has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 260 seconds]
takezawa has joined #ruby
Michael__ has joined #ruby
bradhe has quit [Remote host closed the connection]
tundrax has joined #ruby
staafl has joined #ruby
alexwh has joined #ruby
adeponte has quit [Remote host closed the connection]
krainboltgreene has joined #ruby
Appineer has quit [Remote host closed the connection]
bradhe has joined #ruby
takeru has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
atyz has joined #ruby
hackeron has quit [Read error: Operation timed out]
sailias has joined #ruby
nettoweb has joined #ruby
danslo has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
helvete has quit [Ping timeout: 246 seconds]
robscomputer_ has quit [Remote host closed the connection]
jacktrick has quit [Quit: Leaving]
Left_Turn has joined #ruby
robscomputer has joined #ruby
Left_Turn has left #ruby [#ruby]
failshell has quit [Remote host closed the connection]
lewis has joined #ruby
staafl has quit [Ping timeout: 259 seconds]
twoism has quit [Remote host closed the connection]
lewis is now known as lewix
Hanmac2 has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
dcunit3d has joined #ruby
bradhe has quit [Ping timeout: 276 seconds]
caleb_io has quit [Quit: caleb_io]
robscomputer has quit [Ping timeout: 276 seconds]
Hanmac has quit [Ping timeout: 260 seconds]
athst has quit [Quit: athst]
thomasle_ has quit [Remote host closed the connection]
johnrlive has joined #ruby
nettoweb has quit [Quit: nettoweb]
brennanM_ has joined #ruby
mansi has joined #ruby
Nisstyre-laptop has joined #ruby
devtro_ has joined #ruby
johnnyfuchs has joined #ruby
brennanMKE has quit [Ping timeout: 276 seconds]
vwoo has quit [Ping timeout: 260 seconds]
lyanchih has joined #ruby
johnrlive has quit [Ping timeout: 252 seconds]
athst has joined #ruby
lyanchih has quit [Remote host closed the connection]
lyanchih has joined #ruby
jdunck has joined #ruby
lyanchih has quit [Client Quit]
vwoo has joined #ruby
ffranz has quit [Quit: Leaving]
angusiguess has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
zXr has quit []
dcunit3d has quit [Ping timeout: 260 seconds]
dcunit3d has joined #ruby
jimg has joined #ruby
jkline has quit [Quit: jkline]
diegoviola has quit [Ping timeout: 245 seconds]
bionhart has joined #ruby
ariedler has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
wchun has joined #ruby
failshell has joined #ruby
ppppaul has quit [Ping timeout: 256 seconds]
buch_ has joined #ruby
hamakn has joined #ruby
saarinen has quit [Quit: saarinen]
ariedler has quit [Ping timeout: 246 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
dcunit3d has quit [Ping timeout: 260 seconds]
nari_ has joined #ruby
timkohru_ has quit [Remote host closed the connection]
emmanuelux has quit [Remote host closed the connection]
johnpatr has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]]
nalaginrut has quit [Ping timeout: 248 seconds]
<johnpatr> Hi. I'm used to languages like C++ and Haskell, fairly new to Ruby. I don't quite get exceptions and raise. When I raise I don't seem to create an instance of an exception - I just pass the class name to raise with a message. Does the exception ever get instantiated, or does it just tag along as a sort of type indicator?
GeissT has joined #ruby
juarlex has quit [Ping timeout: 248 seconds]
mocfive_ has quit [Remote host closed the connection]
ioNull has quit [Quit: Computer has gone to sleep.]
dcunit3d has joined #ruby
nightshade427 has joined #ruby
brennanMKE has joined #ruby
dhruvasagar has joined #ruby
failshell has quit [Remote host closed the connection]
cofin has joined #ruby
saarinen has joined #ruby
<jokke> hey
<jokke> i'm having some problems with threads
brennanM_ has quit [Ping timeout: 240 seconds]
sindork has quit [Read error: Connection reset by peer]
sindork_ has joined #ruby
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
failshell has joined #ruby
bigkm has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
codesoda has quit [Remote host closed the connection]
<jokke> i don't know why but for the script suddenly terminates if i run it with more than 3 threads
erichmenge has quit [Quit: Arrivederci!]
davidcelis has quit [Quit: K-Lined.]
<jokke> s/for//
ppppaul has joined #ruby
djbkd has quit [Quit: Leaving]
davidcelis has joined #ruby
buch_ has quit [Quit: Textual IRC Client: www.textualapp.com]
erichmenge has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
<johnpatr> jokke: you're going to get non-deterministic results here, as you have a race between the loop creating threads, and when the threads start and increment the count
Eaven has joined #ruby
ttt has joined #ruby
malkomalko has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
dbob has joined #ruby
zodiak has quit [Ping timeout: 248 seconds]
Michael__ has quit [Remote host closed the connection]
Michael__ has joined #ruby
vwoo has quit [Ping timeout: 256 seconds]
dbob is now known as danebob
Michael__ has quit [Remote host closed the connection]
Domon has joined #ruby
Michael__ has joined #ruby
cofin has quit [Quit: cofin]
Michael__ has quit [Remote host closed the connection]
vwoo has joined #ruby
Michael__ has joined #ruby
bionhart has quit [Remote host closed the connection]
nalaginrut has joined #ruby
lewix has quit [Remote host closed the connection]
ioNull has joined #ruby
lewix has joined #ruby
<Fire-Dragon-DoL> How can I call the module method without manually adding "super" to the class A ? https://gist.github.com/Fire-Dragon-DoL/5726607
mercwithamouth has joined #ruby
lewix_ has joined #ruby
lewix has quit [Read error: Connection reset by peer]
Michael__ has quit [Remote host closed the connection]
quest88 has joined #ruby
Michael__ has joined #ruby
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
<jokke> johnpatr: hm
lewix_ is now known as lewis
lewis has quit [Changing host]
lewis has joined #ruby
HecAtic has quit [Quit: HecAtic]
Michael__ has quit [Remote host closed the connection]
lewis is now known as lewix
sleetdrop has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<jokke> johnpatr: i modified it like this: https://paste.xinu.at/XG9186/ruby
thomasle_ has joined #ruby
<jokke> but i apparently still hvae a race condition
Michael__ has joined #ruby
BSaboia has quit [Read error: Operation timed out]
<johnpatr> jokke: what's the purpose of @threads?
cofin has joined #ruby
<jokke> to limit the amount of threads running simultaniously
zodiak has joined #ruby
<johnpatr> jokke: but you can start an infinite number of threads if none of them quite reached the point of incrementing that counter
dhruvasagar has joined #ruby
pothibo has quit [Quit: pothibo]
felixjet has quit [Read error: Connection reset by peer]
<jokke> why?
Peej has joined #ruby
chichou has quit [Read error: Connection reset by peer]
<jokke> i always count down @threads
felixjet has joined #ruby
<jokke> before i create a new one
<johnpatr> jokke: where is @threads initially set?
huttan has quit [Read error: Connection reset by peer]
<jokke> at the bottom
Michae___ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
huttan has joined #ruby
chichou has joined #ruby
<jokke> oh it's not in the paste
<jokke> its just a command line argument
Michae___ has quit [Remote host closed the connection]
apeiros has joined #ruby
<johnpatr> jokke: ah i see so it's the inverse of what I thought
<jokke> i pass it to the constructor of Spider
Michae___ has joined #ruby
<jokke> uh?
<jokke> *huh?
saarinen has quit [Quit: saarinen]
jamescarr has joined #ruby
bionhart has joined #ruby
Michael__ has quit [Ping timeout: 260 seconds]
<johnpatr> jokke: just getting my head around the number going down not up
<jokke> oh yeah
<jokke> confun
<jokke> sing
<jokke> i know
lewix has quit []
<johnpatr> jokke: is this mri or jruby?
<jokke> mri
<bnagy> jokke: I would use one of the many threadpools and just push uris to crawl to a Queue
awc737 has quit [Ping timeout: 240 seconds]
<johnpatr> jokke: sorry, can't see the bug. however i would suggest that instead of starting threads here and there, start n threads at the start, and let them run for the whole time and use a work queue
Michae___ has quit [Read error: Connection reset by peer]
<jokke> hmm
<johnpatr> jokke: you could set up a work stealing system to make it efficient
Michael__ has joined #ruby
<jokke> you lost me there :)
failshell has quit [Remote host closed the connection]
mnaser has quit [Ping timeout: 245 seconds]
<johnpatr> jokke: read this R. D. Blumofe and C. E. Leiserson. Scheduling multithreaded computations by work stealing. Journal of the ACM, 46(5):720–748, 1999.
<bnagy> yeah ornot
<jokke> hm
braincra- has joined #ruby
ericmathison has joined #ruby
adkron has quit [Ping timeout: 264 seconds]
<bnagy> actually you probably want a SizedQueue
<bnagy> otherwise you'll get uncontrolled queue growth, if you're spidering
awc737 has joined #ruby
<jokke> ok
<jokke> but how do the threads get the stuff from the queue?
DanKnox_away has quit [Ping timeout: 248 seconds]
onewheelskyward has quit [Ping timeout: 248 seconds]
lunarjar has quit [Ping timeout: 240 seconds]
<jokke> they need to sleep or something if it's empry
Eaven has quit [Read error: Connection reset by peer]
<johnpatr> jokke: pop in a syncrhnozied block
<bnagy> jokke: each worker does pop a uri, get all uris to spider, push them all the the queue
thomasle_ has quit [Ping timeout: 256 seconds]
<jokke> *empty
<bnagy> you don't need to sync the pop
<johnpatr> jokke: but then you have contention on that queue if you aren't careful - the paper explains a lot
<bnagy> Queue in ruby is threadsafe
xybre has quit [Ping timeout: 248 seconds]
<jokke> oh allright
<bnagy> jokke: Queue.pop and SizedQueue.push will both block
Michael__ has quit [Remote host closed the connection]
thomasle_ has joined #ruby
DanKnox_away has joined #ruby
Eaven has joined #ruby
<bnagy> so if the Queue is empty, workers will just block on the pop
xybre has joined #ruby
xybre has joined #ruby
xybre has quit [Changing host]
DanKnox_away is now known as DanKnox
<bnagy> if a SizedQueue is too full they will block when trying to push new uris to crawl
onewheelskyward has joined #ruby
<jokke> still, what do the workers do while they're waiting for data?
<bnagy> uh nothing
<johnpatr> jokke: they're de-scheduled
<jokke> wat?
braincrash has quit [Ping timeout: 248 seconds]
kil0byte has joined #ruby
<johnpatr> jokke: they're not scheduled to run by the kernel until they're signalled to do so
<jokke> johnpatr: ah i see
hackeron has joined #ruby
<jokke> still, if for some reason the queue is empty i'll have a problem
mercwithamouth has quit [Ping timeout: 276 seconds]
<bnagy> why?
<bnagy> the only way it could be a problem is if you run out of the Internet
<johnpatr> jokke: do you mean when you want to finish? you can push a special finish instruction value onto the queue
jmsbrwr has quit [Ping timeout: 240 seconds]
lunarjar has joined #ruby
mnaser has joined #ruby
jamesfung14 has joined #ruby
<jokke> bnagy: i guess you're right
<jokke> nope, still not getting it
kil0byte has quit [Remote host closed the connection]
<bnagy> haha which bit?
<jokke> lets say i have an array of threads [a, b, c, d]
Zeeraw has quit [Quit: Computer has gone to sleep.]
<jokke> first of all, how do i instanciate them?
<johnpatr> jokke: multi-threading is not for the faint of heart - if you're new to this stuff a book like The Art of Multiprocessor Programming will give you all these algorithms, rather than you trying to re-invent them yourself and getting frustrated
kil0byte has joined #ruby
<johnpatr> jokke: instanciate?
<jokke> johnpatr: yeah call new on them
<johnpatr> jokke: do you mean stop them? put a message on their queue that they stop when they see it
<bnagy> jokke: (1..4).map {|_| Thread.new do ... end}.map &:join
<jokke> and what do they do?
<bnagy> whatever is in their block
<jokke> sigh
<bnagy> so if you want them to never finish put a loop in there
<johnpatr> jokke: are you taking the piss now? you're already making threads and doing things with them in the code you showed us already
justsee has quit [Ping timeout: 264 seconds]
ericmathison has quit [Quit: leaving]
<jokke> bnagy: but isn't that wasteful?
Beoran has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
<jokke> well i could put a sleep in there
<bnagy> wasting what?
Beoran has joined #ruby
<jokke> cpu cycles :)
qfwfq has left #ruby [#ruby]
alvaro_o has quit [Quit: Ex-Chat]
<johnpatr> jokke: not if they're waiting for something from the queue
<johnpatr> jokke: they go to sleep if they're waiting for something
nightshade427 has left #ruby [#ruby]
nezumi has joined #ruby
<jokke> i should go to sleep...
<jokke> but i cant
<jokke> gotta finnish this
<jokke> so um.. how are they waiting?
<jokke> with pop?
<bnagy> whenever you pop
<jokke> okay, here's the deas
<jokke> *deal
<jokke> i start with one single url
<jokke> how am i supposed to make four out of it for the queue
<bnagy> don't
<johnpatr> jokke: i don't mean to be rude (i am being rude) but you could ask back and forth all day - why not take the time out to read a text book and get your head around it properly
Michael__ has joined #ruby
<jokke> so that 4 threads could crawl simultaniously
<bnagy> one worker will get it, and then start pushing child urls
ericmathison has joined #ruby
<jokke> johnpatr: because i gotta hand this in tomorrow morning
<bnagy> at which point there will be enough work for everyone
bigkm has quit [Quit: Computer has gone to sleep.]
<jokke> bnagy: but it won't be fast enough
khushildep_ has joined #ruby
saarinen has joined #ruby
tbrock has joined #ruby
<jokke> but yeah
<johnpatr> jokke: why do you think it won't be fast enough?
<bnagy> what are you thinking would slow it down?
<jokke> the io
<jokke> fetching the url
<johnpatr> but that's the same speed however you write the threads
<bnagy> well that's just a matter of having enough workers to saturate your io
Appineer has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
<bnagy> if you wanted to write this 'for real' threads aren't the best solution, though, you're right
<jokke> so i need to put in something like if (uri = queue.pop).nil?; sleep(n seconds) end
<bnagy> no
radic_ has joined #ruby
<bnagy> the pop cannot return nil
<jokke> oh it cannot?
jcromartie has joined #ruby
<bnagy> it blocks, like we said already
<jokke> aaaaah!
<bnagy> it will just sit there forever until it gets something
khushildep has quit [Ping timeout: 264 seconds]
khushildep_ is now known as khushildep
<jokke> well then that's perfect!
<jokke> sorry, i'm just really tired
<bnagy> lightbulb!
<jokke> it's 04:40 am here.. -.-
<bnagy> the hard part is controlling your Queue size
<jokke> *30
robscomputer has joined #ruby
jlast has joined #ruby
jetblack has joined #ruby
viszu has joined #ruby
radic__ has quit [Ping timeout: 264 seconds]
chandankumar has joined #ruby
chandankumar has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
razi has joined #ruby
cads has joined #ruby
takezawa has quit [Remote host closed the connection]
chandankumar has joined #ruby
falko has joined #ruby
_ffio_ has joined #ruby
takezawa has joined #ruby
senj has joined #ruby
bubblehead has quit [Remote host closed the connection]
ffio_ has quit [Ping timeout: 248 seconds]
robscomputer has quit [Remote host closed the connection]
robscomputer has joined #ruby
jgoss has quit [Quit: Leaving]
saarinen has quit [Quit: saarinen]
harrymoreno has joined #ruby
iamjarvo has quit [Client Quit]
<quazimodo> monkeypatching seems like a pain in the ass
robscomputer_ has joined #ruby
<quazimodo> as in, it's just bad...
robscomputer has quit [Read error: Connection reset by peer]
<bnagy> pretty much
Michael__ has quit [Remote host closed the connection]
<johnpatr> quazimodo: correct - this is what happens when you design random fun crazy features instead of thinking things through
Michael__ has joined #ruby
iamjarvo has joined #ruby
tundrax has quit [Remote host closed the connection]
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
johnpatr has quit [Quit: Page closed]
bigkm has joined #ruby
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
<iamjarvo> hi what is the open_args used for in IO.read(:open_args)
busybox42 has joined #ruby
machuga is now known as machuga|away
tundrax has joined #ruby
tundrax has quit [Read error: Connection reset by peer]
pitzips has quit [Ping timeout: 264 seconds]
Michael__ has quit [Ping timeout: 276 seconds]
tundrax has joined #ruby
cofin has quit [Quit: cofin]
momomomomo has joined #ruby
busybox43 has quit [Ping timeout: 264 seconds]
<bnagy> read the IO Open Mode section
devtro_ has quit [Quit: devtro_]
fridim_ has quit [Ping timeout: 246 seconds]
<jokke> bnagy: okay, now looks like this: https://paste.xinu.at/Kxp/ruby
<jokke> and now it's even worse :)
bhaarat has quit [Quit: bhaarat]
adkron has joined #ruby
cyong has joined #ruby
jamescarr has quit [Quit: jamescarr]
Michael__ has joined #ruby
jamescarr has joined #ruby
timkohrumel has joined #ruby
InFlames has joined #ruby
<bnagy> that looks vaguely sane
<jokke> :P
jurbat has joined #ruby
razi has quit [Quit: Leaving.]
<bnagy> so the problem with a sizedqueue is that you could deadlock
<jokke> wat?
<bnagy> like, all your threads could be trying to push new uris, and none of them would be popping work items
razi has joined #ruby
<jokke> hm
<jokke> i don't like where this is going... :/
<jokke> but the script just doesn't do anything
razi has quit [Client Quit]
timkohrumel has quit [Ping timeout: 264 seconds]
<bnagy> well you marked your start uri as visited
<bnagy> not sure why
mklappstuhl has joined #ruby
Asher has joined #ruby
zastern has joined #ruby
<jokke> that's okay
airlok has joined #ruby
<jokke> tried it already without marking it
<Inside> Hey #ruby
<Inside> are there any problems with the "popularity" of ruby?
athst has quit [Quit: athst]
Xeago has quit [Remote host closed the connection]
<Inside> For such a popular language, I'm finding a surprising lack of some very basic functionality..
<bnagy> oh here we go
<Inside> :(
<Inside> It's true.
<Inside> Like I'm looking something similar to python numpy
viszu has quit [Quit: Leaving.]
<Inside> (just to do linear algebra stuff)
<bnagy> linear algebra is not 'basic functionality'
<Inside> so I stumble across linalg.... doesn't work on 1.9, apparently.. and nobody's fixed it in 4 years that this problem has been known
krz has joined #ruby
<Inside> I'm not asking for anything esoteric.
fomatin_ has joined #ruby
Michael__ has quit [Remote host closed the connection]
io_syl has quit [Ping timeout: 248 seconds]
phipes has quit [Quit: phipes]
Asher has quit [Client Quit]
Michael__ has joined #ruby
vwoo has quit [Quit: Computer has gone to sleep.]
mklappstuhl has quit [Ping timeout: 264 seconds]
danshultz has joined #ruby
Guga_ has quit [Quit: ~]
zastern has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
takeru_ has joined #ruby
freerobby has joined #ruby
mstapes has joined #ruby
LucidDreamZzZ has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
<mstapes> Hi, I have a noobie question and was wondering if someone could take a quick look at my problem.
Michael__ has quit [Ping timeout: 256 seconds]
<bnagy> mstapes: it's IRC, don't ask to ask
Guedes0 has quit [Ping timeout: 264 seconds]
tw1sted has joined #ruby
pitzips has joined #ruby
ariedler has joined #ruby
tw1sted has quit [Client Quit]
<Inside> Yish, to install scriby I need nmatrix, to install that I need atlas, to install that I need gcc, to install that I need cygwin e_e
ariedler has quit [Remote host closed the connection]
<iamjarvo> bnagy: thanks
ckrailo has quit [Quit: Computer has gone to sleep.]
ffranz has joined #ruby
<bnagy> Inside: you're trying to do scientific computing on Windows? Srsly?
InFlames has quit [Quit: This computer has gone to sleep]
<Inside> bnagy: No, I'm just trying to multiply 3x3 matrices together
fwaokda has quit [Read error: Connection reset by peer]
chiji has joined #ruby
fwaokda has joined #ruby
fwaokda has quit [Client Quit]
<bnagy> there's a Matrix class built in
dcunit3d has quit [Ping timeout: 256 seconds]
wsterling has joined #ruby
<bnagy> oh, looks like it might be in ruby though :/
<Inside> nuu
Appineer has quit [Remote host closed the connection]
DomKM has joined #ruby
ehaliewicz has quit [Read error: No route to host]
atno has joined #ruby
<Inside> i do like ruby, I really do
twoism has joined #ruby
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
tbrock has quit [Quit: Computer has gone to sleep.]
tbrock has joined #ruby
chiji has quit [Ping timeout: 246 seconds]
<mstapes> I have a variable @applicants = Applicant.includes(:skills).all. In my view I'm doing @applicants.each do |p|. In my skills table I have a field called "name", how do I get that to show up? I thought it would be p.skills.name but that just shows "skill".
<mstapes> typo, sorry. it's Applicant.includes(skills).all
jimg has quit [Remote host closed the connection]
chiji has joined #ruby
ffranz has quit [Quit: Leaving]
<bnagy> mstapes: is this rails?
angusiguess has quit [Ping timeout: 256 seconds]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
ericmathison has quit [Quit: leaving]
ericmathison has joined #ruby
chiji has quit [Ping timeout: 256 seconds]
mayrun has quit [Ping timeout: 256 seconds]
ariedler has joined #ruby
ChronocityLC has quit [Ping timeout: 276 seconds]
jmsbrwr has joined #ruby
<mstapes> bnagy: yes. wrong channel?
<danshultz> there is a #rails channel
<mstapes> ah, thanks
<danshultz> but either way - I'm assuming skills is a belongs to
<danshultz> and Applicant has many skills?
<mstapes> yes
chiji has joined #ruby
<danshultz> well, it should be p.skills.first.name
<danshultz> but that would throw a nil if there are no skills
<danshultz> also, should p.skills.name throw an error?
banjara has joined #ruby
<mstapes> for the project I'm working on there has to be at least one skill, so that's not an issue.
ericmathison has quit [Client Quit]
ericmathison has joined #ruby
HecAtic has joined #ruby
Randomage has quit [Ping timeout: 276 seconds]
osvico has joined #ruby
ericmathison has quit [Client Quit]
<mstapes> p.skills.first.name works, but it only returns the first skill, but an applicant can have many skills.
<mstapes> and no, p.skills.name doesn't throw an error
fomatin_ has quit [Quit: Computer has gone to sleep.]
ericmathison has joined #ruby
zastern has joined #ruby
<zastern> Am I crazy to read a ruby book from 2007? It covers exactly the use cases I'm interested in.
ivanoats has quit [Remote host closed the connection]
tundrax has quit [Remote host closed the connection]
<danshultz> ok - so I just realized "#name" on an association gives the class name of the association typically
<danshultz> mstapes: yes - but you can just do p.skills.each do |skill| ... end
<danshultz> it's just a collection
<danshultz> mstapes: or if you want a comma list - p.skills.join(', ')
tundrax has joined #ruby
Z_Mass has quit [Ping timeout: 248 seconds]
nouitfvf has quit [Ping timeout: 252 seconds]
<mstapes> I did the p.skills.each do |skill| and it worked.
<mstapes> Thank you so much! I'm a total noob to ruby, so I couldn't even figure out how to google what it was I was trying to figure out.
banjara has quit [Quit: Leaving.]
<mstapes> you're a live saver thanks again :)
codelefante has joined #ruby
<danshultz> mstapes: new to ruby, rails or programming?
<mstapes> still somewhat new to programming, but completely new to ruby and rails
mmitchell has quit [Remote host closed the connection]
freakazoid0223 has quit [Ping timeout: 245 seconds]
dcunit3d has joined #ruby
chandankumar has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 256 seconds]
jamesfung14 has quit [Ping timeout: 260 seconds]
icole_ has quit [Remote host closed the connection]
mstapes has quit [Quit: irc2go]
uxp has quit [Read error: Connection reset by peer]
uxp has joined #ruby
<jokke> do you guys get a deadlock when you run this code?
<jokke> i get `join': No live threads left. Deadlock?
generali_ has joined #ruby
<jokke> syntax is 07-spider.rb url [nr of threads]
Eaven has quit [Remote host closed the connection]
cads has quit [Ping timeout: 246 seconds]
angusiguess has joined #ruby
tommyvyo has joined #ruby
ericmathison has quit [Quit: leaving]
io_syl has joined #ruby
ericmathison has joined #ruby
phipes has joined #ruby
alpha123 has joined #ruby
akells` has joined #ruby
InFlames has joined #ruby
jimg has joined #ruby
takeru_ has quit [Remote host closed the connection]
pitzips has quit [Read error: No route to host]
rippa has joined #ruby
eldariof has joined #ruby
jimg has quit [Remote host closed the connection]
jimg has joined #ruby
io_syl has quit [Ping timeout: 264 seconds]
ivanoats has joined #ruby
<jnix> hi
<jnix> whoops wrong channel
jnix has quit [Changing host]
jnix has joined #ruby
io_syl has joined #ruby
chiji has quit [Ping timeout: 264 seconds]
jlast has quit [Remote host closed the connection]
jamescarr has quit [Quit: jamescarr]
angusiguess has quit [Ping timeout: 246 seconds]
tommyvyo has quit [Quit:]
jamescarr has joined #ruby
nari_ has quit [Ping timeout: 240 seconds]
atno has quit [Quit: Leaving]
mahmoudimus has joined #ruby
<bnagy> jokke: almost certainly all your threads died immediately
<bnagy> which means they probably aborted on an exception
<ariedler> jnix: didn't want to say hi here :( *crys*
ananthakumaran has joined #ruby
akells` has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
ariedler has quit [Remote host closed the connection]
robscomputer_ has quit [Remote host closed the connection]
brianherman has joined #ruby
robscomputer has joined #ruby
cherrypeel has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
ninegrid has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
ninegrid has joined #ruby
kevinykchan has quit [Ping timeout: 276 seconds]
tbrock has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 264 seconds]
danshultz has quit [Remote host closed the connection]
robscomputer has quit [Ping timeout: 246 seconds]
kevinykchan has joined #ruby
mansi has joined #ruby
macmartine has joined #ruby
Michael__ has joined #ruby
thesheff17 has quit [Ping timeout: 245 seconds]
areil has joined #ruby
bionhart has quit [Remote host closed the connection]
Asher has joined #ruby
jalcine has quit [Excess Flood]
chandankumar has joined #ruby
InFlames has quit [Quit: This computer has gone to sleep]
Michael__ has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
dhruvasagar has joined #ruby
areil has quit []
nari_ has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
jduan1981 has joined #ruby
jduan1981 has quit [Client Quit]
jduan1981 has joined #ruby
mansi has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
mansi has joined #ruby
DomKM has quit [Read error: Connection reset by peer]
DomKM has joined #ruby
timkohrumel has joined #ruby
Inside has quit [Ping timeout: 256 seconds]
alpha123 is now known as alpha123-away
echevemaster has quit [Quit: Leaving]
asgardBSD has quit [Remote host closed the connection]
Bosox20051 has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
sayan has quit [Read error: Connection reset by peer]
thesheff17 has joined #ruby
crazymykl has quit [Ping timeout: 248 seconds]
ivanoats has quit [Remote host closed the connection]
timkohrumel has quit [Ping timeout: 276 seconds]
echevemaster has joined #ruby
atno has joined #ruby
jalcine has joined #ruby
jalcine has quit [Changing host]
jalcine has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
jalcine has quit [Excess Flood]
Fire-Dragon-DoL has quit [Quit: Leaving.]
phipes has quit [Quit: phipes]
tonini has joined #ruby
jesfre has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
jalcine has joined #ruby
jfelchner has joined #ruby
end_guy has joined #ruby
ivanoats has joined #ruby
<nacsurte> if i wanted to find every place that begins with >
<nacsurte> and copy the entire line that comes after
<nacsurte> how would i do that with regex?
chris has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
chris is now known as Guest48396
<bnagy> nacsurte: http://rubular.com/
wesside has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: Leaving.]
bigkm_ has joined #ruby
Guest48396 is now known as codesoda
wesside has joined #ruby
alpha123-away is now known as alpha123
crazymykl has joined #ruby
cads has joined #ruby
wsterling has quit [Remote host closed the connection]
jimg has quit [Remote host closed the connection]
sleetdrop has joined #ruby
buzzybron has joined #ruby
<buzzybron> i'm tryin to replicate my old un maintained server env on my loca, and i have been trying to install gem postgres, it keeps giving me the deprecated msg when i try to run some of the scripts
sayan has joined #ruby
chandankumar has quit [Quit: Leaving]
sayan has quit [Read error: Connection reset by peer]
InFlames has joined #ruby
thomasle_ has quit [Read error: Connection timed out]
<buzzybron> how can i remove them msgs and run the script properly? right now it's just the msgs and not running
tjbiddle has joined #ruby
_Amaan has quit [Quit: _Amaan]
jimg has joined #ruby
Vert has quit [Read error: Connection reset by peer]
kevinykchan has quit [Ping timeout: 260 seconds]
whitedawg has quit [Quit: Leaving.]
kevinykchan has joined #ruby
jduan1981 has quit [Quit: jduan1981]
thomasle_ has joined #ruby
fierycatnet has joined #ruby
jesfre has quit [Ping timeout: 264 seconds]
rickruby has joined #ruby
ngoldman has joined #ruby
ppppaul has quit [Ping timeout: 256 seconds]
chrishunt has quit [Quit: So long...]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
cherrypeel has quit [Quit: Leaving]
eldariof has quit [Ping timeout: 260 seconds]
ppppaul has joined #ruby
<nacsurte> fucking regex
<nacsurte> i want to match between > and a newline
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
sayan has joined #ruby
<Sp4rKy> >.*$ ?
jamescarr has quit [Quit: jamescarr]
<nacsurte> whoaaaaaa
<nacsurte> mind blown
icole has joined #ruby
kil0byte has quit [Remote host closed the connection]
elliottcable has quit [Remote host closed the connection]
alpha123 has quit [Ping timeout: 246 seconds]
ppppaul has quit [Ping timeout: 260 seconds]
ppppaul has joined #ruby
fotanus has joined #ruby
therealnoop has joined #ruby
<fotanus> I know that ruby 1.8 have binary strings... but what is the encoding it appears when I puts it in the terminal?:
tonini has quit [Remote host closed the connection]
zastern has quit [Remote host closed the connection]
teedex has joined #ruby
akells` has joined #ruby
phipes has joined #ruby
khushildep has quit [Quit: khushildep]
Spami_ has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
Jackneill has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
codecop has joined #ruby
ivanoats has quit [Remote host closed the connection]
jimg has quit [Remote host closed the connection]
mxweas has joined #ruby
<Hanmac1> fotanus: you cant trust 1.8 strings ... and you should not trust 1.8 in general ... (its undead ;P )
akells` has quit [Ping timeout: 276 seconds]
<fotanus> hamakn_: that is why I'm running away from it - I'm out of shotguns
<fotanus> I found out that the problem is my mysql adapter
lyanchih has joined #ruby
<fotanus> if I switch to mysql it works, but mysql2 not
fgro has joined #ruby
tjbiddle_ has joined #ruby
nomenkun has joined #ruby
adeponte has joined #ruby
mayrun has joined #ruby
tjbiddle has quit [Ping timeout: 264 seconds]
tjbiddle_ is now known as tjbiddle
codelefante has quit [Quit: codelefante]
a_a_g has joined #ruby
orien has joined #ruby
rsut has joined #ruby
airlok has quit [Remote host closed the connection]
cyong has quit [Quit: Leaving.]
tundrax has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 240 seconds]
huoxito has quit [Quit: Leaving]
fierycatnet has quit [Quit: Leaving]
mayrun has quit []
mansi has joined #ruby
codezombie has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
dash__ has joined #ruby
fotanus has quit [Quit: Page closed]
macmartine has quit [Quit: Computer has gone to sleep.]
mansi has quit [Ping timeout: 256 seconds]
braoru has joined #ruby
jbueza has left #ruby [#ruby]
slash_nick has quit [Remote host closed the connection]
jimg has joined #ruby
tvw has joined #ruby
tagrudev has joined #ruby
mxweas has quit [Read error: Connection reset by peer]
brucelee_ has joined #ruby
jmsbrwr has quit [Quit: Leaving]
<brucelee_> hey guys, i have a line of code here that looks like the following: ::Chef::Recipe.send(:include, Opscode::OpenSSL::Password)
<brucelee_> is that in valid chef syntax?
<brucelee_> just taht line by itself
codesoda has quit [Remote host closed the connection]
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 246 seconds]
harrymoreno_ is now known as harrymoreno
tjbiddle has quit [Quit: tjbiddle]
lyanchih has quit [Quit: lyanchih]
dmiller has quit [Remote host closed the connection]
becom33 has joined #ruby
becom33 has quit [Changing host]
becom33 has joined #ruby
fgro has quit [Ping timeout: 264 seconds]
ttt has quit [Remote host closed the connection]
mxweas has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
<becom33> I have this web api I need to connect with . for example Customer information . from my console I need to list customers , view and update them . Im not sure how to do it simply . the thing . I thought of using ncurse but then I thought if there is a better way of doing this . any ideas ?
workmad3 has joined #ruby
_ffio_ has quit [Ping timeout: 276 seconds]
stkowski has joined #ruby
harrymoreno has quit [Ping timeout: 256 seconds]
albertone has joined #ruby
harrymoreno has joined #ruby
ppppaul has quit [Ping timeout: 260 seconds]
arya has joined #ruby
<bnagy> becom33: Hirb maybe
DonRichie has quit [Quit: Verlassend]
<becom33> bnagy, i see thanks lemme check on it
_ffio_ has joined #ruby
apeiros has quit [Remote host closed the connection]
ARCADIVS has quit [Quit: WeeChat 0.3.8]
wsterling has joined #ruby
thomasle_ has quit [Remote host closed the connection]
mafolz has joined #ruby
timkohrumel has joined #ruby
Alamo777_ has quit [Ping timeout: 264 seconds]
tundrax has joined #ruby
senj has quit [Quit: so it goes]
nacsurte has quit [Ping timeout: 256 seconds]
wsterling has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
angusiguess has joined #ruby
robbyoconnor has joined #ruby
ananthakumaran has joined #ruby
jprovazn has joined #ruby
haxrbyte has quit [Remote host closed the connection]
tundrax has quit [Ping timeout: 256 seconds]
sie has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
brucelee_ has quit [Ping timeout: 276 seconds]
binaryplease has joined #ruby
Spami_ has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
dcunit3d has quit [Quit: leaving]
generali_ has quit [Remote host closed the connection]
jimg has quit [Remote host closed the connection]
bionhart has joined #ruby
atno__ has joined #ruby
ivanoats has joined #ruby
ybart has joined #ruby
quest88 has quit [Quit: quest88]
ayaz has joined #ruby
haxrbyte has joined #ruby
atno has quit [Ping timeout: 246 seconds]
tomzx_mac has quit [Ping timeout: 260 seconds]
pencilcheck has quit [Remote host closed the connection]
aganov has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
bionhart has quit [Ping timeout: 276 seconds]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
dhruvasagar has joined #ruby
<becom33> i have this http://pastebin.com/pVh63jku two different prompts , each has deferent commands. what if I want to switch from one to another , how can I do it ?
twoism has quit [Remote host closed the connection]
monkegjinni has joined #ruby
mklappstuhl has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
ivanoats has quit [Ping timeout: 260 seconds]
angusiguess has quit [Ping timeout: 256 seconds]
oktapodi_ has joined #ruby
jimg has joined #ruby
nomenkun has quit [Remote host closed the connection]
marsLantern has quit [Quit: marsLantern]
Hanmac1 has quit [Quit: Leaving.]
albertone has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
pduin has joined #ruby
dash__ has quit [Quit: Time to beer :)]
oktapodi_ has quit [Remote host closed the connection]
oktapodi_ has joined #ruby
cads has quit [Ping timeout: 276 seconds]
lyanchih has joined #ruby
ybart has quit [Quit: ybart]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
timonv has quit [Ping timeout: 256 seconds]
sleetdrop has quit [Quit: Computer has gone to sleep.]
senayar has joined #ruby
tundrax has joined #ruby
cibs has quit [Quit: leaving]
banjara has joined #ruby
atyz has quit [Quit: Leaving...]
timkohrumel has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
rickruby has joined #ruby
mxweas has quit [Read error: Connection reset by peer]
dr_bob has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
Nuck has quit [Quit: Nuck Off]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
monkegjinni has joined #ruby
ntus1017 has joined #ruby
Nuck has joined #ruby
Nuck is now known as Guest92643
rickruby has quit [Ping timeout: 256 seconds]
sleetdrop has joined #ruby
danslo has quit [Quit: danslo]
brennanMKE has quit [Remote host closed the connection]
becom33 has quit [Ping timeout: 246 seconds]
bigkm_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
chandankumar has joined #ruby
kil0byte has joined #ruby
becom33 has joined #ruby
<becom33> i have this http://pastebin.com/pVh63jku two different prompts , each has deferent commands. what if I want to switch from one to another , how can I do it ?
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
vlad_starkov has joined #ruby
bubblehead has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
elliottcable has joined #ruby
bubblehead has joined #ruby
JohnBat26 has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
dash__ has joined #ruby
Nisstyre-laptop has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
gregorg has quit [Remote host closed the connection]
dr_bob has quit [Quit: Leaving.]
adeponte has quit [Remote host closed the connection]
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
jon_than_ has joined #ruby
filipe has joined #ruby
end_guy has joined #ruby
brennanMKE has joined #ruby
* becom33 anyone ?
teclator has quit [Ping timeout: 260 seconds]
kiri has quit [Ping timeout: 248 seconds]
atno__ has quit [Quit: Leaving]
tjbiddle has joined #ruby
pduin has left #ruby [#ruby]
brennanMKE has quit [Remote host closed the connection]
jds_ has quit [Remote host closed the connection]
orien has quit [Quit: Computer has gone to sleep.]
jds_ has joined #ruby
teedex has quit [Remote host closed the connection]
kiri has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
elliottcable has quit [Remote host closed the connection]
pierre1 has quit [Quit: Leaving]
jimg has quit [Remote host closed the connection]
dagobah has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Giorgio has joined #ruby
atno has joined #ruby
boblu has joined #ruby
haxrbyte has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
haxrbyte has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
unstable has left #ruby [#ruby]
monkegjinni has joined #ruby
helvete has joined #ruby
bionhart has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
ntus1017 has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jimeh_ has quit [Quit: Computer has gone to sleep.]
Alina-malina has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
Alina-malina has joined #ruby
obs has joined #ruby
dash__ has quit [Quit: Time to beer :)]
sideshowcoder has quit [Ping timeout: 264 seconds]
Hanmac has joined #ruby
nari_ has quit [Ping timeout: 240 seconds]
tundrax has quit [Remote host closed the connection]
helvete has quit [Ping timeout: 260 seconds]
Asher has quit [Quit: Leaving.]
danslo has joined #ruby
ivanoats has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
khushildep has joined #ruby
monkegjinni has joined #ruby
phipes has quit [Quit: phipes]
jimeh_ has joined #ruby
sideshowcoder has joined #ruby
Vadelius has joined #ruby
<jokke> bnagy: still there?
<bnagy> jokke: 3 hours sleep?
ivanoats has quit [Ping timeout: 248 seconds]
cloud|nix_ has joined #ruby
angusiguess has joined #ruby
<Vadelius> Just a terrible beginner here, mashing keys for learning purposes.. Im curious to why my if statement always returns the if, not any of the elsifs or else regardless of the variables value... http://pastebin.com/kdCFs89v
zigomir has joined #ruby
<jokke> bnagy: yup -.-
<jokke> bnagy: so u
<jokke> m
<jokke> you said my threads terminate early
<jokke> why is that?
sayan has quit [Read error: Connection reset by peer]
<bnagy> Vadelius: two reasons actually
<bnagy> Vadelius: a) you're not multiplying by 10_000 so bmi is always going to be less than 19
charliesome has joined #ruby
<Vadelius> Yeah im confused (logically im supposed to multiply it by 100, but rubymine shows the BMI value as like 0.00024 then
monkegjinni has quit [Read error: Connection reset by peer]
<bnagy> b) wait there is no b - just saw you're doing to_f :P
cj3kim has joined #ruby
wizard` has quit [Remote host closed the connection]
<Vadelius> (example when I ran it: Your BMI is: 25.23557679400789You are underweight, EAT MORE!")
<bnagy> Vadelius: yeah because bmi hasn't been multiplied
cloud|nix_ has quit [Ping timeout: 246 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> you never changed your variable - you only multiplied for the print statement
monkegjinni has joined #ruby
<Vadelius> Ahhh
tjbiddle has quit [Quit: tjbiddle]
<bnagy> jokke: I don't know :)
<Vadelius> thank you!
nari_ has joined #ruby
<bnagy> jokke: put in some rescue statements and check out $! and $@ ( the exception and the exception stack )
<jokke> well i get them on the command line anyways
<bnagy> Vadelius: PS - the 10000 thing is probably cause you are getting height in cm not m
<Vadelius> Yeah but cm >m = times a 100 unless im being really derpy this morning
<bnagy> you're squaring it
Proshot has quit [Remote host closed the connection]
<bnagy> jokke: unless you rescue the exceptions inside the Thread you'll never see them
<Vadelius> Oh yeah i should do the math before the squaring, thanks
yashshah_ has joined #ruby
yashshah has quit [Ping timeout: 240 seconds]
blaxter_ has joined #ruby
<jokke> bnagy: oh i don't?
angusiguess has quit [Ping timeout: 256 seconds]
<jokke> uh
<bnagy> nope they just silently die
<bnagy> Threads are more fun than a kick in the gonads :)
teclator has joined #ruby
estating56 has quit [Quit: estating56]
Davey has quit [Quit: Computer has gone to sleep.]
Kar- has joined #ruby
<bnagy> >> Thread.new { 1/0 }
<eval-in> bnagy => (http://eval.in/32963)
<Vadelius> Ive been looking into arrays and hashes but it doesnt seem its what im looking for, is there a way to prompt multiple chomps in a row? Like puts ("Enter X/Y/Z") and gets.to_i, gets.to_f, gets.chomp ? (a link to documentation would be superdandy) if anyone would be so kind
tundrax has joined #ruby
<bnagy> you have to get it as one string and then split it up yourself
jonahR has quit [Quit: jonahR]
stkowski has quit [Quit: stkowski]
jonahR has joined #ruby
<bnagy> >> a,b,c = "10 20 30\n".split ' '; p b
<eval-in> bnagy => "20" ... (http://eval.in/32964)
<Vadelius> Aha okay, so sort of like stringblock.each { |x| }
<Vadelius> aha allright, ill do some research, thanks for the pointers
<bnagy> there are gems for this kind of thing if you want to get fancy
<bnagy> highline for example
<jokke> bnagy: no but it reaches 1000 links
poga has quit [Ping timeout: 264 seconds]
ningu has joined #ruby
<jokke> something about my stopping mechanism is screwed
<bnagy> jokke: it does now? Sweet!
<bnagy> so you're joining all your Threads
wargasm has quit [Read error: Connection reset by peer]
<jokke> yes
<bnagy> but you were only pushing one :stop last I saw the code
<bnagy> so one thread will exit but not the rest
<jokke> i tried with several
<bnagy> you need as many as you have Threads
Proshot has joined #ruby
reduzate68 has joined #ruby
<jokke> as in @threads.times { @queue << :Stop }
<jokke> but it didn't work either
jimg has joined #ruby
<bnagy> although tbh just have an @ivar that they all look at
Elderspy has joined #ruby
<bnagy> forget pushing a magic stop token
<jokke> yeah
<bnagy> oooh no wait cannot
<jokke> i'll try that
nomenkun has joined #ruby
<bnagy> sorry, you'll still be blocked on pops
MrZYX|off is now known as MrZYX
ParanoidSP has joined #ruby
ParanoidSP has joined #ruby
Eaven has joined #ruby
<jokke> why?
freerobby has joined #ruby
<bnagy> cause they can't check the magic ivar while they're in a blocking pop call
<bnagy> what's the curret code, maybe your exit logic is screwy
wallerdev has quit [Quit: wallerdev]
<ningu> is there a way to tell gem to use shared libraries rather than static linking? it looks like gem is staticly linking something which fails for reasons I don't understand, but when I build the package using rake it works fine and links against the .so.
<jokke> it's the same
mmitchell has joined #ruby
dagobah_ has joined #ruby
cloud|nix has joined #ruby
dagobah has quit [Ping timeout: 246 seconds]
nomenkun has quit [Ping timeout: 260 seconds]
<bnagy> jokke: ok well nothing leaps out, time for some print debugging
<jokke> its just break if uri = :Stop
<jokke> hm i found this though
<bnagy> it's not a deadlock
mmitchell has quit [Ping timeout: 240 seconds]
<bnagy> you would know
<jokke> oh ok
ybart has joined #ruby
<bnagy> I would @threadpool.map &:join not use each
cj3kim has quit [Read error: Connection reset by peer]
<jokke> ok
monkegjinni has quit [Read error: Connection reset by peer]
<bnagy> but offhand I can't see why it would make a diff
jimg has quit [Ping timeout: 248 seconds]
<MrZYX> yeah, why map it?
<bnagy> try outputting something when you get the stop, to make sure it's actually happening
cloud|nix_ has joined #ruby
cj3kim has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
<becom33> http://pastebin.com/dFkiypiC I have a problem here in Readline completion_proc doesnt change when I switch
monkegjinni has joined #ruby
timkohrumel has joined #ruby
cloud|nix has quit [Ping timeout: 260 seconds]
<jokke> hm
<jokke> it never outputs Thread x finished
swex_ has joined #ruby
daniel_- has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
s0ber_ has quit [Read error: Connection reset by peer]
eval-in has quit [Remote host closed the connection]
s0ber has joined #ruby
eval-in has joined #ruby
[rust] has quit [Quit: Leaving]
monkegjinni has quit [Read error: Connection reset by peer]
rsut has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
Anarch has joined #ruby
albertone has joined #ruby
poga has joined #ruby
icole has quit [Remote host closed the connection]
<bnagy> so check out what you're getting from the queue pop - p uri
monkegjinni has joined #ruby
cloud|nix__ has joined #ruby
jonahR has quit [Quit: jonahR]
timkohrumel has quit [Ping timeout: 256 seconds]
<MrZYX> why not do until @queue.empty? instead of loop break ?
<jokke> MrZYX: because after the first pop it's empty
cj3kim has quit [Remote host closed the connection]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
jeekl has quit [Read error: Operation timed out]
<MrZYX> yeah and then you call crawl which pushes new stuff on it, then it reenters the condition check
nalaginrut has quit [Ping timeout: 260 seconds]
nekschot has quit []
swex has quit [Ping timeout: 264 seconds]
DaniG2k has joined #ruby
<bnagy> MrZYX: what on earth are you talking about?
cloud|nix_ has quit [Ping timeout: 260 seconds]
<bnagy> the whole point of pop in an inf loop is to block when the queue is empty
jeekl has joined #ruby
<bnagy> it's like the most basic producer consumer pattern
<jokke> how can i rescue like every Error
<bnagy> jokke: don't
<jokke> also the ERRNO ones
<bnagy> just rescue
<jokke> ah
<bnagy> that will get everything you can do anything about
<jokke> just rescue
<jokke> oke
<Paradox> argh
<Paradox> stupid patent office
<bnagy> some stuff like SystemError etc won't pop in rescue, but you can't handle them anyway
<jokke> lets see
angusiguess has joined #ruby
<Paradox> they take nicely separate xml files of the patent grant data, one file for each patent granted, smash it together in one monstrous gestalt, mix in some DNA sequencing codes, and then stuff the resulting SINGLE file into a zip
monkegjinni has quit [Read error: Connection reset by peer]
<Paradox> when they could have just dumped all the issue files in the zip
<Paradox> and it would have been the same file size
<Paradox> ಠ_ಠ
<jokke> ah i think that was it!
<jokke> i had some uncought error
marr has joined #ruby
Coffers has joined #ruby
<jokke> *uncaught
troessner has joined #ruby
tundrax has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<jokke> YES!
<jokke> finally
schaerli has joined #ruby
arturaz has joined #ruby
camilasa_ has joined #ruby
<jokke> ah
cloud|nix_ has joined #ruby
<jokke> no everything's fine
<jokke> awesome
<jokke> thanks a lot for the help
<bnagy> your logic is still not right though, sadly
<bnagy> that push blocking thing I was talking about before
<jokke> what about it
mikecmpbll has joined #ruby
<bnagy> well say the workers started, and the pages had TONS of links on them
pete____ has joined #ruby
pete____ has quit [Client Quit]
<jokke> yes
<bnagy> they would all end up blocking trying to push links onto the SizedQueue which would be full
zommi has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
<bnagy> and nobody would be left to pull stuff off
<jokke> you think?
poga has quit [Read error: Connection reset by peer]
<jokke> ah
cloud|nix__ has quit [Ping timeout: 261 seconds]
<jokke> i don't care right now
<bnagy> :) I figured not
<jokke> :P
<bnagy> but it's something to think about
poga has joined #ruby
monkegjinni has joined #ruby
withnale has quit [Read error: Operation timed out]
adiectio has quit [Remote host closed the connection]
k610 has joined #ruby
adiectio has joined #ruby
<bnagy> it's probably all some BFS / DFS algorithm stuff
<ningu> is there any way to have gem output the exact command it's running when compiling native bindings? all it says right now is "building native extensions".
<bnagy> I guess I should probably go read about how real spiders work
<bnagy> ningu: if it fails it should spit better errors to a log
daniel_- has quit [Ping timeout: 246 seconds]
<ningu> it should, but it doesn't.
<ningu> Results logged to /opt/local/lib/ruby/gems/1.9.3/gems/ruby-augeas-0.5.0/ext/augeas/gem_make.out
<ningu> but it's exactly the same
jds_ has quit [Remote host closed the connection]
graydot has joined #ruby
<bnagy> I think you can run the extconf by hand
<bnagy> I can't remember how but google will know
PeteyT has joined #ruby
Azulinho_ has quit [Quit: WeeChat 0.4.0]
<ningu> ok
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno_ is now known as harrymoreno
PeteyT has quit [Client Quit]
PeteyT has joined #ruby
PeteyT has quit [Client Quit]
niceguyjames has joined #ruby
slainer68 has joined #ruby
PeteyT has joined #ruby
Zeeraw has joined #ruby
graydot has quit [Ping timeout: 240 seconds]
nalaginrut has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
vigintas has joined #ruby
jimg has joined #ruby
Elico2 has quit [Quit: Elico2]
Elico has joined #ruby
elaptics`away is now known as elaptics
<becom33> http://pastebin.com/dFkiypiC I have a problem here in Readline completion_proc doesnt change when I switch
<becom33> anyone ?
krainboltgreene has quit [Quit: krainboltgreene]
kil0byte has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
jon_than_ has quit [Quit: leaving]
brennanMKE has joined #ruby
brujoand has left #ruby [#ruby]
andikr has joined #ruby
Soliah has quit [Quit: Soliah]
monkegjinni has quit [Read error: Connection reset by peer]
redgirl has joined #ruby
zaargy has quit [Quit: leaving]
ivanoats has joined #ruby
monkegjinni has joined #ruby
cloud|nix__ has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
jimg has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
tundrax has joined #ruby
pyrac has quit [Quit: pyrac]
mikewintermute has joined #ruby
cloud|nix_ has quit [Ping timeout: 256 seconds]
ivanoats has quit [Ping timeout: 240 seconds]
aspiers has joined #ruby
ngoldman has quit [Remote host closed the connection]
zaargy has joined #ruby
adambeynon has joined #ruby
cloud|nix_ has joined #ruby
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
bionhart has quit [Remote host closed the connection]
rdark has joined #ruby
cloud|nix__ has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
northelks has joined #ruby
binaryplease has quit [Ping timeout: 260 seconds]
daniel_- has joined #ruby
Iszak has joined #ruby
mklappstuhl has joined #ruby
<Hanmac> hm does this channel have an "last seen" feature?
<PeteyT> sarcasm?
<Hanmac> hm no i am serious
<PeteyT> last seen feature? i dont get it
HecAtic has quit [Quit: Àá¼ö]
slainer68 has quit [Remote host closed the connection]
<bnagy> Hanmac: I thought bots did that, not channels
<PeteyT> ah so like /botname laststatementinchannel
<PeteyT> kind of a thing
slainer68 has joined #ruby
thomasle_ has joined #ruby
blaxter_ has quit [Ping timeout: 256 seconds]
timmow has joined #ruby
__mp has joined #ruby
tundrax has quit [Remote host closed the connection]
timmow has quit [Remote host closed the connection]
ezotrank has joined #ruby
timmow has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
camilasa_ has quit [Remote host closed the connection]
camilasa_ has joined #ruby
chandankumar has quit [Remote host closed the connection]
__mp has left #ruby ["Bye"]
tundrax has joined #ruby
freerobby has joined #ruby
havenwood has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
cloud|nix__ has joined #ruby
monkegjinni has joined #ruby
Macaveli has joined #ruby
cloud|nix_ has quit [Ping timeout: 240 seconds]
jonahR has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
arya has quit [Ping timeout: 248 seconds]
Takehiro has quit [Remote host closed the connection]
blaxter_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
arya has joined #ruby
Elico1 has joined #ruby
whitedawg has joined #ruby
Elico has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
ningu has left #ruby [#ruby]
staafl has joined #ruby
b0oh has joined #ruby
ayaz has joined #ruby
Heskie has joined #ruby
chichou_ has joined #ruby
jacobw has quit [Quit: WeeChat 0.3.7]
__mp has joined #ruby
qohelet_ has joined #ruby
angusiguess has joined #ruby
oktapodi_ has quit [Remote host closed the connection]
Elico has joined #ruby
poga has quit [Read error: Connection reset by peer]
poga has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
Elico1 has quit [Ping timeout: 256 seconds]
jacobw has joined #ruby
b0oh has left #ruby [#ruby]
ExxKA has joined #ruby
Madtyp has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
Madtyp has left #ruby [#ruby]
monkegjinni has quit [Remote host closed the connection]
qohelet_ has quit [Client Quit]
Jackneill has quit [Remote host closed the connection]
Vadelius has quit [Ping timeout: 250 seconds]
nomenkun has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
icole has joined #ruby
chichou_ has quit [Remote host closed the connection]
Eaven has quit [Remote host closed the connection]
jimg has joined #ruby
icole has quit [Ping timeout: 256 seconds]
binaryplease has joined #ruby
Eaven has joined #ruby
bubu has joined #ruby
arya has quit [Ping timeout: 248 seconds]
<bubu> am getting: NoMethodError: undefined method `host' for "http://localhost:8080/metrics":String
pyrac has joined #ruby
<bubu> when I try and do bla = Flume::Metrics.new("http://localhost:8080/metrics")
tundrax has quit [Remote host closed the connection]
<bnagy> yeah, you would
<bnagy> http = Net::HTTP.new(@uri.host, @uri.port)
<bnagy> there's your problem
cloud|nix_ has joined #ruby
Elderspy has quit [Quit: Leaving...]
<bubu> how can I pass in correctly bnagy?
poga has quit [Read error: Connection reset by peer]
anderson has quit [Ping timeout: 248 seconds]
<bnagy> you should start with stuff you understand better
<bubu> I want to be able to do something like metrics = Flume::Metrics.new("http://localhost:8080/metrics") and have the object instantiated
<bubu> :(
dash__ has joined #ruby
poga has joined #ruby
<becom33> bnagy, could u help me ?
cloud|nix__ has quit [Ping timeout: 256 seconds]
jonahR has quit [Quit: jonahR]
<becom33> when I do type "sql" it goes to the other method apply the auto complete . but when I exit from that loop even the @log is changed but @list doesnt change
arya has joined #ruby
jonahR has joined #ruby
ivanoats has joined #ruby
yashshah- has joined #ruby
<bubu> thx bnagy
amedeiros has joined #ruby
Xeago has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
cloud|nix__ has joined #ruby
bubblehead has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
yashshah_ has quit [Ping timeout: 260 seconds]
ivanoats has quit [Ping timeout: 256 seconds]
amedeiros has quit [Ping timeout: 264 seconds]
cloud|nix_ has quit [Ping timeout: 256 seconds]
amedeiros has joined #ruby
kil0byte has joined #ruby
Neomex has joined #ruby
ellipse has joined #ruby
Neomex has quit [Client Quit]
emergion has joined #ruby
lyanchih has quit [Quit: lyanchih]
arya has quit [Ping timeout: 248 seconds]
atmosx has joined #ruby
sie has quit [Read error: Operation timed out]
D4T has joined #ruby
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
D4T has quit [Max SendQ exceeded]
D4T has joined #ruby
amedeiros has quit [Ping timeout: 246 seconds]
bean has joined #ruby
amedeiros has joined #ruby
davetherat has quit [Ping timeout: 264 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
corehook has joined #ruby
julian-delphiki has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
arya has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
julian-delphiki has joined #ruby
dash__ has quit [Quit: Time to beer :)]
amedeiros has quit [Ping timeout: 264 seconds]
amedeiros has joined #ruby
arya has quit [Ping timeout: 263 seconds]
skattyadz has joined #ruby
dr_bob has joined #ruby
bean has quit [Ping timeout: 264 seconds]
angusiguess has joined #ruby
filipe has quit [Ping timeout: 260 seconds]
nari_ has quit [Ping timeout: 240 seconds]
amedeiros has quit [Ping timeout: 240 seconds]
Heskie has quit []
amedeiros has joined #ruby
Heskie has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
cloud|nix_ has joined #ruby
Opettaja has joined #ruby
freerobby has joined #ruby
GeissT has quit [Quit: AdiIRC is updating to v1.9.1 Beta Build (060613) 32 Bit]
slainer6_ has joined #ruby
orien has joined #ruby
arya has joined #ruby
GeissT has joined #ruby
amedeiros has quit [Ping timeout: 264 seconds]
cloud|nix__ has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
dash__ has joined #ruby
robbyoconnor has joined #ruby
mercwithamouth has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
onewheelskyward has quit [Ping timeout: 246 seconds]
s0ber_ has joined #ruby
jastix has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
s0ber_ is now known as s0ber
nomenkun has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
slainer68 has quit [Ping timeout: 256 seconds]
mumblerit has quit [Ping timeout: 256 seconds]
jurbat has quit [Quit: Computer has gone to sleep.]
orien has quit [Quit: Computer has gone to sleep.]
Opettaja has quit [Quit: WeeChat 0.4.1]
mumblerit has joined #ruby
mumblerit is now known as Guest74592
ninegrid has quit [Read error: Connection reset by peer]
onewheelskyward has joined #ruby
filipe has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaxl has joined #ruby
takeru has joined #ruby
senayar has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
Azulinho has joined #ruby
Guest74592 is now known as mumblerit
Domon has quit [Read error: Connection reset by peer]
wu_1mao has quit [Ping timeout: 246 seconds]
emp2 has joined #ruby
Domon has joined #ruby
takeru has quit [Ping timeout: 240 seconds]
emp2 has left #ruby [#ruby]
kiri has quit [Ping timeout: 248 seconds]
wu_1mao has joined #ruby
BizarreCake has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kiri has joined #ruby
dash__ has quit [Ping timeout: 248 seconds]
InFlames has quit [Quit: This computer has gone to sleep]
<buzzybron> is it possible to find out installation dates for gems?
amedeiros has joined #ruby
Hanmac has joined #ruby
pyrac has quit [Ping timeout: 248 seconds]
Zeeraw has joined #ruby
orien has joined #ruby
amedeiros has quit [Ping timeout: 246 seconds]
MrZYX is now known as MrZYX|off
_ffio_ has quit [Ping timeout: 256 seconds]
cibs has joined #ruby
amedeiros has joined #ruby
Squarepy has joined #ruby
blaxter_ has quit [Ping timeout: 240 seconds]
amedeiros has quit [Ping timeout: 240 seconds]
sie has quit [Ping timeout: 240 seconds]
harrymoreno has quit [Ping timeout: 240 seconds]
harrymoreno has joined #ruby
Michael__ has joined #ruby
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
arya has quit [Ping timeout: 264 seconds]
nomenkun has quit [Remote host closed the connection]
nari_ has joined #ruby
leonidlm has joined #ruby
timmow has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby
timmow has joined #ruby
nomenkun has joined #ruby
skattyadz has quit [Quit: skattyadz]
timonv has joined #ruby
jinie has quit [Read error: Operation timed out]
arya has joined #ruby
nomenkun_ has joined #ruby
k611 has joined #ruby
ivanoats has quit [Ping timeout: 260 seconds]
nomenkun has quit [Ping timeout: 256 seconds]
<ellipse> Check the ctime of the source files.
<ellipse> There might be a log somewhere too, but I'm not sure.
arya_ has joined #ruby
cloud|nix__ has joined #ruby
Xeago has quit [Remote host closed the connection]
Jackneill has joined #ruby
Jackneill has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
harrymoreno has quit [Ping timeout: 248 seconds]
harrymoreno has joined #ruby
earthquake has joined #ruby
arya has quit [Ping timeout: 260 seconds]
cloud|nix_ has quit [Ping timeout: 248 seconds]
Giorgio has quit [Ping timeout: 260 seconds]
freeayu has quit [Ping timeout: 246 seconds]
ExxKA has quit [Quit: This computer has gone to sleep]
nomenkun_ has quit [Remote host closed the connection]
nomenkun has joined #ruby
cloud|nix__ has quit [Quit: Ex-Chat]
jamescarr has joined #ruby
blaxter_ has joined #ruby
denver has joined #ruby
poga has quit [Remote host closed the connection]
jeffreylevesque has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
jeffreylevesque has joined #ruby
jimg has quit [Remote host closed the connection]
ParanoidSP has quit [Read error: Connection reset by peer]
heftig has quit [Quit: Quitting]
heftig has joined #ruby
whitedawg has quit [Quit: Leaving.]
MrZYX|off is now known as MrZYX
daniel_- has quit [Ping timeout: 264 seconds]
camilasa_ has quit [Remote host closed the connection]
zmo_ has joined #ruby
tvw has quit []
jimeh_ has quit [Quit: Bye.]
huttan has quit [Quit: leaving]
huttan has joined #ruby
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
ybart has quit [Quit: ybart]
monkegjinni has joined #ruby
hoofed has joined #ruby
devtro_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
lkba has joined #ruby
Guga_ has joined #ruby
monkegjinni has joined #ruby
jimeh has quit [Quit: ZNC - http://znc.in]
* lupine gives headius a big hug
jimeh has joined #ruby
chase-work has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
Macaveli has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
arturaz has quit [Ping timeout: 260 seconds]
skattyadz has joined #ruby
ParanoidSP has joined #ruby
ParanoidSP has joined #ruby
ParanoidSP has quit [Changing host]
paissad has joined #ruby
thomasle_ has quit [Remote host closed the connection]
paissad_ has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
yashshah- has quit [Read error: Connection reset by peer]
yashshah- has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
davetherat has joined #ruby
viszu has joined #ruby
evenix has joined #ruby
pothibo has joined #ruby
redgirl has quit [Quit: This computer has gone to sleep]
Sherwyn has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
yshh has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
MArceLL has joined #ruby
vlad_starkov has joined #ruby
Domon has quit [Remote host closed the connection]
`MArceLL` has quit [Ping timeout: 276 seconds]
solars has joined #ruby
<solars> hey, I've got a Gemfile with source "https://rubygems.org" but whatever I do if I want to install nokogiri it always uses 1.4.7 (latest is 1.5.9) can anyone tell me how to upgrade?
jjjl has joined #ruby
<jjjl> hi, can anyone tell me where to join Python channel?
yashshah- has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
yashshah- has joined #ruby
binaryplease has quit [Read error: No route to host]
vlad_sta_ has joined #ruby
<DrForr> jjjl: irc.freenode.net #python
`MArceLL` has joined #ruby
hogeo has quit [Remote host closed the connection]
monkegjinni has joined #ruby
_Renegade has joined #ruby
jimg has joined #ruby
<harrymoreno> solaris: just do 'gem install nokogiri'
jlebrech has joined #ruby
MArceLL has quit [Ping timeout: 240 seconds]
Giorgio has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
buzzybron has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
sara_ has joined #ruby
IRLConor has quit [Quit: leaving]
jonahR has quit [Quit: jonahR]
zomgbie has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
ybart has joined #ruby
semahawk has joined #ruby
IRLConor has joined #ruby
<sara_> how to register my name?
<DrForr> /msg NickServ help # I think.
monkegjinni has joined #ruby
yalue has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
zomgbie has quit [Client Quit]
jimg has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
jjjl is now known as Kernel85
monkegjinni has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
Kernel85 has quit [Quit: Page closed]
mklappstuhl has quit [Remote host closed the connection]
sara_ has quit [Quit: Page closed]
zomgbie has joined #ruby
b0oh has joined #ruby
yshh has joined #ruby
kayloos has joined #ruby
ivanoats has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
k611 has quit [Ping timeout: 260 seconds]
<ericmathison> solars: the first time you run bundle install, a Gemfile.lock file is created for you (it locks you into a specific gem version).
falko has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<ericmathison> each time you run bundle install after that, the version specified in the Gemfile.lock will be installed
bubblehead has quit [Read error: Connection reset by peer]
byprdct has joined #ruby
<ericmathison> to use a new version of nokogiri run bundle update nokogiri
JohnBat26 has joined #ruby
robustus has joined #ruby
mercwithamouth has joined #ruby
bubblehead has joined #ruby
ivanoats has quit [Ping timeout: 248 seconds]
mahmoudimus has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<ericmathison> that should update the gemfile.lock which means that when you run bundle exec, the updated version of your gem will be used
mahmoudimus has quit [Client Quit]
yashshah__ has joined #ruby
monkegjinni has joined #ruby
b0oh has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
yshh has quit [Remote host closed the connection]
yashshah- has quit [Ping timeout: 246 seconds]
kevinykchan has quit [Ping timeout: 256 seconds]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
_Renegade has quit [Quit: _Renegade]
rismoney has quit [Ping timeout: 245 seconds]
IRLConor has left #ruby [#ruby]
mklappstuhl has joined #ruby
Sherwyn has quit [Remote host closed the connection]
mklappstuhl has quit [Read error: Connection reset by peer]
ellipse has quit [Read error: Connection reset by peer]
ellipse has joined #ruby
pothibo has quit [Quit: pothibo]
mklappstuhl has joined #ruby
mikecmpbll has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
poga has joined #ruby
kevinykchan has joined #ruby
daniel_- has joined #ruby
pskosinski has joined #ruby
nalaginrut has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
poga has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
poga has joined #ruby
rezzack has quit [Quit: Leaving.]
mmitchell has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Michael__ has quit [Remote host closed the connection]
LennyLinux has joined #ruby
Michael__ has joined #ruby
verto has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
poga has quit [Remote host closed the connection]
monkegjinni has joined #ruby
poga has joined #ruby
b0oh has joined #ruby
kevinykchan has quit [Ping timeout: 240 seconds]
eka has joined #ruby
ldnunes has joined #ruby
ariedler has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
daniel_- has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
mklappstuhl has joined #ruby
jimg has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
Michael__ has quit [Ping timeout: 260 seconds]
mmitchell has quit [Ping timeout: 264 seconds]
slmorton has joined #ruby
nkr has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
troessner has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Ping timeout: 260 seconds]
monkegjinni has joined #ruby
workmad3 has joined #ruby
mmitchell has joined #ruby
amedeiros has joined #ruby
atmosx has quit [Quit: And so the story goes…]
jimg has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
ybart has quit [Quit: ybart]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
krz has quit [Quit: krz]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
snearch has joined #ruby
m8 has joined #ruby
ldnunes has quit [Quit: Leaving]
Giorgio has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
srji has joined #ruby
JohnBat26 has joined #ruby
gyre007 has joined #ruby
mklappstuhl has joined #ruby
Giorgio has joined #ruby
camilasa_ has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
ldnunes has joined #ruby
zai has joined #ruby
thomas` has quit [Ping timeout: 248 seconds]
danshultz has quit [Remote host closed the connection]
kevinykchan has joined #ruby
yashshah has joined #ruby
mklappstuhl has joined #ruby
yashshah__ has quit [Ping timeout: 246 seconds]
mklappstuhl has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
monkegjinni has joined #ruby
gyre007 has quit [Ping timeout: 260 seconds]
jbpros has joined #ruby
zommi has quit [Remote host closed the connection]
yashshah has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
motto has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
tonini has joined #ruby
bhaarat has joined #ruby
ariedler has quit [Remote host closed the connection]
yashshah has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 256 seconds]
m8 has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
zmo_ has quit [Quit: Leaving]
troessner has joined #ruby
mercwithamouth has joined #ruby
daniel_- has joined #ruby
r0bgleeson has quit [Ping timeout: 256 seconds]
randomlogin has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
hoofed has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
jbpros has quit [Ping timeout: 248 seconds]
bubblehead has joined #ruby
hoofed has joined #ruby
ybart has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
motto has quit [Quit: Sto andando via]
mklappstuhl has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
monkegjinni has joined #ruby
kevinykchan has quit [Ping timeout: 260 seconds]
daniel_- has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tvw has joined #ruby
monkegjinni has joined #ruby
devoldmx3 has quit [Ping timeout: 256 seconds]
jamesaxl has quit [Ping timeout: 256 seconds]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
<quazimodo> anyone here even use ironruby even?
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
bubblehead has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
corehook has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
ParanoidSP has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 260 seconds]
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
tonini has quit [Ping timeout: 248 seconds]
kayloos has quit [Remote host closed the connection]
monkegjinni has joined #ruby
krawchyk has joined #ruby
kevinykchan has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
hoofed has quit [Quit: hoofed]
daniel_- has joined #ruby
monkegjinni has joined #ruby
machuga|away is now known as machuga
devoldmx has quit [Read error: Connection reset by peer]
hoofed has joined #ruby
evenix_ has joined #ruby
hoofed has quit [Client Quit]
arya_ has quit []
fermion has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
niceguyjames has joined #ruby
monkegjinni has joined #ruby
evenix has quit [Ping timeout: 248 seconds]
ivanoats has joined #ruby
machuga is now known as machuga|away
arya has joined #ruby
devoldmx has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 248 seconds]
kayloos has joined #ruby
casheew_ has quit [Read error: Connection reset by peer]
moos3 has joined #ruby
casheew has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
ivanoats has quit [Ping timeout: 256 seconds]
DaniG2k has quit [Quit: Leaving.]
bhaarat has quit [Quit: bhaarat]
bhaarat has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
sayan has joined #ruby
iamjarvo has joined #ruby
johnrlive has joined #ruby
sunya7a has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
tonini has joined #ruby
boblu has quit [Remote host closed the connection]
ellipse has quit [Read error: Connection reset by peer]
ellipse has joined #ruby
ezotrank has quit [Ping timeout: 260 seconds]
boblu has joined #ruby
ezotrank has joined #ruby
mljsimone|bnc is now known as mljsimone
mansi has joined #ruby
iamjarvo has quit [Ping timeout: 248 seconds]
johnrlive has quit [Ping timeout: 252 seconds]
<amedeiros> .clear
rippa has quit [Ping timeout: 240 seconds]
* Hanmac is clear now
danshultz has joined #ruby
v0n has joined #ruby
casheew has quit [Read error: Connection reset by peer]
yshh has joined #ruby
casheew has joined #ruby
kevinykchan has quit [Ping timeout: 256 seconds]
bubblehead has quit [Ping timeout: 260 seconds]
iMe has quit [Quit: Bye Bye]
avril14th has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
yshh has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
casheew has joined #ruby
devoldmx has joined #ruby
casheew has quit [Read error: Connection reset by peer]
kristian_ has joined #ruby
nfk has quit [Quit: yawn]
ellipse has quit [Read error: Connection reset by peer]
ellipse has joined #ruby
oktapodi has joined #ruby
mercwithamouth has joined #ruby
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has joined #ruby
kevinykchan has joined #ruby
<bubu> anyone know why am getting an undefinred method for each line 68?
monkegjinni has joined #ruby
rippa has joined #ruby
casheew has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
orien has quit [Quit: Computer has gone to sleep.]
jamescarr has quit [Quit: jamescarr]
casheew has quit [Read error: Connection reset by peer]
kpshek has joined #ruby
phracker has joined #ruby
monkegjinni has joined #ruby
phracker has quit [Client Quit]
takezawa has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 240 seconds]
b0oh has left #ruby [#ruby]
monkegjinni has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has joined #ruby
kayloos has quit [Remote host closed the connection]
monkegjinni has joined #ruby
casheew has joined #ruby
johnrlive has joined #ruby
kayloos has joined #ruby
kofno has joined #ruby
johnrlive has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
ellipse has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
breakingthings has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
ellipse has joined #ruby
fmcgeough has joined #ruby
monkegjinni has joined #ruby
Hanmac has quit [Quit: Leaving.]
camilasa_ has quit [Remote host closed the connection]
ntus1017 has joined #ruby
camilasa_ has joined #ruby
MrZYX is now known as MrZYX|off
casheew has joined #ruby
machuga|away is now known as machuga
MrZYX|off is now known as MrZYX
mercwithamouth has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
axl_ has joined #ruby
Spooner has joined #ruby
oz has quit [Quit: EOF]
Lubinski has joined #ruby
iamjarvo has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
MrZYX is now known as MrZYX|off
ryannielson has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
fuzzyhorns has joined #ruby
oz has joined #ruby
ryannielson has joined #ruby
monkegjinni has quit [Remote host closed the connection]
ctp has joined #ruby
jonathanwallace has joined #ruby
redgirl has joined #ruby
Banistergalaxy has joined #ruby
Todd has quit [Ping timeout: 256 seconds]
Todd has joined #ruby
BizarreCake has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
Eaven has quit [Read error: Connection reset by peer]
Eaven has joined #ruby
jinie has joined #ruby
iamjarvo has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
mmitchell has quit [Remote host closed the connection]
monkegjinni has joined #ruby
ddfreyne has quit [Excess Flood]
cofin has joined #ruby
ntus1017 has quit [Remote host closed the connection]
ddfreyne has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
monkegjinni has joined #ruby
chichou_ has joined #ruby
kayloos has quit [Remote host closed the connection]
r0bgleeson has joined #ruby
huoxito has joined #ruby
mikewintermute has joined #ruby
kayloos has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
jerius has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
monkegjinni has joined #ruby
burlyscudd has quit [Client Quit]
<zai> bubu, @metrics is nil, until parse_json is called for the first time.
nerdman has joined #ruby
<bubu> rgr zai, got it
<bubu> thanks :)
dawkirst has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
mafolz has quit [Ping timeout: 256 seconds]
tommyvyo has joined #ruby
jbinto has joined #ruby
monkegjinni has joined #ruby
jbinto has quit [Read error: Connection reset by peer]
wmoxam has joined #ruby
jbinto has joined #ruby
kayloos has quit [Remote host closed the connection]
braoru has quit [Quit: Leaving]
ivanoats has joined #ruby
dash__ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tonini has joined #ruby
mansi has quit [Remote host closed the connection]
carloslopes has joined #ruby
devoldmx3 has joined #ruby
mansi has joined #ruby
monkegjinni has joined #ruby
mercwithamouth has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mafolz has joined #ruby
digitalcake has joined #ruby
BizarreCake has joined #ruby
burlyscudd has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
ivanoats has quit [Ping timeout: 248 seconds]
TheNumb has quit [Changing host]
TheNumb has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
failshell has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
teclator has quit [Ping timeout: 249 seconds]
osvico has quit [Ping timeout: 264 seconds]
dawkirst has joined #ruby
danshultz has joined #ruby
<bubu> Given this library code: https://gist.github.com/82dcbea6f27f2eb765c9
tonini has quit [Ping timeout: 248 seconds]
hoofed has joined #ruby
<bubu> 25] pry(main)> puts channel_sizes(metrics).max
<bubu> ArgumentError: comparison of Flume::Channel with Flume::Channel failed
whitedawg has joined #ruby
<bubu> but I get ^^^
<joonty> hey all, anyone got experience with guard and guard-test?
<bubu> anyone know why?
sambao21 has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
monkegjinni has joined #ruby
dr_bob has quit [Ping timeout: 264 seconds]
phipes has joined #ruby
gyre007 has joined #ruby
<randomlogin> bubu, are you sure, that <=> method is implemented for Flume::Channel?
jurbat has joined #ruby
<bubu> it's just an enumerable no?
chichou_ has quit [Ping timeout: 256 seconds]
<randomlogin> i dont know what your class means
Rizzle has joined #ruby
codecop has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
gyre007 has quit [Remote host closed the connection]
digitalcake has quit [Quit: Leaving.]
oktapodi has quit [Remote host closed the connection]
<randomlogin> you should mix in enumerable to it
<randomlogin> and then add <=> method
<randomlogin> after it will work
DaniG2k has joined #ruby
monkegjinni has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
<randomlogin> not enumerable, but comparable
monkegjinni has quit [Read error: Connection reset by peer]
bubblehead has quit [Read error: Connection reset by peer]
slainer__ has joined #ruby
adkron has quit [Ping timeout: 260 seconds]
bubblehead has joined #ruby
it7 has joined #ruby
Elhu has joined #ruby
monkegjinni has joined #ruby
oktapodi has joined #ruby
whitedawg has quit [Quit: Leaving.]
akells` has joined #ruby
nezumi has quit [Read error: Operation timed out]
slainer6_ has quit [Ping timeout: 240 seconds]
<bubu> sorry randomlogin, not following, quite new to ruby ...
tomzx_mac has joined #ruby
slainer68 has quit [Ping timeout: 248 seconds]
mercwithamouth has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
wolcanus has joined #ruby
<burlyscudd> bubu: the call to max will do comparisons on Flume::Channel objects
<burlyscudd> bubu: by calling the comparison operator <=>
monkegjinni has joined #ruby
<burlyscudd> there is no overloaded method for this operator in that class
<burlyscudd> so max can't do the comparison
<randomlogin> add this to class Metrics:
<randomlogin> include Comparable
<randomlogin> def <=>a
<randomlogin> 0
<randomlogin> end
<randomlogin> that will make instances of this class to be compared with each other, so the method max will work
cmarques has joined #ruby
evenix has joined #ruby
dmiller_ has joined #ruby
digitalcake has joined #ruby
ntus1017 has joined #ruby
<randomlogin> and after you should rebuild <=> method in the right way, now it just example code, just for working max method
jamesaxl has joined #ruby
mafolz has quit [Ping timeout: 240 seconds]
chichou_ has joined #ruby
<randomlogin> sorry actually you need to add <=> to Metrics class, not Metric. by the way, it's rather bad naming for classes
haxrbyte has joined #ruby
niceguyjames has joined #ruby
malkomalko has joined #ruby
<randomlogin> oh, i wrote right in the first time ^)
<bubu> eek
evenix_ has quit [Ping timeout: 246 seconds]
haxrbyte has quit [Remote host closed the connection]
jgarvey has quit [Quit: Leaving]
monkegjinni has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
<bubu> def <=>a
<bubu> 0
freerobby has joined #ruby
<bubu> end
<bubu> randomlogin like that?
generalissimo has joined #ruby
<randomlogin> yes
niceguyjames has quit [Client Quit]
<bubu> ok will give it a go, thanks!
Macaveli has quit [Read error: Connection reset by peer]
<randomlogin> if something doesnt work, feel free to ask
monkegjinni has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
goganchic has joined #ruby
thomas` has joined #ruby
slainer__ is now known as slainer68
<randomlogin> guys, is there any way to pass a ruby script command line arguments? i have some client script, for example ftp or websocket, it just runs in a loop in bash. i want to pass commands in usual way in the terminal window where script is running. what should i do?
monkegjinni has quit [Read error: Connection reset by peer]
deception has joined #ruby
matzie has joined #ruby
monkegjinni has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
devoldmx3 has quit [Ping timeout: 256 seconds]
Cyrus has quit [Quit: Cyrus.sleep()]
bubblehead has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
devoldmx has joined #ruby
<matzie> I have a .erb file that I want to parse from a command line… doing "erb myfile.erb" works fine but I can't figure out how to pass in the data.
deception has quit [Client Quit]
<matzie> are the command line switches I can use for that?
ffranz has joined #ruby
monkegjinni has quit [Remote host closed the connection]
thebastl has joined #ruby
mansi has joined #ruby
cha1tanya has quit [Ping timeout: 248 seconds]
tommyvyo has quit [Quit:]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
takeru___ has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
theRoUS has joined #ruby
theRoUS has joined #ruby
bubblehead has joined #ruby
tommyvyo has joined #ruby
<bubu> randomlogin: https://gist.github.com/09f429c2b44ed691163b < have changed to that
<randomlogin> you forgot about comaparble
krawchyk_ has joined #ruby
<bubu> oh
slash_nick has joined #ruby
therealnoop has quit [Ping timeout: 276 seconds]
anonymuse has joined #ruby
goganchic has quit []
bubblehead has quit [Read error: Connection reset by peer]
takeru___ has quit [Ping timeout: 240 seconds]
BizarreCake has quit [Ping timeout: 240 seconds]
bubblehead has joined #ruby
chrishunt has joined #ruby
Neomex has joined #ruby
chichou_ has quit [Remote host closed the connection]
krawchyk has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Quit: Leaving.]
johnmilton has joined #ruby
ezotrank has quit [Ping timeout: 264 seconds]
<Veejay> Hey, a question for you guys if I have a module with two methods that use the same connection to an API with credentials, what would be the best way to dry it up? Ideally I'd only create that connection once and it'd be reused at each subsequent attempts
<Veejay> Two or more methods actually
io_syl has quit [Quit: Computer has gone to sleep.]
<bubu> randomlogin: does include Comparable need to be in the Metrics module or can it be at the top of the library?
<apeiros> Veejay: create a connection object
<apeiros> pass that around
<randomlogin> bubu: metrics
bean has joined #ruby
lyanchih has joined #ruby
mercwithamouth has joined #ruby
<Veejay> apeiros: We're reaching the limits of my understanding of modules though, should I create this class inside the module itself?
<Veejay> Should that Connection class be a singleton? Does it even matter?
<Veejay> Or should the connection object be created in the class that mixes the module in?
<Veejay> And pass the connection object when calling said module methods?
<bubu> ok randomlogin
chichou_ has joined #ruby
<randomlogin> it depends on what connection you are using
<Veejay> It's a connection to an API, passing credentials like server, username, api_key, password
jbpros has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
<Veejay> But really every method reuses the very same connection
Eaven has quit [Ping timeout: 264 seconds]
<apeiros> Veejay: you're confusing namespacing and functionality
<Veejay> apeiros: I might be yes hehe
krawchyk_ has quit [Remote host closed the connection]
<apeiros> whether you define a class within a module or not depends on whether it logically belongs together
<apeiros> it has little to no influence on functionality
jbpros has quit [Client Quit]
<randomlogin> bub: yes, by the way i think that https://gist.github.com/anonymous/fda2dbf56da396d4f29a here the last lin should be max_channel_size = channel_sizes(metrics).max
thebastl has quit [Ping timeout: 256 seconds]
<apeiros> and I said "passing around" -> not a singleton
valio has joined #ruby
<Veejay> Ah true
cha1tanya has joined #ruby
aboudreault has joined #ruby
<apeiros> and honestly, if this scratches the edges of your understanding of modules, I'd brush that knowledge up
<Veejay> You don't need to pass a singleton around, it's available where you need
<Veejay> +it
<apeiros> it's not that much to know
skattyadz has quit [Quit: skattyadz]
<Veejay> apeiros: It can be confusing, or at least it is for me
jesfre has joined #ruby
<apeiros> yes, but you paint yourself into a corner
<bubu> randomlogin: yes you are correct, trying in pry for now and will update script shortly
<apeiros> almost every single case where a lib developer decided "oh lets make it easy and use a singleton" pissed me off because it made what I wanted to do very very hard (= had to rewrite parts of the lib to enable passing the values in)
<apeiros> it's fine if you make it a param and use something like Connection.default as default value
<Veejay> I have no particular design in mind really
<apeiros> e.g. def remote_foodoozles(params, connection=Connection.default)
<Veejay> I just noticed that I'm recreating the connection at the beginning of every method
<Veejay> And it feels stupid
gyre007 has joined #ruby
sethetter has joined #ruby
<apeiros> you probably correctly identified a repetitive piece of code which should be wrapped up. SRP.
jtharris has joined #ruby
adkron has joined #ruby
<sethetter> I'm using rvm to use 1.8.7 and trying to launch irb, I get illegal instruction 4; other versions work fine; any hints?
<bubu> randomlogin: https://gist.github.com/joshmyers/f20ef41f5c372eed23d9 still getting this using the lib as shown above
<valio> Hello, I get http://pastebin.com/C6DQwMXQ undefined method phrase_to_key in Object when I execute this code
wesside_ has joined #ruby
bhaarat has left #ruby [#ruby]
cha1tanya has quit [Ping timeout: 245 seconds]
jbinto has quit [Read error: Connection reset by peer]
<randomlogin> ok then add everything i said directly to Flume::Channel, just add to the end of the lib these:
<randomlogin> class Flume::Channel
tw1sted has joined #ruby
<randomlogin> include Comparable
<randomlogin> def <=> a
<randomlogin> 0
<randomlogin> end
<randomlogin> end
jbinto has joined #ruby
<randomlogin> and you can remove this from Metrics
newUser1234 has joined #ruby
BizarreCake has joined #ruby
cha1tanya has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
matzie has left #ruby [#ruby]
krawchyk has joined #ruby
cha1tanya has quit [Remote host closed the connection]
maxmanders has joined #ruby
gmci has joined #ruby
krawchyk has quit [Remote host closed the connection]
thebastl has joined #ruby
rhys has joined #ruby
freerobby has joined #ruby
<randomlogin> bubu: and dont forget, that implemented <=> is not the real one, it just enables max method, but you should make your own <=> which will compare objects, just google it
<bubu> ok
randomlogin has quit [Quit: randomlogin]
johnnyfuchs has joined #ruby
bionhart has joined #ruby
_maes_ has joined #ruby
gyre007 has quit [Remote host closed the connection]
pipework has joined #ruby
thebastl has quit [Ping timeout: 248 seconds]
valio has quit [Ping timeout: 240 seconds]
ivanoats has joined #ruby
Hanmac has joined #ruby
LaPetiteFromage has joined #ruby
jlast has joined #ruby
wallerdev has joined #ruby
ananthakumaran has joined #ruby
Hanmac2 has quit [Ping timeout: 256 seconds]
_maes_ has quit [Ping timeout: 245 seconds]
ivanoats has quit [Ping timeout: 248 seconds]
ioNull has quit [Quit: Computer has gone to sleep.]
evenix has quit [Remote host closed the connection]
Appineer has joined #ruby
evenix has joined #ruby
jamescarr has joined #ruby
niceguyjames has joined #ruby
GeissT has quit [Read error: Connection reset by peer]
evenix_ has joined #ruby
mikecmpbll has joined #ruby
burlyscudd has joined #ruby
jesfre has quit [Quit: Leaving]
freeayu has quit [Ping timeout: 248 seconds]
tagrudev has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
zigomir has quit [Quit: zigomir]
smigg has joined #ruby
evenix has quit [Ping timeout: 248 seconds]
tomzx_mac has quit [Ping timeout: 246 seconds]
graydot has joined #ruby
freeayu has joined #ruby
seitensei has quit [Ping timeout: 248 seconds]
graydot has quit [Client Quit]
krawchyk has joined #ruby
kvirani has joined #ruby
tbrock has joined #ruby
valio has joined #ruby
tommyvyo has quit [Quit:]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
SW_ has joined #ruby
lyanchih has quit [Quit: lyanchih]
digitalcake has quit [Quit: Leaving.]
evenix_ has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 264 seconds]
evenix has joined #ruby
dr_bob has joined #ruby
kil0byte has quit [Remote host closed the connection]
digitalcake has joined #ruby
timkohrumel has joined #ruby
<quazimodo> lol
<quazimodo> I didn't know
IMAPRO has joined #ruby
bobbyz has quit [Ping timeout: 256 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<quazimodo> Class and Module are so similar
johnmilton has quit [Remote host closed the connection]
Eaven has joined #ruby
MrZYX|off is now known as MrZYX
semahawk has left #ruby [#ruby]
IMAPRO has quit [Excess Flood]
<quazimodo> so then class SomeClass is syntactic niceness for SomeClass = Class.new
<quazimodo> hrm, or is it
dawkirst has quit [Ping timeout: 256 seconds]
juarlex has joined #ruby
<quazimodo> i Think it is
ioNull has joined #ruby
ioNull has quit [Max SendQ exceeded]
bagpuss_thecat has joined #ruby
ioNull has joined #ruby
asteve has joined #ruby
<digitalcake> does cucumber depend on capybara meaning is capybara ready out of the box with cucumber?
danshultz has quit [Remote host closed the connection]
Giorgio has quit [Ping timeout: 264 seconds]
<fryguy> digitalcake: no
<fryguy> cucumber can run just fine without capybara
slash_nick has quit [Ping timeout: 245 seconds]
chichou_ has quit [Remote host closed the connection]
mmitchell has joined #ruby
<digitalcake> ok but does cucumber pull the capybara gem making it ready by only requiring the cucumber gem?
teclator has joined #ruby
<digitalcake> or do I have to also require the capybara gem too
johnmilton has joined #ruby
bobbyz has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
jfelchner has quit [Read error: Connection reset by peer]
<digitalcake> I'm watching a tut here http://vimeo.com/65160463 and this guy is showing off cucumber and he started to write capybara methods but he did not show his gemfile
timkohrumel has quit [Remote host closed the connection]
kobain has joined #ruby
<digitalcake> so I was just wondering if that gem gets pulled in with cucumber
jfelchner has joined #ruby
RORgasm_ has joined #ruby
katherinem13 has quit [Ping timeout: 246 seconds]
RORgasm has quit [Read error: Connection reset by peer]
randomlogin has joined #ruby
apeiros has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 245 seconds]
lele has quit [Ping timeout: 240 seconds]
timkohrumel has joined #ruby
sahoal has joined #ruby
a_a_g has quit [Quit: This computer has gone to sleep]
<fryguy> digitalcake: TIAS
dallasm has joined #ruby
schaerli has quit [Remote host closed the connection]
tbrock has quit [Quit: Computer has gone to sleep.]
ppppaul has joined #ruby
chichou_ has joined #ruby
timkohrumel has quit [Remote host closed the connection]
dmiller_ has quit [Remote host closed the connection]
lele has joined #ruby
timkohrumel has joined #ruby
<adkron> What is TIAS?
jonathanwallace has quit [Ping timeout: 260 seconds]
mansi has quit [Read error: Connection reset by peer]
gazarsgo has joined #ruby
mansi has joined #ruby
withnale has joined #ruby
tbrock has joined #ruby
wmoxam has joined #ruby
snearch has quit [Quit: Verlassend]
katherinem13 has joined #ruby
katherinem13 has quit [Client Quit]
<randomlogin> guys, is there any way to pass a ruby script command line arguments? i have some client script, for example ftp or websocket, it just runs in a loop in bash. i want to pass commands in usual way in the terminal window where script is running. what should i do?
katherinem13 has joined #ruby
danslo has quit [Quit: danslo]
<gazarsgo> is simplecov suitable for measuring code coverage in ruby 2 ?
acrussell has joined #ruby
carloslopes has quit [Remote host closed the connection]
acrussell has left #ruby [#ruby]
katherin1m13 has joined #ruby
SW_ has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
SW_ has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
casheew has joined #ruby
bionhart has quit [Remote host closed the connection]
dhruvasa1ar has joined #ruby
chichou_ has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 256 seconds]
valio has quit [Ping timeout: 240 seconds]
adambeynon has joined #ruby
katherinem13 has quit [Quit: leaving]
Heskie has quit []
graydot has joined #ruby
Mavericks has joined #ruby
aganov has quit [Quit: aganov]
geggam has joined #ruby
Mavericks is now known as Mavericks2
Randomage has joined #ruby
casheew has joined #ruby
graydot has quit [Client Quit]
Faris11 has joined #ruby
<canton7> randomlogin, the constant ARGV is an array of command-line arguments
Mavericks2 is now known as Mavericks
v0n has quit [Ping timeout: 246 seconds]
io_syl has joined #ruby
<canton7> popular parsers are Trollop, Slop, and the built-in OptionParser
<randomlogin> i know, but it seems to me that is made up before script is run
atyz has joined #ruby
bionhart has joined #ruby
solars has quit [Ping timeout: 240 seconds]
<randomlogin> argv is*
<canton7> hmm? define "the usual way". like 'myscript.rb one two three'
cj3kim has joined #ruby
tjbiddle has joined #ruby
<canton7> and yes, the command-line arguments are known before the script starts?
bionhart has quit [Remote host closed the connection]
<bean> I like Trollop
<randomlogin> canton7: it's not commande-line arguments
<canton7> <randomlogin> guys, is there any way to pass a ruby script command line arguments?
<canton7> I'm confused
freeayu has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Neomex has quit [Quit: Neomex]
<canton7> bean, same, although Slop has better subcommands, which are very nice. You've got to pull some fancy tricks to get the same functionality with Trollop
radd has joined #ruby
<randomlogin> for example i've got a chat client in ruby, i want to use it in that way "ruby chatclient.rb" then it becomes running in, and i want just to pass my messages to it throught terminal
<canton7> ok, those aren't command-line arguments
<canton7> make the script read input from stdin
wallerdev has quit [Quit: wallerdev]
<canton7> Kernel#select is handy here
<MrZYX> or have a look at readline in stdlib
<randomlogin> what is the best way not to stop running script, for example if I use gets method it waits for input
<Mavericks> hello can someone help me whom to contact for #rubyonrails channel ?
<canton7> randomlogin, Kernel#select
Solnse has joined #ruby
Sherwyn has joined #ruby
<randomlogin> thank, i'll have a look now
Zespre has quit [Quit: leaving]
zai has quit [Quit: This computer has gone to sleep]
<adkron> randomlogin: Why not use the standard libraries OptionParser
<canton7> adkron, option parsing it's what he wanted, in the end
<canton7> s/it's/isn't
Zespre has joined #ruby
<adkron> canton7: right and there is a class in the core library that handles that. I was just suggesting he use that
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
terrellt has quit [Ping timeout: 260 seconds]
<canton7> Confused. He didn't want option parsing so you recommended OptionParser? Never mind
Zespre has quit [Client Quit]
terrellt has joined #ruby
Zespre has joined #ruby
kvirani has quit [Remote host closed the connection]
Zespre has quit [Client Quit]
danslo has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
<adkron> When I typed that you said "option parsing it's what he wanted" I missed the part where that isn't what he wanted.
Davey has joined #ruby
danslo has quit [Client Quit]
ChristianS has quit [Excess Flood]
<canton7> cool
Uranio has joined #ruby
enebo has joined #ruby
ChristianS has joined #ruby
generalissimo has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
D4T has quit [Quit: Textual IRC Client: www.textualapp.com]
katherin1m13 is now known as katherinem13
Zespre has joined #ruby
SW_ has quit [Remote host closed the connection]
tbrock has quit [Quit: Computer has gone to sleep.]
valio has joined #ruby
wolcanus has quit [Remote host closed the connection]
chrishough has joined #ruby
ivanoats has joined #ruby
dr_neek has joined #ruby
tommyvyo has joined #ruby
cofin has quit [Quit: cofin]
yann_ck has joined #ruby
Heskie has joined #ruby
robscomputer has joined #ruby
ppppaul has quit [Ping timeout: 252 seconds]
__mp has quit [Quit: Bye]
axl_ has quit [Quit: axl_]
ivanoats has quit [Ping timeout: 248 seconds]
tonini has joined #ruby
gyre007 has joined #ruby
dmiller has joined #ruby
daniel_- has quit [Ping timeout: 240 seconds]
boblu has quit [Ping timeout: 246 seconds]
cmarques has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
klip has quit [Remote host closed the connection]
blaxter_ has quit [Ping timeout: 240 seconds]
jprovazn is now known as jprovazn_afk
wsterling has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
h8R has joined #ruby
BizarreCake has quit [Ping timeout: 245 seconds]
<asteve> in ruby 1.8.7 could I create a constant like CONST_CLASS = Module::That::Does::Not::Exist?
cofin has joined #ruby
Coolhand has joined #ruby
mansi has quit [Read error: Connection reset by peer]
malkomalko has quit [Read error: Connection reset by peer]
mansi has joined #ruby
banghouse2 has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
<sethetter> I'm using rvm to use 1.8.7 and trying to launch irb, I get illegal instruction 4; other versions work fine; any hints?
visof has joined #ruby
cofin has quit [Client Quit]
yashshah has joined #ruby
<canton7> sethetter, that's a problem with OSX, and irb being compiled for a newer version isn't it? Might be older version
Faris11 has quit [Ping timeout: 248 seconds]
Mavericks has left #ruby [#ruby]
banghouse2 is now known as banghouse
cofin has joined #ruby
cofin has quit [Client Quit]
<sethetter> canton7: makes sense.. it works for 1.9.3 and 2, but not 1.8.7
wolcanus has joined #ruby
<canton7> irb being compiled for the wrong version of OSX, I mean
apeiros has joined #ruby
sie has quit [Ping timeout: 248 seconds]
jonathanwallace has joined #ruby
Faris11 has joined #ruby
ckrailo has joined #ruby
generalissimo has joined #ruby
<sethetter> canton7: Ah ok.
<sethetter> Is that something rvm did wrong? That's what I used to install ruby.
axl_ has joined #ruby
<fryguy> osx comes iwth 1.8.7 pre-installed
<fryguy> which might be causing some confusion for you
cofin has joined #ruby
cr3 has joined #ruby
<canton7> I'm afraid I don't know - I've only looked up what the error means on OSX, not the causes
johnrlive has joined #ruby
<sethetter> fryguy: I'm using 1.8.7 through rvm right now, not the "system" ruby
<cr3> hi folks, is it possible to use a question mark in parameter names? def initialize(debug? = false)
<sethetter> canton7: Gotcha. alright well that points me in a direction, thanks :)
jamesaxl has quit [Ping timeout: 260 seconds]
<fryguy> cr3: TIAS
withnale has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
wallerdev has joined #ruby
<cr3> fryguy: what does that mean?
<canton7> Try It And See (tm))
<fryguy> cr3: try it and see
kwikness has joined #ruby
<adkron> cr3: no
<cr3> fryguy: it didn't work for me, I get a syntax error, so I was wondering if there might be a special syntax or something
blaxter_ has joined #ruby
<cr3> adkron: in that case, I really like the question mark convention. is there a similar convention for variables that contain boolean values?
zomgbie has quit [Ping timeout: 248 seconds]
BryanWB_ has joined #ruby
valio has quit [Ping timeout: 240 seconds]
Faris11 has quit [Ping timeout: 264 seconds]
jbinto has quit [Read error: Connection reset by peer]
<BryanWB_> dear rubyists, would it be possible to tar up and distribute just the gems and the compiled c extensions for command-line ruby app and not bundle the entire ruby run-time and stdlib? this would assume users already have 1.9+ runtime installed
jbinto has joined #ruby
mercwithamouth has joined #ruby
<canton7> cr3, no - that stinks of hungarian notation, which is generally best avoided, especially in something like ruby
Zespre has quit [Quit: leaving]
mxweas has joined #ruby
<canton7> (what if the variable stops being boolean? suddenly you need to rename everything. except you probably won't, so then the code's just misleaing)
<adkron> cr3 not that I have ever seen.
kwikness has left #ruby [#ruby]
Heskie has quit []
danshultz has joined #ruby
gianlucadv has quit [Ping timeout: 260 seconds]
axl_ has quit [Ping timeout: 245 seconds]
Heskie has joined #ruby
<BryanWB_> ppl in my company all have macbook pros, i want distribute standa-lone command-line tools that only require that they have ruby 1.9+ installed, and not require everyone to use bundler + rvm/rbenv, etc.
ppppaul has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mklappstuhl has quit [Remote host closed the connection]
<ellipse> Why would you give a variable that could be of multiple types a ? name?
BizarreCake has joined #ruby
dallasm has left #ruby [#ruby]
<cr3> canton7: if a variable called fruit? suddenly returns a sausage object, I think the question mark is the least of your concerns
<cr3> canton7: if you program for maybe perhaps potentially situations, what are you programming?
zomgbie has joined #ruby
<adkron> BryanWB_: You should be able to make a gem and have it require all the dependencies. Rubygems will install all the dependencies for you.
<canton7> cr3, there's a difference between the whole meaning of the variable changing, and just its type
Guga_ has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
Guga_ has joined #ruby
<BryanWB_> adkron: i could do that but it make it less easy to distribute the tool
<ellipse> But you wouldn't use number? as the name for a variable that could contain 6.
dmiller has quit [Remote host closed the connection]
<canton7> cr3, read http://en.wikipedia.org/wiki/Hungarian_notation and related articles, and make up your own mind. Every coding standard I've worked under has banned its use, anyway
<adkron> BryanWB_: why would it make it less easy? If they have Ruby 1.9.3 they have the gem command. I might be missing something
<BryanWB_> adkron: my primary concern is the c extensions for stuff like nokogiri, which would require my devs to have a number of additional libs in order to install it
<adkron> ahh
<lupine> BryanWB_, we provide debian packages of our ruby software, which is more or less the same thing as a tar
<adkron> not sure how you would package that. You could make an install script.
<ellipse> Just as a function that might return 76 wouldn't have a question name, even if it sometimes returned false
<lupine> it's perfectly possible, you just need to know where to put the stuff
<canton7> BryanWB_, btw I've seen nokogiri install on a windows box without trying to compile anything
jcrawford has left #ruby ["Linkinus - http://linkinus.com"]
<BryanWB_> adkron: and i intend to put fog in a tool, which depends on nokogiri
v0n has joined #ruby
senayar has quit [Remote host closed the connection]
<BryanWB_> adkron: lupine almost all the targets are mac os x laptops, and i want to avoid lengthy compilation steps
<ellipse> cr3: I use the is_ prefix frequently.
<BryanWB_> my concern is taht the C extensions are statically linked at compile time, but i bet i could investigate that
katherinem13 has quit [Ping timeout: 248 seconds]
<lupine> there's nothing wrong with the ? notatiopn
katherinem13 has joined #ruby
nerdman has quit [Quit: leaving]
nomenkun has quit [Ping timeout: 264 seconds]
<lupine> what I typically do is ensure that the result is always true or false. not nil, not an instance of Sausage, true or false
wmoxam has quit [Read error: Connection reset by peer]
viszu has quit [Quit: Leaving.]
<lupine> BryanWB_, ah, doing it on mac is flawed
mxweas has quit [Quit: Leaving...]
<joshu_> hey guys
<BryanWB_> well mac os x is flawed, but my users all have macs
<lupine> you run into all manner of hilarious issues with the dynamic linker and the paths and stuff
<BryanWB_> lupine: argh :(
<ellipse> Also doesn
<lupine> we've got a Qt application that we wanted to package as a .app file
<BryanWB_> doesn't sound hilairous
<ellipse> t throw exceptions.
<lupine> (rubyqt, that is)
<lupine> it's just not fun
katherin1m13 has joined #ruby
<lupine> if you can use one of the mac packaging systems, like ?ports?, life is easier
itsdavem has joined #ruby
<lupine> if you want a .app file, you're probably better off just killing yourself
tomsthumb has joined #ruby
<BryanWB_> fuck mac osx sucks
<lupine> the accepted solution is to compile the objects, and then use a mac-provided tool to rewrite the paths inside them
dr_bob has quit [Quit: Leaving.]
Voodoofish430 has joined #ruby
Zespre has joined #ruby
<BryanWB_> it is a bizarre *nix
<lupine> and the developers just shrug and accept this as a solution that's OK
bionhart has joined #ruby
itsdavem has quit [Remote host closed the connection]
io_syl has quit [Ping timeout: 248 seconds]
<joshu_> when git cloning other peoples projects for testing which have Gemfiles and instructions to bundle install. All those gem dependencies are installed "globally", right? How can I bundle install, test their app and then get rid of all their gem dependencies? How do you guys deal with this?
<MrZYX> joshu_: rvm/rbenv or the --path option for bundler
dagobah_ has quit [Remote host closed the connection]
<sethetter> If I want a custom exception for my class, do I have to define the exception as it's own class and inherit from exception?
burlyscudd has quit [Quit: Leaving.]
<lupine> I actually gave up. We don't suppport the qt interface on mac, don't package it, and don't care
<sethetter> I see that that method works, but is that preferred?
<lupine> we might get a contractor in to do it at some point, but I'm not doing it
bubu has quit [Remote host closed the connection]
ffio has joined #ruby
timkohrumel has quit [Remote host closed the connection]
wmoxam has joined #ruby
apeiros has joined #ruby
jprovazn_afk has quit [Quit: Odcházím]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<joshu_> MrZYX do you do this on a per project basis or as a global preference?
<lupine> sethetter, subclass StandardError
sayan has quit [Read error: Connection reset by peer]
tjbiddle has quit [Quit: tjbiddle]
<sethetter> lupine: Thanks :)
<joshu_> MrZYX what's your personal workflow for testing other people's projects?
io_syl has joined #ruby
<lupine> assuming no subclass exists that fits the use case already, of course
graydot has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
<MrZYX> global I guess, if a project has a few deps I usually don't care and let them installed, if there are a lot I usually use a gemset that I can just drop then
DaniG2k has quit [Quit: Leaving.]
Faris11 has joined #ruby
wmoxam_ has joined #ruby
dhruvasa1ar has quit [Ping timeout: 248 seconds]
katherin1m13 has quit [Ping timeout: 264 seconds]
danebob has quit [Quit: danebob]
wmoxam has quit [Ping timeout: 276 seconds]
carloslopes has joined #ruby
JMcAfreak has quit [Quit: Leaving]
danshultz has quit [Read error: Connection reset by peer]
Giorgio has joined #ruby
JMcAfreak has joined #ruby
teclator has quit [Ping timeout: 240 seconds]
katherin1m13 has joined #ruby
dhruvasagar has joined #ruby
lkba has joined #ruby
cads has joined #ruby
arya has quit []
kiri has quit [Ping timeout: 256 seconds]
gazarsgo has quit [Quit: gazarsgo]
danshultz has joined #ruby
djbkd has joined #ruby
johnrlive has quit [Remote host closed the connection]
timkohrumel has joined #ruby
emmanuelux has joined #ruby
timkohrumel has quit [Remote host closed the connection]
kiri has joined #ruby
timmow has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
SW_ has joined #ruby
jlebrech has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
arya has joined #ruby
ehaliewicz has joined #ruby
graydot has quit [Quit: graydot]
filipe has quit [Remote host closed the connection]
rickruby has joined #ruby
carloslopes has quit [Ping timeout: 276 seconds]
adeponte has joined #ruby
vlad_starkov has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
Zeeraw has joined #ruby
brennanMKE has joined #ruby
radd has quit [Ping timeout: 241 seconds]
Heskie has quit []
rickruby has quit [Ping timeout: 245 seconds]
ehaliewicz has quit [Ping timeout: 245 seconds]
withnale has joined #ruby
brianherman has joined #ruby
yann_ck has quit [Ping timeout: 245 seconds]
mxweas has joined #ruby
coreinfo99 has quit [Ping timeout: 276 seconds]
echevemaster has joined #ruby
codecop has joined #ruby
war2 has joined #ruby
Eaven has quit [Read error: Connection reset by peer]
alup has quit [Quit: Leaving]
kofno has quit [Remote host closed the connection]
Eaven has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
ehaliewicz has joined #ruby
burlyscudd has joined #ruby
blaxter_ has quit [Ping timeout: 248 seconds]
saarinen has joined #ruby
Mon_Ouie has quit [Ping timeout: 276 seconds]
sayan has joined #ruby
vigintas has quit [Quit: Leaving]
baordog has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
ivanoats has joined #ruby
withnale has quit [Ping timeout: 248 seconds]
Z_Mass has joined #ruby
radd has joined #ruby
statarb3 has joined #ruby
baroquebobcat has joined #ruby
withnale has joined #ruby
<quazimodo> why is Module an instance of Class, shouldn't it be an instance of OBject ?
tylersmith has quit [Remote host closed the connection]
chandankumar has joined #ruby
<MrZYX> Module has methods, so it's a class
<quazimodo> my brain hurts
breakingthings has quit [Ping timeout: 246 seconds]
radd has quit [Client Quit]
carloslopes has joined #ruby
mxweas has quit [Ping timeout: 264 seconds]
<MrZYX> Class inherits from Object
<quazimodo> MrZYX: doesn't Module inherit from Object
chichou has quit []
akells` has quit [Remote host closed the connection]
<quazimodo> with class inheriting from Module
<quazimodo> i mean Class inheriting from Module
gianlucadv has joined #ruby
<quazimodo> I'm so confused
<MrZYX> oh, right, hm
ner0x has joined #ruby
<MrZYX> do you want to understand it to understand it or do you have a specific problem to solve?
superscott[8] has joined #ruby
<apeiros> Class < Module < Object
rickruby has joined #ruby
<quazimodo> MrZYX: i wnt to understand the idea, why it's implemented that way
<apeiros> but also: Class.is_a?(Object)
<quazimodo> how it's implementid thatway
mxweas has joined #ruby
<quazimodo> i mean
chandankumar has quit [Excess Flood]
<apeiros> and: Class.is_a?(Class)
<quazimodo> module is an instance of Class, or of Object, or is it multiple inheritance?
breakingthings has joined #ruby
<quazimodo> Module.class = Class, Module.superclass = Object
chandankumar has joined #ruby
zodiak has quit [Ping timeout: 256 seconds]
<quazimodo> why
<quazimodo> what
<quazimodo> <- brain kaboom
ffio has quit [Quit: WeeChat 0.4.0]
x1337807x has joined #ruby
<apeiros> ruby's root is slightly circular
zodiak has joined #ruby
<apeiros> so don't worry too much
<apeiros> they cheat in the implementation
<quazimodo> I need to understand the distinction between an objects class and its superclass
saarinen has quit [Quit: saarinen]
pandawarrior has joined #ruby
ivanoats has quit [Remote host closed the connection]
wmoxam has joined #ruby
camilasa_ has quit [Remote host closed the connection]
bionhart has quit [Remote host closed the connection]
Bleah has joined #ruby
mahmoudimus has joined #ruby
withnale has quit [Ping timeout: 245 seconds]
pandawarrior has left #ruby [#ruby]
<war2> quazimodo: the explanation on this page may help: http://rubylearning.com/satishtalim/modules_mixins.html
<kenichi> quazimodo: this may help with some of your confusion, or add more :) - http://madebydna.com/all/code/2011/06/24/eigenclasses-demystified.html
vlad_starkov has joined #ruby
markalanevans has joined #ruby
wmoxam_ has quit [Ping timeout: 248 seconds]
staafl has quit [Quit: Leaving]
pandawarrior has joined #ruby
<quazimodo> this is why I like functional programming with some anonymous functions
withnale- has joined #ruby
bklane has joined #ruby
<quazimodo> erm, Generic functions
SW_ has quit [Remote host closed the connection]
<quazimodo> ol
ctp has quit [Ping timeout: 246 seconds]
tjbiddle has joined #ruby
fomatin has joined #ruby
<MrZYX> hm I don't like to compare functional, object oriented and procedural languages on that level
ctp has joined #ruby
Z_Mass has quit [Ping timeout: 276 seconds]
emmanuelux has quit [Quit: emmanuelux]
<MrZYX> it's like comparing cars with bicycles
mame1 has joined #ruby
mljsimone is now known as mljsimone|food
<heftig> quazimodo: only classes have superclasses
Aristata has joined #ruby
<Aristata> Does anyone here know how to tell vpim to create an ics file that puts its events on the 'default' calendar in outlook?
withnale- has quit [Read error: Operation timed out]
mame0 has quit [Ping timeout: 248 seconds]
ivanoats has joined #ruby
jduan1981 has joined #ruby
kevinykchan has quit [Ping timeout: 248 seconds]
phipes has quit [Quit: phipes]
DonRichie has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
saarinen has joined #ruby
ntus1017 has quit [Remote host closed the connection]
kofno has joined #ruby
jduan1981 has quit [Read error: Connection reset by peer]
itsdavem has joined #ruby
<aedorn> How do people feel about hiring those that are normally defense contractors for Ruby positions? I'm finding that many of them will not actually learn Ruby, but do something like their comfortable language and put it in Ruby (like Python code in Ruby.)
yshh has joined #ruby
mxweas has quit [Ping timeout: 248 seconds]
danslo has joined #ruby
emmanuelux has joined #ruby
kevinykchan has joined #ruby
<Aristata> aedorn: I don't understand the question
jduan1981 has joined #ruby
<Aristata> What does them being a defense contractor have to do with anything.
<quazimodo> class feels like a separate hierarchy to the inheritance hierarchy
<quazimodo> hrm
<quazimodo> odd
<aedorn> Aristata: Because they won't learn the actual job requirements - they think their way will be better no matter what. So "better" eventually becomes "not done". We've been burned a few times by it, and it's just a trend we see.
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
<Aristata> So "how do people feel about hiring people that don't want to learn what we want them to"
<quazimodo> oh yeah
fomatin has quit [Quit: Computer has gone to sleep.]
<Aristata> Well, I wouldn't hire them.
<quazimodo> only an instance has a class, right?
valio has joined #ruby
<Aristata> Everything has a class
withnale- has joined #ruby
katherinem13 has quit [Quit: leaving]
s00pcan has quit [Quit: leaving]
<Aristata> But most things are instances
<quazimodo> well fuck me
katherin1m13 is now known as katherinem13
<MrZYX> quazimodo: yes, but classes are instances of Class assigned to a constant
<Aristata> nil.class == NilClass
<Aristata> 0.class == Integer
<quazimodo> Aristata: thanks, i don't think you get my question
<heftig> Aristata: necessarily, all things are instances, too
valio has quit [Client Quit]
DanKnox is now known as DanKnox_away
<quazimodo> MrZYX: specifically, ignoring what is or isn't an instance, only an instance may have a class, it has nothing to do with superclass
chandankumar has quit [Remote host closed the connection]
sie has quit [Ping timeout: 252 seconds]
itsdavem has quit [Remote host closed the connection]
<quazimodo> it feels like every instances class is either Class, or something that inherits from Class
becom33 has quit [Ping timeout: 256 seconds]
<apeiros> every "thing" is an object. every object has a class. classes are a special kind of object, which can create new objects, and which have inheritance, and thus a superclass
<quazimodo> and that Class inherts from Module, inherits from Object, etc
<apeiros> no, classes don't inherit from class
<apeiros> they're an instance of Class
<quazimodo> sorry, right
<apeiros> inheritance is another axis
<apeiros> there's instantiation and inheritance - two different axes
<quazimodo> yeah
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<quazimodo> it appears that my brain has jumbled the two axes up
<quazimodo> class Butts is the same as saying Butts=Class.new
JZTech101 has joined #ruby
<quazimodo> oh shit
<quazimodo> Butts.class=Class, Butts.superclass=Object, Class.superclass=Module
<quazimodo> XD
Z_Mass has joined #ruby
mljsimone|food is now known as mljsimone|bnc
devoldmx has quit [Ping timeout: 256 seconds]
<quazimodo> so.. Butts is an instance of Class, thus it has any of Class' instance methods. It also inherits from Object?
enebo has quit [Quit: enebo]
<apeiros> yes
<kenichi> can i get some mutex help? - http://pastie.org/8019925
visof has quit [Quit: Leaving]
<apeiros> class Butts is an instance of Class and a subclass of Object
malkomalko has joined #ruby
DanKnox_away is now known as DanKnox
saarinen has quit [Quit: saarinen]
Zeeraw has quit [Quit: Computer has gone to sleep.]
nfk has quit [Quit: yawn]
<Aristata> Does anyone here know how to tell vpim to create an ics file that puts its events on the 'default' calendar in outlook?
<quazimodo> apeiros: I wonder why it does that
vlad_starkov has quit [Remote host closed the connection]
<quazimodo> I mean, i get that it's like that. But I don't know why
devoldmx has joined #ruby
<quazimodo> what the architecture decision behind this is
<musl> quazimodo: The rdoc for Class has a neat ascii graf of the object model which I found helpful: http://ruby-doc.org/core-2.0/Class.html
brotatos has joined #ruby
<musl> s/graf/graph/
hrr has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
froy has quit [Quit: kablam!]
<MrZYX> quazimodo: what would be the better design?
randomlogin has quit [Quit: randomlogin]
froy has joined #ruby
froy has quit [Client Quit]
froy has joined #ruby
froy has quit [Client Quit]
robscomputer_ has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
atyz has quit [Quit: Leaving...]
BizarreCake has quit [Read error: Operation timed out]
obs has quit [Quit: Konversation terminated!]
jamescarr has quit [Quit: jamescarr]
slainer68 has quit [Remote host closed the connection]
ybart has quit [Quit: ybart]
caleb_io has joined #ruby
atyz has joined #ruby
rickruby has quit [Ping timeout: 264 seconds]
caleb_io has quit [Client Quit]
viszu has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
mocfive has joined #ruby
Apane101 has joined #ruby
rupee has joined #ruby
becom33 has joined #ruby
becom33 has quit [Changing host]
becom33 has joined #ruby
<quazimodo> MrZYX: first I need to understand this to be able to compare it, don't I :P
it7 has left #ruby [#ruby]
<Apane101> How can one go from being a beginner to intermediate Ruby developer, to intermediate/advanced? please provide sources :)
Asher has joined #ruby
saarinen has joined #ruby
kofno has quit [Remote host closed the connection]
<quazimodo> musl: it's helping a bit
niv has joined #ruby
froy has joined #ruby
jonahR has joined #ruby
dalton has joined #ruby
<MrZYX> quazimodo: I actually think trying to develop a solution for the problem ruby faced might help you to understand the decisions it took
vlad_starkov has joined #ruby
dalton is now known as Guest59862
slmorton has quit [Remote host closed the connection]
<quazimodo> MrZYX: no doubt, I'd run into the same set of problems and get perspective. But, I'm more interesting in 'getting it' as it is first
pandawarrior has quit [Quit: Leaving.]
<Guest59862> I have a file that includes different types of quotation marks (" and “), is there a way to convert these to all be the same?
<quazimodo> lol
<quazimodo> so BasicObject inherts from Class
<MrZYX> no
<quazimodo> sorry, mixing my terminology, it is an instance of
<MrZYX> BasicObject (is the only?) Class that inherits from nothing
<MrZYX> yes
<niv> Hi .. I'm seeing segfaults when using sequel and pg. Anyone willing to take a peek at the crash output and take a guess?
<quazimodo> because ... it's an instance :D
<Apane101> BasicObject is kernal
<quazimodo> hrm, this whole process has fuddled my knowledge
<quazimodo> the lines between being an instance of, and inheriting from, have blurred
froy has quit [Client Quit]
mame2 has joined #ruby
slainer68 has joined #ruby
slainer68 has quit [Remote host closed the connection]
mame1 has quit [Ping timeout: 248 seconds]
srji has quit [Ping timeout: 248 seconds]
zleslie has joined #ruby
oktapodi has quit [Remote host closed the connection]
<zleslie> Hi
froy has joined #ruby
ngoldman has joined #ruby
<quazimodo> hullo
troessner has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
<zleslie> I am looking at a block like array.map {|a| a[1]}.*'/' So, what is the .*'/' doing at the end? What am I googling?
s00pcan has joined #ruby
<Apane101> textmate, Vim, or sublime?
<apeiros> zleslie: join
twoism has joined #ruby
<apeiros> Array#* is an alias for join
brennanMKE has quit [Remote host closed the connection]
<zleslie> Ohh
<zleslie> interesting
<joshu_> anyone here use RubyMotion?
Z_Mass has quit [Ping timeout: 264 seconds]
<zleslie> interesting
<zleslie> Thanks
<apeiros> joshu_: the guys over in #rubymotion do ;-)
zleslie has left #ruby ["WeeChat 0.3.8"]
<joshu_> apeiros sure :P
<joshu_> I see you cloned yourself there too ;)
<quazimodo> hrm
<apeiros> of course, I registered the channel ;-)
<joshu_> apeiros lol
<joshu_> do you use it apeiros ?
<apeiros> I bought it on day one
<apeiros> never got around to use it :(
<apeiros> still plan to
timkohrumel has joined #ruby
lump has joined #ruby
SW_ has joined #ruby
rupee has quit [Quit: Leaving]
froy has quit [Quit: kablam!]
lump is now known as froy
brotatos has quit [Quit: WeeChat 0.4.1]
BizarreCake has joined #ruby
kiri has quit [Read error: Operation timed out]
tylersmith has joined #ruby
havenwood has joined #ruby
jdunck has joined #ruby
jurbat has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
<quazimodo> in instantiation looks to me like a constant to which is attached some variables, all the methods etc are on its class
kiri has joined #ruby
tylersmith has quit [Remote host closed the connection]
itsdavem has joined #ruby
<quazimodo> it looks quite similar to an inheritance, although an object that's inheriting can also have its own methods
tylersmith has joined #ruby
mahmoudimus has joined #ruby
Giorgio has quit [Ping timeout: 248 seconds]
<quazimodo> yeah, i certainly don't get why this must work this way
wargasm has joined #ruby
thomasle_ has joined #ruby
<quazimodo> in fact, I'm seeing that superclass is defined in Class, and I'm not sure why it's even needed
<quazimodo> oh wait, my brain almost got it
mocfive has quit [Read error: Connection reset by peer]
brotatos has joined #ruby
<quazimodo> AHHH i think I get it
mocfive has joined #ruby
ngoldman has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
mikewintermute has quit [Quit: mikewintermute]
<quazimodo> everything's class eventually resolves to Class
Niamkik_ has quit [Quit: Disconnecting from stoned server.]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
<quazimodo> if you chain .class's, it looks like it'll all eventually settle on Class
Niamkik has joined #ruby
<quazimodo> and in order to inherit any further from anything else, Class needs superclass?
<apeiros> quazimodo: always the 2nd time
<joshu_> I need some help deciding on a storage option, e.g. postgres or redis or maybe something else.
bigkevmcd has quit [Quit: outta here]
thomasle_ has quit [Remote host closed the connection]
<apeiros> (except for classes obviously, for which it's always the 1st time)
<joshu_> I have never used any of those so I'm not sure what to go with,
<quazimodo> apeiros: i don'te git it?
<quazimodo> what do you mean
Davey has quit [Quit: Computer has gone to sleep.]
<apeiros> anything.class.class == Class # *always*
<quazimodo> yeah
jamescarr has joined #ruby
thomasle_ has joined #ruby
mrsolo has joined #ruby
<apeiros> anything.class == Class # for all classes (for obvious reasons)
<quazimodo> which leaves no real mechanism to inherit from Object
<apeiros> so "eventually" is not "eventually" but "at the latest after the 2nd"
<apeiros> you're confusing instantiation and inheritance again
<quazimodo> it's very similar
<apeiros> class Foo < Bar # instance of Class, subclass of Bar
brennanMKE has joined #ruby
<apeiros> but it's not the same. and it doesn't help if you keep confusing them.
sayan has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<quazimodo> well, both seem to be a way to access methods, one of them just lets you define new/redefine
danslo has quit [Quit: danslo]
rickruby has joined #ruby
<apeiros> access methods?
Davey has joined #ruby
<apeiros> there's only one way to access methods: .
<apeiros> (well, :: too, but don't do that)
bionhart has joined #ruby
<apeiros> I think you're trying to hard
rdark has quit [Quit: leaving]
<quazimodo> um, perhaps thats the wrong word. A way to 'have' methods when the lookup occurs
Guest59862 has quit [Remote host closed the connection]
<quazimodo> indeed, perhaps I need to sleep on it
<apeiros> classes contain method definitions. objects contain data. objects use the method definitions in their classes to work with their data.
thomasle_ has quit [Remote host closed the connection]
<apeiros> there's only one thing which can contain methods: Module (Class being the only subclass of Module inherits that ability)
<apeiros> s/Module/modules/
danslo has joined #ruby
<apeiros> iow, classes and modules serve as (instance) method container.
<quazimodo> oh, so Object doesn't
alvaro_o has joined #ruby
<quazimodo> ok
<apeiros> depends on how you view it
banjara has joined #ruby
<quazimodo> yeah, definitely need to sleep on it
<quazimodo> and then tomorrow reexamine
<quazimodo> thank you apeiros and MrZYX
<Hanmac> apeiros: did you hear? OpenSuse is porting his Control Center Yast to Ruby :P
<apeiros> oh, wow
<apeiros> lets hope they do it well and make a good case for ruby :)
tvw has quit []
srji has joined #ruby
<Hanmac> apeiros: https://github.com/yast/ycp-killer there is it, its a "Killer"Feature ;P
Banistergalaxy has quit [Ping timeout: 256 seconds]
mame3 has joined #ruby
<quazimodo> oh yeah, when we self.some_method on a class, that's going to define it on that class's eigenclass huh
<quazimodo> which isn't the classes class nor the object it inherts from
<quazimodo> woo
<quazimodo> 3 annoying things
<quazimodo> you know, It's because of this that I managed to do 2 engineering degrees at the same time
<quazimodo> relentless, annoying, seemingly insane questioning
<apeiros> did you comment on your whole thought process as well during that?
mame2 has quit [Ping timeout: 248 seconds]
kirun has joined #ruby
<quazimodo> yep, whinging is my coping mechanism, I whinge all through my mma training too... they'd kick me out of the gym if I didn't work hard too
Giorgio has joined #ruby
lushious has joined #ruby
amh345 has joined #ruby
amh345 has joined #ruby
Kar- has quit [Remote host closed the connection]
hrr has quit [Quit: hrr]
hadees has joined #ruby
devtro_ has quit [Quit: devtro_]
jetblack has quit [Read error: Operation timed out]
l3thal- has joined #ruby
Z_Mass has joined #ruby
devtro_ has joined #ruby
mame3 has quit [Ping timeout: 248 seconds]
<amh345> i want to create something that writes a single file to a USB stick. are there any tips or suggestions for this? for example. knowing when the usb device is plugged in. i see there's something called ruby-dbus. is this a good option to go with?
crankyco1er has quit [Read error: Operation timed out]
Eaven has quit [Read error: Connection reset by peer]
fomatin has joined #ruby
RubyPanther has quit [Read error: Operation timed out]
Eaven has joined #ruby
jetblack has joined #ruby
redgirl has quit [Quit: This computer has gone to sleep]
jbinto- has joined #ruby
jbinto has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
<quazimodo> apeiros: you know, it's neat to comparet this version of Object Orientation to javascripts
saarinen has joined #ruby
DanKnox is now known as DanKnox_away
nezumi has joined #ruby
Mon_Ouie has joined #ruby
tommyvyo has quit [Quit:]
phipes has joined #ruby
<havenwood> amh345: POSIX only or you need to support Windows too?
mame3 has joined #ruby
<amh345> havenwood: windows too, unfortunately.
<amh345> as far as i know. this will be running only on win laptops.
<havenwood> amh345: Aha. Okay, opposite of POSIX-only. Hehe.
<amh345> :)
Kar- has joined #ruby
crankycoder has joined #ruby
<amh345> this is totally new territory for me. i saw some recommendations for ruby-dbus https://github.com/mvidner/ruby-dbus - looking at it now.
thomasfedb has left #ruby ["Leaving"]
<havenwood> amh345: Maybe shell out? Looks like the PowerShell command would be: Get-WmiObject Win32_Volume -Filter "DriveType='2'"
<havenwood> amh345: (I dunno how shelling out works in Win, and that script is Win 7+.)
<havenwood> amh345: Need to support XP? :O
mljsimone|bnc is now known as mljsimone|food
<amh345> i could shell if it allows me to. i just to need receive some calls or..something.
<havenwood> I'm assuming backticks in Windows goes to PowerShell??
phipes has quit [Client Quit]
<amh345> no xp. just win 8
mljsimone|food is now known as mljsimone
<amh345> i was reading about ruby in windows (haven't tried it in years and year) and there were some details on powershell. so it should work- in theory.
<Xeago> havenwood: more likely to cmd instead of ps
cmarques has joined #ruby
<havenwood> Xeago: Mmm, yeah good point.
<amh345> idea here is that i would just run a system command within a method, yes? (just to make sure I'm on the same page)
14WAAY40K has joined #ruby
18VAA89XV has joined #ruby
johnnyfuchs has quit [Ping timeout: 248 seconds]
interactionjaxsn has quit [Remote host closed the connection]
<havenwood> amh345: Yeah, you can use backticks, system or exec, etc: http://rubyquicktips.com/post/5862861056/execute-shell-commands
<havenwood> ^ look like Win example of doing do
<havenwood> s/do/so
interactionjaxsn has joined #ruby
<havenwood> amh345: backticks are the use-unless-you-have-a-reason-not-to option.
devoldmx3 has joined #ruby
joofsh has joined #ruby
<havenwood> amh345: Maybe try from irb and see if it works?: `Get-WmiObject Win32_Volume -Filter "DriveType='2'"`
<tjbiddle> Wow - perfect timing - Was just about to ask about Windows system calls.
<amh345> havenwood: ok, I'm going to finally install ruby on windows. ugh.
<amh345> thanks for the code/tips
mxweas has joined #ruby
<havenwood> amh345: Might wanna just use an installer for Win. http://rubyinstaller.org/
<amh345> by the looks of the suggestions here- i may not need to install a gem. which would be nice.
<amh345> havenwood: that's what I'm going to try. i hope it works well. years ago ruby+win was a nightmare for me.
<tjbiddle> Working with a few .net folk who refuse to use a CLI tool. Was going to create a quick gui with Shoes and just wrap calls to the cli - Is there a way for me to pass the command into the interpreter of my choice? (Powershell/cmd/git bash)
<havenwood> tjbiddle: I wanna know the answer to that as well! Just curious.
devoldmx has quit [Ping timeout: 248 seconds]
<tjbiddle> havenwood: Yeah - been playing around with a few options, anytime I try passing in arguments in fails. If I do it with no arguments then it opens up the actual interpreter (Even if I was in irb originally)
<havenwood> tjbiddle: You can shell out then run the command via bash, git, whatever. Where you initially get to shelling out in Win, i dunno.
Z_Mass has quit [Quit: Leaving]
baroquebobcat has quit [Read error: No route to host]
interactionjaxsn has quit [Ping timeout: 264 seconds]
amedeiro1 has joined #ruby
xardas has joined #ruby
<tjbiddle> havenwood: But in one swift line of code? Sounds like that would open up the interpreter - someone puts in input - then goes on their merry way
xardas has quit [Changing host]
xardas has joined #ruby
DanKnox_away is now known as DanKnox
bionhart has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
sayan has joined #ruby
chrishough has quit [Quit: chrishough]
johnnyfuchs has quit [Remote host closed the connection]
devdazed has quit [Ping timeout: 252 seconds]
<tjbiddle> havenwood: Looks like you can pass in the interpreter as the first argument: system("path_to_powershell_or_whatever", "command_here")
amedeiros has quit [Ping timeout: 264 seconds]
<tjbiddle> Now just need to get the PATH to play nicely
<havenwood> tjbiddle: nice.
r0bby has joined #ruby
brotatos has left #ruby ["WeeChat 0.4.1"]
devoldmx3 has quit [Ping timeout: 248 seconds]
RubyPanther has joined #ruby
kofno has joined #ruby
pothibo has joined #ruby
anonymuse has quit [Quit: Linkinus - http://linkinus.com]
Mon_Ouie has quit [Quit: WeeChat 0.4.1]
workmad3 has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
chrishough has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
Trynemjoel has quit [Ping timeout: 245 seconds]
mxweas has quit [Ping timeout: 248 seconds]
mahmoudimus has quit [Read error: Connection reset by peer]
pothibo has quit [Quit: pothibo]
<Xeago> tjbiddle: since a few versions ps is under a known location
phipes has joined #ruby
<Xeago> using various %systemroot% and alike vars you can find the path
mahmoudimus has joined #ruby
rupee has joined #ruby
asteve has quit [Ping timeout: 252 seconds]
mxweas has joined #ruby
hoofed has quit [Quit: hoofed]
atyz has quit [Quit: Leaving...]
BizarreCake has quit [Ping timeout: 264 seconds]
jbueza has joined #ruby
bitcycle has joined #ruby
pitzips has joined #ruby
<bitcycle> Hey all. How can I put logic into a class that will be executed when a attribute is set?
spider-mario has joined #ruby
mxweas has quit [Client Quit]
devoldmx3 has joined #ruby
khushildep has left #ruby [#ruby]
sepp2k has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
theRoUS has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
burlyscudd has quit [Quit: Leaving.]
saarinen has quit [Quit: saarinen]
ybart has joined #ruby
saarinen has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
atmosx has joined #ruby
Eaven has quit [Read error: Connection reset by peer]
tonini has joined #ruby
pinpin404 has joined #ruby
Jb has quit [Disconnected by services]
Eaven has joined #ruby
interactionjaxsn has joined #ruby
zaebst has joined #ruby
ivanoats has quit [Remote host closed the connection]
<digitalcake> bitcycle: why not just make a setter method and hook your logic in there?
srji has quit [Ping timeout: 248 seconds]
<bitcycle> digitalcake: Here's a better explanation of what I'm trying to do: http://stackoverflow.com/q/16990716/86263
Azulinho has quit [Ping timeout: 256 seconds]
Zeeraw has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
daniel_- has joined #ruby
<digitalcake> well for one attr_getter(:name) does not take a block as far as I'm aware of
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
<quazimodo> apeiros: it's coming together
<digitalcake> they are just alias for writing the same def out
agjacome has quit [Quit: leaving]
icole has joined #ruby
Michae___ has joined #ruby
Elhu has joined #ruby
Giorgio has quit [Ping timeout: 276 seconds]
Elhu has quit [Client Quit]
<bitcycle> digitalcake: I had no idea that attr_getter was a ruby thing, I was just guessing that that would be the name of it.
<slash_nick> bitcycle: maybe the methods in this class will give you an idea? https://github.com/rthbound/pay_dirt/blob/master/lib/pay_dirt/use_case.rb
fierycatnet has joined #ruby
<digitalcake> attr_writter, attr_setter and attr_accessor
viszu has quit [Quit: Leaving.]
kofno has quit [Ping timeout: 276 seconds]
jonathanwallace has quit [Ping timeout: 264 seconds]
terrellt has quit [Quit: There's nothing dirtier then a giant ball of oil]
<digitalcake> derp
<digitalcake> dont listen to me
<digitalcake> attr_reader
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
yashshah has quit [Read error: Connection reset by peer]
<Aristata> Does anyone here know how to tell vpim to create an ics file that puts its events on the 'default' calendar in outlook?
atyz has joined #ruby
byprdct has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
kil0byte has joined #ruby
kenz_ has joined #ruby
bklane has quit [Remote host closed the connection]
druonysus has joined #ruby
KeiKun has joined #ruby
mercwithamouth has joined #ruby
ivanoats has joined #ruby
<KeiKun> excuse. i have this problem where it says block in <top (required)> line 38. here's my code http://pastebin.com/Kk5eE0rD
devoldmx has joined #ruby
InFlames has joined #ruby
brennanMKE has joined #ruby
Eaven has quit [Read error: Connection reset by peer]
Eaven has joined #ruby
niv has left #ruby ["bye"]
tommyvyo has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
alex__c2022 has joined #ruby
icole has quit [Read error: Connection reset by peer]
icole_ has joined #ruby
andikr has quit [Remote host closed the connection]
mercwithamouth has quit [Quit: Lost terminal]
Prometheian has joined #ruby
rickruby has quit [Remote host closed the connection]
rickruby has joined #ruby
nomenkun has quit [Remote host closed the connection]
tonini has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
tvw has joined #ruby
pallavi has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
xibalba has quit [Changing host]
xibalba has joined #ruby
vlad_starkov has joined #ruby
Kar- has quit [Remote host closed the connection]
rambler has left #ruby [#ruby]
rickruby has quit [Read error: Connection reset by peer]
pallavi has quit [Client Quit]
eldariof has joined #ruby
rickruby has joined #ruby
jonathanwallace has joined #ruby
hoofed has joined #ruby
kenz_ has quit [Ping timeout: 276 seconds]
oktapodi has joined #ruby
Sherwyn has quit [Remote host closed the connection]
greenarrow|3 has quit [Read error: Connection reset by peer]
greenarrow|3 has joined #ruby
<Prometheian> I've installed Ruby and, if it's to be beleived, Gems, but I can't use a gems specific command in the interactive ruby prompt. Do I need to run a gems command first?
devoldmx has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
mikewintermute has joined #ruby
oktapodi has quit [Ping timeout: 276 seconds]
devoldmx has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
atyz has quit [Read error: Connection reset by peer]
mikewintermute has quit [Quit: mikewintermute]
eneas has joined #ruby
wargasm has quit [Read error: No buffer space available]
iaj has quit [Ping timeout: 264 seconds]
wargasm has joined #ruby
atmosx has quit [Quit: leaving]
mansi has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
mansi has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
srji has joined #ruby
eneas has left #ruby [#ruby]
mansi has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 248 seconds]
zigomir has joined #ruby
mansi has joined #ruby
kpshek has quit []
DomKM has quit [Quit: Leaving.]
mljsimone is now known as mljsimone|bnc
ryannielson has left #ruby [#ruby]
<canton7> Prometheian, rubygems is a package manager. it lets you easily install other packets. presumably the command you want is from a gem? some more details would be useful
fuzzyhorns has quit [Remote host closed the connection]
Z_Mass has joined #ruby
<Prometheian> I'm not entirely sure. Going to try to reinstall Ruby, I'll get back to you if I encounter more issues.
devoldmx has joined #ruby
Z_Mass has left #ruby [#ruby]
<canton7> I doubt re-installing will help... It's probably your lack of understanding
nomenkun has joined #ruby
tbrock has joined #ruby
zigomir_ has joined #ruby
poincare101 has joined #ruby
tonini has joined #ruby
iaj has joined #ruby
malkomalko has quit [Remote host closed the connection]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
akells` has joined #ruby
ppppaul has quit [Ping timeout: 248 seconds]
akells` has quit [Read error: Connection reset by peer]
mljsimone|bnc is now known as mljsimone
<Prometheian> Probablu
akells` has joined #ruby
zigomir has quit [Ping timeout: 248 seconds]
seitensei has joined #ruby
eduardoboss has joined #ruby
eduardoboss has left #ruby [#ruby]
cofin has quit [Quit: cofin]
jbpros has joined #ruby
<Prometheian> Okay, so, if I've installed Ruby and rubygems, what do I open to run gem commands?
<MrZYX> your shell
forrest has joined #ruby
SW_ has quit [Remote host closed the connection]
<Prometheian> I'm on Windows.
<Prometheian> Would that just be Ruby?
<canton7> Prometheian, cmd
<Prometheian> cmd, type in ruby?
<canton7> no
<canton7> start -> cmd
<Prometheian> yeah
<Prometheian> once cmd is open
<canton7> now, what are you trying to run?
stkowski has joined #ruby
<Prometheian> I'm trying to run a gem command "gem install Selenium"
ToApolytoXaos has joined #ruby
<canton7> so
<canton7> in cmd
rippa has joined #ruby
SW_ has joined #ruby
<canton7> run 'gem install selenium'
bklane has joined #ruby
<Prometheian> ah ha!
<Prometheian> ty!
amh345 has quit [Quit: amh345]
itsdavem has quit [Remote host closed the connection]
ravster has joined #ruby
Mon_Ouie has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
kevinykchan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
brennanMKE has joined #ruby
Eaven has quit [Read error: Connection reset by peer]
Eaven has joined #ruby
hoofed has quit [Quit: hoofed]
kpshek has joined #ruby
<poincare101> Hi guys. I'm currently working on a application for data feeds. Basically, you send data to a server, and the data is plotted live on a webpage. You can share a link to the webpage, or mark it private. You can also search and download your data. Would any of you guys like to be beta testers? An example use case would be plotting a particular resource usage on a server, seeing it live.
markalanevans has quit [Quit: markalanevans]
tw1sted has quit [Quit: tw1sted]
<havenwood> poincare101: Sounds interesting.
jbpros_ has joined #ruby
saarinen has quit [Quit: saarinen]
jtharris has quit [Quit: WeeChat 0.4.0]
robscomputer_ has quit [Read error: Connection reset by peer]
robscomputer has joined #ruby
jtharris has joined #ruby
pothibo has joined #ruby
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
jbpros has quit [Ping timeout: 276 seconds]
jbpros_ is now known as jbpros
<Apane101> are the rails guides presumably the best documenation for rails on the net?
devoldmx has quit [Ping timeout: 248 seconds]
robscomputer has quit [Read error: Connection reset by peer]
<poincare101> Apane101: they are pretty decent.
sepp2k1 has joined #ruby
itsdavem has joined #ruby
zigomir has joined #ruby
sepp2k has quit [Ping timeout: 264 seconds]
robscomputer has joined #ruby
jastix has quit [Quit: Leaving]
devoldmx has joined #ruby
zigomir__ has joined #ruby
BryanWB_ has quit [Remote host closed the connection]
zigomir_ has quit [Ping timeout: 248 seconds]
zigomir_ has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
robscomputer_ has joined #ruby
teddyp1cker has joined #ruby
chrishough has quit [Quit: chrishough]
mocfive has quit [Remote host closed the connection]
zigomir has quit [Ping timeout: 248 seconds]
slash_nick has quit [Ping timeout: 264 seconds]
rickruby has quit [Read error: Connection reset by peer]
<Prometheian> Anyone know if Ruby Koans is any good?
<havenwood> Apane101: #RubyOnRails is the Rails channel, by the way. Rails docs seem well maintained. Ryan Bate's RailsCasts are popular it seems.
rickruby has joined #ruby
denver has quit [Remote host closed the connection]
yann_ck has joined #ruby
kpshek has quit []
kevinykchan has joined #ruby
smigg has quit [Ping timeout: 248 seconds]
zigomir__ has quit [Ping timeout: 248 seconds]
<havenwood> Prometheian: Yeah, I think its a good exercise. Isn't uber-maintained though. Might run into compatibility problems but can usually just short circuit them with: assert true >.>
<Prometheian> lol
Aristata has quit [Quit: Leaving.]
shinobi_one has joined #ruby
digitalcake has quit [Quit: Leaving.]
zigomir has joined #ruby
rickruby has quit [Read error: Connection reset by peer]
pothibo has quit [Quit: pothibo]
rickruby has joined #ruby
rickruby has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
tonini has quit [Ping timeout: 248 seconds]
<havenwood> Prometheian: Oh, i take it back. Looks like Koans are under active development again. :)
<Prometheian> awesome ^^
<havenwood> Just moved: https://github.com/neo/ruby_koans
yalue has quit [Quit: Leaving]
chrishough has joined #ruby
kofno has joined #ruby
digitalcake has joined #ruby
zigomir__ has joined #ruby
zigomir_ has quit [Ping timeout: 248 seconds]
zigomir_ has joined #ruby
mikewintermute has joined #ruby
zigomir has quit [Ping timeout: 248 seconds]
jgarvey has joined #ruby
rickruby has quit [Read error: Connection reset by peer]
seitensei has quit [Quit: Leaving...]
rickruby has joined #ruby
mocfive has joined #ruby
jamescarr has left #ruby [#ruby]
wolcanus has quit [Remote host closed the connection]
zigomir__ has quit [Ping timeout: 248 seconds]
JZTech101 has quit [Ping timeout: 248 seconds]
sayan has quit [Ping timeout: 248 seconds]
devoldmx has joined #ruby
jcromartie has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
war2_ has joined #ruby
kristian_ is now known as DeLay
mikewintermute has quit [Quit: mikewintermute]
saarinen has joined #ruby
zigomir__ has joined #ruby
war2_ has quit [Read error: No route to host]
war2_ has joined #ruby
c0rn has joined #ruby
rickruby has quit [Read error: Connection reset by peer]
ntus1017 has joined #ruby
war2 has quit [Ping timeout: 264 seconds]
rickruby has joined #ruby
rickruby has quit [Remote host closed the connection]
digitalcake has quit [Quit: Leaving.]
kemist has joined #ruby
zigomir has joined #ruby
zigomir_ has quit [Ping timeout: 248 seconds]
ged has quit [Read error: Connection reset by peer]
epochwolf has quit [Ping timeout: 248 seconds]
ged has joined #ruby
rcs has quit [Ping timeout: 248 seconds]
stkowski has quit [Quit: stkowski]
zigomir_ has joined #ruby
devoldmx has quit [Remote host closed the connection]
zigomir__ has quit [Ping timeout: 248 seconds]
stkowski has joined #ruby
slash_nick has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
carloslopes has quit [Remote host closed the connection]
epochwolf has joined #ruby
epochwolf has quit [Changing host]
epochwolf has joined #ruby
epochwolf has quit [Excess Flood]
rcs has joined #ruby
eldariof has quit [Read error: Operation timed out]
zigomir has quit [Ping timeout: 248 seconds]
bklane has quit [Remote host closed the connection]
redgirl has joined #ruby
vlad_starkov has joined #ruby
zigomir has joined #ruby
srji has quit [Ping timeout: 248 seconds]
Jackneill has quit [Ping timeout: 248 seconds]
palantir has joined #ruby
freerobby has quit [Quit: Leaving.]
zigomir_ has quit [Ping timeout: 248 seconds]
zigomir_ has joined #ruby
war2_ has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: And so the story goes…]
freerobby has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
war2_ has joined #ruby
tonini has joined #ruby
bklane has joined #ruby
sayan has joined #ruby
Squarepy has quit [Quit: Leaving]
sayan has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 264 seconds]
mikewintermute has joined #ruby
zigomir has quit [Ping timeout: 248 seconds]
<Apane101> in richard schneeman in here?
JZTech101 has joined #ruby
brotatos_ has joined #ruby
osvico has joined #ruby
<Prometheian> Wow, I suck. Second Koan and I'm stuck.
<Prometheian> assert_equal __, nil.is_a?(Object), "Unlike NULL in other languages"
<Apane101> haha/ use the command prompt
gyre007 has quit [Ping timeout: 248 seconds]
wolcanus has joined #ruby
JZTech101 has quit [Read error: Operation timed out]
jkline has joined #ruby
<havenwood> Prometheian: Pry is a great way to test the assertion yourself: http://pryrepl.org/
brotatos_ has quit [Client Quit]
<havenwood> Prometheian: gem install pry
<havenwood> Prometheian: Like irb, just better!
yashshah has joined #ruby
<joshu_> have you guys seen this online tool https://httpkit.com/wiretap looks very useful
Prometheian_ has joined #ruby
Prometheian_ has quit [Client Quit]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
<havenwood> Prometheian: E.g., open pry with `pry` and try running: nil.is_a?(Object)
Azulinho has joined #ruby
brotatos has joined #ruby
brotatos has left #ruby [#ruby]
brotatos has joined #ruby
Prometheian_ has joined #ruby
Prometheian_ has quit [Client Quit]
devtro_ has quit [Quit: devtro_]
twoism has quit [Ping timeout: 252 seconds]
huoxito has quit [Quit: Leaving]
Prometheian has quit [Ping timeout: 248 seconds]
tonini has quit [Quit: Lost terminal]
fwaokda has joined #ruby
markalanevans has joined #ruby
tonini has joined #ruby
tonini has quit [Client Quit]
<fwaokda> if i have this string: "/usr/local/tomcat/app_data/d1mfb/2012/Internet/peoples/DIVISION27.txt" -- the year in the string will change from time to time. how can i extract that year though from the string whether its 2012, 2013, 2014 so on
tonini has joined #ruby
<havenwood> joshu_: Nope, hadn't seen it. Logging requests yourself would be easy enough, rolled yourself or using Rack middleware like Clogger to do it. If they offer good visualization tools etc might be tempting not to do it yourself.
workmad3 has joined #ruby
<havenwood> fwaokda: Are there going to be other numbers in the string?
<joshu_> havenwood ok will check out Clogger
<havenwood> fwaokda: Do you want to take years into account after 9999? :P
x1337807x has joined #ruby
<havenwood> fwaokda: \d{4}: http://rubular.com/r/Y237M59PBa
zigomir_ has quit [Ping timeout: 245 seconds]
_bart has joined #ruby
<fwaokda> havenwood, there are other numbers like the 27 and the 1 in d1mfb.. so yes potentially there will be other numbers.
x1337807x has quit [Client Quit]
<fwaokda> havenwood, well... thats a neat site thanks!
<Morrolan> http://rubular.com/r/AldvsTpr62 if there's other four-long numbers somewhere in the string.
<havenwood> fwaokda: /\/\d{4}\//
<Morrolan> And yes, this'll only work with this specific file which you've mentioned. ;)
x1337807x has joined #ruby
basti_ has joined #ruby
rh1n0 has joined #ruby
digitalcake has joined #ruby
<basti_> hi people.
<basti_> can i somehow have a "rack" application respond in place of apache, like maybe php or python does?
<MrZYX> basti_: google apache passenger
<basti_> oh, thats what passenger does?
mocfive has quit [Remote host closed the connection]
<MrZYX> yes, it basically does what mod_php does for ruby
<MrZYX> well, rack apps
s0ber_ has joined #ruby
cofin has joined #ruby
ebobby has joined #ruby
bionhart has joined #ruby
nimor has joined #ruby
* basti_ nods
<basti_> I'm trying
KeiKun has quit [Read error: Connection reset by peer]
krawchyk has quit [Remote host closed the connection]
s0ber has quit [Ping timeout: 240 seconds]
s0ber_ is now known as s0ber
jbinto- has quit [Remote host closed the connection]
KeiKun has joined #ruby
<havenwood> fwaokda: s.scan /\/(\d{4})\//; #=> [["2012"]]
burlyscudd has joined #ruby
<KeiKun> hmm
<KeiKun> why can't i use short url
<KeiKun> response = Net::HTTP.post_form(URI.parse("http://goo.gl/"), "url" => commit["url"]) <-- is that wrong?
ner0x has quit [Quit: Leaving]
elaptics is now known as elaptics`away
twoism has joined #ruby
chipotle_ has joined #ruby
<havenwood> fwaokda: Prolly better: "/usr/local/tomcat/app_data/d1mfb/2012/Internet/peoples/DIVISION27.txt".split(File::SEPARATOR).find { |e| e =~ /^\d{4}$/ }; #=> "2012"
Kar- has joined #ruby
Azulinho has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 240 seconds]
srji has joined #ruby
Evixion has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
<havenwood> fwaokda: Also, you might narrow it down a bit to a list of centuries, if that is applicable: /[19|20|21]\d{2}/
rezzack has joined #ruby
bradhe has quit [Remote host closed the connection]
<havenwood> fwaokda: Rather: /^[19|20|21]\d{2}$/
<apeiros> I don't think that regex does what you want it to, havenwood
<havenwood> apeiros: Prolly not, I suck at regex. :P
<havenwood> apeiros: Where'd I go wrong?
<apeiros> [19|20|21] == [0129|]
mocfive_ has joined #ruby
<havenwood> apeiros: gah!
<MrZYX> [] = (?:)
<apeiros> ^ that
<KeiKun> anyone know how to do url shorten? easier version
<havenwood> ahhh
mun has joined #ruby
Lubinski has quit [Quit: Leaving]
fmcgeough has quit [Quit: fmcgeough]
<apeiros> url.chop # url is shorter now
<apeiros> *scnr*
war2 has joined #ruby
bionhart has quit [Remote host closed the connection]
<KeiKun> here's the code im using
obs has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
<KeiKun> github url shorten site is forbidden to be used
c0rn has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby
<KeiKun> i tried to change this "http://git.io/" to others
<KeiKun> didn't work :|
<Apane101> How can I create a URL shortner in rails? any good open source to look into
byprdct has quit [Ping timeout: 264 seconds]
<apeiros> Apane101: you and KeiKun related? :)
<MrZYX> Apane101: I don't think I'd choose rails for that
<KeiKun> huh?
<xybre> Apane101: generate a hash or random token, store the token in the DB, make a dynamic route that looks it up in the DB, when it matches, redirect to the URL.
yann_ck has quit [Quit: Textual IRC Client: www.textualapp.com]
<Apane101> what would you recommend. alternatively?
<xybre> But yeah, Sinatra might be a better choice for that.
jbinto has joined #ruby
<Apane101> xybre makes sense.
war2_ has quit [Ping timeout: 264 seconds]
shinobi_one has quit [Quit: shinobi_one]
<KeiKun> :|
war2_ has joined #ruby
robscomputer_ has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
cj3kim has quit [Remote host closed the connection]
<havenwood> KeiKun: ^ Oops, got confused who asked what. >.>
wmoxam_ has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
robscomputer_ has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
burlyscudd has quit [Quit: Leaving.]
<havenwood> KeiKun: Ooh, i like the idea of Sinatra backed by Redis for a shortener: http://kellishaver.tumblr.com/post/32305079343/simple-url-shortener-with-sinatra-and-redis
war2 has quit [Ping timeout: 251 seconds]
nanothief has joined #ruby
rh1n0 has quit [Quit: -- I'm out --]
<KeiKun> so i can't use this?
bklane has quit [Ping timeout: 248 seconds]
<havenwood> I want to start using Maglev more. With the 1.9 version stable would come out soon!
robscomputer has joined #ruby
<havenwood> s/With/Wish
byprdct has joined #ruby
robscomputer_ has quit [Read error: Connection reset by peer]
pinpin404 has quit [Ping timeout: 264 seconds]
<KeiKun> looking at the code
<KeiKun> i can't find it really wrong :|
<havenwood> A multi-threading friendly (STM) persistent key value store that takes Ruby objects... too perfect.
amedeiro1 has quit [Ping timeout: 276 seconds]
war2 has joined #ruby
war2 has quit [Changing host]
war2 has joined #ruby
joofsh has quit [Remote host closed the connection]
Apane101 has quit []
rippa has quit [Ping timeout: 240 seconds]
Apane101 has joined #ruby
<KeiKun> >_<
war2_ has quit [Ping timeout: 256 seconds]
bklane has joined #ruby
obs has quit [Quit: Konversation terminated!]
slash_nick has quit [Ping timeout: 264 seconds]
Zeeraw has quit [Quit: Computer has gone to sleep.]
shinobi_one has joined #ruby
<xybre> I think tinyURL has an API or something.
workmad3 has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
war2_ has joined #ruby
Zeeraw has joined #ruby
sunya7a has quit [Quit: leaving]
jerius has quit [Ping timeout: 256 seconds]
<KeiKun> hmm
<KeiKun> what tinyurl api?
superscott[8] has quit [Quit: superscott[8]]
danshultz has quit [Remote host closed the connection]
mengu has joined #ruby
sie has quit [Read error: No route to host]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
coder_neo has joined #ruby
<xybre> This is pretty old, but might still be useful: http://scripting.com/stories/2007/06/27/tinyurlHasAnApi.html
Davey has quit [Ping timeout: 276 seconds]
byprdct has joined #ruby
war2 has quit [Ping timeout: 264 seconds]
bubblehead has quit [Ping timeout: 245 seconds]
aetaric has quit [Ping timeout: 240 seconds]
war2_ has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
war2_ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
itsdavem has quit [Remote host closed the connection]
aetaric has joined #ruby
<KeiKun> now whow can i use that :)
bubblehead has joined #ruby
becom33 has quit [Ping timeout: 252 seconds]
kofno has quit [Remote host closed the connection]
itsdavem has joined #ruby
rickruby has joined #ruby
<jnix> so i don't know any programming languages and have heard ruby is not the best choice as first. I figured i'd ask you guys too
<jnix> any thoughts?
<jnix> well, i suppose bash is a programming language, sort of.. i'm proficient with bash
phipes has quit [Quit: phipes]
<Xeago> jnix: ruby is a fine language to learn as your first
mixel has joined #ruby
<jnix> i assumed they're anti-rubyers :)
war2_ has quit [Ping timeout: 248 seconds]
war2 has joined #ruby
<Xeago> who are they?
<jnix> just friends of mine who know python or perl lol
<apeiros> and their rationale?
<jnix> i realy don't know any ruby developers outside of IRC
<jnix> no rationale other than 'ruby sucks'
<xybre> Ruby is fine, there's loads of tutorials and information, videos, screencasts, books, etc.
<jnix> i kinda like it, the minimal stuff i've done with it
<apeiros> k, so they're idiots
<jnix> my masterpeice so far is http://jason-parks.net
jbpros has quit [Quit: jbpros]
<jnix> magical ruby test page lol
gmci has quit [Ping timeout: 248 seconds]
<jnix> any suggestions on first readings?
iamjarvo1 has joined #ruby
<KeiKun> lol
<KeiKun> xybre ruby went error
<KeiKun> :)
superscott[8] has joined #ruby
bionhart has joined #ruby
<jnix> i'd like to do my whole amateur website in ruby just for shits and giggles
<jnix> maybe catch someone at redhat's attention and land a sweet job hehe
<havenwood> jnix: Ruby is an awesome first. Documentation page at ruby-lang has a pretty good list to start off of: http://www.ruby-lang.org/en/documentation/
wesside_ has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<jnix> so is there a lot more to learn before i'm doing rails apps, then?
tomsthumb has quit [Quit: Leaving.]
interactionjaxsn has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
cj3kim has joined #ruby
interactionjaxsn has joined #ruby
<havenwood> Ruby can be used for anything. Nice to learn Ruby before using the Rails framework but seems that a bunch of Rails devs don't. :P
pitzips has quit [Ping timeout: 264 seconds]
<jnix> hehe
leonidlm has joined #ruby
<jnix> well, wish me luck then!
<havenwood> jnix: Rails channel is #RubyOnRails btw. Good luck!
war2 has quit [Ping timeout: 256 seconds]
<jnix> i'll join after i get a little better with ruby perhaps
<havenwood> jnix: Have you gone through TryRuby.org yet?
<jnix> not yet
itsdavem has quit [Remote host closed the connection]
byprdct has quit [Ping timeout: 276 seconds]
SW_ has quit [Remote host closed the connection]
<jnix> ran through the rails tutorial from server-world.info and it looks interesting
Michae___ has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
<havenwood> jnix: If you sign up for a free CodeSchool account it will save your place. They have some other good free tutorials as well. RubyMonk is nice. TreeHouse seems awesome (i think paid only). Take a look at Sinatra and Espresso as well, there are other very nice web frameworks in Ruby.
<jnix> the sad thing is i just wanted to learn how to write a gui to put stuff in a mysql database
Michae___ has joined #ruby
<aedorn> Rake powered systemd! Because "systemctl enable someservice" is just far too complex.
<jnix> i've gone above and beyond that
sailias has quit [Ping timeout: 256 seconds]
<havenwood> jnix: http://www.sinatrarb.com/
<havenwood> jnix: http://espresso.github.io/
mixel has quit [Quit: mixel]
srji_ has joined #ruby
Kar- has quit [Remote host closed the connection]
<jnix> good lord, this is all ruby framework?
mansi has quit [Read error: Connection reset by peer]
<xybre> Oo, espresso's website is pretty.
alvaro_o has quit [Quit: Ex-Chat]
mansi has joined #ruby
<jnix> idk what it is about ruby, maybe because i can somewhat understand what the language is doing
markalanevans has quit [Quit: markalanevans]
jduan1981_ has joined #ruby
jlast has joined #ruby
<KeiKun> it didn't work
<KeiKun> :(
mahmoudi_ has joined #ruby
<jnix> only programming iv'e done is with visual basic heh
<jnix> i can write a fancy calculator
jlast has quit [Remote host closed the connection]
slainer68 has joined #ruby
jduan1981 has quit [Ping timeout: 248 seconds]
jduan1981_ is now known as jduan1981
vlad_starkov has quit [Ping timeout: 264 seconds]
brennanMKE has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Ping timeout: 256 seconds]
bean has quit [Quit: Textual IRC Client: www.textualapp.com]
whowantstolivef1 has joined #ruby
becom33 has joined #ruby
becom33 has quit [Changing host]
becom33 has joined #ruby
viszu has joined #ruby
<xybre> KeiKun: google it, I know one of the url shorteners out there has a decent API.
srji has quit [Ping timeout: 248 seconds]
mahmoudimus has quit [Ping timeout: 248 seconds]
<basti_> I'm trying to get at least some code running, however, all I get is a view. The controller doesn't even appear to get called.
brennanMKE has joined #ruby
alvaro_o has joined #ruby
jbinto has quit [Remote host closed the connection]
<xybre> jnix: I started out on ApplesoftBasic, Ruby is pretty different, but they are both really high level languages.
<KeiKun> though no idea how to code it :|
<KeiKun> need to learn more about it
<basti_> oh
Michae___ has quit [Ping timeout: 256 seconds]
<basti_> can i somehow disable caching?
machuga is now known as machuga|away
<tjbiddle> Anyone have experience with Ruby shoes? Trying to require some gems and running into issues. I have gem 'gem_name' in a Shoes.setup block, but it craps out as it's hosted on an internal repo. Currently setting my GEM_PATH and GEM_HOME to ~/.shoes/+gems but then other things still crap out (I'm assuming it's using a different version of ruby? I have a system installation and rvm)
<hoelzro> basti_: #rubyonrails
Gu_______ has joined #ruby
<basti_> oh
Faris11 has quit [Quit: Faris11]
Gu_______ has quit [Max SendQ exceeded]
<jnix> i'm considering writing a kickstart generato
<jnix> sounds easy enough in theory
<tjbiddle> basti_: Caching is disabled in development btqw
<tjbiddle> But try #rubyonrails
Appineer has quit [Remote host closed the connection]
<basti_> i will
digitalcake has quit [Quit: Leaving.]
sie has joined #ruby
markalanevans has joined #ruby
wolcanus has quit [Ping timeout: 264 seconds]
atmosx has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
cmarques has quit [Ping timeout: 252 seconds]
Eaven has quit [Remote host closed the connection]
Michae___ has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
Michae___ has quit [Remote host closed the connection]
devoldmx has joined #ruby
Michae___ has joined #ruby
ppppaul has joined #ruby
jbinto has joined #ruby
Lulz has quit [Quit: Lost terminal]
Michae___ has quit [Read error: Connection reset by peer]
Micha____ has joined #ruby
kobain has quit [Read error: Connection reset by peer]
kobain has joined #ruby
bionhart has quit [Remote host closed the connection]
viszu has quit [Quit: Leaving.]
<tjbiddle> Is Shoes still the go-to GUI toolkit? Or have there been more developments recently?
sailias has joined #ruby
ldnunes has quit [Quit: Leaving]
viszu has joined #ruby
kobain has quit [Read error: Connection reset by peer]
devoldmx3 has joined #ruby
geggam has quit [Remote host closed the connection]
workmad3 has joined #ruby
havenwood has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kobain has joined #ruby
c0rn has joined #ruby
dash__ has quit [Quit: Time to beer :)]
snearch has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
ebobby has quit [Ping timeout: 248 seconds]
viszu has quit [Client Quit]
bubblehead has quit [Read error: Connection reset by peer]
sailias1 has joined #ruby
<KeiKun> hmm
sailias has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
mljsimone is now known as mljsimone|bnc
<KeiKun> im forcing "@var" to show with [@var] <-- how can i make it?
johnnyfuchs has joined #ruby
bubblehead has joined #ruby
sailias1 is now known as sailias
mocfive has joined #ruby
brennanM_ has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
mocfive_ has quit [Read error: Connection reset by peer]
kobain has quit [Ping timeout: 252 seconds]
viszu has joined #ruby
pitzips has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
Micha____ has quit [Remote host closed the connection]
wmoxam_ has quit [Ping timeout: 260 seconds]
Michae___ has joined #ruby
Michae___ has quit [Read error: Connection reset by peer]
brennanMKE has quit [Ping timeout: 240 seconds]
Michae___ has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
vwoo has joined #ruby
<KeiKun> What >_<
<KeiKun> i can't make a text bold whats wrong with ruby json
mocfive has quit [Read error: Connection reset by peer]
sailias has quit [Quit: Leaving.]
mocfive has joined #ruby
poincare101 has quit [Quit: Leaving.]
Jedi_SCT1 has quit [Quit: See ya]
Michae___ has quit [Remote host closed the connection]
Jedi_SCT1 has joined #ruby
Michae___ has joined #ruby
mocfive has quit [Read error: Connection reset by peer]
<xybre> JSON is plain text, how could it be bold?
mocfive has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
mocfive has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
nomenkun has quit [Remote host closed the connection]
ivanoats has quit [Remote host closed the connection]
ivanoats has joined #ruby
_Renegade has joined #ruby
markalanevans has quit [Quit: markalanevans]
_Renegade has quit [Client Quit]
Micha____ has joined #ruby
visof has joined #ruby
Michae___ has quit [Ping timeout: 256 seconds]
jdunck has quit [Quit: Computer has gone to sleep.]
mocfive_ has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
visof has quit [Max SendQ exceeded]
mocfive_ has quit [Read error: Connection reset by peer]
nezumi has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
r0bby is now known as robbyoconnor
sailias has joined #ruby
r0bby has joined #ruby
elliottcable has joined #ruby
mocfive has quit [Ping timeout: 256 seconds]
Bleah has quit [Ping timeout: 248 seconds]
BSaboia has joined #ruby
johnnyfuchs has quit [Read error: Connection reset by peer]
epochwolf has joined #ruby
itsdavem has joined #ruby
germanstudent has quit [Ping timeout: 240 seconds]
mocfive has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
mxweas has joined #ruby
failshell has quit [Remote host closed the connection]
mrmist is now known as mist
_Renegade has joined #ruby
camilo__ has joined #ruby
_Renegade has quit [Client Quit]
mahmoudi_ is now known as mahmoudimus
_Renegade has joined #ruby
kirun has quit [Quit: Client exiting]
Hanmac has joined #ruby
mxweas has quit [Client Quit]
pipework has quit [Remote host closed the connection]
_Renegade has quit [Client Quit]
Hanmac1 has quit [Ping timeout: 256 seconds]
mindeavor has joined #ruby
jgarvey has quit [Quit: Leaving]
johnnyfuchs has joined #ruby
<atmosx> wow awesome
RORgasm_ has quit [Read error: Operation timed out]
<atmosx> druby puts all client requests on queue before quering the database
<atmosx> that's nice
devoldmx3 has quit [Ping timeout: 256 seconds]
<atmosx> jeez however on low powered systems mysql is sooo slow compared sqlite3
codecop has quit [Remote host closed the connection]
<atmosx> and takes 100% of the CPU too...
<atmosx> I might need to switch to SQLite3 although it's not handy but...
markalanevans has joined #ruby
johnrlive has joined #ruby
kofno has joined #ruby
Zespre has quit [Ping timeout: 248 seconds]
iamjarvo1 has quit [Quit: Leaving.]
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
Zespre has joined #ruby
nfk has quit [Quit: yawn]
tbrock has quit [Quit: Computer has gone to sleep.]
drfreeze_ has joined #ruby
nfk has joined #ruby
kofno has quit [Ping timeout: 260 seconds]
forrest has quit [Quit: Leaving]
nfk has quit [Client Quit]
drfreeze has quit [Ping timeout: 245 seconds]
camilo__ has quit [Remote host closed the connection]
bubblehead has quit [Remote host closed the connection]
rsahae_ has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
devoldmx has joined #ruby
mocfive has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
mocfive has joined #ruby
lunarjar has quit [Ping timeout: 240 seconds]
QKO has quit [Changing host]
QKO has joined #ruby
zaebst has quit [Quit: leaving]
vlad_starkov has joined #ruby
enebo has joined #ruby
nfk has quit [Client Quit]
Zespre has quit [Ping timeout: 260 seconds]
slash_nick has quit [Ping timeout: 248 seconds]
ivanoats_ has joined #ruby
ivanoats_ has quit [Read error: Connection reset by peer]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
takeru has joined #ruby
ivanoats_ has joined #ruby
Zespre has joined #ruby
breakingthings has quit [Quit: breakingthings]
<KeiKun> Hi how can i avoid ruby to do this [05:42:08] -GitBot/#devel - testing
mklappstuhl has quit [Read error: Connection reset by peer]
dukedave has joined #ruby
lunarjar has joined #ruby
mist has quit [Changing host]
mist has joined #ruby
<KeiKun> the channels is in the rightside of the nickname
<dukedave> Anyone suggest a one liner to generate an array of same thing, like [1,1,1,1,1,1]
baordog has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 248 seconds]
ivanoats has quit [Ping timeout: 276 seconds]
jkline has quit [Quit: jkline]
ebobby has joined #ruby
hhtp has joined #ruby
mocfive has quit [Read error: Connection reset by peer]
takeru has quit [Ping timeout: 248 seconds]
kyle____ is now known as kyle__
mocfive has joined #ruby
JZTech101 has joined #ruby
<mindeavor> @dukedave 6.times.map { 1 }
whowantstolivef1 has quit [Ping timeout: 276 seconds]
mist has quit [Changing host]
mist has joined #ruby
Trynemjoel has joined #ruby
itsdavem has quit [Write error: Broken pipe]
sie has quit [Ping timeout: 252 seconds]
cofin has quit [Quit: cofin]
evenix has quit [Remote host closed the connection]
ariedler has joined #ruby
kyle__ has left #ruby [#ruby]
mikeg has joined #ruby
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
jkline has joined #ruby
guns has joined #ruby
rhys has quit [Quit: Leaving]
tommyvyo has quit [Quit:]
F1skr has joined #ruby
jonahR has quit [Quit: jonahR]
ivanoats_ has quit [Read error: Connection reset by peer]
<dukedave> mindeavor, lovely, that's it
<dukedave> thanks
ivanoats has joined #ruby
<mindeavor> np
sahoal has quit [Quit: sahoal]
brotatos has left #ruby ["WeeChat 0.4.1"]
elliottcable has quit [Remote host closed the connection]
rsahae_ has quit [Quit: rsahae_]
<apeiros> mindeavor, dukedave: Array.new(6,1)
ivanoats has quit [Read error: Connection reset by peer]
bionhart has joined #ruby
mocfive has quit [Read error: Connection reset by peer]
Davey has joined #ruby
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
ivanoats has joined #ruby
mocfive has joined #ruby
<apeiros> Array.new(6) { … } # if the object is mutable
johnrlive has quit [Remote host closed the connection]
<atmosx> wow that's amazing apeiros
<atmosx> hmm
devoldmx3 has joined #ruby
<mindeavor> nice one, apeiros
johnrlive has joined #ruby
<atmosx> Anyone read Kevin Poulsen's novel?
<dukedave> On snap
jbinto has quit [Remote host closed the connection]
<atmosx> dukedave: talking to me?
devoldmx has quit [Ping timeout: 256 seconds]
<dukedave> atmosx, no sorry, above convo
tomsthumb has joined #ruby
Micha____ has quit [Remote host closed the connection]
cr3 has quit [Quit: leaving]
Michae___ has joined #ruby
<atmosx> cool
rsahae_ has joined #ruby
<atmosx> Good night all! :-)
atmosx has quit [Quit: And so the story goes…]
jonahR has joined #ruby
jonahR has quit [Client Quit]
Jedi_SCT1 has quit [Quit: See ya]
JMcAfreak has quit [Remote host closed the connection]
tommyvyo has joined #ruby
ppppaul has quit [Ping timeout: 256 seconds]
Michae___ has quit [Ping timeout: 276 seconds]
Jedi_SCT1 has joined #ruby
sailias has quit [Quit: Leaving.]
jokke has quit [Read error: Connection reset by peer]
jokke has joined #ruby
wsterling has quit [Remote host closed the connection]
jdunck has joined #ruby
mklappstuhl has joined #ruby
mocfive has quit [Ping timeout: 276 seconds]
bionhart has quit [Remote host closed the connection]
jdunck has quit [Max SendQ exceeded]
johnnyfuchs has quit [Remote host closed the connection]
srji_ has quit [Ping timeout: 248 seconds]
gasbakid has joined #ruby
ariedler has quit [Remote host closed the connection]
sethetter has quit [Quit: Lost terminal]
mklappstuhl has quit [Read error: Connection reset by peer]
adkron__ has quit [Ping timeout: 240 seconds]
bitcycle has quit [Remote host closed the connection]
adkron_ has joined #ruby
zomgbie has quit [Ping timeout: 245 seconds]
DomKM has joined #ruby
ariedler has joined #ruby
_veer has joined #ruby
ybart has quit [Quit: ybart]
pitzips has quit [Ping timeout: 264 seconds]
echevemaster has quit [Ping timeout: 264 seconds]
basti_ has quit [Quit: leaving]
nezumi has joined #ruby
mocfive has joined #ruby
ivanoats has quit [Read error: Connection reset by peer]
ivanoats_ has joined #ruby
itsdavem has joined #ruby
echevemaster has joined #ruby
echevemaster has joined #ruby
Michae___ has joined #ruby
itsdavem has quit [Remote host closed the connection]
ivanoats_ has quit [Read error: Connection reset by peer]
chrishunt has quit [Quit: So long...]
jduan1981 has quit [Quit: jduan1981]
ivanoats has joined #ruby
justsee has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
tomzx_mac has joined #ruby
gyre007 has joined #ruby
QKO has quit [Read error: No route to host]
mocfive has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
LennyLinux has quit [Remote host closed the connection]
dr_neek has quit [Quit: dr_neek]
QKO has joined #ruby
QKO has quit [Changing host]
QKO has joined #ruby
hhtp has quit [Ping timeout: 248 seconds]
jduan1981 has joined #ruby
Asher has quit [Quit: Leaving.]
ivanoats_ has joined #ruby
ivanoats has quit [Ping timeout: 276 seconds]
solars has joined #ruby
jdunck has joined #ruby
pitzips has joined #ruby
pyx has joined #ruby
nomenkun has joined #ruby
markalanevans has quit [Quit: markalanevans]
pyx has quit [Client Quit]
rsahae_ has quit [Quit: rsahae_]
mocfive_ has joined #ruby
Dekade has joined #ruby
mocfive has quit [Ping timeout: 264 seconds]
germanstudent has joined #ruby
jdunck has quit [Client Quit]
havenwood has joined #ruby
ivanoats has joined #ruby
ntus1017 has quit [Remote host closed the connection]
jsonperl has joined #ruby
InFlames has quit [Quit: This computer has gone to sleep]
ivanthuja has joined #ruby
<jsonperl> quick eventmachine question if i may
<bricker> Isn't there a built-in method for this common pattern? hash.map { |k,v| [v, k] }
mklappstuhl has joined #ruby
nomenkun has quit [Ping timeout: 276 seconds]
<jsonperl> bricker: i don't think so :/
heftig has quit [Quit: Quitting]
akells` has quit [Remote host closed the connection]
becom33 has quit [Ping timeout: 248 seconds]
<bricker> Oh well
jdunck has joined #ruby
<jsonperl> I'm firing logs to syslog w eventmachine. Is it disgusting to EM.defer every log: (a bajillion times.do EM.defer { Syslog.log stuff… }
jdunck has quit [Client Quit]
<havenwood> bricker: Its been proposed as method for 2.1. Its a tiny gem for the moment: https://github.com/havenwood/hashy#readme
mocfive_ has quit [Read error: Connection reset by peer]
<havenwood> bricker: #map_pair
heftig has joined #ruby
mocfive has joined #ruby
mklappst_ has joined #ruby
<havenwood> bricker: def map_pair &block; Hash[map &block] end
ivanoats_ has quit [Ping timeout: 248 seconds]
<bricker> havenwood: Very neat to hear that it's been proposed for 2.1
Nisstyre-laptop has quit [Quit: Leaving]
mansi has quit [Remote host closed the connection]
ivanoats has quit [Ping timeout: 252 seconds]
mocfive has quit [Read error: Connection reset by peer]
gyre008 has joined #ruby
mansi has joined #ruby
mocfive_ has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
ivanoats has joined #ruby
mklappstuhl has quit [Ping timeout: 248 seconds]
ivanthuja has quit [Ping timeout: 276 seconds]
Renich has joined #ruby
<Renich> Hey, Rubyist community!
<Renich> I need help; regarding app installation specifics
InFlames has joined #ruby
vwoo has quit [Quit: Computer has gone to sleep.]
mklappst_ has quit [Ping timeout: 260 seconds]
mansi has quit [Ping timeout: 276 seconds]
zomgbie has joined #ruby
phipes has joined #ruby
<mindeavor> @Renich That's really vague, would you elaborate?
<Renich> for my new sinatra app; should I create a user for it? Should the user be a system user or a regular user? /usr/bin/nologin as it's shell, right? Where should the home be optimally? What about SELinux?
byprdct has joined #ruby
<Renich> also, I am interested in jailing the user with SELinux; as in creating the user with a user context/label...
generalissimo has quit [Remote host closed the connection]
mhahn has joined #ruby
<mhahn> does anyone know how to clear STDIN before reading from it?
vlad_starkov has joined #ruby
<mhahn> use case, script is running, someone might have accidentally typed something, when i ask for input i want to ensure that STDIN.gets is only fetching what they just put in
mklappstuhl has joined #ruby
<apeiros> mhahn: well, you read as much as possible
<apeiros> e.g. via read_nonblock
ivanoats has quit [Ping timeout: 248 seconds]
becom33 has joined #ruby
<apeiros> and/or you use select to test whether there's something to read
becom33 has quit [Changing host]
becom33 has joined #ruby
byprdct has quit [Ping timeout: 256 seconds]
leonidlm has quit [Ping timeout: 260 seconds]
rsahae has joined #ruby
jsonperl has left #ruby [#ruby]
druonysus has quit [Ping timeout: 264 seconds]
Inside has joined #ruby
Inside has joined #ruby
<mhahn> aperios: something like: clear = STDIN.read_nonblock(0)
seitensei has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
arubin has joined #ruby
sahoal has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
MArceLL has joined #ruby
markalanevans has joined #ruby
xardas has quit [Ping timeout: 264 seconds]
kayloos has joined #ruby
harrymoreno has joined #ruby
arya has quit [Ping timeout: 248 seconds]
mklappstuhl has quit [Ping timeout: 248 seconds]
mindeavor has quit [Quit: mindeavor]
`MArceLL` has quit [Ping timeout: 248 seconds]
mrsolo has quit [Quit: Leaving]
alexwh has left #ruby [#ruby]
zomgbie has quit [Ping timeout: 276 seconds]
mklappstuhl has joined #ruby
jdunck has joined #ruby
becom33 has quit [Ping timeout: 256 seconds]
cj3kim has quit [Remote host closed the connection]
kemist has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arya has joined #ruby
Yakko has joined #ruby
kil0byte has quit [Ping timeout: 248 seconds]
mklappst_ has joined #ruby
bitcycle has joined #ruby
kayloos has quit [Read error: Connection reset by peer]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Ortuna has joined #ruby
Evixion has quit []
mklappstuhl has quit [Ping timeout: 260 seconds]
reset has joined #ruby
iamjarvo has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Renich has left #ruby [#ruby]
mocfive_ has quit [Remote host closed the connection]
ivanoats has joined #ruby
tvw has quit []
mocfive has joined #ruby
gasbakid has quit [Quit: Quitte]
shinobi_one has quit [Quit: shinobi_one]
kayloos has joined #ruby
kil0byte has joined #ruby
arya has joined #ruby
cj3kim has joined #ruby
_Renegade has joined #ruby
bklane has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has joined #ruby
ivanoats has quit [Ping timeout: 276 seconds]
KeiKun has quit [Disconnected by services]
KeiKun_ has joined #ruby
nicslim has joined #ruby
arya has quit [Ping timeout: 248 seconds]
kayloos has quit [Remote host closed the connection]
ivanoats has joined #ruby
daniel_- has quit [Read error: Operation timed out]
devoldmx3 has joined #ruby
predator117 has joined #ruby
rsahae has quit [Quit: rsahae]
dukedave has quit [Ping timeout: 245 seconds]
arya has joined #ruby
mklappstuhl has joined #ruby
dik_dak has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
predator217 has quit [Ping timeout: 256 seconds]
dik_dak has quit [Client Quit]
mklappst_ has quit [Ping timeout: 256 seconds]
jonathanwallace has quit [Quit: WeeChat 0.4.0]
ivanoats has quit [Ping timeout: 276 seconds]
steven has joined #ruby
<steven> hm, I am modifying a vagrantfile and was wondering if this was actually ruby " Dir::mkdir("www") unless File.directory?("www")
<steven> not sure, I never used ruby : )
mocfive has quit [Remote host closed the connection]
<apeiros> looks like ruby
arya has quit [Ping timeout: 248 seconds]
<steven> hm since I don
<steven> t really know ruby, can u tell me the equivalent for creating files?
rsahae has joined #ruby
<steven> I just need to make sure this folder exists and contains an empty file
<apeiros> File.touch(path)
<apeiros> creates a file
cburyta has joined #ruby
<steven> oh, thats simple : )
<steven> ty apeiros
<apeiros> oh, wait…
<steven> hm?
<apeiros> ah, that's actually on FileUtils
<apeiros> require 'fileutils'; FileUtils.touch(path)
Guest92643 has quit [Ping timeout: 264 seconds]
<apeiros> (the ; can be replaced with a newline - works the same for both)
<steven> I'll check it out ruby can't be that hard : )
fomatin has joined #ruby
marr has quit [Ping timeout: 256 seconds]
bklane has joined #ruby
Nuck has joined #ruby
<steven> seems like file.exist? and file.exists? are the same?
<steven> just an alias for one another?
Nuck is now known as Guest88359
<apeiros> yes
jonathanwallace has joined #ruby
mansi has joined #ruby
<steven> ok so last one, since it says string I assume touch('folder({file1,file2}') doesn't work?
digitalcake has joined #ruby
<steven> "folder/{f1,f2}" <- thats what I meant :D
justsee has quit [Ping timeout: 260 seconds]
coder_neo has quit [Ping timeout: 256 seconds]
mklappstuhl has quit [Ping timeout: 276 seconds]
mansi has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
mansi has joined #ruby
arya has joined #ruby
awarner has quit [Remote host closed the connection]
solars has quit [Ping timeout: 252 seconds]
sahoal has left #ruby [#ruby]
jkline has quit [Quit: jkline]
sepp2k1 has quit [Quit: Leaving.]
Guest88359 is now known as Nuck
cburyta has quit [Remote host closed the connection]
Nuck has quit [Changing host]
Nuck has joined #ruby
arya has quit [Ping timeout: 248 seconds]
mansi has quit [Ping timeout: 264 seconds]
timkohrumel has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
kil0byte has quit [Ping timeout: 256 seconds]
evenix has joined #ruby
zomgbie has joined #ruby
chrishough has quit [Quit: chrishough]
byprdct has joined #ruby
evenix has quit [Read error: Operation timed out]
jlast has joined #ruby
enebo has quit [Quit: enebo]
spoonman has joined #ruby
arya has joined #ruby
vlad_starkov has joined #ruby
markalanevans has quit [Quit: markalanevans]
kil0byte has joined #ruby