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]
<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]
<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]
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".
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]
<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
<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
<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
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]
<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]
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]
<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]
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
<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?
<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]
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
<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.
<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
<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?
<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.]
<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
<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
<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
<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
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]
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]
<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. :)
<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
<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.
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.
<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]
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 █ 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?
<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