* mantas322
gives volty a box with a blue ribbon on it
* mantas322
"don't open that volty"
_Bravado has quit [Quit: _Bravado]
mantas322 has quit []
bline79_ has joined #ruby
ukd1 has quit [Ping timeout: 272 seconds]
pwh has joined #ruby
mixel has joined #ruby
pwh has quit [Max SendQ exceeded]
pwh has joined #ruby
Biohazard has quit [Ping timeout: 245 seconds]
pwh has quit [Max SendQ exceeded]
pwh has joined #ruby
lmickh has joined #ruby
ravster has quit [Quit: Leaving.]
bio has joined #ruby
havenwood has quit [Remote host closed the connection]
<shevy>
lol
carif has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
k610 has quit [Quit: Leaving]
zewelor has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
Aryasam has quit [Ping timeout: 265 seconds]
frem has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
tvw has quit []
frem has joined #ruby
raul782_ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
raul782_ has joined #ruby
jrhorn424 is now known as zz_jrhorn424
nonamehero has quit [Ping timeout: 245 seconds]
<zewelor>
hi, im trying to make some methods defined based on conditions but I cant get it to work as expected. http://pastebin.com/AgqRhq5M in that case i don't want to class B have that method hello. How can i get it to work ?
Hanmac has quit [Ping timeout: 268 seconds]
<volty>
undef_method
Spami has joined #ruby
shevy has quit [Ping timeout: 260 seconds]
<zewelor>
volty: but i would need to place it in the B class ?
jonr22 has quit [Ping timeout: 253 seconds]
<volty>
of course
<zewelor>
i would preffer some solution that would work inside A class, so i dont have to alter all classes that inherits after A
<volty>
undef_method(:hello) if method_defined?(:hello)
nari has joined #ruby
<zewelor>
i was thinking maybe there is some callback that gets executed later inside A ?
AlSquirrel has joined #ruby
AlSquirrel has quit [Client Quit]
<zewelor>
inherited callback gets executed too soon
thepumpkin has joined #ruby
lewis_ has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
|jemc| has quit [Ping timeout: 272 seconds]
<andrewvos>
What is [[ ! -r in bash?
Ripp__ has joined #ruby
lewis_ has joined #ruby
raul782_ has quit [Ping timeout: 272 seconds]
<andrewvos>
I mean, what is -r in particular
<zewelor>
True if file exists and is readable.
<volty>
#bash
robscomputer has quit [Ping timeout: 268 seconds]
<volty>
zewelor: move that code in A
<volty>
def self.undef_hello(); undef_method(:hello) if method_defined?(:hello); end
dayepa has quit [Quit: dayepa]
danshult_ has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
danshultz has quit [Quit: Coyote finally caught me]
Jabberish has joined #ruby
thepumpkin has quit [Ping timeout: 252 seconds]
dayepa has joined #ruby
nari has quit [Ping timeout: 272 seconds]
jrhe has quit [Quit: jrhe]
lewis_ has quit [Ping timeout: 240 seconds]
danshult_ is now known as danshultz
pel_daniel has left #ruby [#ruby]
VTLob has quit [Quit: VTLob]
Deele has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 265 seconds]
<atlantaman>
have a validation question using ActiveModel::Validations without rails, i have validates_presence_of :from in my class, i instantiate the class without defining :from, and i expect that object.valid? would return false, but it returns true. Code here https://gist.github.com/anonymous/7259192
<volty>
#rubyonrails
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
rraya has quit [Quit: Leaving.]
robscomputer has joined #ruby
<atlantaman>
i am not using rails
<zewelor>
volty: i should define that undef_hello method in A ?
MisutoWolf has joined #ruby
endash has quit [Ping timeout: 272 seconds]
<MisutoWolf>
Hm.
<MisutoWolf>
I dunno if I like mate, at least on my laptop.
<MisutoWolf>
I should look for themes or something.
zz_karupanerura is now known as karupanerura
shevy has joined #ruby
<volty>
zewelor: wherever you want A, B, C // i do not know what you want and what you'll do with your classes
kvirani has left #ruby [#ruby]
<volty>
atlantaman: ActiveModel is in domain of rails' knowledge
lmickh has quit [Quit: lmickh]
<atlantaman>
ok, thanks
<MisutoWolf>
ooh, this isn't bad
Targen has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
ryanRT_ has quit [Quit: Ex-Chat]
hogeo has joined #ruby
tonni has joined #ruby
Guest27067 has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
flagg0204 has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<near89>
the program keeps waiting for the thread to finish
<near89>
it should continue , and the thread work on its own, right?
k610 has quit [Quit: Leaving]
<volty>
keeps waiting where?
psyprus has quit [Read error: Connection reset by peer]
Vendethi_ has quit [Ping timeout: 252 seconds]
psyprus has joined #ruby
earthquake has joined #ruby
soheil has quit [Ping timeout: 265 seconds]
<near89>
i mean
<near89>
the rest of the code keeps waiting for the function to start
<near89>
i mean finish
<near89>
when it should just create a new separate thread
<near89>
and continue without taking much time
tonni has joined #ruby
<volty>
post the code
funburn has joined #ruby
<volty>
paste it somewhere
jaimef has quit [Excess Flood]
jaimef has joined #ruby
mmitchell has quit [Remote host closed the connection]
mois3x has joined #ruby
<mois3x>
hi
BlackPanx_ has joined #ruby
<bnagy>
near89: that what #join _does_ - it waits for a given thread to finish
Bry8Star{T2 has joined #ruby
mrsolo has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
mrsolo has joined #ruby
<near89>
oh so if i want it to work on its own
<near89>
i just remove the join?
<bnagy>
as long as you don't smack into the end of your main thread, yeah
tonni has quit [Ping timeout: 252 seconds]
<volty>
but it gets killed if not finished and your program exits
<bnagy>
a common mistake is to spin a thread and then the main thread just exits
<near89>
I have a while(1) so it wouldnt matter
lukec has quit [Quit: lukec]
<BlackPanx_>
hello everyone. i have currently running application in ruby, and currently there are 3 of them running on my server. i'm not really familiar with mongrel_rails but, is this like a standalone app you can start as many times as you want ?
<BlackPanx_>
currently it's being used only on 3 processors... i wonder if i spawn more of these rails processes, it will distribute to more processors ?
vlad_starkov has joined #ruby
drag00n has joined #ruby
aspiers has joined #ruby
<bnagy>
BlackPanx_: you're probably better off in #rubyonrails
<BlackPanx_>
oh okay
coca_rails has joined #ruby
jeffboek has joined #ruby
terrellt has quit [Ping timeout: 245 seconds]
zz_tsykoduk is now known as tsykoduk
salt_ has quit [Quit: salt_]
endash has quit [Ping timeout: 246 seconds]
atlantaman_ has left #ruby [#ruby]
funburn has quit [Quit: funburn]
rraya1 has left #ruby [#ruby]
yfeldblum has quit [Remote host closed the connection]
lmickh has joined #ruby
jeffboek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lmickh has quit [Client Quit]
bugsinlights has quit [Remote host closed the connection]
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
yfeldblum has joined #ruby
lstefani has quit [Read error: Connection reset by peer]
jonr22 has quit [Ping timeout: 272 seconds]
splittingred has joined #ruby
lstefani has joined #ruby
Hanmac has joined #ruby
pwh has quit [Ping timeout: 268 seconds]
whunt has quit [Quit: Computer has gone to sleep.]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
near89 has quit [Quit: Page closed]
Hanmac1 has quit [Ping timeout: 272 seconds]
alvaro_o has quit [Quit: Ex-Chat]
lukec has joined #ruby
navyant24 has joined #ruby
mixel has quit [Quit: mixel]
volty has quit [Quit: Konversation terminated!]
sriehl has joined #ruby
yfeldblum has quit [Remote host closed the connection]
petey_ has quit [Ping timeout: 246 seconds]
codeFiend has quit [Quit: codeFiend]
whunt has joined #ruby
frem has joined #ruby
navyant24 has quit [Quit: navyant24]
thepumpkin has joined #ruby
jibi has quit [Quit: .]
kirun has quit [Quit: Client exiting]
s3itz has joined #ruby
tonni has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
_maes_ has joined #ruby
splittingred has quit [Quit: splittingred]
thepumpkin has quit [Ping timeout: 264 seconds]
digital-ghost has quit [Remote host closed the connection]
<coca_rails>
Any newbies feel like pairing up on a project with a fellow newbie on a rails project I just started?
freerobby has quit [Quit: Leaving.]
<tomas>
hi, I've got a ruby script that I run via cron, and I get an Fatal: undefined method `empty?' for #<Encoding::UndefinedConversionError:0x000000028f7148> error, script works fine if I call it from within console
aspiers has quit [Ping timeout: 245 seconds]
<tomas>
do I need to set encoding in my cron job or something like that?
ace_striker has quit [Ping timeout: 250 seconds]
robscomputer has joined #ruby
pr0ggie has quit [Ping timeout: 256 seconds]
pdimitrov has quit [Ping timeout: 272 seconds]
r0bby_ has joined #ruby
allaire has joined #ruby
simoz has quit [Ping timeout: 265 seconds]
RORgasm has joined #ruby
zz_tsykoduk is now known as tsykoduk
nwertman has joined #ruby
rurufufuss has joined #ruby
<bnagy>
make sure cron is running the same ruby version as your user account
Lewix has quit [Remote host closed the connection]
RORgasm has quit [Ping timeout: 246 seconds]
pwh has joined #ruby
nwertman has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
drag00n has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
r0bby_ has quit [Ping timeout: 265 seconds]
yacks has joined #ruby
justsee has joined #ruby
<tomas>
bnagy: thanks, there's only 1 version on the system
<tomas>
(I don't use rvm)
<tomas>
there are multiple files that script is processing, and it works on all but one, if I run it manually it works on all
nucatus has joined #ruby
pr0ggie has joined #ruby
<tomas>
I'll try encoding the files to ascii
pdimitrov has joined #ruby
mrsolo has joined #ruby
<bnagy>
weird
<bnagy>
I would dump RbConfig::CONFIG to a file from both invocations and diff them
<tomas>
bnagy: can I run this via command line like: ruby -c "dump RbConfig::CONFIG" ?
<bnagy>
yeah, ruby -e
Shidash has joined #ruby
<bnagy>
yeah, ruby -e 'puts 'RbConfig::CONFIG.to_a' should do it
<passbe>
guys im doing a map like such > map{|p| { id:p.id, field:p.extra.field } }, how can i do a map that uses the p.id as the key to the returning hash, so instead of this [{id, field}, {id, field}] i get [id => [field, field], id => [field, field]]
jonr22 has joined #ruby
sevenseacat has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
havenwood has joined #ruby
DanBoy has quit [Remote host closed the connection]
markus- has joined #ruby
DanBoy has joined #ruby
hiyosi has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
cina has joined #ruby
<Sp4rKy>
passbe: why two "field" in the list ?
jhaals has joined #ruby
DanKnox is now known as DanKnox_away
diegoviola has joined #ruby
noname001 has joined #ruby
markus- has quit [Client Quit]
jonr22 has quit [Ping timeout: 268 seconds]
<passbe>
Sp4rKy: because i need to do some calculations on it like that ? :S
<bnagy>
passbe: check out Enumerable#group_by
<passbe>
bnagy: checking...
michael_mbp is now known as zz_michael_mbp
nucatus has joined #ruby
<apeiros>
passbe: Sp4rKy asks because your question makes no sense like this. in your first example there's only one `field`, in your second it's suddenly two.
hiyosi has quit [Read error: Operation timed out]
<apeiros>
and it's entirely not clear how you go from one to two.
Hanmac has joined #ruby
<apeiros>
example in-/output would go a long way…
<Sp4rKy>
:)
jalcine has quit [Excess Flood]
coca_rails has joined #ruby
jhaals has quit [Ping timeout: 272 seconds]
Heero has quit [Ping timeout: 260 seconds]
<passbe>
ok sorry, i have this input (id|field) 253623299|9999 253623299|20 370453947|2 370453947|28
<passbe>
and id like to get to here: {253623299 => [9999, 20], 370453947 => [2, 28]}
<passbe>
group_by is very close but im coming from an object, so i need to pluck the attribute out
jhaals has joined #ruby
Xeago_ has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
<bnagy>
huild h = Hash.new {|h,k| h[k] = []} then just turn that into an array of [id,thing] and each {|id,f| hsh[id] << f}
<bnagy>
*build
nucatus has quit [Ping timeout: 272 seconds]
nomenkun has joined #ruby
<passbe>
hmm ok was hoping I could do it inside a single map but that'll should work, lets see
coca_rails has quit [Ping timeout: 272 seconds]
soheil_ has joined #ruby
emdub has quit [Remote host closed the connection]
h_kon has quit [Remote host closed the connection]
jbpros has joined #ruby
h_kon has joined #ruby
<wald0_>
so i cannot get the parent class from an object itself?
<MrZYX>
didn't I just show you how?
sepp2k has joined #ruby
<MrZYX>
btw. what are you really trying to solve here? what's your underlying problem?
Scient has joined #ruby
<wald0_>
no problem, just learning ruby
<wald0_>
objects are nice but i find it a bit confusing :), i assume that is just lack of practice/assimilation
<wald0_>
OO, i mean
<wald0_>
ah, class.superclass, right, thx
<wald0_>
and if i want the parent of the parent? class.superclass.superclass?
<MrZYX>
yup
cina has quit [Read error: No route to host]
<MrZYX>
also check .ancestors
neonlex has quit []
h_kon has quit [Ping timeout: 272 seconds]
Xeago has quit [Remote host closed the connection]
h_kon has joined #ruby
ldnunes has joined #ruby
cina has joined #ruby
kitak_ has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
m8 has joined #ruby
ph8 has joined #ruby
<Hanmac>
and maybe also check: object.singleton_class.ancestors
<dominikh>
and check clean designs in which you don't need to know your grandfather :P
jbpros has quit [Quit: jbpros]
timonv has joined #ruby
deegen has quit [Ping timeout: 252 seconds]
deegen has joined #ruby
noop has quit [Ping timeout: 246 seconds]
<wald0_>
arf, this is frustrating, 10 years making anything in bash and im unable to do a simple "if" or to get a value from user input in ruby just because i have not asimilated/remember the code
coca_rails has quit [Ping timeout: 260 seconds]
<wald0_>
i should write more and read less :/
mojjojo has joined #ruby
neonlex has joined #ruby
<joonty>
there's no such thing as simple in bash
cina has quit [Quit: Reconnecting]
picca has joined #ruby
cina has joined #ruby
picca has left #ruby [#ruby]
RORgasm has joined #ruby
mlpinit has joined #ruby
<wald0_>
joonty: sorry, not gotcha, you mean that bash is very simple?
<wald0_>
mmh, im a bit confused, if i define "bark" inside a Dog class, i directly can use bark without call the object, what if my snakes can bark too? what "bark" will trigger?
cina has quit [Remote host closed the connection]
<joonty>
wald0_: imo bash takes simple concepts and makes them annoyingly convoluted
DouweM has quit [Quit: Leaving...]
cina has joined #ruby
mengu has joined #ruby
<tobiasvl>
wald0_: what do you mean you can "use bark without call the object"? and if your snakes can bark too, that doesn't interfere with the dogs' bark, because they don't inherit from each other
<joonty>
is my variable set? I don't know, unless i do `if [ -n "$var" ]` or something :|
noop has joined #ruby
jonr22 has joined #ruby
<wald0_>
joonty: i think that this is good and bad at the same time
salt_ has joined #ruby
RORgasm has quit [Ping timeout: 272 seconds]
braincrash has quit [Ping timeout: 252 seconds]
salt_ has quit [Client Quit]
<Hanmac>
wald0_ if your snakes does bark something is very wrong! ;P
<tobiasvl>
Hanmac: hey, he probably didn't decide the business model ;)
pdimitrov has quit [Ping timeout: 252 seconds]
pr0ggie has quit [Ping timeout: 272 seconds]
lucazi has joined #ruby
camilasa_ has quit [Remote host closed the connection]
<atmosx>
you later assign values to these two spots?
<atmosx>
but you can add more to it..
<tobiasvl>
you do exactly what you want :)
<atmosx>
hm, okay. I thought it was some sort of lockout like "this array will not exceed 2 elements"
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx>
anywya
<atmosx>
k
karupanerura is now known as zz_karupanerura
falood has quit [Remote host closed the connection]
falood has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
OdNairy has joined #ruby
postmodern has quit [Quit: Leaving]
krz has quit [Ping timeout: 240 seconds]
jenskarlsen has quit [Quit: jenskarlsen]
falood has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
hiall has joined #ruby
krz has joined #ruby
deegen has quit [Ping timeout: 272 seconds]
deegen has joined #ruby
ldnunes has joined #ruby
blackmesa has joined #ruby
skaflem has quit [Quit: This computer has gone to sleep]
soheil has joined #ruby
<wald0_>
how i can do this? puts "Im a dog and i can " + lassie.bark + " loud"
<MrZYX>
you're already doing it?
jbpros has joined #ruby
chinychinchin has joined #ruby
<wald0_>
mmh, it says that i can't convert nil to a string
<MrZYX>
well then your method bark returns nil
<wald0_>
its defined to puts "woof!"
camilasan has quit [Remote host closed the connection]
camilasa_ has joined #ruby
<MrZYX>
and puts returns nil, puts being the last expression in your method, it's return value is your methods return value
ArchBeOS has joined #ruby
soheil has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
<MrZYX>
*its
<wald0_>
hum, i see
<Cork>
def column(arr, &block) end <-- how would one do if i wanted it to allow an call with array like: column(value, value) {} ?
<Cork>
(meaning implicit array)
<MrZYX>
*arr
<Cork>
thx
Hanmac1 has joined #ruby
deegen has quit [Read error: Connection reset by peer]
deegen has joined #ruby
krz has quit [Ping timeout: 264 seconds]
danshultz has joined #ruby
noop has quit [Ping timeout: 260 seconds]
jbpros has quit [Quit: jbpros]
lstefani has quit [Ping timeout: 245 seconds]
<wald0_>
now i can use it also as "text #{lassie.bark} foo bar", what's the difference between this way and the previous said with the + ?
Hanmac has quit [Ping timeout: 252 seconds]
parzo_ has joined #ruby
<MrZYX>
#{} calls to_s on the expression inside it and also creates less string objects
<wald0_>
this one acts like a call instead of a variable call, mmmh, all these things looks very nice, i think that im very familiarized with C where everything is much more "stricted"
ctp_ has quit [Quit: Leaving...]
Banistergalaxy has joined #ruby
deegen has quit [Read error: Connection reset by peer]
parzo has quit [Ping timeout: 265 seconds]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
deegen has joined #ruby
joonty_ has joined #ruby
popl has quit [Ping timeout: 240 seconds]
tewmten has quit [Ping timeout: 264 seconds]
ulik has quit [Ping timeout: 257 seconds]
lstefani has joined #ruby
joonty has quit [Ping timeout: 272 seconds]
geekbri has joined #ruby
thyagobr has joined #ruby
thecopy has joined #ruby
deegen has quit [Ping timeout: 241 seconds]
thecopy has quit [Quit: thecopy]
thecopy has joined #ruby
tvw has joined #ruby
mist has quit [Quit: Reconnecting]
jbpros has joined #ruby
mrmist has joined #ruby
mrmist has quit [Quit: leaving]
brtdv has joined #ruby
jbpros has quit [Client Quit]
mrmist has joined #ruby
mrmist is now known as mist
coderhs has joined #ruby
pu22l3r has joined #ruby
ctp_ has joined #ruby
nateberkopec has joined #ruby
coca_rails has joined #ruby
deegen has joined #ruby
AndChat| has joined #ruby
RubNoob has joined #ruby
parzo has joined #ruby
<RubNoob>
good morning - cany anyone provide me with a good tutorial on how to handle monthly-on-anniversary-date recurring tasks?
neonlex has quit []
<RubNoob>
for instance, if I want to bill a user monthly on their anniversary date, and I have the anniversary_date available to me, how can I perform a check as to whether they should be billed if I have a task that runs daily?
coca_rails has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
<thyagobr>
You
<RubNoob>
specifically, the issue I'm running into is how to handle a situation like if the user signs up on day 31 of one month - in those months that do not have 31 days, if I strictly relied on the day, I would miss billing them on those months
lkba has quit [Ping timeout: 265 seconds]
<thyagobr>
could try Sidekiq gem
thecopy_ has joined #ruby
<RubNoob>
thyagobr the issue is not how to run the biling task every day - the issue I'm having is how to handle determining whether the user should be billed or not based on a date provided by "anniversary_date"
sixteneighty has quit [Ping timeout: 245 seconds]
parzo_ has quit [Ping timeout: 272 seconds]
thecopy has quit [Ping timeout: 260 seconds]
thecopy_ is now known as thecopy
salt_ has quit [Quit: salt_]
Czupa has quit [Remote host closed the connection]
vpretzel has joined #ruby
ArchBeOS has quit [Remote host closed the connection]
brtdv has quit []
raphaelivan has joined #ruby
ArchBeOS has joined #ruby
tharindu has quit [Quit: Leaving...]
pdimitrov has quit [Ping timeout: 272 seconds]
pr0ggie has quit [Ping timeout: 272 seconds]
pdimitrov has joined #ruby
pr0ggie has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
jonr22 has quit [Remote host closed the connection]
<thyagobr>
I dont understand. Are you having trouble compairing the date on a database with, say Time.now or something like that?
<MrZYX>
he left
joonty_ is now known as joonty
BizarreCake has joined #ruby
<thyagobr>
ouch - distracted with work :P
sixteneighty has joined #ruby
dr_bob has joined #ruby
dr_bob has left #ruby [#ruby]
jonr22 has quit [Ping timeout: 260 seconds]
lucazi has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
colonolGron has joined #ruby
soba has quit [Ping timeout: 246 seconds]
thepumpkin has joined #ruby
Xeago has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
bal1 has joined #ruby
bal1 has left #ruby [#ruby]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
rdnsget has joined #ruby
rdnsget has left #ruby [#ruby]
deegen has quit [Ping timeout: 240 seconds]
juo_ is now known as juo
deegen has joined #ruby
jamblack has quit [Quit: jamblack]
havenwood has joined #ruby
shredding has quit [Quit: shredding]
Clooth has joined #ruby
thepumpkin has quit [Ping timeout: 264 seconds]
shredding has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
pyrac has joined #ruby
stringoO has joined #ruby
ehc has joined #ruby
ffranz has joined #ruby
michael_mbp is now known as zz_michael_mbp
jcromartie has joined #ruby
kaldrenon has joined #ruby
Mitchellvanw has joined #ruby
mark_locklear has joined #ruby
Hanmac has joined #ruby
DanBoy has quit [Remote host closed the connection]
DanBoy has joined #ruby
soheil has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
gasbakid has joined #ruby
jkamenik has joined #ruby
sailias has joined #ruby
Mitchellvanw has quit [Read error: Connection reset by peer]
gasbakid has quit [Max SendQ exceeded]
soheil has quit [Ping timeout: 259 seconds]
fgo has quit [Remote host closed the connection]
gtkkkk has joined #ruby
timonv has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
larissa has joined #ruby
Mitchellvanw has joined #ruby
Clooth has quit [Quit: Leaving...]
wchun has quit [Quit: Leaving]
jrhe has quit [Quit: jrhe]
gtkkkk has left #ruby ["Leaving"]
<atmosx>
I have a list of hashes like this: {0=>{:card=>"2 Diamonds", :value=>2}, 1=>{:card=>"J Hearts", :value=>10}, 2=>{:card=>"0 Spades", :value=>0}} ... with a[0][:value].class = fixnum. How can I create a sum automatically? I know I can iterate through and add the values. But is there any way to do it in 1 line?
jamblack has joined #ruby
Clooth has joined #ruby
nari has joined #ruby
hiyosi has quit [Quit: WeeChat 0.4.1]
krawchyk has joined #ruby
Mitchellvanw has quit [Quit: Dozing off...]
allaire has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
<MrZYX>
hmm hash.values.map {|card| card[:value] }.inject(:+) I guess
jlebrech has joined #ruby
oponder has joined #ruby
pyrac has quit [Ping timeout: 240 seconds]
splittingred has joined #ruby
splittingred has quit [Client Quit]
mmitchell has joined #ruby
skaflem has joined #ruby
jeffboek has joined #ruby
pdimitrov has quit [Read error: Operation timed out]
<atmosx>
didn't knew you can access values in a hash like that, interesting.
<atmosx>
seems like ruby is infinite
<atmosx>
thanks MrZYX
pdimitrov has joined #ruby
coca_rails has joined #ruby
jlast has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
masher has quit [Remote host closed the connection]
pr0ggie has quit [Ping timeout: 272 seconds]
ctp_ has quit [Quit: Leaving...]
pr0ggie has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 260 seconds]
<SteveBenner9>
the performancew will be higher than way FYI
justsee has joined #ruby
<SteveBenner9>
atmosx: if you didn't know, the argument given to inject is basically running 'to_proc' on the plus symbol, calling that as a method each iteration, as opposed to the alternative of passing a block to inject
justsee has quit [Changing host]
justsee has joined #ruby
Hanmac1 has joined #ruby
mengu has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
<atmosx>
yeah I actually create a method to handle special cases also, but nope I didn't knew.
mengu has joined #ruby
coca_rails has quit [Ping timeout: 240 seconds]
nonamehero has quit [Ping timeout: 245 seconds]
<SteveBenner9>
ruby is awesome :)
cody-- has joined #ruby
<atmosx>
SteveBenner9: these concepts are hard for me to grasp.
<atmosx>
but I'm working on it heh
Hanmac has quit [Ping timeout: 265 seconds]
jerius has joined #ruby
pskosinski has joined #ruby
niklasb has joined #ruby
wchun has joined #ruby
allsystemsarego has joined #ruby
ananthakumaran1 has quit [Ping timeout: 240 seconds]
jonr22 has joined #ruby
mengu has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
brtdv has joined #ruby
ananthakumaran has joined #ruby
juo is now known as juo_
juo_ is now known as juo__
nonamehero has joined #ruby
nonamehero has joined #ruby
nonamehero has quit [Changing host]
RORgasm has joined #ruby
juo__ is now known as juo___
juo___ is now known as juo
hamed_r has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
nucatus has joined #ruby
RORgasm has quit [Ping timeout: 272 seconds]
jonr22 has joined #ruby
colonolGron has quit [Quit: Lost terminal]
mengu has joined #ruby
nateberkopec has quit [Quit: Leaving...]
jeffboek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snuffeluffegus has joined #ruby
snuffeluffegus has quit [Remote host closed the connection]
<shaileshg_>
Xeago: you know of any library which has implemented it
<shaileshg_>
?
<Xeago>
nope, doesn't seem too hard to implement regardless
havenwood has joined #ruby
<Xeago>
some xml nodes with some values in them, where the values are cryptographically derived, meaning you shouldn't do much
jrhe has quit [Quit: jrhe]
psyl0n has joined #ruby
nisstyre has joined #ruby
interactionjaxsn has joined #ruby
jrhe has joined #ruby
araujo_ has joined #ruby
jonr22 has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
vlad_sta_ has quit [Ping timeout: 264 seconds]
<shaileshg_>
Xeago: digest calculation is okay.. but when it comes to Calculate and insert signature value, sometimes it doest work
jibi has joined #ruby
<shaileshg_>
I was thinking of any off the shelf available gem..
<shaileshg_>
Let me try..
rdnsget has joined #ruby
rdnsget has left #ruby [#ruby]
temwten has joined #ruby
temwten has quit [Client Quit]
salt_ has joined #ruby
bean__ has joined #ruby
tewmten has joined #ruby
deegen has quit [Ping timeout: 264 seconds]
D4T has quit [Ping timeout: 264 seconds]
deegen has joined #ruby
coca_rails has joined #ruby
alse has joined #ruby
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
cpruitt has joined #ruby
D4T has joined #ruby
nateberkopec has joined #ruby
ctp_ has joined #ruby
tomzx_mac has quit [Ping timeout: 272 seconds]
oponder has quit [Remote host closed the connection]
jonr22 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mrsolo has joined #ruby
pwh has quit []
klaut has joined #ruby
Guest9448 has quit [Ping timeout: 240 seconds]
ctp_ has quit [Ping timeout: 260 seconds]
sambao21 has joined #ruby
freakazoid0223 has joined #ruby
sambao21 has quit [Client Quit]
jonathanwallace has joined #ruby
vinnyOcean has joined #ruby
momomomomo has joined #ruby
jonathanwallace has quit [Client Quit]
robscomputer has joined #ruby
xk_id has quit [Quit:
zarubin has joined #ruby
OdNairy has joined #ruby
jonathanwallace has joined #ruby
CreativeEmbassy has joined #ruby
terrellt has joined #ruby
duggiefresh has joined #ruby
<platzhirsch>
It is not possible to define for a let helper method in RSpec additional parameters, is it?
dhilipsiva has quit [Remote host closed the connection]
araujo_ is now known as araujo
<platzhirsch>
let(:method) { |a,b,c| ... }
jamblack has quit [Quit: jamblack]
araujo is now known as Guest54701
Guest54701 is now known as araujo
<platzhirsch>
I guess in this case you simply define a method, although I don't quite see the difference to let then
araujo has quit [Changing host]
araujo has joined #ruby
bugsinlights has joined #ruby
sambao21 has joined #ruby
mgorbach has joined #ruby
mhodgson has quit [Ping timeout: 240 seconds]
thyagobr has quit [Ping timeout: 272 seconds]
duggiefresh has quit [Remote host closed the connection]
duggiefresh has joined #ruby
thepumpkin has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
theRoUS has joined #ruby
jamblack has joined #ruby
aspires has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
juan__ has joined #ruby
noname001 has quit [Remote host closed the connection]
juan_ has quit [Read error: Connection reset by peer]
ryanRT has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
Kamuela has joined #ruby
<Kamuela>
best tutorial to learn ruby? i'm looking at learn ruby the hard way. i'd love somthing similar to learn python the hard way in terms of short examples and typing a lot
hogeo has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
e-dard has joined #ruby
<e-dard>
Hi, does anyone in here know how to get PG gem to use protocol-level prepared statements?
noname001 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
jonr22 has joined #ruby
tharindu has quit [Quit: Leaving...]
mrsolo has joined #ruby
io_syl has joined #ruby
timonv has joined #ruby
kreeves has joined #ruby
hogeo has quit [Ping timeout: 264 seconds]
notjohn has quit [Quit: notjohn]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
notjohn has joined #ruby
jonr22 has quit [Remote host closed the connection]
xk_id has joined #ruby
ctp_ has joined #ruby
coca_rails has quit [Ping timeout: 240 seconds]
ctp- has joined #ruby
ctp_ has quit [Read error: Connection reset by peer]
svankie has joined #ruby
svankie has left #ruby [#ruby]
timonv has quit [Ping timeout: 272 seconds]
freezey has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
Dave is now known as Guest62242
johnnyfuchs has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
DanBoy has quit [Ping timeout: 240 seconds]
soheil has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
DanBoy has joined #ruby
Zeeraw has joined #ruby
codezomb has joined #ruby
|jemc| has quit [Read error: Operation timed out]
soheil has quit [Ping timeout: 246 seconds]
cody-- has joined #ruby
Zeeraw has quit [Client Quit]
gazarsgo has joined #ruby
phantasm66 has joined #ruby
<gazarsgo>
i'm trying to sudo gem install mysql and i get a ascii 8bit can't be converted to UTF-8 error, am i using a deprecated gem ?
coca_rails has joined #ruby
Stygia has joined #ruby
deegen has quit [Ping timeout: 240 seconds]
pyrac has joined #ruby
allaire has quit []
deegen has joined #ruby
mengu has quit [Remote host closed the connection]
elux has joined #ruby
Czupa has joined #ruby
zeade has quit [Quit: Leaving.]
coca_rails has quit [Read error: Operation timed out]
enebo has joined #ruby
<terrellt>
gazarsgo: I'm not sure that's why you're getting the error, but yes. Try mysql2.
wallerdev has joined #ruby
<gazarsgo>
got the same error w/ mysql2 :(
<gazarsgo>
i have to tell the gem where my mysql lib (to link against) is ?
mary5030 has joined #ruby
<MrZYX>
maybe, try without first
ner0x has joined #ruby
parzo_ has joined #ruby
<gazarsgo>
trying with bundler now because i suck at ruby
parzo has quit [Read error: Connection reset by peer]
noname001 has quit [Remote host closed the connection]
ananthakumaran1 has quit [Quit: Leaving.]
momomomomo has quit [Quit: momomomomo]
mengu has joined #ruby
aef has joined #ruby
<gazarsgo>
looks like i'm going now, thanks
jeffboek has joined #ruby
stkowski has joined #ruby
noname001 has joined #ruby
aef has quit [Remote host closed the connection]
Hanmac has joined #ruby
aef has joined #ruby
mahlon has quit [Quit: nine foot long outhouse ladle]
Hanmac1 has quit [Ping timeout: 272 seconds]
Aryasam has joined #ruby
momomomomo has joined #ruby
leonidlm has joined #ruby
iamjarvo_ has joined #ruby
baroquebobcat has joined #ruby
tagrudev has quit [Remote host closed the connection]
bugsinlights has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
|jemc| has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Ping timeout: 272 seconds]
aryaching has joined #ruby
ged has quit [Quit: WeeChat 0.4.1]
chineduu has joined #ruby
OdNairy has joined #ruby
axl_ has joined #ruby
pyrac has quit [Quit: pyrac]
stkowski is now known as perlphil
yvemath has joined #ruby
RORgasm has joined #ruby
lsmola has quit [Ping timeout: 264 seconds]
ocfx__ has quit [Quit: Lost terminal]
chinychinchin has quit [Ping timeout: 246 seconds]
iaj has quit [Ping timeout: 264 seconds]
Aryasam has quit [Quit: Bye]
blackmesa has joined #ruby
chineduu_ has joined #ruby
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
iaj has joined #ruby
chineduu has quit [Ping timeout: 264 seconds]
vpretzel has quit [Ping timeout: 246 seconds]
benwoody has joined #ruby
_maes_ has joined #ruby
<shevy>
ack
salt_ has left #ruby [#ruby]
<shevy>
Hanmac, look! bundler solved a problem! ^^^
<Hanmac>
huch? how did that happen? ;D
<shevy>
Kamuela this one -> http://pine.fm/LearnToProgram/?Chapter=00 afterwards you must answer the question "How and why is yield used in Ruby?", all who worked through the tutorial can answer that
<shevy>
Hanmac sheer luck :D
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
maletor has joined #ruby
mrsolo has joined #ruby
yvemath has quit [Quit: It only takes a moment to hate someone, but it takes forever to love. :dropping_tears :: Gimme a tissue paper or a hand ?]
pyrac has joined #ruby
freezey has quit [Remote host closed the connection]
g0bl1n has joined #ruby
freezey has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
arietis has quit [Quit: Computer has gone to sleep.]
relix has quit [Read error: Connection reset by peer]
whunt has quit [Quit: Computer has gone to sleep.]
notjohn has joined #ruby
saarinen has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
elux has quit [Quit: Leaving...]
shaunbaker has joined #ruby
_maes_ has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
rdnsget has joined #ruby
rdnsget has left #ruby [#ruby]
Fire-Dragon-DoL has joined #ruby
chinychinchin has quit [Read error: Operation timed out]
brianpWins has joined #ruby
saarinen has joined #ruby
keen_____ has joined #ruby
shaunbaker has quit [Ping timeout: 240 seconds]
keen____ has quit [Ping timeout: 240 seconds]
virtual|home has joined #ruby
<havenwood>
I really like methods returning a Symbol in 2.1, I don't use it for anything but for some reason find it pleasant
chinychinchin has joined #ruby
znode has joined #ruby
mojjojo has quit [Read error: Operation timed out]
DaniG2k has joined #ruby
soheil has joined #ruby
<DaniG2k>
whats up peeps
anderson has quit [Quit: Leaving]
mojjojo has joined #ruby
wallerdev has joined #ruby
mercwithamouth has joined #ruby
anderson has joined #ruby
jkhwan has joined #ruby
<havenwood>
FRIDAY \o/
Davey has joined #ruby
<DaniG2k>
havenwood: WOHOO!!!
yfeldblu_ has joined #ruby
terrellt has joined #ruby
duggiefresh has joined #ruby
Liquid-- has quit [Quit: Computer has gone to sleep.]
larissa has quit [Ping timeout: 272 seconds]
whunt has joined #ruby
aryaching_ has quit [Ping timeout: 261 seconds]
znode has quit [Ping timeout: 240 seconds]
rurufufuss-away has quit [Ping timeout: 245 seconds]
freezey has quit [Remote host closed the connection]
maletor has joined #ruby
soheil has quit [Ping timeout: 240 seconds]
io_syl has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
yekta has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wca has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
digital-ghost has joined #ruby
<wca>
hi. is there a good way to tune GC behavior? I have a FFI::MemoryPointer that appears to be getting GC'd (C function returns EFAULT when using it, after several uses), despite being in active use. :-/
smathieu has joined #ruby
Targen has joined #ruby
m0no has quit [Quit: leaving]
sambao21 has joined #ruby
noname001 has quit [Read error: Operation timed out]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zoo-zed has quit [Remote host closed the connection]
zoo-zed has joined #ruby
<D4T>
havenwood: ok thanks :)
TMM has quit [Quit: Ex-Chat]
IcyDragon has joined #ruby
<shevy>
hmm guys
timonv has quit [Write error: Broken pipe]
<shevy>
is it possible to require a project, a module called Foo, like: require 'foo', but to also automatically do include Foo, based on the require line alone?
mrsolo has joined #ruby
bigkevmcd has quit [Quit: outta here]
IceDragon has quit [Ping timeout: 246 seconds]
camilasa_ has quit []
vpretzel has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 252 seconds]
jkhwan has quit [Remote host closed the connection]
vpretzel has joined #ruby
zoo-zed has quit [Client Quit]
<existensil>
that's kind of how autoload works, no?
jkhwan has joined #ruby
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<existensil>
nvm. i guess that's not actually including the module, just nesting
zoo-zed has joined #ruby
keen_____ has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
zoo-zed has quit [Client Quit]
Voodoofish430 has joined #ruby
einarj has quit [Remote host closed the connection]
jamblack has quit [Quit: jamblack]
bean__ has joined #ruby
habanany has joined #ruby
habanany has quit [Client Quit]
heidi has quit [Quit: Leaving.]
ghr has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Ping timeout: 246 seconds]
vpretzel has quit [Ping timeout: 272 seconds]
<havenwood>
shevy: def require_and_include this; require this.to_s; begin; include Module.const_get this.to_s.capitalize; rescue NameError; include Module.const_get this.to_s.upcase end end; require_and_include 'json'; dump 'test'
jkhwan has quit [Ping timeout: 272 seconds]
<havenwood>
shevy: :P
saarinen has quit [Read error: Connection reset by peer]
<havenwood>
>> def require_and_include this; require this.to_s; begin; include Module.const_get this.to_s.capitalize; rescue NameError; include Module.const_get this.to_s.upcase end end; require_and_include 'json'; dump 'test'
<havenwood>
shevy: (tries to include all modules that came into the object space with the gem, could pair it down to just modules that downcased match the gem name, if that is preferred.
monkegjinni has joined #ruby
vpretzel has joined #ruby
<havenwood>
)
iamjarvo has quit [Remote host closed the connection]
Kamuela has quit [Read error: Connection reset by peer]
ehc has quit [Quit: ehc]
iamjarvo has joined #ruby
<havenwood>
>.>
<inad922>
Could someone tell me how should I set the headers with a request with RestClient from the rest-client package?
c0rn has joined #ruby
vlad_starkov has joined #ruby
<havenwood>
near89: gem install tire
jkhwan has joined #ruby
jonathanwallace has joined #ruby
tvw has joined #ruby
cina has quit [Quit: leaving]
<havenwood>
near89: find to ask here, but just a heads-up there is #jruby too
<near89>
oh thanks!
<havenwood>
near89: Assuming `gem install tire` didn't work somehow?
iamjarvo_ has joined #ruby
rezzack has joined #ruby
<near89>
no, its actually jruby -S gem install tire
iamjarvo has quit [Remote host closed the connection]
<near89>
im trying to use jruby because ruby is too slow
<near89>
and i don't want to change the language :S
aganov has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
<near89>
is there some way to do this? or to speed up ruby?
<near89>
its reading a large file and parsing data
timonv has quit [Remote host closed the connection]
<near89>
and then using the gem to upload the data to elasticsearch a search engine
sambao21 has quit [Quit: Computer has gone to sleep.]
adeponte has joined #ruby
timonv has joined #ruby
thepumpkin has joined #ruby
werdnativ has joined #ruby
lsmola has quit [Ping timeout: 264 seconds]
interactionjaxsn has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
zeade has joined #ruby
<shevy>
havenwood, a moment, just was eating downstairs in the kitchen, need to get my brain back into activity mode
larissa has joined #ruby
interactionjaxsn has joined #ruby
Akuma has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
sambao21 has joined #ruby
moted has quit [Quit: moted]
iliketurtles has joined #ruby
timonv has quit [Ping timeout: 241 seconds]
moted has joined #ruby
lfox has quit [Quit: ZZZzzz…]
iamjarvo_ has quit [Read error: Connection reset by peer]
fgo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<near89>
is there an alternative to jruby?
<near89>
that is fast and can use gems?
interactionjaxsn has quit [Ping timeout: 245 seconds]
<terrellt>
Rubinius 2 is supposed to be pretty good, but last time I tried it was a hassle getting it to work with rbenv.
interactionjaxsn has joined #ruby
Hanmac has joined #ruby
i_s has joined #ruby
monkegjinni has quit [Ping timeout: 253 seconds]
iamjarvo_ has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
Desert_eagle has quit [Quit: Leaving]
freezey has quit [Ping timeout: 272 seconds]
Hanmac1 has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
iamjarvo has quit [Remote host closed the connection]
sayan has joined #ruby
iamjarvo_ has quit [Read error: Connection reset by peer]
nwertman has joined #ruby
iamjarvo has joined #ruby
x1337807x has joined #ruby
jerius has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
troessner has quit [Quit: Leaving]
anderse has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
<havenwood>
near89: What kinda data parsing? Any code you can show?
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
nwertman has quit [Ping timeout: 272 seconds]
optikal has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo_ has joined #ruby
<terrellt>
And how much data? It would take a lot for ruby's speed to be important
CreativeEmbassy has joined #ruby
anderse has quit [Client Quit]
CreativeEmbassy has quit [Max SendQ exceeded]
lstefani has joined #ruby
Leandro__ has joined #ruby
Leandro__ has quit [Max SendQ exceeded]
CreativeEmbassy has joined #ruby
hamed_r has quit [Quit: Ex-Chat]
shredding has joined #ruby
Stygia has quit [Remote host closed the connection]
CreativeEmbassy has quit [Max SendQ exceeded]
Leandro__ has joined #ruby
jkhwan has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
zz_jrhorn424 is now known as jrhorn424
CreativeEmbassy has joined #ruby
jkhwan has joined #ruby
ArchBeOS has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]]
wallerdev has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
lstefani has quit [Max SendQ exceeded]
rdnsget has joined #ruby
rdnsget has left #ruby [#ruby]
vlad_starkov has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
thecopy has quit [Read error: Connection reset by peer]
iamjarvo has quit [Read error: Connection reset by peer]
lstefani has joined #ruby
iamjarvo has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
OdNairy has quit []
mrpot4to_ has quit [Remote host closed the connection]
MrPoT4tO has quit [Read error: Connection reset by peer]
breakingthings has quit []
krawchyk_ has joined #ruby
inad922 has quit [Quit: Page closed]
Davey has quit [Quit: Computer has gone to sleep.]
breakingthings has joined #ruby
lfox has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
krawchyk has quit [Read error: Operation timed out]
vpretzel has quit [Ping timeout: 246 seconds]
<shevy>
is there a way to find out which modules are included?
OdNairy has joined #ruby
lstefani has quit [Max SendQ exceeded]
daga has joined #ruby
tharindu has quit [Quit: Leaving...]
<daga>
can a ruby shell 'speak to' a python one?
<daga>
if i produce some output in ruby but want to continue in another language can i just switch ?
lstefani has joined #ruby
threesome has quit [Ping timeout: 268 seconds]
<jkamenik>
dump the output to a file
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
_whitelogger has joined #ruby
Akuma has joined #ruby
<havenwood>
shevy: Yeah, the return value is an Array of those that were included.
CreativeEmbassy has joined #ruby
allsystemsarego_ has joined #ruby
jkhwan has joined #ruby
VTLob has joined #ruby
ctp- has quit [Quit: Leaving...]
JeanMertz has joined #ruby
daga has quit [Quit: Page closed]
allsystemsarego has quit [Ping timeout: 240 seconds]
AndChat| has quit [Quit: Bye]
lkba has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<banisterfiend>
anyone here speak dutch?
relix has joined #ruby
Senjai has joined #ruby
Senjai has joined #ruby
<banisterfiend>
maloik ping
Boohbah has joined #ruby
ged has joined #ruby
monkegjinni has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
ctp_ has joined #ruby
<havenwood>
shevy: oops, i was checking `#is_a? Module` when I meant `#class == Module`
jkhwan has quit [Remote host closed the connection]
<shevy>
hmm
<havenwood>
banisterfiend: Just enough to order a hot chocolate and some apple pie!
<shevy>
I think I ate too much, now there is no blood in the brain, I cant think well at all
jkhwan has joined #ruby
CreativeEmbassy has joined #ruby
Senjai has quit [Read error: Connection reset by peer]
Senjai has joined #ruby
Senjai has joined #ruby
<sam113101>
I can't think straight either but I don't know why
elux has quit [Quit: Leaving...]
<sam113101>
I can't concentrate
k0m has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
Kabaka has quit [Remote host closed the connection]
swingha has quit [Quit: WeeChat 0.4.2]
ebetancourt has joined #ruby
elux has joined #ruby
ebetancourt has quit [Max SendQ exceeded]
<havenwood>
uh oh... we should notify medical and report to the ship infirmary
k0m has joined #ruby
jprovazn has quit [Quit: Odcházím]
carraroj has joined #ruby
k0m has quit [Client Quit]
jkhwan has quit [Ping timeout: 272 seconds]
Al_ has quit [Quit: Al_]
jonahR has quit [Quit: jonahR]
zigomir has joined #ruby
shivamib has quit [Remote host closed the connection]
Davey has joined #ruby
<Hanmac>
shevy are you looking for #included_modules ?
<havenwood>
Hanmac: he wants to auto-include modules just required
<kraljev2>
i have two pieces of code that should perform the same
<kraljev2>
they don't
<kraljev2>
any idea?
jkline has joined #ruby
coderhs has joined #ruby
g0bl1n has joined #ruby
vpretzel has joined #ruby
<kraljev2>
anyone?
sambao21 has quit [Quit: Computer has gone to sleep.]
<gazarsgo>
the two pieces of code differ, make them the same! then they will perform the same.
<kraljev2>
i think those two pieces of code are identical
<kraljev2>
so they don't differ
jkline has quit [Client Quit]
<kraljev2>
dare to elaborate?
<kraljev2>
they should have the same effect
timonv has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
benwoody has quit [Quit: benwoody]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cads has joined #ruby
vpretzel has quit [Ping timeout: 245 seconds]
<gazarsgo>
it doesn't matter what you think, either your methodology for measuring performance is wrong, or your evaluation that the code is the same is wrong, so revisit your assumptions
benwoody has joined #ruby
vlad_starkov has joined #ruby
<kraljev2>
who is talking about performance
<kraljev2>
i'm talking about effect
<Hanmac>
kraljev2: hm show more of your code with a working sample, maybe with that we can find why it is different
kenneth has joined #ruby
yekta has quit [Quit: yekta]
<havenwood>
kraljev2: What is the difference? What error do you get with the latter? Gist?
verto has joined #ruby
workmad3 has joined #ruby
<kraljev2>
i don't know yet
<kraljev2>
but the code didn't work, so i put arguments to immediate variable
vpretzel has joined #ruby
existensil has quit [Ping timeout: 246 seconds]
<kraljev2>
then it started working
iamjarvo has quit [Remote host closed the connection]
<kraljev2>
i did so I could print them out
allsystemsarego_ has quit [Quit: Leaving]
iamjarvo has joined #ruby
<gazarsgo>
You are in a maze of twisty little passages, all alike.
<MrZYX>
kraljev2: if I recreate that minimal example to something I can run, they're equivalent
axl_ has quit [Quit: axl_]
<kraljev2>
sure, that surpries me too
jkline has joined #ruby
jkhwan has joined #ruby
<kraljev2>
but I can't think of any possible example where these two pieces of code would differ
workmad3 has quit [Read error: Operation timed out]
<gazarsgo>
the minimal example should be self contained (all vars assigned values)
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
kraljev2: You're in Ruby 1.9.2+, right?
saarinen has quit [Quit: saarinen]
Senjai_ has joined #ruby
<kraljev2>
yep, 2.0
Senjai has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Ping timeout: 260 seconds]
tjbarber has joined #ruby
<havenwood>
kraljev2: I don't see a difference in what gisted. Would have to see the code I guess or have a test case to reproduce.
<havenwood>
what you gisted*
sadleb has joined #ruby
parzo_ has quit []
a1ph4g33k has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<havenwood>
kraljev2: Double check it isn't getting run with 1.8 for some reason, then i'd expect the difference. ;P
<kraljev2>
they were not, because #id redefined storage
elux has quit [Quit: Bye!]
soulcake has quit [Read error: Connection reset by peer]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigoldrock has joined #ruby
coderhs has quit [Ping timeout: 260 seconds]
mark_locklear has quit [Quit: Leaving]
pwh has quit []
lstefani has joined #ruby
apeiros has quit [Remote host closed the connection]
soulcake has joined #ruby
Xeago has joined #ruby
monkegjinni has joined #ruby
ldnunes has quit [Quit: Leaving]
kobain_ has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<madb055>
hello people
<madb055>
is there a specific rails channel?
<MrZYX>
yes, #rubyonrails
kobain has quit [Ping timeout: 260 seconds]
lnormous has joined #ruby
<madb055>
merci
mlpinit has quit [Remote host closed the connection]
lstefani has quit [Max SendQ exceeded]
c0rn has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
ahawkins has quit [Read error: Connection reset by peer]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soulcake has joined #ruby
lstefani has joined #ruby
saarinen has joined #ruby
robaman has quit [Ping timeout: 240 seconds]
robaman has joined #ruby
ShellFu has joined #ruby
pskosinski has joined #ruby
lstefani has quit [Max SendQ exceeded]
ntzrmtthihu777 has joined #ruby
smathieu has joined #ruby
x1337807x has joined #ruby
<ShellFu>
hey guys. When using something like slop for CLI arg parsing would be it proper to put the Slop do block into initialize in a class? Right now its just sitting in an rb file like a shell script, but am curious what is the preferred/proper place
<ntzrmtthihu777>
hey. is there some universal method like to_s that can make irb print out the contents of a ruby class?
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<ShellFu>
then call class.opts or similar?
lstefani has joined #ruby
theoretick has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
kenneth has joined #ruby
tatsuya_o has joined #ruby
<unholycrab>
is there a way to tell if i am at the last item from within a hash.each_pair { |k,v| [...] } loop?
<unholycrab>
ie: check to see if this is the last key/value pair that i will be iterating through?
robaman has quit [Ping timeout: 245 seconds]
coderhs has joined #ruby
<ntzrmtthihu777>
unholycrab: check for an index of -1?
<MrZYX>
ntzrmtthihu777: do you mean .inspect?
robaman has joined #ruby
<ntzrmtthihu777>
MrZYX: maybe... lemme check
dsferreira has quit [Quit: Leaving]
mudmaster has quit [Ping timeout: 245 seconds]
<MrZYX>
unholycrab: do you need to take a whole different action on the last pair or just an additional one?
fmcgeough has quit [Quit: fmcgeough]
brtdv has quit []
<unholycrab>
more like, i need to take an action if it is not the last item
<ntzrmtthihu777>
MrZYX: nah, that checks the Object a class defines, yeah? I'm asking because I'm writing a java extension/jem for jruby, but I'm having issue running Class.new; I think its using the constructor instead of the initialize method I setup :/
tatsuya_o has quit [Ping timeout: 245 seconds]
<MrZYX>
unholycrab: okay, so an additional action? there's still a common action for all elements?
<unholycrab>
MrZYX: yes
aspires has quit [Quit: sudo making a sandwich]
jkhwan has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
Shidash has quit [Quit: Leaving.]
<MrZYX>
hmm, maybe do .reverse.with_index, i == 0; but I guess I'd rather extract both actions into methods and do something like hash.to_a[0..-2].each do |k, v| common(k, v); other(k, v); end; common(*hash.to_a.last) if that makes sense
Shidash has joined #ruby
mudmaster has joined #ruby
soulcake has joined #ruby
grenierm5 has quit [Ping timeout: 250 seconds]
shadoi has joined #ruby
Nogbit has left #ruby [#ruby]
soulcake has quit [Read error: Connection reset by peer]
mudmaste_ has joined #ruby
<unholycrab>
no that doesn't make sense
smoothbutta has joined #ruby
<unholycrab>
meaning, i dont understand
soulcake has joined #ruby
krawchyk_ has quit []
tjad has joined #ruby
<unholycrab>
ruby 1.8.7 by the way
<MrZYX>
uh, oh
<MrZYX>
you know that's out of support?
colonolGron has joined #ruby
wildroma_ has joined #ruby
<MrZYX>
also describe your underlying problem, maybe there's elegant solution other than determining in what iteration you are
geekbri has quit []
mudmaste_ has quit [Client Quit]
BizarreCake has quit [Ping timeout: 256 seconds]
<havenn>
unholycrab: Ruby 2.0.0 ftw. 1.8.7 is way too old, past end of life.
soulcake has quit [Read error: Connection reset by peer]
<ntzrmtthihu777>
havenn: what say you on 2.0? stable enough for common use?
<havenn>
ntzrmtthihu777: yeah, totally
Es0teric has quit [Quit: Computer has gone to sleep.]
maletor has quit [Quit: Computer has gone to sleep.]
<ntzrmtthihu777>
havenn: I use jruby, so I have 1.8, 1.9, and 2.0 all at my disposal :P
mercwithamouth has joined #ruby
soulcake has joined #ruby
mudmaster has quit [Ping timeout: 245 seconds]
<havenn>
ntzrmtthihu777: isn't JRuby 9000 already on 2.1 compatibility mode?
soulcake has quit [Read error: Connection reset by peer]
soulcake has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
soulcake has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
soulcake has joined #ruby
thyagobr has quit [Quit: thyagobr has no reason]
justsee has joined #ruby
capicue has joined #ruby
kraljev2 has quit [Ping timeout: 272 seconds]
cody-- has joined #ruby
capicue has quit [Client Quit]
malkomalko has joined #ruby
kraljev2 has joined #ruby
jkline has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
nwertman has joined #ruby
soulcake has joined #ruby
saarinen has quit [Quit: saarinen]
Tearan has joined #ruby
agjacome has joined #ruby
brtdv has joined #ruby
kraljev2 has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
kraljev2 has joined #ruby
sambao21 has joined #ruby
mercwithamouth has quit [Ping timeout: 266 seconds]
sambao21 has quit [Client Quit]
<unholycrab>
havenn: ruby 2 would be really nice :C
<havenn>
unholycrab: Why 1.8?
havenn is now known as havenwood
<havenwood>
unholycrab: crazy old legacy project that nobody has been maintaining? or just haven't installed 2.0? :P
angusiguess has quit [Ping timeout: 245 seconds]
jkamenik has quit [Quit: Leaving.]
kaldrenon has quit [Remote host closed the connection]
Czupa has quit [Ping timeout: 263 seconds]
kaldrenon has joined #ruby
ner0x has quit [Quit: Leaving]
Authenticator has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
soulcake has joined #ruby
agjacome_ has joined #ruby
agjacome_ has quit [Client Quit]
sambao21 has joined #ruby
colonolGron has quit [Ping timeout: 260 seconds]
elaptics is now known as elaptics`away
<Authenticator>
Is there a way to run a subprocess in another thread, AND read its stdout/stderr in realtime? I'm using popen3 (non-block form) to run something and process its output. The new thing takes about 1h to run, and 1h to process, but most of this could overlap ...
<Authenticator>
I've managed to return the filehandles and task before it's done, but doing the task.wait in a thread, but when I try to read the stdout filehandle it still blocks until the process it done.
dma has joined #ruby
stringoO has quit [Quit: stringoO]
interactionjaxsn has quit [Remote host closed the connection]
dma is now known as Guest17979
interactionjaxsn has joined #ruby
stringoO has joined #ruby
Notte has quit [Remote host closed the connection]
colonolGron has joined #ruby
mojjojo has quit [Quit: Leaving]
soulcake has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
danshultz has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
soulcake has joined #ruby
danshultz has joined #ruby
breakingthings has quit []
pu22l3r has joined #ruby
axl_ has quit [Quit: axl_]
vlad_starkov has quit [Remote host closed the connection]
SilverKey has joined #ruby
SilverKey has quit [Max SendQ exceeded]
pskosinski_ has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
interactionjaxsn has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
soulcake has joined #ruby
<havenwood>
Authenticator: You want the job done in another process or another thread in the same process? You want to it be like a future or promise? Can you elaborate or do you have any code to Gist?
jerius has quit []
kenneth has quit [Ping timeout: 246 seconds]
stringoO has quit [Ping timeout: 272 seconds]
Czupa has joined #ruby
pskosinski has quit [Ping timeout: 245 seconds]
Czupa has quit [Remote host closed the connection]
<havenwood>
unholycrab: uhg, that is tough
pu22l3r has quit [Ping timeout: 268 seconds]
danshultz has quit [Ping timeout: 272 seconds]
tatsuya_o has joined #ruby
malkomalko has quit [Remote host closed the connection]
gazarsgo has quit [Quit: gazarsgo]
aspires has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
sailias has quit [Quit: Leaving.]
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
predator117 has quit [Ping timeout: 272 seconds]
lukec has quit [Quit: lukec]
soulcake has joined #ruby
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
tatsuya_o has quit [Ping timeout: 260 seconds]
felixjet has quit [Read error: Connection reset by peer]
ahawkins has joined #ruby
einarj has joined #ruby
jbpros has joined #ruby
<Authenticator>
havenwood: No preference, as long as it runs without blocking - such that I can process the early input before the later. Nothing to gist yet, maybe in a minute.
maletor has joined #ruby
pskosinski_ is now known as pskosinski
jbpros has quit [Client Quit]
misutowolf has joined #ruby
axl_ has joined #ruby
<misutowolf>
'ello, folks.
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
zz_jrhorn424 is now known as jrhorn424
freezey has quit [Ping timeout: 272 seconds]
<misutowolf>
So, random question. If I'm going to be getting into serious Ruby development (namely, Rails)...I've been told by a friend that I should -always- use RVM to manage my Ruby install.
DanKnox_away is now known as DanKnox
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
einarj has quit [Ping timeout: 272 seconds]
ehc has joined #ruby
lstefani has quit [Ping timeout: 245 seconds]
soulcake has quit [Read error: Connection reset by peer]
<havenwood>
misutowolf: You want to know if that is sage advice?
felixjet has joined #ruby
soulcake has joined #ruby
failshel_ has joined #ruby
<misutowolf>
Well, I dunno. I guess I'm just wanting to do things right. That, and I guess I should be using it anyway, since I want to use Rails 4, and Ubuntu's repository ruby version is 1.9.3.
verto has quit [Ping timeout: 245 seconds]
felixjet has quit [Client Quit]
felixjet has joined #ruby
<havenwood>
misutowolf: It is fine to use RVM, chruby/ruby-install, rbenv/ruby-build or other ways.
timonv has quit [Remote host closed the connection]
<misutowolf>
Cool. :)
<havenwood>
misutowolf: RVM may be the path of least resistance if you don't want to learn many things. I like ruby-install with chruby personally. :)
timonv has joined #ruby
freezey has joined #ruby
ahawkins has quit [Quit: leaving]
aBound has joined #ruby
lstefani has joined #ruby
<aBound>
Howdy all, am new to Ruby figures I am looking for a good GUI library any recommendations?!?
duggiefresh has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 272 seconds]
<havenwood>
aBound: figures?
<aBound>
havenwood, Yes a bit off on the grammar. :)
lfox has quit [Quit: ZZZzzz…]
<havenwood>
aBound: oh, just wondered if it was a term of art or something or if you just mean gui bindings
predator117 has joined #ruby
failshel_ has quit [Ping timeout: 272 seconds]
cody-- has quit [Quit: derp]
Jabberish has quit [Remote host closed the connection]
felixjet has quit [Read error: Connection reset by peer]
Jabberish has joined #ruby
honey has joined #ruby
ehc has quit [Quit: ehc]
<misutowolf>
I take it if I'm going to want a user signup/login/logout system for my app, that Devise is definitely worth looking into?
<honey>
hello
timonv has quit [Ping timeout: 245 seconds]
kraljev2 has left #ruby [#ruby]
nateberkopec has quit [Quit: Leaving...]
<havenwood>
aBound: JRuby has Swig and Shoes4 looks neat. Hard to choose which binding lib to use for Ruby.
<havenwood>
honey: hey
soulcake has quit [Read error: Connection reset by peer]
<honey>
hey havenwood
<havenwood>
misutowolf: Yeah, worth either using or just looking at how it does it.
felixjet has joined #ruby
soulcake has joined #ruby
<aBound>
I seen one by the name of FXRuby can't say if it's any good.
<misutowolf>
havenwood, thanks
vpretzel_ has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
<misutowolf>
Hm?
mary5030 has quit [Remote host closed the connection]
monkegjinni has joined #ruby
pyrac has joined #ruby
<havenwood>
misutowolf: oh, if you decide you want to extract devise auth (have done in the past), you run into that ^, which they do to avoid timing attacks but it isn't actually needed with bcrypt, which they're using here. anyways, nv
<havenwood>
nvm**
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<misutowolf>
Neat.
capicue has joined #ruby
vpretzel has quit [Ping timeout: 240 seconds]
<misutowolf>
I think I'll probably use devise in my app
RichardBaker has quit [Quit: RichardBaker]
honey has left #ruby ["K Bai!"]
<havenwood>
misutowolf: It is a good example of using a constant time algorithm to avoid timing attacks though
aBound has left #ruby ["Leaving"]
<misutowolf>
I'm essentially reinventing the wheel for my first Ruby project, but...oh well. It's a good way to learn Ruby and Rails, while doing something I'll feel is at least useful.
vlad_starkov has joined #ruby
justsee has quit [Ping timeout: 260 seconds]
vpretzel has joined #ruby
lstefani has quit [Ping timeout: 245 seconds]
<misutowolf>
:)
<misutowolf>
Holy crap, I'm looking at this RailsCast about Devise, it looks STUPID easy to get going.
petey_ has joined #ruby
pothibo has joined #ruby
pothibo has quit [Client Quit]
<misutowolf>
Mmmm
blackratdog has joined #ruby
monkegjinni has quit [Ping timeout: 272 seconds]
<misutowolf>
I'm so glad I installed Xubuntu. It's so clean feeling.
zachrab has joined #ruby
frem has quit [Ping timeout: 240 seconds]
<misutowolf>
Though I forgot how abysmally slow my mother's internet is
<misutowolf>
COmpared to mine
<misutowolf>
15M vs. 3
westoque has joined #ruby
vpretzel has quit [Ping timeout: 240 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
bigoldrock has quit [Ping timeout: 272 seconds]
soulcake has quit [Read error: Connection reset by peer]
RichardBaker has joined #ruby
tatsuya_o has joined #ruby
soulcake has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
tjbarber has joined #ruby
derebos has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
lstefani has joined #ruby
soulcake has joined #ruby
Xeago has joined #ruby
<Authenticator>
havenwood: I current have i,o,e,t = popen3(...); t.wait ... I want to switch to something like i,o,e,t = nil ; Thread.new popen3(...) {|i,o,e,t| ... } ; return [i,o,e,t]
tatsuya_o has quit [Ping timeout: 272 seconds]
<Authenticator>
havenwood: The last one (roughly) works, but when I try to read one of the filehandles it blocks until the process is fully finished anyways, even if i don't read that far.
westoque has quit [Quit: westoque]
Guest17979 has quit [Remote host closed the connection]
pyrac has quit [Quit: pyrac]
volty has quit [Quit: Konversation terminated!]
Banistergalaxy has quit [Ping timeout: 272 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
TheMoonMaster has quit [Excess Flood]
adambeynon has joined #ruby
petey_ has quit [Ping timeout: 245 seconds]
Xeago has quit [Ping timeout: 272 seconds]
TheMoonMaster has joined #ruby
drag00n has quit [Ping timeout: 240 seconds]
jkhwan has quit [Remote host closed the connection]
cads has quit [Ping timeout: 272 seconds]
soulcake has quit [Read error: Connection reset by peer]
jkhwan has joined #ruby
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
right1 has joined #ruby
gyzmodo has quit []
c0rn has quit [Quit: Computer has gone to sleep.]
wildroma_ has quit [Remote host closed the connection]
soulcake has joined #ruby
mengu has joined #ruby
wildroma_ has joined #ruby
c0rn has joined #ruby
mlpinit has quit [Remote host closed the connection]
bean__ has joined #ruby
freerobby has quit [Quit: Leaving.]
smathieu has quit [Remote host closed the connection]
Shidash has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
Shidash has joined #ruby
bean__ has quit [Client Quit]
freezey has quit [Remote host closed the connection]
wildroma_ has quit [Ping timeout: 246 seconds]
freezey has joined #ruby
Leandro__ has quit [Quit: Saliendo]
<robonerd>
who is the guy who loved padrino apps because you can componetize resources?
<robonerd>
i was wonder if you could do the same thing directly into web machine
<robonerd>
make a main Application which uses modules for sinatra instances, say
Morrolan has quit [Ping timeout: 245 seconds]
jkhwan has quit [Remote host closed the connection]
vpretzel has joined #ruby
jkhwan has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
mixel has joined #ruby
dma_ has joined #ruby
wildroma_ has joined #ruby
Speed has joined #ruby
colonolGron has quit [Quit: leaving]
enebo has quit [Quit: enebo]
freezey has quit [Ping timeout: 272 seconds]
pwh has joined #ruby
<robonerd>
lighttpd seems to be the best C lib for super fast web serving. is there a way to get webmachine to use it?
jkhwan has quit [Ping timeout: 272 seconds]
JeanMertz has quit []
mmitchell has quit [Remote host closed the connection]
dma_ has quit [Remote host closed the connection]
<robonerd>
any personal recommendations for handling http in a C library? lighttp vs nginx vs other?
<popl>
wald0_: if we could access the date program then ret would contain whatever date printed to stdout
bigoldrock has joined #ruby
jibi has quit [Quit: .]
Sinco has joined #ruby
osvico has joined #ruby
devdazed has quit [Quit: Bye]
tonni_ has joined #ruby
volty has joined #ruby
vlad_sta_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
tonni_ has quit [Remote host closed the connection]
misutowolf has quit [Ping timeout: 240 seconds]
vlad_sta_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 245 seconds]
tonni has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
zachrab has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
<wald0_>
is there any book more like for advanced users? less bla bla and more like a direct reference, "x is for foo, its used on that way because of bar and wombat; next"
mengu has quit [Read error: Connection reset by peer]
ShellFu has quit [Quit: Leaving]
aspires has quit [Quit: sudo making a sandwich]
jrhorn424 is now known as zz_jrhorn424
bugsinlights has joined #ruby
wald0_ has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 248 seconds]
<volty>
another way could be that of self-reading the calling line (using caller)
thesheff17 has quit [Quit: Leaving]
thesheff17 has joined #ruby
<volty>
tricky and probably not worth
duncanm has left #ruby [#ruby]
nfk has quit [Write error: Connection reset by peer]
iliketurtles has quit [Quit: zzzzz…..]
|jemc| has quit [Ping timeout: 272 seconds]
allaire has quit []
jkline has quit [Quit: jkline]
yfeldblum has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Leaving...]
wald0_ has joined #ruby
SteveBenner9 has quit [Quit: Leaving]
nfk has joined #ruby
lewis has joined #ruby
Lewix has joined #ruby
Lewix has joined #ruby
jkhwan has quit [Remote host closed the connection]
<wald0_>
seriously? there's not a book with less baby-blabla and more direct, for ppl that already knows programming?
jkhwan has joined #ruby
allaire has joined #ruby
jkline has joined #ruby
jeffdb has joined #ruby
<volty>
as I said: it would be too short, you cannot have a 20 page book
<volty>
try googling
unstable has joined #ruby
cadabra has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
<unstable>
I'm looking for a very simple log file rotation script.. access.log becomes access.log.1, then on the second time it's run, access.log.1 becomes access.log.2, and access.log becomes access.log.1
<unstable>
After access.log.9 it gets deleted.
cadabra has joined #ruby
<unstable>
I want something simple nad less than a page, not some robust library.
vpretzel has quit [Read error: Connection reset by peer]
frem has quit [Ping timeout: 245 seconds]
<popl>
unstable: have you considered logrotate(8)?
<cadabra>
Say I have two files a.rb and b.rb. How should I put some constants and helper functions int util.rb? If I say 'x=3' in util.rb and then require util.rb from the others, they don't have access to x. Do I need to make it a module and then include the module?
<bricker>
unstable: that's built into most Linux distros
vpretzel has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
einarj has joined #ruby
<bricker>
cadabra: `require` doesn't transfer over local vars. `load` might but I don't recommend that. Use constants.
jkhwan has joined #ruby
timtch1 has quit [Quit: Leaving.]
<unstable>
I wanted something that uses ruby.
<volty>
write it
<bricker>
unstable: constants are ruby
osvico has quit [Ping timeout: 260 seconds]
<bricker>
Also, just checked, `load` also doesn't load the local vars.
aantix has quit [Quit: aantix]
agjacome has joined #ruby
<bricker>
unstable: oops
<bricker>
unstable: got you mixed up, ignore my last message