apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
IceDragon has joined #ruby
<shevy> save for the main cluster dude, he maintained some C things, among one of which was loading and unloading environments+programs
bradhe has joined #ruby
<shevy> module load ruby
<shevy> ruby was available!
<shevy> only 1.9.3 though
<wallerdev> 1.9.3 was fine
<wallerdev> 1.8.6+ were good
<crome> I started with 1.8.5 I think
<crome> it was fun, the GC would simply not reap things when it didnt feel like to
bradhe_ has joined #ruby
ryanilg has quit [Quit: leaving]
<shevy> hehe
<wallerdev> yeah
<wallerdev> 1.9 was supposed to be an experimental branch
<centrx> php is way better
<wallerdev> but everyone started using it and it became the stable one lol
RaptorJesus is now known as RaptorJesus_____
rm_ has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
bradhe has quit [Ping timeout: 258 seconds]
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
dstynchula has quit []
amundj has quit [Ping timeout: 245 seconds]
mikeric has quit []
combusean has quit [Ping timeout: 240 seconds]
<shevy> centrx may I remind you that some time ago you thought it was a scourge on the face of the earth
<crome> it does not mean its not better than ruby
Drewch has quit [Quit: Computer has gone to sleep.]
<centrx> PHP is an apotheosis and the best thing on earth.
amundj has joined #ruby
<crome> is it better than bacon?
bthesorc_ has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
Vovko has joined #ruby
RaptorJesus_____ is now known as RaptorJesus
<centrx> There's a PHP function for that
bthesorceror has quit [Ping timeout: 240 seconds]
helpD has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
msmith_ has joined #ruby
<shevy> lol
<shevy> that's what php is all about
<shevy> everything becomes a function
<crome> in the global namespace
<wallerdev> with randomly ordered parameters :p
Hanmac has joined #ruby
<wallerdev> and things like mysql_escape_string and mysql_real_escape_string
<wallerdev> depending on if you want it to work or really work
<shevy> oh man
<shevy> looks like you guys are having fun when it comes to php
<crome> and magic quotes
mr_snowf1ake has joined #ruby
meatherly has quit [Remote host closed the connection]
<shevy> ok guys
meatherly has joined #ruby
<shevy> I will act as spy on #php
mary5030 has quit [Remote host closed the connection]
<DreamingRainne> A noble quest.
mary5030 has joined #ruby
SonicX has joined #ruby
Vovko has quit []
ccham has quit [Ping timeout: 258 seconds]
<shevy> they talk about mysql
MatthewsFace has quit [Quit: This computer has gone to sleep]
<shevy> it's actually rather boring to follow :(
<crome> not even mongodb?
<shevy> nah
<shevy> perhaps php is just syntactic sugar over mysql
meatherly has quit [Ping timeout: 258 seconds]
mary5030 has quit [Ping timeout: 245 seconds]
<shevy> $query = $db->query("update item row =row+1 WHERE item id= 3")
<shevy> now they show real code
bradhe_ has quit [Remote host closed the connection]
<crome> they mean ("update item row =row+1 WHERE item id= " + $_GET['id'])
centrex has quit [Read error: Connection reset by peer]
centrex has joined #ruby
minecoins has joined #ruby
kitak has quit [Remote host closed the connection]
The_Doctor is now known as Adran
mercwithamouth has joined #ruby
mansi has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 250 seconds]
george2|chakra has joined #ruby
dima_ has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
george2 has quit [Ping timeout: 252 seconds]
george2|chakra is now known as george2
Hobogrammer has quit [Ping timeout: 265 seconds]
centrex has quit [Ping timeout: 240 seconds]
vpretzel|964 has quit [Quit: Adios!]
thomasxie has joined #ruby
otherj has joined #ruby
linojon has joined #ruby
pu22l3r has joined #ruby
snuffeluffegus has joined #ruby
arubin has joined #ruby
thomasxie has left #ruby [#ruby]
flowerhack has quit [Quit: Connection closed for inactivity]
xeno has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xeno> A philosophical question: Why does return fail at the end of a Proc.new { return "hi" } block like that?
<DreamingRainne> xeno: It returns out of the calling environment, not out of just the block, I think.
dapz has joined #ruby
<DreamingRainne> It's the reason you can do stuff like @herp.each{ |derp| return if derp > 3 }
Bumptious has joined #ruby
ccham has joined #ruby
emaxi has joined #ruby
BSaboia has quit [Ping timeout: 245 seconds]
aniM has quit [Ping timeout: 265 seconds]
mansi has joined #ruby
emaxi has quit [Remote host closed the connection]
<DreamingRainne> I think using "lambda" instead of "Proc.new" lets "return" only return out of the block itself? Or otherwise works a little differently.
<xeno> Yes, Dreaming...: I am just trying to wrap my mind around it with some supporting mnemonic.
<xeno> Why, why oh why?
<xeno> I thought using lambda just affected arguments. Perhaps the return value is technically an argument?
* DreamingRainne shrugs.
dapz has quit [Client Quit]
aspires has quit []
sailias has joined #ruby
marr has quit [Ping timeout: 258 seconds]
marcdel has joined #ruby
<shevy> I thought so as well
<xybre> No, a lambda is an anonymous function, a proc is just a ball of code.
<shevy> I rarely use Proc.new or lambda though, somehow it does not fit into the rest of my ruby code
<xybre> Lambdas have strict arity, procs have no concept of arity and you can pass in whatever.
<havenwood> xeno: a return from a proc returns from the method the proc is inside, but a next would just return from the proc
<xybre> Lambdas can return becasue they are functions, procs can only return if they are called from within a function (or method).
<havenwood> >> Proc.new { next "hi" }.call
<eval-in_> havenwood => "hi" (https://eval.in/138060)
ccham has quit [Quit: WeeChat 0.4.3]
cashnguns has joined #ruby
TripTastic has joined #ruby
<xybre> Right because a proc is jsut a ball of code and has about identical semantic usage to a block, which has no arity checks and also uses next/break instead of return.
TripTastic has left #ruby [#ruby]
<DreamingRainne> >> p = Proc.new{ |n| next "hi" if n == 3; n }; (1..3).map{|x| p.call(x)}
<eval-in_> DreamingRainne => [1, 2, "hi"] (https://eval.in/138061)
sdwrage has joined #ruby
<DreamingRainne> Huh. Didn't know you could "next" things like you can "return" them.
Megtastique has quit []
<crome> DreamingRainne: its the next best thing
<xybre> next is a poor equvilent to return, really it's break.
nateberkopec has quit [Quit: Leaving...]
kitak has joined #ruby
<xybre> But in a non-loop proc next acts like a break.
ephemerian has quit [Remote host closed the connection]
<DreamingRainne> I've used "next" to skip a block before, like "next unless /^herp*derp$/.match(line)". Guess that's why procs respond to that.
<havenwood> xybre: *if* you want to break from the method
<DreamingRainne> >> p = Proc.new{ |n| next "hi" if n == 3; n }; (1..6).map{|x| p.call(x)}
lukec has joined #ruby
<eval-in_> DreamingRainne => [1, 2, "hi", 4, 5, 6] (https://eval.in/138062)
<DreamingRainne> >> p = Proc.new{ |n| break "hi" if n == 3; n }; (1..6).map{|x| p.call(x)}
<eval-in_> DreamingRainne => "hi" (https://eval.in/138063)
sethen has quit [Quit: Leaving...]
<crome> okay, I had enough of this stupid being awake thing
<crome> gnite
<havenwood> xybre: if you just want to return from the proc, next is just right
tcstar has quit [Quit: Leaving]
<xybre> havenwood: what?
<havenwood> xybre: break will return from the method with the value of the proc
<DreamingRainne> In an each() block, "next" moves to the next iteration, "break" stops the iterating.
<havenwood> xybre: next will return from the proc, and continue along with the method
MatthewsFace has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<DreamingRainne> >> def herp;yield;"unbroken";end; herp{ break "broken" }
<eval-in_> DreamingRainne => "broken" (https://eval.in/138065)
<xybre> >> RUBY_VERSION
<eval-in_> xybre => "2.1.0" (https://eval.in/138066)
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
emaxi has joined #ruby
<xybre> blocks and procs don't function the same with respect to break.
tkuchiki has joined #ruby
i_s has quit [Remote host closed the connection]
<DreamingRainne> >> herp = Proc.new{ break "broken" }; herp.call; "unbroken"
<eval-in_> DreamingRainne => break from proc-closure (LocalJumpError) ... (https://eval.in/138067)
<xybre> Yeah, break only works in lambdas and loops.
<xybre> I mispoke before.
<DreamingRainne> >> def herp; Proc.new{ break "broken" }.call; end; herp; "unbroken"
<eval-in_> DreamingRainne => break from proc-closure (LocalJumpError) ... (https://eval.in/138069)
djbkd has quit [Remote host closed the connection]
<xybre> >> def foo(x);x.call;end;foo(->{ break 'breakout' })
<eval-in_> xybre => "breakout" (https://eval.in/138071)
<xybre> >> def foo(x);x.call;true;end;foo(->{ break nil })
<eval-in_> xybre => true (https://eval.in/138072)
centrex has joined #ruby
<xybre> But it doesn't return from the method.
Tricon has joined #ruby
<xeno> Ok. I will try next.
sdouglas has joined #ruby
mansi has quit [Quit: Leaving...]
crystal77 has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tricon has quit [Client Quit]
Tricon has joined #ruby
amundj has joined #ruby
Tricon has quit [Client Quit]
bean has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jrhe has quit [Quit: Connection closed for inactivity]
amundj has quit [Ping timeout: 258 seconds]
lmickh has quit [Remote host closed the connection]
r_rios has quit [Ping timeout: 258 seconds]
Bumptious has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
Bumptious has joined #ruby
djbkd has joined #ruby
zz_karupa is now known as karupa
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has joined #ruby
bluehavana has joined #ruby
dapz has joined #ruby
otherj has quit []
danshultz has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bumptious has quit [Ping timeout: 264 seconds]
snath has quit [Ping timeout: 265 seconds]
alvaro_o has quit [Quit: Ex-Chat]
northfurr has quit [Quit: northfurr]
rainmanjam has joined #ruby
nateberkopec has joined #ruby
sdouglas has quit [Remote host closed the connection]
marcdel has quit [Ping timeout: 276 seconds]
r_rios has joined #ruby
narcan has joined #ruby
northfurr has joined #ruby
benzrf|offline is now known as benzrf
northfurr has quit [Client Quit]
marcdel has joined #ruby
northfurr has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
northfurr has quit [Client Quit]
Kneferilis has quit [Read error: Connection reset by peer]
chrisseaton has quit []
nateberkopec has quit [Quit: Leaving...]
mikecmpbll has quit [Quit: i've nodded off.]
psyko666 has joined #ruby
butblack has joined #ruby
pu22l3r has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
Milly_Bays has joined #ruby
ylluminate_ has quit [Ping timeout: 240 seconds]
jlast has quit [Remote host closed the connection]
zachallett has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 252 seconds]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
bthesorc_ has quit [Remote host closed the connection]
bthesorceror has joined #ruby
Hanmac has quit [Ping timeout: 258 seconds]
afex has quit [Ping timeout: 258 seconds]
mercwithamouth has quit [Ping timeout: 276 seconds]
yarou has quit []
SilkFox has quit [Ping timeout: 258 seconds]
SilkFox has joined #ruby
pu22l3r has joined #ruby
snath has joined #ruby
locriani has quit [Ping timeout: 250 seconds]
crzrcn has quit [Quit: Leaving.]
bthesorceror has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby
SCommette has joined #ruby
sambao21 has joined #ruby
s3ri0us is now known as s3ri0us|away
SCommette has quit [Client Quit]
SilkFox has quit [Ping timeout: 245 seconds]
ddv has joined #ruby
SilkFox has joined #ruby
doritostains has joined #ruby
gleveroni has joined #ruby
gleveroni has quit [Remote host closed the connection]
Melpaws has quit [Quit: Leaving.]
skulker has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Megtastique has joined #ruby
rainmanjam has quit []
bthesorceror has joined #ruby
djbkd has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 240 seconds]
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
crystal77 has joined #ruby
Hanmac has joined #ruby
bean has joined #ruby
rkofman_ has quit [Quit: rkofman_]
pu22l3r has joined #ruby
bthesorc_ has joined #ruby
Shidash has joined #ruby
bthesorceror has quit [Read error: Connection reset by peer]
Bumptious has joined #ruby
nateberkopec has joined #ruby
simono has joined #ruby
linojon has quit [Quit: linojon]
<shevy> hmmm
mrmargolis has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k1 has quit [Quit: Leaving.]
Celm has quit [Remote host closed the connection]
SonicX has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
diegovio1 has joined #ruby
diegovio1 has quit [Remote host closed the connection]
butblack has quit [Quit: butblack]
apeiros has joined #ruby
HashNuke has quit [Quit: Connection closed for inactivity]
diegoviola has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
s3ri0us|away is now known as s3ri0us
jlast has joined #ruby
omosoj has quit [Ping timeout: 258 seconds]
srji_ has quit [Ping timeout: 252 seconds]
Slavox is now known as Slavox|AFK
Cache_Money has joined #ruby
locriani has joined #ruby
Riking has quit [Ping timeout: 252 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Martxel_ has joined #ruby
jlast has quit [Ping timeout: 276 seconds]
Bumptious has quit []
Martxel has quit [Ping timeout: 245 seconds]
Olipro has quit [Ping timeout: 246 seconds]
Riking has joined #ruby
Riking has quit [Changing host]
Riking has joined #ruby
Riking has quit [Excess Flood]
IceDragon has quit [Ping timeout: 250 seconds]
helpD has joined #ruby
dapz has joined #ruby
meatherly has joined #ruby
jason_ has joined #ruby
Riking has joined #ruby
Riking has quit [Excess Flood]
Slavox|AFK is now known as Slavox
Nukepuppy has joined #ruby
helpD has quit [Ping timeout: 265 seconds]
s3ri0us is now known as s3ri0us|away
jamto11 has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
Riking has joined #ruby
Riking has quit [Excess Flood]
wallerdev has joined #ruby
SCommette has joined #ruby
Riking has joined #ruby
Riking has quit [Excess Flood]
Riking has joined #ruby
Riking has quit [Excess Flood]
omosoj has joined #ruby
centrex has quit [Ping timeout: 240 seconds]
SCommette has quit [Client Quit]
diegoviola has joined #ruby
Olipro has joined #ruby
emaxi has quit [Remote host closed the connection]
Slavox is now known as Slavox|AFK
rezzack has quit [Ping timeout: 250 seconds]
s3ri0us|away is now known as s3ri0us
Nukepuppy has quit [Ping timeout: 252 seconds]
omosoj_ has joined #ruby
Riking has joined #ruby
Riking has quit [Excess Flood]
lupine has quit [Quit: ZNC - http://znc.in]
mikeric has joined #ruby
omosoj has quit [Ping timeout: 240 seconds]
Phoenixz has joined #ruby
jmimi has quit [Quit: Leaving.]
srji has joined #ruby
metasansana has joined #ruby
danshultz has quit [Remote host closed the connection]
Olipro has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
no6 has joined #ruby
Slavox|AFK is now known as Slavox
mrmargolis has quit [Remote host closed the connection]
skulker has quit []
charliesome has joined #ruby
noob101 has quit [Ping timeout: 240 seconds]
HashNuke has joined #ruby
msmith_ has quit [Remote host closed the connection]
whomp has joined #ruby
Riking has joined #ruby
sdouglas has quit [Remote host closed the connection]
sigurding has joined #ruby
bthesorc_ has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 258 seconds]
Royalb15 has joined #ruby
bthesorceror has joined #ruby
robbyoconnor has joined #ruby
locriani has quit [Ping timeout: 258 seconds]
fuhgeddaboudit has joined #ruby
northfurr has joined #ruby
iamjarvo has joined #ruby
bthesorceror has quit [Ping timeout: 258 seconds]
xeno has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
kenndel_ has joined #ruby
Photism_ has joined #ruby
Martxel_ has quit [Ping timeout: 250 seconds]
saarinen has quit [Quit: saarinen]
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
lupine has joined #ruby
sdwrage has joined #ruby
skysploit has quit [Client Quit]
kenndel has quit [Ping timeout: 258 seconds]
Photism has quit [Ping timeout: 258 seconds]
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
skysploit has quit [Client Quit]
sigurding has quit [Quit: sigurding]
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
combusean has joined #ruby
pu22l3r has quit [Remote host closed the connection]
metasansana has quit [Read error: Connection reset by peer]
r_rios has quit [Ping timeout: 265 seconds]
Spami has quit [Quit: This computer has gone to sleep]
nortel has joined #ruby
saarinen has joined #ruby
i_s has joined #ruby
zachallett has joined #ruby
omosoj_ is now known as omosoj
<nortel> hello, how print from many threads without spliting print's outputs in one line ?
zcreative has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
<benzrf> nortel: use a mutex
<nortel> oh my god
<benzrf> nortel: ?
<nortel> nono, thanks for response =)
nisstyre has joined #ruby
cjbottaro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
hamakn_ has joined #ruby
nisstyre has quit [Client Quit]
crystal77 has quit [Quit: Computer has gone to sleep.]
i_s has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
fuhgeddaboudit has quit [Ping timeout: 276 seconds]
<shevy> nortel use a condom
zachallett has quit [Remote host closed the connection]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
<nortel> what mode ?
sevin has quit [Read error: Connection reset by peer]
SonicX has joined #ruby
<shevy> the "close your eyes and through with it" mode
gigetoo has quit [Remote host closed the connection]
emaxi has joined #ruby
radic_ has joined #ruby
radic has quit [Disconnected by services]
gigetoo has joined #ruby
jlast has joined #ruby
hamakn has quit [Ping timeout: 276 seconds]
sevin has joined #ruby
braincrash has quit [Quit: bye bye]
webgen has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
zz_jrhorn424 has quit [Ping timeout: 258 seconds]
arietis has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
msmith_ has joined #ruby
freerobby has quit [Quit: Leaving.]
speakingcode has joined #ruby
danshultz has joined #ruby
zz_jrhorn424 has joined #ruby
ixti has joined #ruby
braincrash has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
no6 has quit [Ping timeout: 276 seconds]
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
arietis has quit [Ping timeout: 258 seconds]
crystal77 has joined #ruby
whomp has quit [Ping timeout: 276 seconds]
spyderma_ has joined #ruby
Bastol has joined #ruby
danshultz has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
spyderman4g63 has quit [Ping timeout: 258 seconds]
whomp has joined #ruby
wallerdev has quit [Quit: wallerdev]
eka has joined #ruby
browndawg has joined #ruby
hamakn_ has quit [Remote host closed the connection]
browndawg has quit [Max SendQ exceeded]
agjacome has quit [Quit: leaving]
mostlybadfly has joined #ruby
danshultz has quit [Ping timeout: 258 seconds]
browndawg has joined #ruby
sambao21 has joined #ruby
cashnguns has quit [Remote host closed the connection]
deens has quit [Remote host closed the connection]
rkofman_ has joined #ruby
rkofman_ has quit [Client Quit]
hgl has joined #ruby
whomp has quit [Ping timeout: 245 seconds]
s3ri0us is now known as s3ri0us|away
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
sambao21 has quit [Ping timeout: 250 seconds]
whomp has joined #ruby
davispuh has quit [Remote host closed the connection]
Slavox is now known as Slavox|AFK
meatherly has joined #ruby
bluehavana has quit [Quit: Connection closed for inactivity]
kenneth has joined #ruby
Slavox|AFK is now known as Slavox
sdwrage has joined #ruby
yacks has joined #ruby
wallerdev has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
Ancient has left #ruby ["Leaving"]
Celm has joined #ruby
zcreative has quit [Quit: Computer has gone to sleep.]
northfurr has quit [Quit: northfurr]
hamakn has joined #ruby
ghr has joined #ruby
locriani has joined #ruby
bthesorceror has joined #ruby
michaeldeol has joined #ruby
hgl has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 265 seconds]
locriani has quit [Ping timeout: 258 seconds]
hgl has joined #ruby
msmith_ has quit [Remote host closed the connection]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hgl has quit [Client Quit]
funktor has joined #ruby
mikeric has quit []
crystal77 has quit [Quit: Computer has gone to sleep.]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BSaboia has joined #ruby
kenneth has joined #ruby
bloodsub-mobile has joined #ruby
Jetchisel has joined #ruby
phinfonet has quit []
bloodsub-mobile has quit [Read error: Connection reset by peer]
Jeff_D has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
<Jeff_D> rbenv question? how do people install 2.1 with a newer version of OpenSSL than the default 1.0.1e (which is vulnerable to Heartbleed)?
twidx has quit [Quit: Connection closed for inactivity]
locriani has joined #ruby
<centrx> Jeff_D, You can always recompile OpenSSL with heartbeats off
<centrx> Jeff_D, Is it not possible to use the newer library version with Ruby 2.1?
vc7 has joined #ruby
Celm has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sguselnikov has joined #ruby
<Jeff_D> centrx: If I'm compiling by hand, sure — but I'm leading a group of developers and we've standardised on rbenv to be able to test against different Rubies. The 2.1 install as installed by rbenv pushes 1.0.1e onto the system, which is just wrong
vc7 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
vc7 has joined #ruby
<havenwood> Jeff_D: You can update ruby-build to one that links to a patched openssl, or use a tool like ruby-install that isn't vulnerable since it links against the package manager's openssl.
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Jeff_D> havenwood: ok… researching how to do that now. Thanks
nortel has left #ruby [#ruby]
<havenwood> Jeff_D: ruby-install works nicely with rbenv: https://github.com/postmodern/ruby-install#integration
<havenwood> Jeff_D: or you need ruby-build 20140408 or later
<Jeff_D> havenwood: I see; much better than the rbenv plugin we've been using. And I saw 0408 on the last update of rbenv; I'll try that. Thanks again; should be able to clean up things now. :)
Spami has joined #ruby
Hytosys has joined #ruby
sguselnikov has quit [Client Quit]
arietis has joined #ruby
ixti has quit [Ping timeout: 265 seconds]
Jeff_D has quit [Quit: JMP $]
Phoenixz has quit [Ping timeout: 240 seconds]
funktor has quit [Remote host closed the connection]
whomp has quit [Ping timeout: 240 seconds]
jlast has joined #ruby
SvenOostenbrink has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
ironsand has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 250 seconds]
kevinykc_ has quit [Quit: Computer has gone to sleep.]
anaeem1_ has joined #ruby
helpD has joined #ruby
i_s has joined #ruby
ixti has joined #ruby
jason_ has quit [Remote host closed the connection]
jason_ has joined #ruby
iamjarvo has quit [Ping timeout: 250 seconds]
r_rios has joined #ruby
helpD has quit [Ping timeout: 240 seconds]
meatherly has quit [Remote host closed the connection]
i_s has quit [Ping timeout: 258 seconds]
freerobby has joined #ruby
jason_ has quit [Ping timeout: 240 seconds]
lepht has quit [Quit: ZNC - http://znc.in]
jamto11 has joined #ruby
osvico has quit [Read error: Connection reset by peer]
osvico has joined #ruby
snuffeluffegus has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
freerobby has quit [Ping timeout: 265 seconds]
zorak8 has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.3]
jamto11 has quit [Ping timeout: 240 seconds]
elshaka has joined #ruby
njection has quit []
pika_pika has quit [Ping timeout: 245 seconds]
zorak has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
yfeldblum has quit [Ping timeout: 258 seconds]
<benzrf> bbl yall
mr_snowf1ake has quit [Quit: Leaving]
<havenwood> later
benzrf is now known as benzrf|offline
bthesorceror has quit [Remote host closed the connection]
funktor has joined #ruby
mr_snowf1ake has joined #ruby
spyderma_ has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
SvenOostenbrink has quit [Ping timeout: 252 seconds]
SvenOostenbrink has joined #ruby
agent_white has joined #ruby
sski has joined #ruby
bthesorceror has joined #ruby
BSaboia has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
sdouglas has joined #ruby
skysploit has quit [Quit: This computer has gone to sleep]
Es0teric has quit [Quit: Computer has gone to sleep.]
bthesorceror has quit [Ping timeout: 258 seconds]
kenneth has joined #ruby
sambao21 has joined #ruby
x1337807x has joined #ruby
oo_ has joined #ruby
cj3kim_ has joined #ruby
Milly_Bays has quit [Quit: Leaving]
Milly_Bays has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
sdouglas has quit [Ping timeout: 258 seconds]
bluOxigen has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
nari has joined #ruby
x77686d has quit [Quit: x77686d]
whomp has joined #ruby
browndawg has left #ruby [#ruby]
moritzs has joined #ruby
SvenOostenbrink has quit [Ping timeout: 258 seconds]
kitak has quit [Remote host closed the connection]
jhn has joined #ruby
sdouglas has joined #ruby
etqqkoiflwhb_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim_ has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 245 seconds]
_justin has joined #ruby
etqqkoiflwhb_ has quit [Ping timeout: 252 seconds]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby
Megtastique has quit []
ironsand has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
centrex has joined #ruby
r_rios has quit [Ping timeout: 265 seconds]
Fretta has quit [Quit: Fretta]
chris_thomson has quit [Quit: Zzz...]
rm_ has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 240 seconds]
rm_ has joined #ruby
lukec has quit [Quit: lukec]
Bastol has quit []
senayar has joined #ruby
bluOxigen has joined #ruby
centrex has quit [Ping timeout: 252 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
codebro has quit [Ping timeout: 252 seconds]
larissa has quit [Quit: Leaving]
psyko666 has quit [Remote host closed the connection]
m104 has joined #ruby
yfeldblum has joined #ruby
lukec has joined #ruby
lukec has quit [Client Quit]
whomp has quit [Ping timeout: 250 seconds]
vc7 has quit [Quit: vc7]
aef has quit [Remote host closed the connection]
centrex has joined #ruby
jlast has joined #ruby
m104 has quit [Quit: bye]
yacks has quit [Read error: Connection reset by peer]
locriani has quit [Quit: Leaving...]
jlast has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
s3ri0us|away has quit [Quit: Linkinus - http://linkinus.com]
tjr9898 has quit [Ping timeout: 250 seconds]
bean has joined #ruby
Morkel has joined #ruby
chipotle has joined #ruby
cj3kim_ has joined #ruby
sdouglas has quit [Remote host closed the connection]
codebro has joined #ruby
freerobby has joined #ruby
zcreative has joined #ruby
oo_ has quit [Remote host closed the connection]
mr_snowf1ake has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
ksinkar has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ksinkar> I am compiling ruby from source. Do I have to pass any specific flags to the ./compile if I want to compile my ruby with readline support?
oo_ has joined #ruby
codebro has quit [Ping timeout: 252 seconds]
freerobby has quit [Ping timeout: 265 seconds]
<havenwood> ksinkar: what OS?
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
<havenwood> ksinkar: you often don't need to specify, but for example on OSX you can explicitly link to readline, etc, like: --with-opt-dir="$(brew --prefix readline)"
__class__ has quit [Ping timeout: 276 seconds]
<ksinkar> havenwood: CentOS 6
<havenwood> ksinkar: you shouldn't need to specify any flag
cj3kim_ has quit [Read error: Connection reset by peer]
<ksinkar> havenwood: after having installed ruby and then deployed a rails application, I found that $rails console will not work because of readline errors
<havenwood> ksinkar: i'd recommend taking a look at ruby-install, which will use yum to grab proper dependencies for centos for you: https://github.com/postmodern/ruby-install#readme
<havenwood> ksinkar: is readline installed?
cj3kim_ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cya]
agent_white has joined #ruby
<havenwood> ksinkar: if you want to install dependencies yourself: sudo yum install -y gcc automake gdbm-devel libffi-devel libyaml-devel openssl-devel ncurses-devel readline-devel zlib-devel
<ksinkar> havenwood: yes, readline-devel is installed.
<havenwood> ksinkar: hmm
<ksinkar> havenwood: I am not sure if it was installed the first time I compiled ruby. Hence, compiling it again. Will keep you posted
<havenwood> ksinkar: ah, yeah that'd explain it
paul_k is now known as sweet_cheese_us
ghr has joined #ruby
butblack has joined #ruby
browndawg has joined #ruby
combusean has quit [Ping timeout: 276 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ksinkar has quit [Read error: Connection reset by peer]
ksinkar has joined #ruby
crzrcn has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
<ksinkar> havenwood: yes, recompiling ruby worked. Thank you for the help.
jprovazn has joined #ruby
dapz has joined #ruby
Doppp has joined #ruby
Biohazard has quit [Remote host closed the connection]
<havenwood> ksinkar: nice, no prob
blackavr has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
yacks has joined #ruby
oo_ has joined #ruby
timonv has joined #ruby
JohnBat26 has joined #ruby
ashleyis has joined #ruby
phansch has joined #ruby
michaeldeol has joined #ruby
blackavr has quit [Quit: blackavr]
Doppp has quit [Ping timeout: 250 seconds]
vlad_starkov has joined #ruby
emaxi has quit [Remote host closed the connection]
toastynerd has quit [Read error: No route to host]
Celm has joined #ruby
toastynerd has joined #ruby
Doppp has joined #ruby
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
agent_white has quit [Quit: brb]
AlexRussia has quit [Remote host closed the connection]
luriv has joined #ruby
noop has joined #ruby
AlexRussia has joined #ruby
Celm has quit [Ping timeout: 258 seconds]
tectonic has joined #ruby
doritostains has quit [Quit: Leaving...]
bthesorceror has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
Macaveli has joined #ruby
bthesorceror has quit [Ping timeout: 240 seconds]
SonicX has quit [Remote host closed the connection]
jlast has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
__class__ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
cj3kim_ has quit [Remote host closed the connection]
ndrei has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
jlast has quit [Ping timeout: 250 seconds]
Milly_Bays has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
helpD has joined #ruby
_justin has quit [Quit: _justin]
vc7 has joined #ruby
cj3kim_ has joined #ruby
vlad_starkov has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
SilkFox has quit [Ping timeout: 265 seconds]
_justin has joined #ruby
funktor has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shashank_rs has joined #ruby
freerobby has joined #ruby
helpD has quit [Ping timeout: 258 seconds]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Biohazard has joined #ruby
jamto11 has joined #ruby
timonv has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 258 seconds]
jhn has quit [Ping timeout: 240 seconds]
omosoj has quit [Quit: Leaving]
amclain has quit [Quit: Leaving]
arietis has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
jamto11 has quit [Ping timeout: 276 seconds]
sdwrage has joined #ruby
noop has quit [Ping timeout: 250 seconds]
codebro has joined #ruby
speakingcode has quit [Ping timeout: 240 seconds]
peret has joined #ruby
emaxi has joined #ruby
senayar_ has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
chipotle has joined #ruby
agent_white has joined #ruby
codebro has quit [Ping timeout: 245 seconds]
agent_white has quit [Client Quit]
senayar has quit [Ping timeout: 276 seconds]
emaxi has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Jetchisel has quit [Ping timeout: 245 seconds]
rm_ has quit [Ping timeout: 265 seconds]
CaptainJet has quit []
claymore has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
spyderma_ has joined #ruby
chipotle has quit [Quit: cya]
vlad_starkov has quit [Ping timeout: 240 seconds]
eynj has quit [Read error: Connection reset by peer]
spyderman4g63 has quit [Ping timeout: 240 seconds]
zegerjan has joined #ruby
timonv has joined #ruby
mehlah has joined #ruby
Venkat has joined #ruby
koderok has joined #ruby
gizmore has quit [Ping timeout: 245 seconds]
Venkat has quit [Client Quit]
klaut has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
LetErikTry has joined #ruby
Alina-malina has joined #ruby
browndawg has joined #ruby
zcreative has quit [Quit: Computer has gone to sleep.]
shashank_rs has quit [Ping timeout: 276 seconds]
Celm has joined #ruby
txdv has quit [Ping timeout: 276 seconds]
txdv has joined #ruby
sdouglas has joined #ruby
<agent_white> Hehe. arr = [1,2,3]; blam = arr.cycle; blam.max; ... I have made a perpetual motion method! :D
Celm has quit [Ping timeout: 258 seconds]
moritzs has quit [Ping timeout: 252 seconds]
<Hanmac> agent_white: what did you suspect? ruby cant find a maximum value on a infinite enumerator
<Hanmac> >> arr = [1,2,3]; blam = arr.cycle; blam.size
<eval-in_> Hanmac => Infinity (https://eval.in/138135)
<agent_white> Hanmac: I wasn't expecting anything! Just playing around and learning! ;)
fabrice31 has joined #ruby
<agent_white> I saw that 'Infinity' so I wanted to see what would happen.
sdouglas has quit [Ping timeout: 258 seconds]
<Hanmac> thanks to "sized" enumerators ruby can tell you if an enumerator is infinity or not (or size undefined)
<agent_white> Hanmac: At least it stops to a SIGINT... `Infinity.all?` won't unless it's a SIGKILL.
dkannan has joined #ruby
<agent_white> Rather that... arr = [1]; infini_arr = arr.cycle; infini_arr.all?;
kevin has joined #ruby
kevin is now known as Guest57604
zigomir has joined #ruby
dkannan has quit [Client Quit]
dkannan has joined #ruby
yarou has joined #ruby
noop has joined #ruby
<agent_white> "You can't interrupt infinity!"
JasmeetQA has joined #ruby
JasmeetQA has quit [Client Quit]
lxsameer has quit [Quit: Leaving]
Ancient has joined #ruby
jlast has joined #ruby
invinceable has joined #ruby
kitak has joined #ruby
invinceable has quit [Excess Flood]
butblack has quit [Quit: butblack]
relix has joined #ruby
invinceable has joined #ruby
<Hanmac> agent_white: did you know that cycle can take a parameter?
<Hanmac> >> arr = [1,2,3]; blam = arr.cycle(3); [blam.size,blam.to_a]
<eval-in_> Hanmac => [9, [1, 2, 3, 1, 2, 3, 1, 2, 3]] (https://eval.in/138141)
invinceable has quit [Excess Flood]
hgl has joined #ruby
<agent_white> Hanmac: Whoa! That's pretty cool... I actually stumbled on cycle since I was trying to see if I could have next loop to the start of the array.
<agent_white> Goddamn theres so many cool things I have yet to find.
* Hanmac is playing a walzer
<Hanmac> >> arr = [1,2,3]; blam = arr.cycle(4).each_slice(3); blam.map{|a|a.join(", ")}.join("... ")
<eval-in_> Hanmac => "1, 2, 3... 1, 2, 3... 1, 2, 3... 1, 2, 3" (https://eval.in/138142)
hgl has quit [Remote host closed the connection]
oponder has joined #ruby
<DreamingRainne> agent_white: "retry" should loop it back to the start as well, even within a plain "each" block.
jlast has quit [Ping timeout: 276 seconds]
doritostains has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white> Hanmac: I need to play with Enumerators... haven't really even touched them.
<agent_white> DreamingRainne: What do you mean by that?
Hanmac has quit [Ping timeout: 245 seconds]
wildtype has joined #ruby
<DreamingRainne> agent_white: You said "I was trying to see if I could have next loop to the start of the array". That's what "retry" does: it starts the loop over from the beginning.
davedev24 has quit [Remote host closed the connection]
<DreamingRainne> (Or the block in general, starting from the call it's attached to.)
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
Es0teric has joined #ruby
davedev24 has joined #ruby
blackmesa has joined #ruby
freerobby has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
<agent_white> DreamingRainne: So like... I could turn the array to an enum, then just catch the "StopIteration" exception and call retry?
<DreamingRainne> If you catch it within the block body, yes, I think so.
senayar_ has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
davedev24 has quit [Ping timeout: 265 seconds]
Es0teric has quit [Ping timeout: 265 seconds]
freerobby has quit [Ping timeout: 276 seconds]
<DreamingRainne> >> runs = 0; (1..5).each{|n| if n == 5; runs += 1; retry unless runs == 3; else print "#{n},"; end }
<eval-in_> DreamingRainne => /tmp/execpad-7d72342f31b5/source-7d72342f31b5:2: Invalid retry ... (https://eval.in/138143)
noop has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
alex88 has joined #ruby
vlad_starkov has joined #ruby
<DreamingRainne> Huh, it worked in irb.
Hanmac has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
mehlah has quit [Quit: Leaving...]
noop has joined #ruby
<DreamingRainne> Printed "1,2,3,4,1,2,3,4,1,2,3,4,"
emaxi has joined #ruby
freerobby has joined #ruby
elshaka has quit [Ping timeout: 250 seconds]
<agent_white> DreamingRainne: Hmmm, I got an 'invalid' when I tried it in pry
freerobby1 has joined #ruby
MacTrash has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
vlad_starkov has quit [Ping timeout: 250 seconds]
kerin has quit [Ping timeout: 240 seconds]
emaxi has quit [Ping timeout: 276 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deadlock has quit [Quit: fuck off]
tectonic has quit []
Alina-malina has quit [Ping timeout: 250 seconds]
Macaveli has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
<havenwood> DreamingRainne: are you in Ruby 1.8?
vc7 has quit [Quit: vc7]
freerobby1 has quit [Ping timeout: 258 seconds]
evenix has quit [Remote host closed the connection]
evenix_ has quit [Remote host closed the connection]
Alina-malina has joined #ruby
osvico has joined #ruby
evenix has joined #ruby
evenix_ has joined #ruby
Spami has quit [Quit: Leaving]
kenneth has joined #ruby
dapz has joined #ruby
vc7 has joined #ruby
Macaveli has joined #ruby
<DreamingRainne> havenwood: 1.8.7 to be exact.
<DreamingRainne> (Yes, I know, it's old.)
<havenwood> DreamingRainne: yeah, Invalid in 1.9+
<DreamingRainne> How come?
<havenwood> invalid in all Rubies not past end-of-life :P
Macaveli has quit [Remote host closed the connection]
Macaveli has joined #ruby
evenix_ has quit [Ping timeout: 240 seconds]
evenix has quit [Ping timeout: 240 seconds]
wildtype has quit [Quit: Lingo - http://www.lingoirc.com]
<agent_white> I'm so proud. This "cycle" thing means my IRC client can have multiple channel windows! WOOO!
<DreamingRainne> So 1.9+ basically doesn't have "retry" anymore? That example is kinda exactly how it's supposed to work.
<DreamingRainne> agent_white: Why would you need to cycle in order to have multiple channel windows?
treehug88 has quit []
<agent_white> DreamingRainne: Ah I'm focusing on having a single "main" window, that can be cycled to different channels for now... I'll add in tiling later ;P
<agent_white> Can't let my head explode quite yet!
senayar has joined #ruby
<agent_white> DreamingRainne: http://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/panels.html -- Been wrestling with Ncurses a bit to learn it, but I was trying to convert this tutorial into Ruby
<agent_white> Well not trying.. I did it!! :D
mehlah has joined #ruby
koderok has quit [Ping timeout: 252 seconds]
elshaka has joined #ruby
centrex has quit [Ping timeout: 252 seconds]
* agent_white cheers
Ancient has left #ruby ["Leaving"]
* DreamingRainne skims over that and is perfectly happy to let not-herself be the one having to deal with that. :P
centrex has joined #ruby
* DreamingRainne will stick with GTK in the meantime.
timonv has joined #ruby
<agent_white> Heheh ;) I'd always heard of Ncurses, and figured I should try it out while learning to program!
<agent_white> It does hurt though :(
timonv has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white> Once Shoes is released in a nice gem bundle, I'll use that instead.
kyb3r_ has joined #ruby
kenneth has joined #ruby
cassioscabral has quit [Ping timeout: 250 seconds]
_justin has quit [Quit: _justin]
SHyx0rmZ has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
_justin has joined #ruby
fabrice31 has quit [Remote host closed the connection]
noop has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
Celm has joined #ruby
senayar has quit [Remote host closed the connection]
doritostains has quit [Quit: Linkinus - http://linkinus.com]
sdouglas has joined #ruby
shime has joined #ruby
rm_ has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
Celm has quit [Ping timeout: 258 seconds]
JBreit has joined #ruby
elshaka has quit [Ping timeout: 245 seconds]
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
BizarreCake has joined #ruby
pskosinski has joined #ruby
oponder has quit [Remote host closed the connection]
oponder has joined #ruby
sigurding has joined #ruby
oo_ has quit [Remote host closed the connection]
cj3kim_ has quit [Remote host closed the connection]
oo_ has joined #ruby
jlast has joined #ruby
noop has joined #ruby
oponder has quit [Ping timeout: 276 seconds]
cj3kim has joined #ruby
oponder has joined #ruby
SilkFox has joined #ruby
_justin has quit [Quit: _justin]
jlast has quit [Ping timeout: 276 seconds]
skaflem has joined #ruby
olivier_bK has joined #ruby
helpD has joined #ruby
nvrch has joined #ruby
senayar has joined #ruby
mu5k17u has joined #ruby
timonv has joined #ruby
cover has joined #ruby
marcdel has quit [Remote host closed the connection]
rm_ has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 246 seconds]
rm_ has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
cj3kim has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
elshaka has joined #ruby
fabrice31 has joined #ruby
cj3kim has joined #ruby
helpD has quit [Ping timeout: 245 seconds]
lw has quit [Quit: s]
jamto11 has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
rm_ has quit [Ping timeout: 265 seconds]
sigurding has quit [Quit: sigurding]
SilkFox has joined #ruby
marr has joined #ruby
ayaz has joined #ruby
sdouglas has joined #ruby
oponder has quit [Remote host closed the connection]
arturaz has joined #ruby
oponder has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has quit [Ping timeout: 265 seconds]
benlieb has joined #ruby
roolo has joined #ruby
SilkFox has quit [Ping timeout: 252 seconds]
<benlieb> I'm doing some analytics on my rails logs files. Mid-way through I get this error: ArgumentError: invalid byte sequence in UTF-8
pagioss is now known as pagios
<benlieb> How can I avoid this?
sdouglas has quit [Ping timeout: 258 seconds]
oponder has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
shashank_rs has joined #ruby
andrewlio has joined #ruby
Urnas has joined #ruby
ghr has joined #ruby
vlad_starkov has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
<Urnas> What version ruby is actualy now?
ktun has joined #ruby
<Urnas> 1.9 or 2.*
carraroj has joined #ruby
<DreamingRainne> >> RUBY_VERSION
<eval-in_> DreamingRainne => "2.1.0" (https://eval.in/138155)
<DreamingRainne> benlieb: Perhaps force encoding to ISO-8859-1 or something like that. Not sure offhand how to do that... <looks>
<benlieb> DreamingRainne: ruby 2.0
<benlieb> I'm not sure that will help.
<Urnas> ? What learn me? RoR3 or RoR4?
rvraghav93 has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 265 seconds]
<jacky> RoR7
<Urnas> And what is the lasy.version supported RoR3?
<benlieb> Urnas: ruby 2.0. You might as well start learning ror4
<yxhuvud> No reason to learn something that isn't new, unless your work demands it.
<Urnas> *last
lsmola has joined #ruby
Ancient has joined #ruby
ashleyis has quit [Ping timeout: 252 seconds]
<DreamingRainne> benlieb: When you get the string, try doing: string.force_encoding("ISO-8859-1")
<Urnas> Ok , ruby 1
<DreamingRainne> Either because it *is* ISO-8859-1, or to at least get the thing to quit complaining about it.
<Urnas> Ruby 1.9 the last version is supported ror3?
<benlieb> DreamingRainne: but I don't know what it is. The log file is 2.5G. There could be all kinds of sh*t in there
nerium has joined #ruby
ashleyis has joined #ruby
cj3kim has quit [Remote host closed the connection]
dkannan has quit [Quit: dkannan]
cj3kim has joined #ruby
nerium has quit [Client Quit]
_justin has joined #ruby
banister has joined #ruby
helpD has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<DreamingRainne> If it's webpage logs, then set it to whatever encoding the webpages use. If in doubt, just try ISO-8859-1, and the worst you'll get is mojibake (misinterpreted gibberish) if someone sent text encoded in neither UTF-8 nor 8859-1. In any case, it should at least process.
<DreamingRainne> Or set them to binary, maybe.
<benlieb> DreamingRainne: charset=utf-8
atmosx has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
atmosx has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
oponder has joined #ruby
shashank_rs has quit [Quit: shashank_rs]
timonv has quit [Remote host closed the connection]
agent_white has quit [Quit: gnight]
<DefV_> 16
rm_ has joined #ruby
donnoc has joined #ruby
AlSquire has joined #ruby
Celm has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
jacky has quit [Excess Flood]
<davzie> For christ's sake. I need a REST client like POSTMAN that I can use without Google Chrome. I refuse to install that pile of shite now they are trying to push Google Now on me.
<davzie> I can't find one.
senayar has joined #ruby
Celm has quit [Ping timeout: 258 seconds]
senayar has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 245 seconds]
thomasxie has joined #ruby
senayar has joined #ruby
jacky has joined #ruby
sski has quit [Ping timeout: 240 seconds]
<olivier_bK> how i can pass a gsub on array inside the hash ?
<olivier_bK> value: ["configuration_xerox.mydomain.net.php", {:uid=>[" 'xerox';\n"], :url=>[" 'https://xerox.mydomain.net';\n"], :dbname=>["'xerox';\n"]}]
rm_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
rm_ has joined #ruby
benlieb has quit [Quit: benlieb]
arietis has quit [Quit: Computer has gone to sleep.]
<Hanmac> olivier_bK: hm i would recomend that your parser will be improved so you get ["xerox"] instead of [" 'xerox';\n"]
senayar has quit [Ping timeout: 240 seconds]
<olivier_bK> i try that to
<olivier_bK> :)
kaspergrubbe has joined #ruby
oo_ has quit [Remote host closed the connection]
<olivier_bK> do you know how i can remove the ;\n
senayar has joined #ruby
dangerousdave has joined #ruby
rm_ has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
dkannan has joined #ruby
timonv has joined #ruby
decoponio has joined #ruby
nshbrown has joined #ruby
mityaz has quit [Ping timeout: 276 seconds]
emaxi has joined #ruby
<nshbrown> trying to get rbenv on OSX to use the proper bin within the shim directory.. it keeps defaulting to the /usr/bin. Any ideas how to get it to always default to the .ruby-version bin/rails path instead of the system one?
<havenwood> olivier_bK: hard to tell what you mean from your input example, but:
jlast has quit [Ping timeout: 265 seconds]
<havenwood> >> {x: "'x';\n", y: "'y';\n"}.map { |k, v| [k, v.gsub(/;\n$/, '')] }.to_h
<eval-in_> havenwood => {:x=>"'x'", :y=>"'y'"} (https://eval.in/138168)
zegerjan has quit [Remote host closed the connection]
helpD has quit [Remote host closed the connection]
arietis has joined #ruby
Urnas has quit [Remote host closed the connection]
Urnas has joined #ruby
JBreit has left #ruby ["Leaving"]
obs has joined #ruby
<Hanmac> havenwood: i tihnk thats better:
<Hanmac> >> {x: "'x';\n", y: "'y';\n"}.map { |k, v| [k, v[/'(.+)'/, 1] }.to_h
oo_ has joined #ruby
<eval-in_> Hanmac => /tmp/execpad-0d0120cf4177/source-0d0120cf4177:2: syntax error, unexpected '}', expecting ']' ... (https://eval.in/138170)
<Hanmac> >> {x: "'x';\n", y: "'y';\n"}.map { |k, v| [k, v[/'(.+)'/, 1]] }.to_h
<eval-in_> Hanmac => {:x=>"x", :y=>"y"} (https://eval.in/138171)
cj3kim has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<havenwood> chomp chomp chomp
freerobby has joined #ruby
emaxi has quit [Ping timeout: 265 seconds]
<olivier_bK> thanks havenwood
Urnas has quit [Client Quit]
Speed has joined #ruby
<nshbrown> nm, figured it out
robbyoconnor has quit [Excess Flood]
elshaka has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 265 seconds]
gizmore has joined #ruby
sdouglas has joined #ruby
emmesswhy has quit [Read error: Connection reset by peer]
Advocation has joined #ruby
Advocation has quit [Client Quit]
tjr9898 has joined #ruby
robbyoconnor has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
dima_ has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
carraroj has joined #ruby
tkuchiki_ has joined #ruby
tjr9898 has quit [Ping timeout: 258 seconds]
dima_ has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Ping timeout: 252 seconds]
Alina-malina has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
_m_g_ has joined #ruby
apeiros has quit [Remote host closed the connection]
FDj has joined #ruby
Alina-malina has joined #ruby
phansch has joined #ruby
apeiros has joined #ruby
FDj_ has quit [Ping timeout: 240 seconds]
jason_ has joined #ruby
vc7 has quit [Quit: vc7]
SlvrDragn has quit [Ping timeout: 276 seconds]
_m_g_ is now known as SlvrDragn
billiam_ has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
jason_ has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
marcdel has joined #ruby
oo_ has quit [Remote host closed the connection]
nfk has joined #ruby
nshbrown has quit [Quit: nshbrown]
oo_ has joined #ruby
timonv has quit [Remote host closed the connection]
peret has quit []
snuffeluffegus has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
shashank_rs has joined #ruby
oo_ has quit [Remote host closed the connection]
helpD has joined #ruby
marcdel has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Remote host closed the connection]
Celm has joined #ruby
fabrice31 has joined #ruby
lolmaus has joined #ruby
ndrei has joined #ruby
himsin has joined #ruby
himsin has quit [Client Quit]
Celm has quit [Ping timeout: 258 seconds]
carraroj has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 265 seconds]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
emaxi has joined #ruby
ikaros has joined #ruby
RaptorJesus has quit [Ping timeout: 245 seconds]
Speed has quit [Ping timeout: 265 seconds]
Shidash has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
_bart has quit [Quit: leaving]
JasmeetQA has joined #ruby
nerium has joined #ruby
timonv has joined #ruby
<shevy> dumdedum
<shevy> code code code
emaxi has quit [Ping timeout: 240 seconds]
chrisseaton has joined #ruby
oo_ has joined #ruby
braincra- has joined #ruby
Speed has joined #ruby
lsmola has quit [Ping timeout: 252 seconds]
RaptorJesus has joined #ruby
fabrice31 has joined #ruby
braincrash has quit [Ping timeout: 250 seconds]
arturaz has quit [Remote host closed the connection]
_justin has quit [Ping timeout: 276 seconds]
mixonic has quit [Quit: *zonk*]
jlast has quit [Ping timeout: 265 seconds]
kobain has joined #ruby
parduse has quit [Ping timeout: 252 seconds]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
roolo has quit [Quit: Leaving...]
tkuchiki_ has quit [Remote host closed the connection]
funktor has joined #ruby
osvico has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
tkuchiki has joined #ruby
mikecmpbll has joined #ruby
kobain_ has quit [Ping timeout: 276 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
_justin has joined #ruby
kyb3r_ has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
funktor has quit [Ping timeout: 250 seconds]
freerobby has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
jamto11 has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
SilkFox has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
donnoc has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
postmodern has quit [Quit: Leaving]
mikecmpbll has quit [Quit: i've nodded off.]
mostlybadfly has joined #ruby
robustus has joined #ruby
momomomomo has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has quit [Ping timeout: 258 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
claymore has quit [Ping timeout: 240 seconds]
SilkFox has quit [Ping timeout: 258 seconds]
sdouglas has quit [Ping timeout: 258 seconds]
nvrch has quit [Quit: nvrch]
seaned has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
yfeldblum has joined #ruby
snuffeluffegus has quit [Quit: AFK]
crzrcn has quit [Quit: Leaving.]
JasmeetQA has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
chrisseaton has quit [Ping timeout: 258 seconds]
kirun has joined #ruby
browndawg has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 250 seconds]
arietis has joined #ruby
lolmaus has joined #ruby
Martxel has joined #ruby
vlad_starkov has joined #ruby
Avahey_ has joined #ruby
wald0 has joined #ruby
roolo has joined #ruby
cibs has joined #ruby
claymore has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
einarj has joined #ruby
mercwithamouth has joined #ruby
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
karupa is now known as zz_karupa
Megtastique has joined #ruby
BSaboia has joined #ruby
jacky is now known as Not
Not is now known as jacky
<srji> ;q
<srji> sorry
srji has quit [Quit: leaving]
madb055 has quit [Ping timeout: 240 seconds]
srji has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
havenwood has quit []
shime has quit [Ping timeout: 252 seconds]
Celm has joined #ruby
chrisseaton has joined #ruby
lkba has joined #ruby
timonv has quit [Remote host closed the connection]
evenix has joined #ruby
evenix_ has joined #ruby
Celm has quit [Ping timeout: 250 seconds]
nouitfvf has quit [Ping timeout: 252 seconds]
nouitfvf has joined #ruby
emaxi has joined #ruby
simono has joined #ruby
atno has quit [Ping timeout: 240 seconds]
popl has quit [Ping timeout: 276 seconds]
evenix_ has quit [Ping timeout: 252 seconds]
evenix has quit [Ping timeout: 252 seconds]
emaxi has quit [Ping timeout: 245 seconds]
kyb3r_ has quit [Ping timeout: 252 seconds]
thomasxie has quit [Quit: Leaving.]
jlast has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
noop has quit [Ping timeout: 276 seconds]
bluenemo has quit [Quit: Verlassend]
donnoc has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
xiella has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dima_ has joined #ruby
freerobby has joined #ruby
eka has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
atno has joined #ruby
bluOxigen has quit [Read error: No route to host]
yacks has quit [Ping timeout: 240 seconds]
donnoc_ has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
dima_ has quit [Ping timeout: 240 seconds]
donnoc has quit [Ping timeout: 252 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nari has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
sdouglas has joined #ruby
atno has quit [Ping timeout: 250 seconds]
noop has joined #ruby
AlexRussia has joined #ruby
AlexRussia has quit [Client Quit]
AlexRussia has joined #ruby
kitak has quit [Remote host closed the connection]
lsmola has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
sdouglas has quit [Ping timeout: 276 seconds]
Deele has joined #ruby
tesuji has joined #ruby
yfeldblum has joined #ruby
browndawg has joined #ruby
sepp2k has joined #ruby
crzrcn has joined #ruby
shashank_rs has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
mixonic has joined #ruby
roolo has quit [Quit: Leaving...]
dangerousdave has quit []
crzrcn has quit [Ping timeout: 240 seconds]
billiam_ has joined #ruby
Hytosys has quit [Quit: Hytosys]
atno has joined #ruby
vlad_starkov has joined #ruby
phoo1234567 has joined #ruby
binw has quit [Read error: Connection reset by peer]
shashank_rs has joined #ruby
mengu has quit [Read error: Connection reset by peer]
donnoc_ has quit [Ping timeout: 265 seconds]
Olipro has joined #ruby
mengu has joined #ruby
yacks has joined #ruby
binw has joined #ruby
crazymykl has quit [Remote host closed the connection]
ikaros has quit [Quit: Ex-Chat]
roolo has joined #ruby
charlies_ has joined #ruby
mengu has quit [Ping timeout: 245 seconds]
Olipro has quit [Ping timeout: 246 seconds]
<atmosx> in sequel can I destroy methods that has been associated with one_to_many tc?
p8952 has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 265 seconds]
msmith_ has joined #ruby
mixonic has quit [Quit: *zonk*]
j416 has joined #ruby
atno has quit [Remote host closed the connection]
Olipro has joined #ruby
<j416> what's the best way to trap ^C to do cleanup before program exit?
emaxi has joined #ruby
<j416> should I trap() it, rescue Interrupt?
<j416> rescue then throw+catch?
<DreamingRainne> j416: I would think rescuing Interrupt would be best.
shime has joined #ruby
Celm has joined #ruby
<j416> DreamingRainne: thanks. I'll investigate further and use that if nothing turns up.
grieg has joined #ruby
<DreamingRainne> Or, if I understand it correctly, use "ensure" sections to do cleanup. That should work with other exceptions too, not just Ctrl+C type.
Thanatermesis has joined #ruby
Thanatermesis has joined #ruby
<momomomomo> j416: rescue SystemExit
<j416> DreamingRainne: good idea.
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
grieg has quit [Changing host]
grieg has joined #ruby
<j416> momomomomo: that didn't do it
<j416> SystemExit isn't thrown on ^C
<shevy> j416, call this method in your class at creation time: def register_sigint; Signal.trap('SIGINT') { exit }; end
<momomomomo> rescue SystemExit, Interrupt
<j416> at least not in my case
<momomomomo> but ensure at the end of your file is the best for cleanup anyhow, as DreamingRainne
<j416> momomomomo: yes, it feels like the best way
atno has joined #ruby
emaxi has quit [Ping timeout: 258 seconds]
grieg has quit [Client Quit]
kyle__ has quit [Ping timeout: 240 seconds]
grieg has joined #ruby
<j416> but I stil, want to eat the exception (or else it'll be shown to the user)
Celm has quit [Ping timeout: 250 seconds]
rm_ has joined #ruby
klaut has quit [Remote host closed the connection]
<DreamingRainne> Try, just for testing: "rescue Exception => ex" and then print out info about "ex", such as its class, to see what kind it is.
<DreamingRainne> Then 'rescue' that.
Martxel has quit [Quit: Leaving]
Martxel has joined #ruby
<momomomomo> rescue SystemExit, Interrupt should do it
aspiers has quit [Ping timeout: 240 seconds]
<momomomomo> if not, then you might be on a different thread
<DreamingRainne> Or 'rescue Exception' anyway so the user doesn't wind up with a stacktrace dumped in their lap.
<momomomomo> or you could just trap(“sigint”)
<j416> shevy: that still seems to throw the exception
<j416> DreamingRainne: it's Interrupt alright, and that works just fine. The reason I was asking was to find out if perhaps there is a reason not to use it.
mixonic has joined #ruby
<momomomomo> DreamingRainne: j416 blanket rescuing of Exception is a bad practice http://daniel.fone.net.nz/blog/2013/05/28/why-you-should-never-rescue-exception-in-ruby/
<j416> I will follow momomomomo's suggestion and capture those two
<j416> momomomomo: thanks for that link, I was just vaguely remembering something about never rescuing Exception
<momomomomo> no problem, time to get back to reading :p
kayloos has joined #ruby
<DreamingRainne> I feel kinda wary of the idea of trapping SIGINT (or other signals) because (A) the handler happens outside the running code's context, thus you can't run local 'ensure' blocks, do cleanup etc; (B) isn't it kinda tied to Unix-like systems? (There's certainly worse system types to be bound to, though.)
mixonic has quit [Client Quit]
kyle_ has joined #ruby
<shevy> j416 what do you mean with "throw" an exception? my method does not "throw" anything
nvrch has joined #ruby
<momomomomo> shevy: just a note - that won’t work as expected in terminal
<shevy> it works perfectly fine
<momomomomo> trapping sigint?
<shevy> yes
<shevy> ctr-c interrupts the program
tkuchiki has joined #ruby
<j416> shevy: s/throw/raise/, sorry.
crzrcn has joined #ruby
<j416> shevy: and what I meant was, it doesn't keep the exception from getting raised
jlast has joined #ruby
nism has joined #ruby
<momomomomo> Hm, guess it does work on 1.9
dblessing has joined #ruby
<j416> this is 1.9.3
<momomomomo> either way, i would do an ensure block to clear up your shit
<apeiros> trapping sigint worked in all rubies for the last 10+ years
<momomomomo> and if you want to rescue, get specific with SystemExit, Interrupt
<shevy> the pickaxe book encouraged blanket "rescue Exception" :(
<momomomomo> apeiros: in irb on 1.8 ctrl-c sent IRB::Abort according to some people on SO
<apeiros> and I'd assume it even worked in all versions
<j416> it's not that much cleanup, it's more like I want to get rid of the stack trace and show something less scary to the user
mrnugget has joined #ruby
<momomomomo> apeiros: thus, you wouldn’t get the same result as on 1.9
<apeiros> momomomomo: you know, the *IRB* part in *IRB::Abort* should tell you something
sambao21 has quit [Ping timeout: 240 seconds]
<j416> :D
yfeldblum has joined #ruby
<momomomomo> apeiros: I’m talking about using it in irb.
Arnvald has joined #ruby
<shevy> irb can be a weird beast
<momomomomo> "momomomomo: shevy: just a note - that won’t work as expected in terminal"
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
jlast has quit [Read error: No route to host]
oo_ has quit [Remote host closed the connection]
jlast_ has joined #ruby
<momomomomo> :s/terminal/irb
AlexRussia has joined #ruby
oo_ has joined #ruby
<shevy> you guys often replace words on IRC!!!
<shevy> s/words/clothes/
dkannan has quit [Quit: dkannan]
<momomomomo> people often miss the context due to the scrolling nature and jump in - i’m guilty of that too :p
<shevy> damn in
<shevy> apeiros jumped in
<shevy> without any chocolate!
<shevy> s/in/it/ ;)
crzrcn has quit [Ping timeout: 245 seconds]
coder_neo has joined #ruby
<DreamingRainne> s/s\/(.*?)\/(.*?)\//gsub!(\1,\2)/g;
<DreamingRainne> This is Ruby, not Perl. :P
<j416> wait
<momomomomo> I used a : for vim :p
<apeiros> momomomomo: so you were talking about the terminal, not about irb :-p
<j416> it _does_ silence the exception
<j416> sorry shevy
<j416> I was pressing ^D out of habit
mark_locklear has joined #ruby
<momomomomo> fair enough apeiros i minced a word ;p
nari has joined #ruby
<j416> I'll just trap('SIGINT') { puts 'pretty message'; cleanup; exit }
<shevy> :-p is valid ruby code!
kayloos has quit [Ping timeout: 265 seconds]
<shevy> j416 \o/
<j416> and then I'll do something similar on ^D, I suppose that's not trappable since it's just EOF
<shevy> how pretty is the message?
<j416> shevy: oh it's very pretty
<shevy> with colours?
<j416> no colours lol
kyle_ has quit [Ping timeout: 245 seconds]
<shevy> :(
yfeldblum has quit [Ping timeout: 258 seconds]
jxf has joined #ruby
freerobby has joined #ruby
<j416> but it is an array of different farewell messages, .sample
<shevy> in kde konsole you can even use R,G,B colours
<j416> :P
<shevy> most other terminals should at least allow ansi colours, especially PINK BLINK
<shevy> on cyan background
kayloos has joined #ruby
<shevy> well, teal
<j416> heh. I use ansi but only if config allows
seaned has left #ruby [#ruby]
<shevy> that website compares
<shevy> rescue => e
kaspergrubbe has joined #ruby
<shevy> to
<shevy> rescue StandardError => e
<shevy> would you really use rescue => e ?
<j416> if you are a lazy typist
chrisseaton has quit []
shashank_rs has quit [Ping timeout: 250 seconds]
danshultz has joined #ruby
timonv has joined #ruby
tesuji has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 276 seconds]
jamto11 has joined #ruby
dkannan has joined #ruby
<j416> what's a nice way to trap both SIGINT and SIGQUIT and do the same thing for both?
<j416> trap doesn't seem to take multiple signals
SilkFox has joined #ruby
<shevy> hmm
<j416> trap('SIGINT') { cleanup }; trap('SIGQUIT') { cleanup }
<j416> and put everything in cleanup?
<shevy> [SIGINT, SIGQUIT].each {|signal| Signal.trap(signal) etc
<j416> that's nice, thanks
vlad_starkov has quit [Remote host closed the connection]
<shevy> Signal.trap('SIGINT','SIGQUIT') would be nicer, not sure why it demands only one arg
<shevy> huh
<shevy> I see
<shevy> it wants a command
<shevy> Signal.trap(0, proc { puts "Terminating: #{$$}" })
<shevy> :\ :/
<shevy> I hate those $
coder_neo has quit [Quit: Leaving]
acoyfellow has joined #ruby
<j416> blergh ^D doesn't seem to send SIGQUIT when waiting for user input (gets) :/
banister has joined #ruby
jamto11 has quit [Ping timeout: 276 seconds]
<j416> either that or gets rescues it and returns ''
<j416> oh well
msmith_ has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
treehug88 has joined #ruby
davedev24 has quit [Remote host closed the connection]
SilkFox has joined #ruby
davedev24 has joined #ruby
kyle_ has joined #ruby
crome has quit [Ping timeout: 240 seconds]
<Mon_Ouie> If you hit ^D in gets EOF is sent to stdin and therefore it returns nil (or whatever was typed in before if anything)
garndt has joined #ruby
enebo has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1__ has joined #ruby
mikecmpbll has joined #ruby
<j416> Mon_Quthanks for confirming my suspicion
crome has joined #ruby
<j416> I'll have to handle empty input then instead of trying to trap ^D
thomasxie has joined #ruby
<DreamingRainne> Yeah. For example, that's what you'd use if you do "cat > derp.txt", type in stuff, then Ctrl+D to finish. In Ruby, you'd detect that by '$stdin.gets' returning nil, which you can take to mean EOF.
roolo has quit [Quit: Linkinus - http://linkinus.com]
davedev24 has quit [Ping timeout: 276 seconds]
<j416> DreamingRainne: /me nods
Beoran_ has quit [Ping timeout: 252 seconds]
vpretzel has joined #ruby
vpretzel has quit [Remote host closed the connection]
rm_ has quit [Remote host closed the connection]
vpretzel has joined #ruby
rm_ has joined #ruby
<DreamingRainne> "if line = $stdin.gets" (or "while ..." instead) is a pretty simple way of handling that.
aspiers has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
stopbit has quit [Ping timeout: 252 seconds]
stopbit has joined #ruby
sambao21 has joined #ruby
<j416> yeah. Except I'm reading input from different places, but I can refactor to handle it better. Thanks.
rm_ has quit [Ping timeout: 265 seconds]
relix has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
_sambao21 has joined #ruby
madb055 has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 252 seconds]
sambao21 has quit [Ping timeout: 240 seconds]
dunix has joined #ruby
krz has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
jason_ has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
agjacome has joined #ruby
chrisseaton has joined #ruby
emaxi has joined #ruby
roolo has joined #ruby
anaeem1 has joined #ruby
Milly_Bays has joined #ruby
Beoran_ has joined #ruby
grayWolf has joined #ruby
Speed has quit [Ping timeout: 258 seconds]
linojon has joined #ruby
treehug88 has quit []
treehug88 has joined #ruby
anaeem1 has quit [Ping timeout: 250 seconds]
pika_pika has joined #ruby
krz has quit [Ping timeout: 245 seconds]
treehug88 has quit [Client Quit]
etqqkoiflwhb has joined #ruby
_sambao21 has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has quit [Client Quit]
ndrei has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
rmorello has joined #ruby
ndrei has joined #ruby
mrmargolis has joined #ruby
zachallett has joined #ruby
kaspergrubbe has quit []
ndrei has quit [Client Quit]
Milly_Bays has quit [Ping timeout: 240 seconds]
SilkFox has joined #ruby
Al__ has joined #ruby
oo_ has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
mgorbach has quit [Ping timeout: 252 seconds]
nerium has joined #ruby
oo_ has joined #ruby
Milly_Bays has joined #ruby
dima_ has joined #ruby
cek has joined #ruby
rm_ has joined #ruby
<cek> hi. How do you supply your own iterator for map or each? i'm trying map(&:iter), but it doesn't pass first argument
creativeembassy has joined #ruby
mgorbach has joined #ruby
oo_ has quit [Remote host closed the connection]
Guedes0 has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
xiella has joined #ruby
<j416> cek: map(&:iter) will call method iter on each item and use its return value
okdas has joined #ruby
dima_ has quit [Ping timeout: 258 seconds]
<Hanmac1> cek i think you mean "enumerator" instead of "iterator" right?
_justin has quit [Quit: _justin]
<cek> whats the difference?
obscured has joined #ruby
crzrcn has joined #ruby
<Hanmac1> enumerator is the ruby word for that, while iterator is more the C word
noop has quit [Ping timeout: 265 seconds]
robbyoconnor has quit [Ping timeout: 245 seconds]
JohnBat26 has quit [Ping timeout: 265 seconds]
pu22l3r has joined #ruby
<Hanmac1> cek: you might want to look at this
<Hanmac1> >> def my_func(arg); arg.to_s(2);end; [1,2,3].map(&method(:my_func))
<eval-in_> Hanmac1 => ["1", "10", "11"] (https://eval.in/138245)
Macaveli has quit [Ping timeout: 252 seconds]
<cek> yeah, that's what i wanted, thanks
cj3kim has quit [Ping timeout: 258 seconds]
Macaveli has joined #ruby
Macaveli has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
<Hanmac1> i once maked a gist where you could do [1,2,3].map(&:to_s.(2)) but i think that gist need to be improved
crzrcn has quit [Ping timeout: 252 seconds]
ejnahc has quit [Remote host closed the connection]
<shevy> man
ejnahc has joined #ruby
<shevy> you have perverted ideas
<cek> what's so special about &: isn't that just passing a proc to map method?
<banister> Hanmac1 Symbol#call
<banister> Hanmac1 that's a cool hack
Hobogrammer has quit [Ping timeout: 252 seconds]
Hanmac1 is now known as Hanmac
freerobby has joined #ruby
Macaveli has joined #ruby
troyready has quit [Ping timeout: 245 seconds]
<Hanmac> banister: that is mine, https://gist.github.com/Hanmac/ab77c649d799ade9670c and the best part, its chainable, ... like :to_i.(16).to_s(8)
<banister> Hanmac it's a cool trick, but it's a bit impractical. I wouldn't use yours in production ;)
<banister> Hanmac i really like the simplicity of Symbol#call, it doesnt use any weird tricks (like method_missing), and works in the 80% case (IMO)
<Hanmac> hm yeah i had it too until i wanted it chainable
_maes_ has joined #ruby
crazymykl has joined #ruby
<Hanmac> but yes it does nit work perfert and need improvment
freerobby has quit [Ping timeout: 240 seconds]
<banister> Hanmac do you have a strong german accent by the way?
zachallett has quit [Remote host closed the connection]
<Hanmac> hm depends, its a little bit saxon, but not so much, i am still understandable for other germans ;P
zachallett has joined #ruby
paulfm has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
davedev24 has joined #ruby
nateberkopec has joined #ruby
chrisseaton has quit [Ping timeout: 265 seconds]
Nukepuppy has joined #ruby
benzrf|offline is now known as benzrf
<benzrf> >> [1, 2, 3].iter
<eval-in_> benzrf => undefined method `iter' for [1, 2, 3]:Array (NoMethodError) ... (https://eval.in/138246)
<benzrf> ??
yacks has quit [Ping timeout: 258 seconds]
<shevy> wenk wenk
<banister> benzrf what r u trying to do
<benzrf> banister: are u reposting my Simbul#cull
mr_snowf1ake has joined #ruby
<banister> benzrf yap
<benzrf> banister: i dunno i saw '#iter'
Arnvald has quit []
jason_ has quit [Remote host closed the connection]
jason_ has joined #ruby
vpretzel is now known as vpretzel|retro
<Hanmac> shevy: https://www.youtube.com/watch?v=Uk_vV-JRZ6E << " KIDS REACT TO WALKMANS (Portable Cassette Players) "
donnoc_ has joined #ruby
Al__ has quit [Quit: Al__]
dik_dak has joined #ruby
<benzrf> damn kids
<MacTrash> Is there a nicer way to put values for a certain key in a hash into an array than this? => @answer_ids = Array.new; @answers.each {|item| @answer_ids.push(item[:answer_id])}
jason_ has quit [Ping timeout: 265 seconds]
<MacTrash> I'm new to the whole functional construct thing, but it seems this is a candidate.
kobain has quit []
<Mon_Ouie> Use Enumerable#map
<Hanmac> MacTrash: @answer_ids =@answers.map {|item| item[:answer_id]}
<MacTrash> Ahh .map, I'll read into that, thanks
Riking has quit [Excess Flood]
Riking has joined #ruby
cj3kim has joined #ruby
rm_ has joined #ruby
creativeembassy has quit [Quit: FO SHO]
banister is now known as banisterfiend
SHyx0rmZ has quit [Ping timeout: 276 seconds]
supersym has joined #ruby
<atmosx> jeez I feel sleepy
iamjarvo has joined #ruby
jmeeuwen_ has joined #ruby
jmeeuwen has quit [Read error: Connection reset by peer]
SHyx0rmZ has joined #ruby
jmeeuwen_ is now known as jmeeuwen
carraroj has joined #ruby
<olivier_bK> when i try to export my array in csv i get configuration_securicmm.mydomain.net.php,["securicmm", "https://securicmm.mydomaine.net", "securicmm"]
Milly_Bays has quit [Quit: Leaving]
lmickh has joined #ruby
<olivier_bK> do you know how i can remove the hook
<olivier_bK> ?
creativeembassy has joined #ruby
jason_ has joined #ruby
kayloos_ has joined #ruby
hgl has joined #ruby
duggiefresh has joined #ruby
SilkFox has joined #ruby
_bart has joined #ruby
arietis has joined #ruby
kayloos has quit [Ping timeout: 245 seconds]
SHyx0rmZ has quit [Ping timeout: 240 seconds]
emaxi has quit [Remote host closed the connection]
frank_____ has joined #ruby
jamto11 has joined #ruby
msmith_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
anaeem1_ has joined #ruby
freerobby has joined #ruby
jwest has quit [Quit: WeeChat 0.4.1]
donnoc_ has quit [Ping timeout: 245 seconds]
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
cj3kim_ has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
<shevy> how should others be able to reproduce this problem
dik_dak has quit [Quit: Leaving]
rm_ has quit [Ping timeout: 265 seconds]
snath has quit [Ping timeout: 265 seconds]
nvrch has quit [Quit: nvrch]
etqqkoiflwhb has joined #ruby
sambao21 has joined #ruby
dik_dak has joined #ruby
cj3kim has quit [Ping timeout: 276 seconds]
sdouglas has joined #ruby
Merks has joined #ruby
treehug88 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
grayWolf is now known as Speed
tesuji has joined #ruby
zarul has quit [Remote host closed the connection]
shtirlic_ has quit [Quit: ZNC - http://znc.in]
sungai_keruh has joined #ruby
klaut has joined #ruby
<olivier_bK> shevy, sorry i read the csv doc
etqqkoiflwhb has quit [Client Quit]
browndawg has quit [Quit: Leaving.]
shtirlic has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
etqqkoiflwhb has joined #ruby
baweaver has joined #ruby
shtirlic has quit [Client Quit]
davispuh has joined #ruby
shtirlic has joined #ruby
SHyx0rmZ has joined #ruby
<shevy> others still can not reproduce the problem
yacks has joined #ruby
<shevy> or at least I can't, perhaps someone else can.
crzrcn has joined #ruby
<olivier_bK> this times is much better
jason_ has quit [Remote host closed the connection]
emaxi has joined #ruby
mary5030 has joined #ruby
yfeldblum has joined #ruby
cornfeedhobo has left #ruby ["when i leave, come together like butt cheeks"]
hgl has quit [Quit: Computer has gone to sleep.]
ace_striker has quit [Ping timeout: 240 seconds]
crzrcn has quit [Ping timeout: 258 seconds]
geggam has joined #ruby
rebelshrug has joined #ruby
mary5030 has quit [Remote host closed the connection]
sdelmore has joined #ruby
chuckhoffman has joined #ruby
mehlah has quit [Ping timeout: 276 seconds]
mary5030 has joined #ruby
rayners has joined #ruby
andy___ has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
chuckhoffman is now known as centipedefarmer
mengu has quit [Remote host closed the connection]
DreamingRainne has quit [Quit: Dreaming to the sound of rain.]
sski has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
tvw has joined #ruby
nvrch has joined #ruby
zarul has joined #ruby
zarul has quit [Changing host]
zarul has joined #ruby
oponder_ has joined #ruby
sdouglas has joined #ruby
andy___ has quit [Remote host closed the connection]
meatherly has joined #ruby
okdas has quit [Quit: Lingo - http://www.lingoirc.com]
andy___ has joined #ruby
SCommette has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
supersym has quit [Ping timeout: 245 seconds]
oponder has quit [Ping timeout: 276 seconds]
supersym has joined #ruby
oponder_ has quit [Ping timeout: 265 seconds]
browndawg has joined #ruby
mu5k17u has quit [Quit: Leaving]
s3ri0us has joined #ruby
codenapper has joined #ruby
aniM has joined #ruby
<MacTrash> Is there a way to use merge on 2 hashes when the key I want to use has a different name in both hashes?
andy___ has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
andy___ has joined #ruby
<Mon_Ouie> No, it only combines values that are for the same key. You could create an intermediate Hash where you've adjusted the keys
rayners has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 258 seconds]
pu22l3r has quit [Remote host closed the connection]
rebelshrug has quit [Quit: Textual IRC Client: www.textualapp.com]
Dude007 has joined #ruby
pu22l3r has joined #ruby
momomomomo has quit [Quit: momomomomo]
Robert__ has joined #ruby
rebelshr_ has joined #ruby
anaeem1 has joined #ruby
ellbot has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
pbergsmann has joined #ruby
sigurding has joined #ruby
kenndel_ has quit [Ping timeout: 258 seconds]
alexherbo2 has quit [Quit: WeeChat 0.4.3]
claymore has joined #ruby
<pbergsmann> hi @all! i’m trying to install the mysql gem on a debian wheezy server with mariadb but it fails with “checking for mysql_ssl_set()... *** extconf.rb failed ***” does anyone have an idea? i tried everything in every google result :)
mehlah has joined #ruby
<ddv> did you install mysql development headers?
cj3kim_ has quit [Read error: Connection reset by peer]
<pbergsmann> i installed the mariadb ones, yes and installing the mysql2 gem works btw
<ddv> pbergsmann, also you should look at the relevent part in your build log
cj3kim has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
shtirlic has quit [Quit: ZNC - http://znc.in]
rebelshr_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has quit [Ping timeout: 252 seconds]
rebelshrug has joined #ruby
shtirlic has joined #ruby
AlexRussia has joined #ruby
<pbergsmann> ok, i should have thought about looking into the mkmf.log by myself…it’s full of undefined references to openssl…i’ll look into that… THX!
ghr has joined #ruby
momomomomo has joined #ruby
shtirlic has quit [Client Quit]
crystal77 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
Al__ has joined #ruby
shtirlic has joined #ruby
<bricker`LA> /join #rubyonrails
ghr has quit [Ping timeout: 250 seconds]
<bricker`LA> ... well, go on then.
anaeem1 has quit [Ping timeout: 252 seconds]
rayners has joined #ruby
<ddv> pbergsmann, no problem
hoelzro has quit [Remote host closed the connection]
mehlah has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
<pbergsmann> ddv: do you have any advice how to force some openssl lib directory when installing the mysql gem?
kerin has joined #ruby
kpshek has joined #ruby
sigurding has quit [Ping timeout: 276 seconds]
bricker`LA has quit [Ping timeout: 250 seconds]
sigurding has joined #ruby
bricker`LA has joined #ruby
jason_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
bogeyd6 has joined #ruby
<ddv> pbergsmann, I think you need to figure out what dependency you are missing. It should pickup ssl dev headers automatically
<ddv> pbergsmann, how are you compiling ruby?
<ddv> pbergsmann, are you using rbenv/rvm?
<pbergsmann> ddv: i forgot to mention, that i’m inside a omnibus package :)
kobain has joined #ruby
blackmesa has joined #ruby
<benzrf> shit
<benzrf> how do i make a Time from hour/minute
<benzrf> or HMS i guess
dima_ has joined #ruby
<ddv> strfparse?
lmickh has quit [Ping timeout: 240 seconds]
<ddv> something like that
<benzrf> >.>
<Hanmac> shevy currently "rwx: 50.68% documented"
Letopanyu1 has joined #ruby
pygospa has joined #ruby
lmickh has joined #ruby
mehlah has joined #ruby
vpretzel_ has joined #ruby
<benzrf> how can i set the h/m/s for a Time >.<
<benzrf> or make a new one w/ those values
butblack has joined #ruby
Celm has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
dima_ has quit [Ping timeout: 258 seconds]
cj3kim has joined #ruby
sigurding has quit [Ping timeout: 258 seconds]
<olivier_bK> benzrf, Time.now.strftime("%H-%M-%S")
<olivier_bK> => "17-01-20"
rm_ has joined #ruby
vpretzel|retro has quit [Ping timeout: 240 seconds]
noop has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar_ has joined #ruby
subz3r0 has joined #ruby
<subz3r0> hi
<benzrf> n-no
<benzrf> i want in the opposite direction
nism has quit [Quit: Leaving]
<Sou|cutter> greetings citizen
butblack has left #ruby [#ruby]
<subz3r0> trying to install snorby on ubuntu 12.04 and followed this tutorial: http://everydayiszeroday.blogspot.de/2013/01/installing-snorby-on-ubuntu-1204.html
<benzrf> i.e. [3, 15, 0] => Time at 3:15:00
lmickh_ has joined #ruby
lmickh_ has left #ruby [#ruby]
<subz3r0> but on "bundle install --deployment" i get errors. also on "rake snorby:setup"
baweaver has quit [Remote host closed the connection]
<subz3r0> "Could not find rake-0.9.2 in any of the sources"
<olivier_bK> benzrf, you want to give a params to time
<olivier_bK> ?
dkannan has quit [Quit: dkannan]
<benzrf> i guess
<benzrf> but i dont want to type out the year & so on
<subz3r0> would be nice if someone could help me. this are my first steps with ruby and right got issues :(
<benzrf> subz3r0: i dunno
phansch has quit [Quit: WeeChat 0.4.2]
Celm has quit [Ping timeout: 258 seconds]
enebo has quit [Quit: enebo]
senayar has quit [Ping timeout: 240 seconds]
hoelzro has joined #ruby
supersym has quit [Ping timeout: 276 seconds]
<Hanmac> subz3r0: first try newer ubuntu, and what is your ruby version? try newer if possible, and then show us what "errors" you got
Briareos1 has joined #ruby
<benzrf> god dammit youse guys
vpretzel_ is now known as vpretzel|retro_a
<subz3r0> Hanmac: i just followed the tutorial i mentioned
aniM has quit [Remote host closed the connection]
noop has quit [Read error: Connection reset by peer]
<subz3r0> Hanmac: why newer version of ubuntu? 12.04 is not EOL. also i got the exact same issue with debian 7
thomasxie has quit [Quit: Leaving.]
ace_striker has joined #ruby
Letopanyu1 has quit [Quit: WeeChat 0.4.3]
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
Es0teric has joined #ruby
<subz3r0> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
codezomb has joined #ruby
mansi_ has joined #ruby
<Hanmac> jeah thats a problem ... i dont support 1.8.7 ;P
sambao21 has quit [Quit: Computer has gone to sleep.]
ponga has quit [Quit: Leaving :)]
<subz3r0> thats what i got
<Hanmac> first change your ruby, remove the old 1.8.7 packages
sambao21 has joined #ruby
<olivier_bK> benzrf, t = Time.new(1993, 02, 24
fabrice31 has quit [Remote host closed the connection]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
<benzrf> :{
<benzrf> is there a way to iterate over a Time rage
jeregrine has joined #ruby
<benzrf> *range
kitak has joined #ruby
<olivier_bK> maybe
fabrice31 has joined #ruby
cjbottaro has joined #ruby
quitobro has joined #ruby
crzrcn has joined #ruby
baweaver has joined #ruby
enebo has joined #ruby
lw has joined #ruby
x77686d has joined #ruby
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
Vovko has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
mehlah has quit [Read error: Connection reset by peer]
crzrcn has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
almostwhitehat has joined #ruby
rundll32 has joined #ruby
Celm has joined #ruby
helpD has quit [Remote host closed the connection]
<rundll32> twitter still uses rubyonrails ?
helpD has joined #ruby
s3ri0us has quit [Quit: Linkinus - http://linkinus.com]
<rundll32> for its ui?
yfeldblum has quit [Ping timeout: 240 seconds]
Doppp has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
ph88 has joined #ruby
AlexRussia has joined #ruby
Doppp has joined #ruby
noop has joined #ruby
vpretzel|retro_a is now known as vpretzel|bugsqua
MacTrash has quit [Quit: This computer has gone to sleep]
helpD_ has joined #ruby
rippa has joined #ruby
helpD has quit [Ping timeout: 276 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
foit3 has joined #ruby
lw has quit [Quit: s]
tesuji has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
rundll32 has left #ruby [#ruby]
Es0teric has quit [Quit: Computer has gone to sleep.]
<foit3> Hi. anybody knows how i can delete a symlink within ruby? tried File.unlink(f), but got Operation not permitted @ unlink_internal . (google didn't help)
sski has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 245 seconds]
sdwrage has joined #ruby
pietr0 has quit [Quit: pietr0]
sski has joined #ruby
supersym has joined #ruby
<lupine> foit3, sounds like you don't have permissions to delete the symlink at all
<lupine> unlink is the right call
nomadic has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 258 seconds]
<foit3> lupine: well its lrwxr-xr-x and the ruby app did create the symlink
<lupine> if Kernel.system("rm symlink") works, then it's not a permissions issue
rundll32 has joined #ruby
djbkd has joined #ruby
<foit3> lupine: i ll try
lmickh has quit [Quit: No Ping reply in 180 seconds.]
bradsmith has joined #ruby
<lupine> (for removing files, IIRC, the permissions of the directory also come into play - but if you can create, you should be able to delete)
hamakn has quit [Remote host closed the connection]
arubincloud has joined #ruby
lmickh has joined #ruby
sski has quit [Ping timeout: 240 seconds]
<lupine> I've just tested unlink here and it does what I'd expect to a symlink
nomadic has joined #ruby
`nik` has quit [Remote host closed the connection]
arietis has joined #ruby
<lupine> so, I just upgraded a large, complicated ruby1.8 process that supervises a few hundred other processes and does other stuff to ruby1.9
<lupine> one job has gone from 60 seconds to 4
<rundll32> lupin, what is the best software for ruby that works with c language?
Al__ has quit [Quit: Al__]
dima_ has joined #ruby
<lupine> I don't know what that is, rundll32
<lupine> ffi?
kevind has joined #ruby
<rundll32> i mean the the best framework ?
<lupine> i still don't know what that is
troyready has joined #ruby
<lagweezle> lupine: wow. O.O
<lagweezle> That's a NICE speed up.
<lupine> yeah, I'm quite happy
bean has joined #ruby
<foit3> lupine: thx for your help. unlink didnt work for me, but delete did. i had another issue. not all files i wanted to delete were symlinks but folders too
<lupine> you're not on a broken platform, are you?
<lupine> windows or osx or something like that
<lupine> lagweezle, yeah, I had an idea that 1.9 would be faster, but in my head this transition was going to be the first in many optimisation steps
<lupine> but now I can sit back and drink cider all easter
ksinkar has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
sski has joined #ruby
<rundll32> lupin, can you answer one question?
<lupine> if i can
sdwrage has quit [Quit: This computer has gone to sleep]
tesuji has joined #ruby
<rundll32> is twitter still runs ruby in its frontend?
etqqkoiflwhb has joined #ruby
<lupine> no, I believe they moved away
<rundll32> they moved away to java right?
<baweaver> Scala
<lupine> don't remember, they blogged extensively about it
<baweaver> They still use a lot of Ruby
Morkel_ has joined #ruby
<rundll32> they told they still ruby in its frontend ui.
sdwrage has joined #ruby
nomadic has quit [Quit: -bye-]
<baweaver> Anything requiring large scale concurrency, you'd be a fool to advocate pure Java.
<lupine> I'd be surprised, it's almost entirely javascript
ghr has joined #ruby
butblack has joined #ruby
nomadic has joined #ruby
<lupine> go is definitely growing on me for both high and low-concurrency applications
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
qba73 has quit []
vpretzel|bugsqua is now known as vpretzel|1301
<rundll32> but i found that bootstrap is written in java script but wikipedia says they still using ruby on their frontend.
oo_ has quit [Quit: Leaving...]
foit3 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ghr has quit [Ping timeout: 252 seconds]
rmorello is now known as rmorello|1301
sdwrage has quit [Quit: This computer has gone to sleep]
StreakyJ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
pygospa has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
browndawg has quit [Quit: Leaving.]
* rundll32 @lupine @baweaver any hints.
sdouglas has quit [Remote host closed the connection]
<lupine> no, i'm afraid I don't work for twitter
Xuerian has quit [Remote host closed the connection]
<baweaver> I miss something?
nomadic has quit [Quit: -bye-]
<baweaver> Bootstrap is a frontend framework using CSS and Javascript
momomomomo has quit [Quit: momomomomo]
sdouglas has joined #ruby
zachallett has quit [Remote host closed the connection]
<baweaver> Rails is back a layer, and is primarily used as an API, if at all at this point (I don't know offhand)
nomadic has joined #ruby
whomp has joined #ruby
sdwrage has joined #ruby
<baweaver> Scala is used for all the backend services, and they probably have Play or a similar framework starting to take over web services.
locriani has joined #ruby
nomadic has quit [Changing host]
nomadic has joined #ruby
whomp has quit [Client Quit]
<baweaver> I don't work for Twitter either, but I tend to follow their tech stack a bit.
<baweaver> more recently the really backend with MapReduce and Scalding.
Xuerian has joined #ruby
eynj has joined #ruby
obs has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<subz3r0> anyone ever installed snorby on a *nix box?
pu22l3r has quit [Ping timeout: 265 seconds]
sski has quit [Remote host closed the connection]
<subz3r0> trying it now for days and cant get it to work :(
<rundll32> baweaver, thanks for taking your precious time to answer my questions .
sski has joined #ruby
<baweaver> Essentially the structure when I last paid attention to the entire thing: [Scala] <--> [Rails JSON API] <--> [Bootstrap]
<baweaver> very very high level though
sambao21 has joined #ruby
<baweaver> subz3r0, can't say I have at least.
sdouglas has quit [Ping timeout: 258 seconds]
sdwrage has quit [Client Quit]
nvrch has quit [Quit: nvrch]
bradhe has joined #ruby
centrex has quit [Ping timeout: 240 seconds]
lolmaus has quit [Ping timeout: 252 seconds]
bradhe has quit [Remote host closed the connection]
aspires has joined #ruby
bradhe has joined #ruby
momomomomo has joined #ruby
madb055 has quit [Ping timeout: 258 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
sski has quit [Ping timeout: 245 seconds]
s00pcan has joined #ruby
lolmaus has joined #ruby
mansi_ has quit [Remote host closed the connection]
Es0teric has joined #ruby
nomadic has quit [Quit: -bye-]
snath has joined #ruby
mansi_ has joined #ruby
nomadic has joined #ruby
tkuchiki has quit [Remote host closed the connection]
nomadic has quit [Changing host]
nomadic has joined #ruby
nerocrux has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
codebro has joined #ruby
mansi_ has quit [Ping timeout: 245 seconds]
mansi_ has joined #ruby
sethetter has joined #ruby
sethetter has left #ruby [#ruby]
no6 has joined #ruby
s00pcan has quit [Quit: leaving]
s00pcan has joined #ruby
pietr0 has joined #ruby
emaxi has quit [Remote host closed the connection]
hamakn has joined #ruby
jgoss has quit [Remote host closed the connection]
emaxi has joined #ruby
s00pcan has quit [Remote host closed the connection]
Xuerian has quit [Remote host closed the connection]
s00pcan has joined #ruby
alex88 has quit [Quit: Leaving...]
s00pcan has quit [Remote host closed the connection]
wallerdev has joined #ruby
s00pcan has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
funktor has joined #ruby
rundll32 has left #ruby [#ruby]
mehlah has joined #ruby
arietis has joined #ruby
sailias has joined #ruby
Xuerian has joined #ruby
emaxi has quit [Ping timeout: 258 seconds]
andy___ has quit [Read error: Connection reset by peer]
<shevy> do you guys prefer
<shevy> n.times { |foo|
<shevy> or
<shevy> n.times {|foo|
crzrcn has joined #ruby
Hobogrammer has joined #ruby
andy___ has joined #ruby
freerobby has quit [Quit: Leaving.]
sambao21 has joined #ruby
i_s has joined #ruby
<lagweezle> I likes the space.
Xuerian has quit [Remote host closed the connection]
<j416> shevy: common convention says space
freerobby has joined #ruby
yfeldblum has joined #ruby
maletor has joined #ruby
Xuerian has joined #ruby
chris_thomson has joined #ruby
crzrcn has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
Fretta has joined #ruby
<atmosx> hey
senayar_ has quit []
yfeldblum has quit [Ping timeout: 240 seconds]
creativeembassy has quit [Quit: FO SHO]
dumdedum has joined #ruby
creativeembassy has joined #ruby
sdwrage has joined #ruby
shime has quit [Ping timeout: 250 seconds]
redondos has quit [Excess Flood]
yfeldblum has joined #ruby
redondos has joined #ruby
benzrf|offline is now known as benzrf
stephenmac7 has quit [Remote host closed the connection]
<j416> benzrf: ever heard of /away ? :)
* j416 hints
lolmaus has quit [Ping timeout: 250 seconds]
momomomomo has quit [Quit: momomomomo]
lmickh has quit [Remote host closed the connection]
luriv has quit [Ping timeout: 265 seconds]
nerium has quit [Read error: Connection reset by peer]
emaxi has joined #ruby
lmickh has joined #ruby
toastynerd has joined #ruby
noob101 has joined #ruby
timonv has quit [Remote host closed the connection]
Sid05 has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
<benzrf> j416: it's muh bouncer
<benzrf> i could turn nickchange off
<benzrf> but what if people think im online and talk to me
Es0teric has quit [Quit: Computer has gone to sleep.]
charlies_ is now known as charliesome
<j416> benzrf: the world will end? :D
<j416> I'd set the bouncer to set away-mode
shime has joined #ruby
momomomomo has joined #ruby
<benzrf> which is what?
bradhe has joined #ruby
freerobby has quit [Quit: Leaving.]
Dude007 has quit []
helpD_ has quit [Remote host closed the connection]
aspires has quit []
momomomomo has quit [Client Quit]
<shevy> don't set it man!
<shevy> it makes j416 angry
<j416> lol what
<j416> nah I don't mind
cj3kim_ has joined #ruby
<j416> just thought for once I'd give some advice to the irc-noob :)
<j416> :P
aspires has joined #ruby
<j416> anyway </offtopic>
marcdel has joined #ruby
<shevy> j416 you could announce it when benzrf changes status :)
dstynchula has joined #ruby
cj3kim has quit [Ping timeout: 258 seconds]
rmorello|1301 is now known as rmorello|swim
rm_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
_bart has quit [Quit: leaving]
rm_ has joined #ruby
ashleyis has quit [Ping timeout: 246 seconds]
crystal77 has quit [Quit: Textual IRC Client: www.textualapp.com]
shime has quit [Ping timeout: 250 seconds]
luriv has joined #ruby
momomomomo has joined #ruby
r0nin_ has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
marcdel has quit [Ping timeout: 265 seconds]
ashleyis has joined #ruby
Spami has joined #ruby
crzrcn has joined #ruby
wallerdev has quit [Quit: wallerdev]
michaeldeol has joined #ruby
r0nin_ has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
<j416> shevy: lol what
<j416> rmorello|swim...
bradhe has joined #ruby
rm_ has quit [Ping timeout: 258 seconds]
<j416> shevy: this is never going to end is it
<j416> :D
* shevy shevy|naked
<shevy> ack
<j416> www
<j416> lol
<shevy> that was a nick change fail
shevy is now known as shevy|naked
<shevy|naked> there we go
<j416> sexy
larsam has quit [Quit: larsam]
<shevy|naked> see how seldom I use that command
marcdel has joined #ruby
shevy|naked is now known as shevy
<shevy> it's that dark corner of IRC
_justin has joined #ruby
Czupa has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
charliesome has quit [Client Quit]
coderhs has joined #ruby
kpshek has quit []
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Vovko has quit []
havenwood has joined #ruby
crzrcn has quit [Quit: Leaving.]
timonv has joined #ruby
senayar has joined #ruby
<Hanmac> shevy: i did say that rwx has currently > 50% documented of existing code ... and there was no reaction from you, are you not interested anymore? *sad face*
ace_striker has quit [Ping timeout: 240 seconds]
frank_____ has quit [Quit: Connection closed for inactivity]
cj3kim_ has quit [Remote host closed the connection]
supersym has quit []
toastynerd has quit [Remote host closed the connection]
lsmola has quit [Ping timeout: 245 seconds]
Doppp has quit [Ping timeout: 276 seconds]
lkba has joined #ruby
<shevy> Hanmac I woke up about like 20 minutes ago or such
klaut has quit [Remote host closed the connection]
Doppp has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
<shevy> Hanmac that is good!
<Hanmac> shevy https://www.youtube.com/watch?v=Uk_vV-JRZ6E << " KIDS REACT TO WALKMANS (Portable Cassette Players) "
rm_ has joined #ruby
freerobby has joined #ruby
kpshek has joined #ruby
centipedefarmer has quit [Ping timeout: 276 seconds]
x77686d has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
sski has joined #ruby
CaptainJet has joined #ruby
mattsp1290 has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 265 seconds]
rylev has joined #ruby
freerobby has joined #ruby
roolo has quit [Quit: Leaving...]
freerobby1 has quit [Read error: Connection reset by peer]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
_justin has quit [Quit: _justin]
freerobby1 has joined #ruby
acoyfellow has quit [Ping timeout: 276 seconds]
lolmaus has joined #ruby
<wallerdev> food morning
freerobby has quit [Read error: Connection reset by peer]
twidx has joined #ruby
dumdedum has quit [Quit: foo]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lele has quit [Ping timeout: 246 seconds]
mansi_ has quit [Remote host closed the connection]
mrnugget has quit [Quit: mrnugget]
mansi_ has joined #ruby
lw has joined #ruby
SilkFox has joined #ruby
GaryOak_ has joined #ruby
duggiefresh has quit [Remote host closed the connection]
<Eiam> whats blah = -> (stuff) ?
<Eiam> i tried googling for ruby symbols -> and didn't turn up anything constructive
<Eiam> from reading the code it looks like some kind of lambda shorthand
<wallerdev> you need a {}
<wallerdev> wont work like that
<wallerdev> search stabby block
<wallerdev> thats the official name lol
freerobby has joined #ruby
camilasan has joined #ruby
aspires has quit []
freerobby has quit [Read error: Connection reset by peer]
freerobby2 has joined #ruby
<Eiam> okay so it is a lambda shorthand
freerobby1 has quit [Ping timeout: 265 seconds]
<Eiam> at least i could decipher the code properly
<Hanmac> wallerdev: stabby block/lambda always looks like some kind of Brutus act ... ;P
mansi_ has quit [Ping timeout: 258 seconds]
<Eiam> so what is you guys opinion on writing a lambda then .call on an array with the lambda passed in, vs just putting the contents of the function inside an .each or .map on the array itself?
<Eiam> cause i find the second to be more obvious, and the first to be... wankery?
<Eiam> its less immediately obvious and unless you intend on calling the lambda repeatedly elsewhere, provides no value
<slash_nick> Eiam: i dunno... gist an A vs B for me?
Kricir has quit [Remote host closed the connection]
mark_locklear has quit [Ping timeout: 250 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
aspires has joined #ruby
duggiefresh has joined #ruby
<wallerdev> Eiam: dont add complexity you dont need haha
bradhe has quit [Remote host closed the connection]
Doppp has quit [Ping timeout: 240 seconds]
simono has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
<Eiam> that was my sentiment but maybe I'm biased
<Eiam> my boss said "I rewrote some of your code"
heftig has quit [Quit: Quitting]
<Eiam> so i read the source diffs and was like.. ಠ_ಠ you made my code worse, not better.
<shevy> lol
kenneth has joined #ruby
<wallerdev> maybe he just discovered lambdas and was excited to use them everywhere
<shevy> Eiam I find that procs and lambdas in general are at odds with the rest of my code
roland has joined #ruby
<wallerdev> happens to the best of us
<Eiam> wallerdev: he's totally into this wolfram alpha could computing thing
<Eiam> which is very functional
<shevy> adding a new syntax -> only exacerbates on that situation
<Eiam> so yes, i think he was looking for an itch to scratch in some way
<Hanmac> Eiam good that you dont need to read my C++ macros ;P
<baweaver> They're extremely useful
mjs2600 has joined #ruby
xibalba has quit [Quit: ZNC - http://znc.in]
<baweaver> when you use them correctly
heftig has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
andy___ has quit [Remote host closed the connection]
Doppp has joined #ruby
<Eiam> Hanmac: I don't do C++ thankfully. Ruby/JS/Obj-C
<baweaver> Which 99% of the time you won't unless you're keen on one of: Haskell, Scala, Clojure, Lisp
<wallerdev> yeah they can help clean up some repetitive code
<wallerdev> but most of the time all you need is blocks
andy___ has joined #ruby
mansi_ has joined #ruby
<baweaver> Agreed, blocks are still anonymous functions anyways
<baweaver> If you REALLY want to know what to use them for, and why, read Let over Lambda.
* Hanmac sings "all you need is blocks ... "
rvraghav93 has joined #ruby
<baweaver> but be forewarned, that book is some seriously deep FP
lkba has joined #ruby
bradhe has quit [Ping timeout: 250 seconds]
no6 has quit [Ping timeout: 240 seconds]
<baweaver> https://leanpub.com/combinators - This one helps as well
andy___ has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
renier has joined #ruby
andy___ has joined #ruby
lele has joined #ruby
ukd1 has joined #ruby
sailias has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
zigomir has quit [Remote host closed the connection]
phansch has joined #ruby
JohnBat26 has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
mjs2600 has quit [Remote host closed the connection]
kpshek has quit []
simono has joined #ruby
no6 has joined #ruby
nircUser has joined #ruby
etqqkoiflwhb has joined #ruby
<shevy> dumdedum
endash_ has joined #ruby
nircUser has left #ruby [#ruby]
mjs2600 has joined #ruby
SvenOostenbrink has joined #ruby
pu22l3r has joined #ruby
senayar_ has joined #ruby
zcreative has joined #ruby
benzrf is now known as benzrf|offline
anaeem1 has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
bklane has joined #ruby
<bklane> so I am creating a user object that has 1 of 4 different roles. I am unsure if it would be best to make this attribute a string or a integer that correlates to a role. Any thoughts?
timgauthier has joined #ruby
senayar has quit [Ping timeout: 258 seconds]
<j416> bklane: symbol?
etqqkoiflwhb has quit [Ping timeout: 252 seconds]
timonv has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
timonv has joined #ruby
<bklane> j416: can you set an attribute column as a symbol with rails?
<j416> never used rails, sorry
timonv has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
butblack has quit [Ping timeout: 258 seconds]
mjs2600 has joined #ruby
x1337807_ has joined #ruby
yfeldblu_ has joined #ruby
rayners has quit [Remote host closed the connection]
butblack has joined #ruby
simono has quit [Ping timeout: 276 seconds]
<bklane> hmmm, alright thanks
<j416> >.>
anaeem1 has quit [Ping timeout: 276 seconds]
etqqkoiflwhb has joined #ruby
helpD has joined #ruby
timgauthier has quit [Client Quit]
yfeldblum has quit [Ping timeout: 240 seconds]
evenix_ has joined #ruby
evenix has joined #ruby
jwest has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
_justin has joined #ruby
x1337807x has quit [Ping timeout: 265 seconds]
<Hanmac> bklane: #RubyOnRails
kpshek has joined #ruby
kpshek has quit [Client Quit]
mark_locklear has joined #ruby
<Hanmac> bklane: but about ERM, I would make a role table there is it listed, and then use some kind of User has many Roles ... that should make an m-n relation automaticlly
dapz has joined #ruby
aspires has quit []
rylev has quit [Remote host closed the connection]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zigomir has joined #ruby
senayar_ has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
Milly_Bays has joined #ruby
quitobro has quit [Remote host closed the connection]
x1337807_ has quit [Ping timeout: 265 seconds]
bradsmith has quit [Remote host closed the connection]
combusean has joined #ruby
andy___ has quit [Remote host closed the connection]
rmorello|swim has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sski has quit [Remote host closed the connection]
andy___ has joined #ruby
sski has joined #ruby
benzrf|offline is now known as benzrf
stonevil has joined #ruby
mehlah has quit [Quit: Leaving...]
aspires has joined #ruby
creativeembassy has quit [Quit: FO SHO]
andy___ has quit [Read error: Connection reset by peer]
funktor has quit [Remote host closed the connection]
iamjarvo has joined #ruby
freerobby2 has quit [Quit: Leaving.]
andy___ has joined #ruby
pwh has quit []
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
funktor has joined #ruby
bradhe has joined #ruby
pu22l3r has quit [Remote host closed the connection]
sski has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
centrx has joined #ruby
Adrao has joined #ruby
aspires has quit [Ping timeout: 240 seconds]
msmith_ has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
msmith_ has joined #ruby
funktor has quit [Ping timeout: 240 seconds]
qhartman has joined #ruby
shashank_rs has joined #ruby
kayloos_ has quit [Ping timeout: 252 seconds]
nomadic has quit [Ping timeout: 246 seconds]
keen_____ has joined #ruby
wallerdev has quit [Quit: wallerdev]
nomadic has joined #ruby
keen____ has quit [Ping timeout: 265 seconds]
marr has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
nomadic has quit [Changing host]
nomadic has joined #ruby
wallerdev has joined #ruby
kobain has quit []
mark_locklear has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
j416 has quit [Quit: o/]
butblack has quit [Quit: butblack]
timonv has joined #ruby
cj3kim has joined #ruby
mjs2600 has quit [Remote host closed the connection]
butblack has joined #ruby
<seemant> hi all, in ruby land, is there a good ORM type library?
butblack has quit [Client Quit]
<seemant> I'm agnostic as to relational or not, I suppose
Kricir has joined #ruby
<shevy> god python2 vs python3 sucks so much
<seemant> note: not rails :)
<shevy> there are build tools like libgweather that depend on only either version
aspires has quit []
<atmosx> seemant: sequel
mjs2600 has joined #ruby
crzrcn has joined #ruby
<atmosx> seemant: there's also datamapper but I'd go with sequel
cj3kim has quit [Ping timeout: 258 seconds]
x77686d has quit [Quit: x77686d]
<seemant> atmosx: what do you like about it?
sambao21 has joined #ruby
<baweaver> Sequel, Virtus
kpshek has joined #ruby
<baweaver> Virtus if you're interacting with JSON structures
<baweaver> Sequel if you don't, or aren't sure what that is.
blackavr has joined #ruby
pskosinski has quit [Remote host closed the connection]
<seemant> baweaver: atmosx: my input data is, in fact, json
<seemant> (if that makes a diff)
stonevil has quit [Quit: Computer has gone to sleep.]
butblack has joined #ruby
stonevil has joined #ruby
agjacome has quit [Quit: leaving]
Jetchisel has joined #ruby
x1337807x has joined #ruby
rmorello has joined #ruby
deens has joined #ruby
rmorello is now known as rmorello|exhaust
<atmosx> seemant: what does it mean your input data is json?
stonevil has quit [Ping timeout: 265 seconds]
<atmosx> seemant: why does it matter?
<atmosx> seemant: I like the fact that is active developed and often updated and there's a really nice support right on this network by the lead developer
<atmosx> seemant: does everything I need and much more
centrex has joined #ruby
<seemant> atmosx: thank you, I will give it a shot then
Squarepy has joined #ruby
<shevy> hey atmosx how's your rails project coming along?
cruisibesares has joined #ruby
<centrx> seemant, You can use ActiveRecord without the rest of Rails too
<seemant> centrx: ah, I see. thank you
deens has quit [Ping timeout: 258 seconds]
deens has joined #ruby
<atmosx> shevy: slowly.
<centrx> seemant, Here is a good comparison of Sequel and ActiveRecord which shows both: http://mrbrdo.wordpress.com/2013/10/15/why-you-should-stop-using-activerecord-and-start-using-sequel/
sepp2k has quit [Quit: Leaving.]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<atmosx> shevy: I'm doing the thesisprogram with sinatra/sequel
<ddd> i like sequel, but i'm used to the AR helpers, so i'm finding it difficult to do all the same in sequel. education issue, not a sequel issue
nomenkun has joined #ruby
<cruisibesares> Hey guys im making a web service with unicorn everything works fine but I have something that I absolutly have to run when/if the unicorn worker crashes. Does anyone know how to bascially make an ensure block with a unicorn worker?
nomenkun has quit [Remote host closed the connection]
<ddd> damn, sorry was trying to copy the URL
mehlah has joined #ruby
nomenkun has joined #ruby
nomenkun has quit [Remote host closed the connection]
ehc has joined #ruby
nomenkun has joined #ruby
<atmosx> ddd: I use sequel for all except rails. Rails is integrated with AR, I wouldn't use rails if it weren't for it's conventions
luriv has quit [Ping timeout: 240 seconds]
<centrx> seemant, Sequel and ActiveRecord are the two major Ruby ORMs now. Datamapper is kind of old, and Ruby Object Manager is not yet ready for primetime.
madb055 has joined #ruby
<cruisibesares> im currenly trying to use after_fork to override the traps that unicorn sets up but i cant seem to get it to work
<cruisibesares> the eveluation is here
<seemant> centrx: thank you for that overview :)
sepp2k has joined #ruby
<seemant> centrx: atmosx: any opnionn on the nosql options?
<atmosx> cruisibesares: why does unicorn crash?
<atmosx> seemant: nope, sorry
<ddd> atmosx yeah i was doing this with ramaze at the time.
blackavr has quit [Quit: blackavr]
<ddd> i'd like to learn sequel better regardless of rails or not.
alexherbo2 has joined #ruby
<cruisibesares> atmosx: it can crash out when the upstream service breaks or when the memory gets to high i have monit reaping it
<atmosx> cruisibesares: memory hight? how much high? Using ruby 2.1?
<ddd> someone had told me that before i do i should understand SQL a lot better (joins etc) as it would make sequel more understandable without the helpers.
<ddd> so i've been reading the postgresql manual set I bought.
quitobro has joined #ruby
<benzrf> ddd: i know sql!
<benzrf> kinda
<ddd> you know, their book series.
<benzrf> what's good about ramaze v. rails or sinatra
<ddd> benzrf i'm not very good with it
<cruisibesares> yeah basically in the background im running waitir and trying to turn a website without an api into an api
<benzrf> also is that rah-mah-zey or ruh-maze
<ddd> outside of an ORM like AR or Sequel
dapz has joined #ruby
<ddd> rah mayze
<cruisibesares> waitir crashes or ff crashes or it times out and then it leave behind the open brower
<cruisibesares> i need to ensure that browser.close is called
<atmosx> cruisibesares: I'm confused by your setup. Not sure how you can relaunchd unicorn once crashed...
nomenkun has quit [Ping timeout: 240 seconds]
<ddd> could use a bash script and pidof
<cruisibesares> the master relaunches the worker
<cruisibesares> if the worker times out
pu22l3r_ has joined #ruby
<ddd> yeah you would only be able to monitor the master since the master controls and monitors the slaves.
wallerdev has quit [Quit: wallerdev]
<ddd> remember, the slaves die off normally too if not used and are above your minimum count
<ddd> so outside of unicorn you'd really only want to look at the master, since the child (slave) you wouldn't retain it's exit code
MatthewsFace has joined #ruby
<ddd> and with the master you really only care if its in the running/sleeping pool
SCommette has quit [Quit: SCommette]
phansch has quit [Quit: WeeChat 0.4.2]
pu22l3r has quit [Ping timeout: 240 seconds]
centrex has quit [Ping timeout: 276 seconds]
SvenOostenbrink has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
cpruitt has joined #ruby
SvenOostenbrink has joined #ruby
afex has joined #ruby
zorak has quit [Quit: Saliendo]
mjs2600 has quit [Remote host closed the connection]
zorak8 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Briareos1 has quit [Remote host closed the connection]
centrex has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
mrnugget has joined #ruby
treehug88 has quit []
<ddd> atmosx hey would it be too expensive to write a ruby script to launch unicorn and utilize a begin rescue end clause to monitor? (thinking memory requirements of bash vs ruby *just* for a monitoring script)
<ddd> just an idea
mjs2600 has joined #ruby
mjs2600 has quit [Remote host closed the connection]
kirun has quit [Remote host closed the connection]
vpretzel|1301 has quit [Quit: Adios!]
yfeldblum has joined #ruby
arietis has joined #ruby
northfurr has joined #ruby
s3ri0us has joined #ruby
treehug88 has joined #ruby
treehug88 has quit [Max SendQ exceeded]
mark_locklear has joined #ruby
treehug88 has joined #ruby
StreakyJ has quit [Quit: leaving]
funktor has joined #ruby
kirun has joined #ruby
yfeldblu_ has joined #ruby
x77686d has joined #ruby
mib_mib has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
mib_mib has quit [Quit: Page closed]
yfeldblum has quit [Ping timeout: 258 seconds]
pu22l3r has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
zcreative has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
_justin has quit [Quit: _justin]
sdwrage has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
phansch has joined #ruby
noob101 has quit [Ping timeout: 240 seconds]
quitobro has quit [Remote host closed the connection]
lmickh_ has joined #ruby
Shidash has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
MatthewsFace has quit [Quit: This computer has gone to sleep]
<zorak8> I think im gonna unnistall ruby and rails and rvm and delete all traces of they of my computer
<zorak8> and then install all again
<zorak8> m having a lot of problems with my rails
decoponio has quit [Quit: Leaving...]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm_ has quit [Ping timeout: 240 seconds]
ktosiek has joined #ruby
bklane has quit [Quit: Leaving...]
sepp2k1 has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
quitobro has joined #ruby
nerium has joined #ruby
<nerium> Anyone knows a good way to run blocks of ruby code asyncronius in for example a rails view?
kinginky_ has joined #ruby
timonv has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
sepp2k has quit [Ping timeout: 252 seconds]
GaryOak_ has quit [Quit: Leaving...]
kenneth has joined #ruby
MatthewsFace has joined #ruby
MatthewsFace has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
duggiefresh has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
aspires has joined #ruby
freerobby has quit [Quit: Leaving.]
sdwrage has joined #ruby
jason_ has quit [Remote host closed the connection]
jason_ has joined #ruby
cassioscabral has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> zorak8 I keep on telling ya, only use ruby from source ;)
dapz has joined #ruby
skaflem has quit [Quit: Leaving]
duggiefresh has joined #ruby
<havenwood> shevy: or ruby-install so you don't get burned by missing dependencies :P
<baweaver> Windows?
<shevy> I don't trust those automatic cures
<havenwood> baweaver: Nope.
<baweaver> If so, you're pretty well just asking for it
<shevy> we could all use RVM if it would work!
<zorak8> linux
<baweaver> It does
<shevy> havenwood did not recommend it!!!
<havenwood> shevy: RVM2 looks really ambitious, and... it's in Ruby!
grieg has quit [Ping timeout: 265 seconds]
<shevy> baweaver whenever I see your nick, I am thinking of talking to a beaver. it freaks me out somewhat :\
<havenwood> shevy: the chronic-what-chles of narnia
<shevy> cool
<baweaver> With the 2.0 project, it looks like fun
<shevy> never heard of rvm2
baweaver is now known as lemur
<lemur> BetteR?
<havenwood> shevy: 20,000+ lines of shell is just waaay too much
<lemur> Sounds like fun
<shevy> no wonder you don't recommend it
<havenwood> lemur: more ambitious, takes on the role of the SM framework as well as RVM's installing duties
<shevy> it's not written in ruby
<havenwood> hehe
Milly_Bays has quit [Read error: Connection reset by peer]
Es0teric has joined #ruby
mikeric has joined #ruby
<havenwood> lemur: RVM2 *may* even end up using chruby to switch Rubies, and relegate itself to the more difficult task of installing everything needed for Ruby and the rest of the development environment
<Eiam> didn't he do a kickstarter to write it?
<havenwood> still remains to be determined
thumpba_ has joined #ruby
benzrf is now known as benzrf|offline
<shevy> kinkstarter?
<havenwood> Eiam: yeah, but bountysource
<havenwood> err
<Eiam> 20k of shell, gag =(
<havenwood> another one, what was it
<Eiam> shell script longer than one page? don't write it in bash.
<lemur> I donated on that one
lemur is now known as Lemur
cover_ has joined #ruby
<havenwood> there it is ^
<Lemur> Got a fancy sticker
cover has quit [Ping timeout: 250 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther> $ cat ~/.rbenv/bin/rbenv ~/.rbenv/libexec/* | wc -l
<RubyPanther> 987
<havenwood> $2.50 per line of shell code converted to beautiful Ruby, a deal!
obscured has quit [Read error: Connection reset by peer]
<havenwood> at that rate chruby needs $250, no $50,000. doesn't seems like a good deal. :P
<Lemur> I can do it in 2 minutes easily
obscured has joined #ruby
aspires has quit []
<havenwood> RubyPanther: cat chruby.sh | wc -l #=> 99
<shevy> how many functions are in 20k of shell
<RubyPanther> $ cat ~/.rbenv/plugins/ruby-build/bin/* | wc -l
<RubyPanther> 1295
kpshek has quit []
lw has quit [Quit: s]
<Lemur> cat big_shell.sh >> new.rb; # and then surround in ``
<RubyPanther> So with installation tools, ~ 2k lines
<Lemur> fixed, ruby :D
dapz has joined #ruby
<Eiam> wow for 25k you could get your feature OF CHOICE
freerobby has joined #ruby
zachallett has joined #ruby
<Eiam> i'd like RVM to manage all my vagrant stuff and also let me play movies from terminal.
<Eiam> go forth sir and implement my feature of choice!
<RubyPanther> for 25k I want an embedded webserver, a text editor, and a tetris clone
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
<Eiam> ^ now yer thinking
mjs2600 has joined #ruby
<Eiam> for 25k we could totally derail this project
mjs2600 has quit [Remote host closed the connection]
<Lemur> Pipe the frames through an ascii converter, done
<havenwood> Eiam: i believe mpapis has plans to expand RVM2 beyond just setting up full Ruby environments, but also JavaScript and Python, etc.
<Eiam> I want it written in emacs!
<Lemur> s/\(emacs\)/\1lisp/
<havenwood> Eiam: so from a shell tool for installing Ruby to a Ruby tool for installing everything
<Eiam> brew install <blah> ?
<havenwood> but first Ruby
kpshek has joined #ruby
lmickh_ has quit [Quit: lmickh_]
<Eiam> brew install ruby; ruby install rvm; rvm install python;
<Eiam> woo
mjs2600 has joined #ruby
rm_ has joined #ruby
<havenwood> Eiam: RVM2 will bootstrap Ruby though, precompiled binaries or if they're unavailable JRuby. So you don't need Ruby to exist to install Ruby.
sarlalian has quit [Quit: WeeChat 0.4.0]
etqqkoiflwhb has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<havenwood> Eiam: also ability to have RVM2 on local dev machine but install your Ruby setup remotely on a server that doesn't have Ruby.
marr has joined #ruby
twiceaday has joined #ruby
aspires has joined #ruby
butblack has quit [Ping timeout: 245 seconds]
butblack has joined #ruby
notlaforge has joined #ruby
pbergsmann has quit [Quit: pbergsmann]
thumpba_ has quit [Remote host closed the connection]
twiceday has quit [Ping timeout: 245 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
phansch has joined #ruby
djbkd has quit [Remote host closed the connection]
SCommette has joined #ruby
phansch has quit [Client Quit]
phansch has joined #ruby
phansch has quit [Client Quit]
tvw has quit []
sarlalian has joined #ruby
rmorello|exhaust has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yubrew__ has quit [Remote host closed the connection]
cpruitt has joined #ruby
<havenwood> to be clear :O, when i said doesn't sound like a good deal i mean for the developers. a really, really good deal for the community. :D
cpruitt has quit [Client Quit]
kjs has quit [Ping timeout: 240 seconds]
ellbot has quit [Remote host closed the connection]
ellbot has joined #ruby
cpruitt has joined #ruby
<havenwood> friday ;)
afex has quit [Ping timeout: 240 seconds]
spyderman4g63 has joined #ruby
spyderma_ has quit [Read error: Connection reset by peer]
<shevy> continue coding
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
afex has joined #ruby
klaut has joined #ruby
<RubyPanther> I can't even tell if he's serious, but I'm laughing either way
ellbot has quit [Ping timeout: 252 seconds]
pushpak has joined #ruby
obscured has quit [Quit: leaving]
kpshek has quit []
noop has quit [Read error: No route to host]
bluOxigen has joined #ruby
glanzi has joined #ruby
Emmanuel_Chanel has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
olivier_bK has joined #ruby
toastynerd has joined #ruby
rh1n0 has joined #ruby
kpshek has joined #ruby
ellbot has joined #ruby
stonevil has joined #ruby
ashleyis has quit [Ping timeout: 252 seconds]
cassioscabral has quit [Ping timeout: 250 seconds]
rm_ has quit []
shashank_rs has quit [Ping timeout: 276 seconds]
MindfulMonk has quit [Ping timeout: 252 seconds]
BSaboia has quit [Ping timeout: 245 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
shashank_rs has joined #ruby
mattmcclure has joined #ruby
nfk has quit [Quit: yawn]
Es0teric has joined #ruby
benzrf|offline is now known as benzrf
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
etqqkoiflwhb has quit [Ping timeout: 250 seconds]
sarlalian has quit [Quit: WeeChat 0.4.0]
dunix has quit []
nfk has joined #ruby
timgauthier has joined #ruby
davedev2_ has joined #ruby
Adrao has quit [Remote host closed the connection]
MindfulMonk has joined #ruby
bradhe has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
combusean has quit [Ping timeout: 245 seconds]
andrewlio has quit [Quit: Leaving.]
ironsand has quit [Ping timeout: 240 seconds]
nouitfvf has quit [Ping timeout: 250 seconds]
Dwarf has quit [Ping timeout: 252 seconds]
_justin has joined #ruby
ashleyis has joined #ruby
djbkd has joined #ruby
<ddd> havenwood you're correct wrt expanding beyond ruby.
davedev24 has quit [Ping timeout: 276 seconds]
timgauthier has quit [Ping timeout: 258 seconds]
notlaforge has left #ruby ["Textual IRC Client: www.textualapp.com"]
roolo has joined #ruby
skulker has joined #ruby
Merks has quit []
<havenwood> ddd: i just listed to mpapis' interview on the Changelog
<havenwood> listened*
centrex has quit [Ping timeout: 258 seconds]
<ddd> ah
roolo has quit [Client Quit]
Monito has joined #ruby
<havenwood> from 09/13
shime has joined #ruby
<ddd> remember wayne's sh modular app he wrote? iirc, that's supposed to be used as the underpinnings for the expansion
MatthewsFace has joined #ruby
HashNuke has quit [Quit: Connection closed for inactivity]
<havenwood> ya, named BSDM initially, then SM, now SM Framework.
<ddd> exactly the one
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
<havenwood> Tokaido uses it as well ;)
<ddd> nice
emaxi has quit [Remote host closed the connection]
bradhe has joined #ruby
emaxi has joined #ruby
omosoj has joined #ruby
rebelshrug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
rh1n0 has quit [Ping timeout: 240 seconds]
Squarepy has quit [Remote host closed the connection]
etqqkoiflwhb has quit [Client Quit]
<ddd> can't wait until this semester ends. means I should be able to get back to coding for a bit. Hopefully I can help mpapis again. poor bloke's been carrying the vast majority of the weight, even with the tech support, since I started college again.
<ddd> i feel bad for not being able to help out but school's just been killing my time (even family time has suffered)
crucify_me has joined #ruby
emaxi has quit [Ping timeout: 240 seconds]
<crucify_me> hi keep having the same problem where I can't escape out of eval in pry to the top level. suggest?
shime has quit [Ping timeout: 265 seconds]
<shevy> ddd you have learned much about engines in this semester?
<havenwood> crucify_me: a `!` doesn't do it?
timonv has joined #ruby
<ddd> yeah tons
<crucify_me> havenwood: one sec thanks
<havenwood> crucify_me: just an aside, but there's a well-populated #pry channel as well
<ddd> excellent resource, and they will answer questions though sometimes you have to wait just like here
<ddd> great project
jprovazn has quit [Quit: Odcházím]
pu22l3r_ has joined #ruby
skulker has quit [Remote host closed the connection]
Valesk has joined #ruby
<crucify_me> ddd havenwood I'm trying to learn how to learn ruby using pry as was suggested to me.
<ddd> shevy even though I finished my two core engines classes already, the teacher is going to give me 2 extra classes called Practicals. We just got 3 Cummins ISX engines donated to the school, and because I'm highly interested in Cummins engines (they're used tremendously around here along with Case and Cat) in which I'll get to tear all 3 engines down and rebuild so I can get the hands-on experience.
<crucify_me> havenwood ! just clears the buffer as far as I can see.
sambao21 has quit [Quit: Computer has gone to sleep.]
momomomomo has joined #ruby
evenix_ has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
<crucify_me> I'm in edit mode in a sublime file and can't get out of eval for an "order" instance.
<crucify_me> havenwood: ^
<havenwood> crucify_me: ah, i misunderstood
evenix has joined #ruby
evenix_ has joined #ruby
<crucify_me> pry(#<Order>)> << sorry I didn't explain properly.
<ddd> cd .. doesn't get you out?
<crucify_me> no
pu22l3r has quit [Ping timeout: 240 seconds]
<ddd> try step -1
dik_dak has quit [Ping timeout: 250 seconds]
<crucify_me> no. that
<crucify_me> s a command*
<crucify_me> ?
<ddd> if you have pry-debugger installed it is
<ddd> lets you step into, through, etc
mrnugget has quit [Quit: mrnugget]
<crucify_me> cool ddd I'll check to see what I have , this is not my main machine. thanks
<ddd> run 'help' and see if its listed on the left side (each pry-* gem registers a list of its commands and the gem it comes from is listed)
<ddd> np
nari has quit [Ping timeout: 276 seconds]
<crucify_me> K thanks
Es0teric has quit [Quit: Computer has gone to sleep.]
<ddd> there's another way you can list the pry-loaded gems as well but i don't remember it. (sorry)
vlad_starkov has joined #ruby
evenix_ has quit [Ping timeout: 258 seconds]
evenix has quit [Ping timeout: 258 seconds]
ukd1 has quit [Remote host closed the connection]
<crucify_me> cool
<ddd> something like Gem::Specifications.all.include('pry-debugger') iirc
yubrew has joined #ruby
bradhe has quit [Remote host closed the connection]
stonevil has quit [Quit: Lingo - http://www.lingoirc.com]
<crucify_me> apparently other repl's have this problem
timonv has quit [Remote host closed the connection]
_justin has quit [Quit: _justin]
<havenwood> Pry::PluginManager.new.locate_plugins.map &:name
northfurr has quit [Quit: northfurr]
<ddd> nice
Kricir has joined #ruby
<havenwood> <3 Pry
LiohAu has quit [Quit: LiohAu]
<crucify_me> thanks what's <3 Pry ? havenwood
mjs2600 has joined #ruby
yubrew has quit [Ping timeout: 250 seconds]
Monito has quit [Read error: Connection reset by peer]
<ddd> <3 means love
sambao21 has joined #ruby
<havenwood> crucify_me: ❤️
<ddd> textual 'heart'
<crucify_me> ddd excellent I love you too.
<ddd> hehe
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
wald0 has quit [Ping timeout: 250 seconds]
Tomasso has joined #ruby
r_rios has joined #ruby
mjs2600 has quit [Remote host closed the connection]
shashank_rs has quit [Ping timeout: 276 seconds]
<crucify_me> havenwood: ^ you too.
<havenwood> closest i can come up with to "<3 Ruby": ❤️
Thanatermesis has quit [Ping timeout: 240 seconds]
<havenwood> or it could mean i love sirens :(
<crucify_me> like sea nymph sirens.... havenwood
jamto11 has quit [Remote host closed the connection]
wald0 has joined #ruby
x1337807x has joined #ruby
shashank_rs has joined #ruby
lw has joined #ruby
BizarreCake has quit [Ping timeout: 252 seconds]
SonicX has joined #ruby
<crucify_me> ok ddd havenwood going to join pry chatroom
<crucify_me> cd .. won't work
<crucify_me> after installing pry-debugger
mark_locklear has quit [Quit: Leaving]
dik_dak has joined #ruby
Muhammad_ has joined #ruby
ellbot has quit [Remote host closed the connection]
andrewlio has joined #ruby
northfurr has joined #ruby
ellbot has joined #ruby
<Muhammad_> Is there an open source API coded in ruby for image processing?
<shevy> Muhammad_ you can use rmagick bindings of imagemagick
northfurr has quit [Client Quit]
<havenwood> Muhammad_: another option in addition to what shevy mentioned is mini_magick: https://github.com/minimagick/minimagick#readme
emaxi has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Spami has joined #ruby
wallerdev has joined #ruby
Es0teric has joined #ruby
bradhe has joined #ruby
phansch has joined #ruby
phansch has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
<wallerdev> ruby ruby ruby ruby rubyyyy
ellbot has quit [Ping timeout: 252 seconds]
crucify_me has quit []
Thanatermesis has joined #ruby
jlast_ has quit [Remote host closed the connection]
<benzrf> ruby more like diamond B)
emaxi has quit [Ping timeout: 265 seconds]
carraroj has quit [Quit: Konversation terminated!]
vlad_starkov has quit [Remote host closed the connection]
centrex has joined #ruby
IceDragon has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
kirun has quit [Quit: Client exiting]
andy___ has quit [Read error: Connection reset by peer]
lkba has joined #ruby
ukd1 has joined #ruby
Tarential has joined #ruby
lele has quit [Ping timeout: 245 seconds]
<omosoj> Hey guys. If I want to use the method delete_if on an array, how do I do that? Do I need to require array?
<benzrf> n-no
<benzrf> it should be built in
<benzrf> also u may prefer reject/reject!
<benzrf> they are more commonly used
<omosoj> Ok... so then it's called a kernel method?
<benzrf> no
<benzrf> just a built-in onewheelskyward
<benzrf> *one
<benzrf> kernel methods are methods from the module Kernel
<benzrf> u see 'foo(3)' is (mostly) the same as 'self.foo(3)'
<benzrf> and the class Object has included the module Kernel
<benzrf> so any methods in Kernel turn up on all regular objects
<benzrf> >> 3.puts 'wut'
<eval-in_> benzrf => private method `puts' called for 3:Fixnum (NoMethodError) ... (https://eval.in/138377)
<benzrf> although most of them are private!
JohnBat26 has quit [Ping timeout: 252 seconds]
andy___ has joined #ruby
<apeiros> benzrf: all Kernel methods are private
<benzrf> >> Kernel.instance_methods
<eval-in_> benzrf => [:nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :to_s, :inspect, :methods, :singleton_ ... (https://eval.in/138378)
<apeiros> because no method on Kernel makes use of self
<benzrf> yo what
<benzrf> >> Kernel.instance_methods false
<eval-in_> benzrf => [:nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :to_s, :inspect, :methods, :singleton_ ... (https://eval.in/138379)
<benzrf> ??
<apeiros> they're "pseudo functions" (and thus properly declared as module_function)
<benzrf> ah
<Mon_Ouie> apeiros: Kernel actually does include tings like #== and #hash
<heftig> apeiros: yes they do
<heftig> look at that list
<Mon_Ouie> (they're not in Object even tough that's how rubydoc documents them)
<apeiros> Mon_Ouie: yeah, bootstrapping is a bit weird in ruby. but that's the supposed pattern
x77686d has quit [Quit: x77686d]
m8 has joined #ruby
kenneth has joined #ruby
kenneth has quit [Client Quit]
postmodern has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jamto11 has joined #ruby
<omosoj> whoa, is eval-in_ a bot that irb's inside irc?
<heftig> no irb, just eval
<Lemur> >> 'maybe'
<eval-in_> Lemur => "maybe" (https://eval.in/138380)
axisys has quit [Remote host closed the connection]
Tomasso has quit [Read error: Connection reset by peer]
dik_dak has quit [Ping timeout: 240 seconds]
Monito has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
gl- has joined #ruby
zachallett has quit [Remote host closed the connection]
jason_ has quit [Remote host closed the connection]
cassioscabral has joined #ruby
SCommette has quit [Quit: SCommette]
benzrf is now known as benzrf|offline
ellbot has joined #ruby
RSTJNII has quit [Read error: Connection reset by peer]
RSTJNII has joined #ruby
<omosoj> What's the benefit of reject/reject! over delete_if?
ndrei has joined #ruby
<shevy> omosoj you dont have to type _
<canton7> delete_if and reject! are aliases
<shevy> and one of these is an alias
<shevy> yeah
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj> So they're essentially equivalent?
sigurding has joined #ruby
<canton7> reject! and delete_if are identical, yeah
nolic has joined #ruby
ellbot has quit [Ping timeout: 252 seconds]
dik_dak has joined #ruby
<omosoj> Cool, thanks
jeregrine has quit [Quit: Connection closed for inactivity]
Kricir has joined #ruby
<shevy> that's why they are aliases!
<shevy> just like .map and the awful .collect
paulfm has quit []
almostwhitehat has quit [Remote host closed the connection]
<omosoj> Is one a copy so that you can edit it if you want, and keep the original around too?
<Mon_Ouie> They're not identical
<Mon_Ouie> >> [1, 2, 3].delete_if { false }
<eval-in_> Mon_Ouie => [1, 2, 3] (https://eval.in/138390)
<Mon_Ouie> >> [1, 2, 3].reject! { false }
<eval-in_> Mon_Ouie => nil (https://eval.in/138391)
danshultz has quit [Remote host closed the connection]
<Mon_Ouie> reject! returns nil if there has been no modification, delete_if returns the receiver regardless. Same with keep_if vs select!
danshultz has joined #ruby
<shevy> omosoj they will point at the same "position" always
Muhammad_ has quit [Quit: Ch0c0late]
jlast has joined #ruby
<shevy> omosoj but you should be able to make copies via alias and alias_method yourself
sambao21 has quit [Quit: Computer has gone to sleep.]
kalleth has quit [Remote host closed the connection]
<omosoj> Mon_Ouie, shevy, thanks
andy_____ has joined #ruby
evenix_ has joined #ruby
evenix has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
arianit has joined #ruby
arianit has quit [Changing host]
arianit has joined #ruby
kalleth has joined #ruby
<omosoj> Sorry... what is the receiver? The array it was called on?
<Mon_Ouie> And for most pairs of actually identical methods (map and collect as mentioned for instance) redefining one will not affect the other at all. So if you want to change their behavior you will have to redefine both of them.
<Mon_Ouie> Yes, the receiver of a method is the object it was called on
m_3 has quit [Remote host closed the connection]
<shevy> omosoj your object in question
<shevy> cat = Cat.new; cat.meow
aspires has quit []
yubrew has joined #ruby
kalleth_ has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
lele has joined #ruby
mary5030 has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 265 seconds]
sigurding has quit [Ping timeout: 258 seconds]
jamto11 has quit [Remote host closed the connection]
yarou has quit []
popl has quit [Ping timeout: 265 seconds]
sigurding has joined #ruby
nateberkopec has quit [Quit: Leaving...]
yubrew has quit [Ping timeout: 245 seconds]
Kricir has quit [Ping timeout: 265 seconds]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
benzrf|offline is now known as benzrf
Sid05 has quit [Read error: Connection reset by peer]
kpshek has quit []
maletor has joined #ruby
arianit has quit [Quit: Ex-Chat]
kenneth has joined #ruby
SvenOostenbrink has quit [Changing host]
SvenOostenbrink has joined #ruby
larsam has joined #ruby
Monito has quit [Read error: Connection reset by peer]
jackneill has quit [Quit: WeeChat 0.4.3]
SvenOostenbrink is now known as phoenixz
Milly_Bays has joined #ruby
<omosoj> Soliciting comments/criticisms/insults on this solution to Project Euler problem 4: https://gist.github.com/josomo/11064615
Tomasso has joined #ruby
sarlalian has joined #ruby
duggiefresh has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
<benzrf> omosoj: i will look @ it
<shevy> x = x +1
<Mon_Ouie> 1) You're using magic constants. Replace them with 100 * 100 and 999 * 999 would be clearer
<shevy> x += 1
nerium has quit [Quit: nerium]
no6 has quit [Ping timeout: 265 seconds]
<benzrf> omosoj: ur iterating wrong
<Mon_Ouie> 2) It's not correct. Not all numbers in that interval are product of two-three digit numbers. e.g. prime numbers
<benzrf> omosoj: do '(x..n).each do |num|'
sambao21 has joined #ruby
x77686d has joined #ruby
<omosoj> Mon_Ouie, 'magic constants', lol. Yeah I see what you're saying.
pushpak has quit [Quit: Linkinus - http://linkinus.com]
unstable has joined #ruby
funktor has quit []
emaxi has joined #ruby
<omosoj> benzrf, what's the difference between the while loop and the ellipsis thing?
aspires has joined #ruby
aspires has quit [Client Quit]
<omosoj> Mon_Ouie, 2) should I remove all primes from that array? or should I create an array from some algorithm that multiplies all 3-digit numbers?
nomenkun has joined #ruby
sambao21 has quit [Client Quit]
arianit has joined #ruby
arianit_ has joined #ruby
arianit has joined #ruby
arianit has quit [Changing host]
shashank_rs has quit [Ping timeout: 276 seconds]
sigurding has quit [Quit: sigurding]
kalleth has quit [Remote host closed the connection]
kalleth_ is now known as kalleth
emaxi has quit [Ping timeout: 245 seconds]
arianit_ has quit [Client Quit]
ndrei has quit [Quit: Lost terminal]
sigurding has joined #ruby
sambao21 has joined #ruby
<Mon_Ouie> omosoj: Primes aren't the only ones I think. Plus if you actually calculate the product you will iterate over less numbers
ndrei has joined #ruby
aspires has joined #ruby
nomenkun has quit [Ping timeout: 276 seconds]
Morkel has quit [Quit: Morkel]
<omosoj> Ok... I get what you're saying. 997799 could be the product of a 2 digit and a 4 digit or whatever. But it seems that there will be many more numbers if I create an array of all possible products of 3 digit numbers.
<Mon_Ouie> All numbers between 100^2 and 999^2 : 988002
<Mon_Ouie> all pairs of 3 digit numbers : 810000
helpD has quit [Remote host closed the connection]
graft has joined #ruby
<Mon_Ouie> (999-100+1)**2 vs 999**2-100**2+1
lookup has joined #ruby
dapz has joined #ruby
Nukepuppy has quit [Ping timeout: 240 seconds]
rvraghav93 has quit []
cruisibesares has quit [Quit: This computer has gone to sleep]
cruisibesares has joined #ruby
toastynerd has quit [Remote host closed the connection]
<Mon_Ouie> You don't need an array of all of them by the way. You just need to iterate over all pairs (which you can do with two nested loops), evaluate their product, and see if it's palindromic
<Mon_Ouie> Speaking of that, you don't need to store all palindromic numbers you found. You only need to remember the biggest one so far.
yacks has quit [Ping timeout: 258 seconds]
<omosoj> All pairs? Meaning 2 of the same 3 digit number?
gl- has left #ruby [#ruby]
dapz has quit [Client Quit]
<Mon_Ouie> Hm? It means two 3-digit numbers. e.g. (121, 301), (345, 345), etc.
shwouchk has joined #ruby
<shwouchk> Hello
<omosoj> Ok, got it. Sorry, trying to kickstart my math brain. It's rusty
claymore has quit [Quit: Leaving]
pu22l3r_ has quit [Remote host closed the connection]
<shwouchk> I'm trying to modify a piece of code without actually learning ruby rigorously... Do case statements evaluate only the first clause that matches, or all matching clauses (I'm guessing the former, but better be sure)?
Kricir has joined #ruby
kreisys has joined #ruby
<Mon_Ouie> shwouchk: Only the first one
<ph88> @possibilities.map!(&:to_s) <-- what's the ! and &: here ?
BSaboia has joined #ruby
<shwouchk> Mon_Ouie: thanks
pu22l3r has joined #ruby
<omosoj> Is there a name for this calculation: (999-100+1)**2 ?
<Mon_Ouie> ph88: The ! is part of the method name. It usually means that method is a variant of another method. Specifically here, map! modifies the array in-place (while map will create a new array)
<canton7> ph88, #map! is the name of the method. if differs from #map in that it mutates the @possibilities array, whereas #map will return a modified copy
<canton7> map!(&:to_s) is shorthand for map!{ |x| x.to_s }
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<canton7> (it's turning the symbol :to_s into the proc { |x| x.to_s } using the operator &, which is magic for #to_proc)
<ph88> what's |x| ?
<Mon_Ouie> omosoj: I'm not sure. But the set of all pairs where one element comes from one set and the other from another set is called the cartesian product of those two sets
lmickh has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
<Mon_Ouie> In this case the two sets are the same ([100..999]). And that number is called the cardinality of that set.
Kricir has joined #ruby
<canton7> ph88, if you don't know block syntax, I think it's time to read a basic introductory text
<Mon_Ouie> (that set being the product, written [100..999]×[100..999] a.k.a [100..999]²)
chrisseaton has joined #ruby
<omosoj> K... working on the nested loops
asteros has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
arianit has quit [Quit: Ex-Chat]
<omosoj> Should I use while loops, or a (n..m) kinda thing?
<Mon_Ouie> I'd prefer the later form
<Mon_Ouie> That way you don't have to manipulate the iterator variable yourself
phoenixz is now known as Blubberbop
rylev has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
lw has quit [Quit: s]
<omosoj> Manipulate = adding 1 to it at the end of the block?
Emmanuel_Chanel has quit [Quit: Leaving]
<Mon_Ouie> That and checking the end condition yourself
mikeric has quit []
jhass|off has quit [Ping timeout: 252 seconds]
<ph88> thx canton7 & Mon_Ouie
Tomasso has joined #ruby
jhass|off has joined #ruby
jhass|off is now known as jhass
Milly_Bays has quit [Ping timeout: 240 seconds]
Czupa has quit [Remote host closed the connection]
rylev has quit [Ping timeout: 240 seconds]
rylev has joined #ruby
Lemur has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
ellbot has joined #ruby
ellbot has quit [Remote host closed the connection]
Jetchisel has quit [Ping timeout: 245 seconds]
GaryOak_ has quit [Remote host closed the connection]
nivram80 has joined #ruby
cover_ has quit [Remote host closed the connection]
pen has joined #ruby
mrmargolis has quit [Remote host closed the connection]
cover has joined #ruby
msmith_ has quit []
<nivram80> I’m trying to join multiple postgres tables in my Rails app and I’m having trouble with concate and group_by. The details are on stackoverflow: http://stackoverflow.com/questions/23162878/trying-to-concat-values-and-group-by-postgres-in-rails. Any help would be very much appreciated.
msmith_ has joined #ruby
msmith_ has quit [Client Quit]
mjsmith2 has joined #ruby
cover has quit [Remote host closed the connection]
mjsmith2 has quit [Remote host closed the connection]
kpshek has joined #ruby
nivram80 has quit [Quit: nivram80]
<shevy> railsers are on the channel #rubyonrails
sepp2k has joined #ruby
dapz has joined #ruby
benzrf is now known as benzrf|offline
bean has joined #ruby
kyb3r_ has joined #ruby
yubrew has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
Robert__ is now known as kenndel
pwh has joined #ruby
jlast has joined #ruby
sdelmore has quit [Quit: Leaving.]
<omosoj> Think I know why this shouldn't work. Is there another way to do this that does this general thing? https://gist.github.com/josomo/11066282
Kricir has quit [Remote host closed the connection]
jesse__ has joined #ruby
terrellt has quit [Read error: Connection reset by peer]
terrellt has joined #ruby
yubrew has quit [Ping timeout: 250 seconds]
maletor has quit [Ping timeout: 245 seconds]
dblessing has quit [Quit: dblessing]
treehug88 has quit []
<omosoj> *edited
<cek> > foo ||= foo
<cek> >> foo ||= foo
<eval-in_> cek => nil (https://eval.in/138406)
<cek> is that okay to use in erb for local vars that could be undefined?
duggiefresh has joined #ruby
Blubberbop has quit [Ping timeout: 245 seconds]
<atmosx> cek if the local vars are defined yes, but local vars in erb are kinda rare. Usually you have instances from controllers
<atmosx> omosoj: why are you converting those integers to strings?!
Emmanuel_Chanel has joined #ruby
<atmosx> ah to reserse them?
<omosoj> Seeing if they're palindromes. lol. yeah
<cek> role reversal!
<Mon_Ouie> omosoj: x.to_s.reverse == t.to_s is your problem
jlast has quit [Ping timeout: 276 seconds]
cek has left #ruby [#ruby]
maletor has joined #ruby
<Mon_Ouie> (look at the variable used on the left and then on the right)
<omosoj> Gosh...
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<omosoj> Ok, thanks guys.
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev> the real question is
<wallerdev> is 100 = 001
<omosoj> Hey... is there a convention regarding variables? I was just throwing letters out there
mehlah has quit [Quit: Leaving...]
<wallerdev> longer than 2 letter variables are discouraged
<canton7> oy :P
<omosoj> Can't believe I got this one finally. Awesome! Thanks Mon_Ouie & all!
<Mon_Ouie> I would have used a and b. At least successive letters.
<omosoj> K
<Mon_Ouie> It doesn't work yet with that change though :)
<wallerdev> i use the letters of whatever food i ate last
<wallerdev> c, a, k, e = 999, 100, 0, nil
<Mon_Ouie> The last number you find is not necessarily the biggest one (in fact I ran your code and it isn't)
<omosoj> wallerdev, lol.
<omosoj> Ack... at least I'm almost there
blackavr has joined #ruby
<canton7> also, why are you going to 99*99 ?
<Mon_Ouie> canton7: Reload the page
vlad_starkov has quit [Remote host closed the connection]
kpshek has quit []
<canton7> gotcha :P
<omosoj> canton7, I lowered it to 2 digits at first just to test it out.
<Mon_Ouie> omosoj: Well to test two digits it should have been 99 and 10, not 10*10 and 99*99
jsutch has quit [Ping timeout: 258 seconds]
ndrei has joined #ruby
<omosoj> Yeah, that's another thing I screwed up at first.
BSaboia has quit [Ping timeout: 245 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
camilasan has quit [Ping timeout: 240 seconds]
<canton7> 99*99 is a lot bigger than 999 :P
mu5k17u has joined #ruby
benzrf|offline is now known as benzrf
BSaboia has joined #ruby
Monito has joined #ruby
emaxi has joined #ruby
kenndel has quit [Read error: Connection reset by peer]
tacos1de has quit [Ping timeout: 272 seconds]
kenndel has joined #ruby
pwh has quit []
<omosoj> K: https://gist.github.com/josomo/11066282 Is that the best way to solve it? Probably has a lot of extra stuff
crzrcn has quit [Quit: Leaving.]
St_Marx has quit [Quit: Ex-Chat]
Tomasso has quit [Ping timeout: 276 seconds]
dumdedum has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaspergrubbe has joined #ruby
<canton7> omosoj, getting there
<wallerdev> its blowing my mind that you assigned an array to a variable named set
<canton7> you can solve it in one line if you get far enough - you've still got a little way to go
meatherly has quit [Remote host closed the connection]
<Mon_Ouie> You can still do it with only an integer variable instead of an array.
tacos1de has joined #ruby
<omosoj> wallerdev, lol. I think of it as a set but I should probably stop that
<canton7> a set doesn't have duplicate entires (and is created with Set.new)
<canton7> an array can
meatherly has joined #ruby
<Mon_Ouie> Your y earlier was the last one you found because you replaced its value whenever you found a new palindrome. Instead you want to keep track of the greatest palindrome you've seen.
terrellt has quit [Remote host closed the connection]
emaxi has quit [Ping timeout: 258 seconds]
<omosoj> Mon_Ouie, I get that. Hmm, I'll try to figure out how to do that.
terrellt has joined #ruby
<canton7> also something to be thinking about: it won't affect the timeout, but you're currently calculating e.g. both 100 * 101, and 101 * 100
terrellt has quit [Read error: Connection reset by peer]
chris_thomson has quit [Read error: Connection reset by peer]
Dwarf has joined #ruby
terrellt has joined #ruby
toastynerd has joined #ruby
chris_thomson has joined #ruby
<omosoj> canton7, k, I see.
<canton7> btw, in case you hadn't come across it, there's an array method called #max
<canton7> >> [1, 2].max
<eval-in_> canton7 => 2 (https://eval.in/138413)
SilkFox has quit [Ping timeout: 265 seconds]
St_Marx has joined #ruby
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
<Mon_Ouie> And your earlier code could be corrected by just adding one condition
meatherly has quit [Ping timeout: 265 seconds]
<omosoj> canton7, cool.
<canton7> yup, that's another way
<wallerdev> also you could keep track of the biggest result so far and remove sorting or checking for max
boombadaroomba has joined #ruby
<wallerdev> definitely worth the performance gain
bean has quit [Ping timeout: 265 seconds]
bufferloss has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
<wallerdev> you could even skip the converting to string if x * y < max_so_far
mengu has joined #ruby
blackavr has quit [Quit: blackavr]
emaxi has joined #ruby
tesuji has quit [Ping timeout: 265 seconds]
tcstar has joined #ruby
butblack has quit [Quit: butblack]
crzrcn has joined #ruby
<canton7> if performance is the issue, I'd avoid the duplicate calculations first :P
<Mon_Ouie> Well, to be truthful, all those program will terminate so quickly the difference isn't actually noticeable
garndt has quit [Quit: Connection closed for inactivity]
<canton7> hmm, takes about half a second here
<canton7> why have two 'if' statements?
<wallerdev> takes 2 minutes on my pentium
<omosoj> lol
<canton7> nice
<wallerdev> it seems like this is a good scenario for parallelizing the task
<omosoj> Right... use &&
<omosoj> ?
<canton7> yup
<wallerdev> take full advantage of each processor
<canton7> and think about which condition you want to check first
<canton7> as if the first condition is false, the second one is never ru
<canton7> *run
hobodave has joined #ruby
dima_ has quit [Remote host closed the connection]
<omosoj> canton7, whoa, interesting
<Mon_Ouie> Half a second here too. You can also avoid checking both (101,100) and (100,101) and all such duplicates quite easily: just change the range you're iterating on such that x ≤ y or vice-versa.
<canton7> with 'a && b', both a and b have to be true for the result to be true. if a is false, the result can never be true, so there's no point in checking b
<canton7> similarly with 'a || b' either a or b has to be true for the result to be true. if a is true, then there's no point in checking b - the result is going to be true whatever b is
<canton7> yeah, think carefully about where you start on line 9
brunops has joined #ruby
sigurding has quit [Quit: sigurding]
sigurding has joined #ruby
evenix_ has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
brunops has quit [Client Quit]
evenix has joined #ruby
evenix_ has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
soulcake has joined #ruby
Kryptonical has joined #ruby
b1nd has quit [Ping timeout: 252 seconds]
cruisibesares has quit [Quit: This computer has gone to sleep]
sigurding has quit [Ping timeout: 265 seconds]
funktor has joined #ruby
evenix_ has quit [Ping timeout: 240 seconds]
evenix has quit [Ping timeout: 240 seconds]
ktosiek has quit [Ping timeout: 252 seconds]
toastynerd has quit [Remote host closed the connection]
<omosoj> Don't understand, Mon_Ouie. hmm
deens has quit [Remote host closed the connection]
deens has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
<benzrf> i want Object#id thats just return self
<canton7> omosoj, think about what you're doing. the first loop goes from 100 to 999, for each item in that range, you have a second loop which goes from 100 to 999
<omosoj> Ok, I think I understand. Letting them multiple downwards is repetitive.
<canton7> so you can 100 * 100, 100 * 101, 100 * 102 ....... 101 * 100, 101 * 101, 101 * 102 .....
rakm has joined #ruby
djbkd has quit [Remote host closed the connection]
<Mon_Ouie> benzrf: Well except that Object#id used to be Object#object_id but it was deprecated and then removed from core because people wanted to use it for ids in databases
<omosoj> Can I replace a with x in the second ellipsis? (line 9) (also, file recently updated)
<wallerdev> people didn't want to use object_id for databases lol
<Mon_Ouie> omosoj: Yup :)
arubincloud has quit []
<wallerdev> people just wanted to use the method id to represent an id attribute on various classes
<wallerdev> and although it worked, if you accidentally had a nil object or an object of another type it would return an object_id which made bugs harder to find
<Mon_Ouie> wallerdev: No, I mean they used a method called #id to retrieve the id used for databases and such
<omosoj> Awesome!
zeropx has joined #ruby
deens has quit [Ping timeout: 240 seconds]
Avahey_ has joined #ruby
vlad_starkov has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7> omosoj, there we go :)
Monito has quit [Read error: Connection reset by peer]
<omosoj> Can't believe how helpful and generous you guys are! Thanks so much!
<canton7> right, I think that's about as good as that approach can get
<wallerdev> we love helping people with trivial problems, it makes us feel smart
hobodave has quit [Quit: Computer has gone to sleep.]
<canton7> for interest, my one-liner: (100..999).to_a.repeated_combination(2).map{ |x,y| x * y }.select{ |x| x.to_s == x.to_s.reverse }.max
Monito has joined #ruby
<canton7> though it's not as efficient as your implementation
dik_dak has quit [Quit: Leaving]
klaut has quit [Remote host closed the connection]
<omosoj> lol
asteros has quit [Quit: asteros]
<Mon_Ouie> Too bad Enumerable#lazy doesn't have methods like repeated_combination and product
<canton7> yeah
senayar has joined #ruby
dumdedum has quit [Quit: foo]
<benzrf> whats repcom
RaptorJesus_ has joined #ruby
RaptorJesus has quit [Ping timeout: 265 seconds]
asteros has joined #ruby
ghr has joined #ruby
<omosoj> canton7, I'm gonna sit down and analyze that. Thanks.
<wallerdev> gets combinations of the numbers benzrf
RaptorJesus_ is now known as RaptorJesus
<wallerdev> so if you had [1, 2, 3] youd get all 2-pair combinations with repeated_combination(2)
<canton7> omosoj, sure. the repeated_combination stuff is just a library method which does the same as your two loops
vlad_starkov has quit [Ping timeout: 252 seconds]
lookup has quit [Quit: lookup]
<benzrf> cartesian product on self u mean?
<benzrf> >> [1, 2, 3].repeated_combination
<eval-in_> benzrf => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/138414)
<benzrf> >> [1, 2, 3].repeated_combination 2
<eval-in_> benzrf => #<Enumerator: [1, 2, 3]:repeated_combination(2)> (https://eval.in/138415)
<benzrf> >> [1, 2, 3].repeated_combination(2).to_a
<eval-in_> benzrf => [[1, 1], [1, 2], [1, 3], [2, 2], [2, 3], [3, 3]] (https://eval.in/138416)
<benzrf> >> [1, 2, 3].repeated_combination(3).to_a
<eval-in_> benzrf => [[1, 1, 1], [1, 1, 2], [1, 1, 3], [1, 2, 2], [1, 2, 3], [1, 3, 3], [2, 2, 2], [2, 2, 3], [2, 3, 3], [3, 3, 3]] (https://eval.in/138417)
evenix has joined #ruby
evenix_ has joined #ruby
<benzrf> Cooler_: l
<benzrf> *cool
<canton7> then the rest is a pipeline - take each pair of numbers and calculate the product, then filter those by the ones that are palendromic, then find the max
<wallerdev> >> [1, 2, 3].repeated_combination(4).to_a
<eval-in_> wallerdev => [[1, 1, 1, 1], [1, 1, 1, 2], [1, 1, 1, 3], [1, 1, 2, 2], [1, 1, 2, 3], [1, 1, 3, 3], [1, 2, 2, 2], [1, 2, 2, 3], [1, 2, 3, 3], [1, 3, 3, 3], [2, 2, 2, 2], [2, 2, 2, 3], [2, 2, 3, 3], [2, 3, 3, 3], [3, ... (https://eval.in/138418)
cjbottaro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<wallerdev> >> [1, 2, 3].repeated_combination(1_000_000).to_a
<eval-in_> wallerdev => /tmp/execpad-fe227ca1ceed/source-fe227ca1ceed:2: [BUG] Segmentation fault at 0xbc405ff8 ... (https://eval.in/138419)
<wallerdev> lol
<canton7> there are two combination and two permutation methods on Array. I can never remember the names - always have to go back to the rdoc pagfe
<canton7> but they're incredibly useful for this sort of stuff
<xybre> sample, permutation, shuffle, rotate?
ukd1 has quit [Quit: Leaving...]
ghr has quit [Ping timeout: 245 seconds]
<omosoj> Bye for now, guys. Thanks again.
yubrew has joined #ruby
mansi_ has quit [Remote host closed the connection]
<Mon_Ouie> xybre: (repeated_)permutation, (repeated_)combination I assume
<xybre> Ah, sure.
mansi has joined #ruby
george2 has quit [Remote host closed the connection]
mu5k17u has quit [Remote host closed the connection]
funktor has quit [Remote host closed the connection]
b1nd has joined #ruby
<Mon_Ouie> Andn actually since repeated_combination returns an Enumerator (I thought it would be an array like #product) you can easily make it lazy. It seems slower though.
MatthewsFace has quit [Quit: This computer has gone to sleep]
<benzrf> >> [1, 2, 3].product
<eval-in_> benzrf => [[1], [2], [3]] (https://eval.in/138420)
<benzrf> huh
<benzrf> >> [1, 2, 3].repeated_combination
funktor has joined #ruby
<benzrf> >> [1, 2, 3].repeated_combination 1
<eval-in_> benzrf => #<Enumerator: [1, 2, 3]:repeated_combination(1)> (https://eval.in/138421)
<Mon_Ouie> >> [1, 2,3].product([4,5])
<eval-in_> Mon_Ouie => [[1, 4], [1, 5], [2, 4], [2, 5], [3, 4], [3, 5]] (https://eval.in/138422)
<benzrf> oic
andy_____ has quit [Remote host closed the connection]
ace_striker has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
funktor_ has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
omosoj has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 258 seconds]
andy__ has joined #ruby
Lemur has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpruitt has quit [Quit: cpruitt]
MatthewsFace has joined #ruby
funktor has quit [Ping timeout: 276 seconds]
meatherly has joined #ruby
jlast has joined #ruby
Kricir has joined #ruby
quitobro has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 252 seconds]
Lemur has quit [Ping timeout: 276 seconds]
sailias has joined #ruby
SilkFox has joined #ruby
jason_ has joined #ruby
enebo has quit [Quit: enebo]
jlast has quit [Ping timeout: 245 seconds]
tjr9898 has joined #ruby
funktor_ has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
funktor has joined #ruby
rylev has joined #ruby
jamto11 has joined #ruby
sungai_keruh has quit [Quit: Leaving]
funktor has quit [Read error: Connection reset by peer]
funktor has joined #ruby
butblack has joined #ruby
djbkd has joined #ruby
<atmosx> When my code runs the first time or the second correctly I wanna get out and scream "I am batman!"
<shevy> it's time for us ruby guys to take over the world
<shevy> let's start by taking over perl
<atmosx> haha
<shevy> atmosx you do know that batman had a friend called robin?
<atmosx> shevy: I'm building a gem to check my tarsnap ballance
<atmosx> and works fine, notifications on osx
<wallerdev> if my code runs the first time correctly i wonder what hidden bug i missed haha
<shevy> tarsnap?
Monito has quit [Read error: Connection reset by peer]
<shevy> haha wallerdev
rylev has quit [Ping timeout: 240 seconds]
<shevy> I never worry
<shevy> I do not write bugs
<atmosx> wallerdev: I have more than a few, I didn't write any tests yet, although this is a script and tests might be tricky.
<atmosx> shevy: http://www.tarsnap.com/ my backup service
Kricir has quit [Ping timeout: 240 seconds]
jamto11 has quit [Ping timeout: 245 seconds]
<atmosx> I saw Forrest Gump too, today
<atmosx> Nice movie
Monito has joined #ruby
crzrcn has quit [Quit: Leaving.]
djbkd has quit [Ping timeout: 250 seconds]
linojon has quit [Quit: linojon]
<Mon_Ouie> There's also the weird feeling when you're done writing a program. 'What did I forget that I still have to write?'
tjr9898 has quit [Remote host closed the connection]
butblack has quit [Quit: butblack]
x1337807x has joined #ruby
pontiki has quit [Ping timeout: 250 seconds]
aef has joined #ruby
<shevy> hey atmosx
evenix_ has quit [Ping timeout: 240 seconds]
evenix has quit [Ping timeout: 240 seconds]
<shevy> here is an alogirthm to aliqn sequences
<shevy> in php
<shevy> OH IT DOES NOT WORK; how typical ;-)
<wallerdev> blame apache
senayar has quit [Read error: Connection reset by peer]
pontiki has joined #ruby
<atmosx> Mon_Ouie: I get that a lot lol
butblack has joined #ruby
cashnguns has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
marr has quit [Ping timeout: 240 seconds]
dstynchula has quit []
lw has joined #ruby
s3ri0us has quit [Quit: Linkinus - http://linkinus.com]
nolic has quit [Ping timeout: 252 seconds]
Geniack has joined #ruby
bradhe has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
m8 has quit [Quit: Sto andando via]
Geniack_ has quit [Ping timeout: 252 seconds]
helpD has joined #ruby
jherman3 has joined #ruby
kevind has quit [Quit: kevind]
butblack has quit [Read error: Connection reset by peer]
butblack has joined #ruby
butblack has left #ruby [#ruby]
jherman3 has quit [Remote host closed the connection]
saarinen has joined #ruby
helpD has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
deric_skibotn has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
statbot has joined #ruby
jlast has joined #ruby
nhmood has quit [Quit: Connection closed for inactivity]
butblack has joined #ruby
butblack has quit [Client Quit]
pwh has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
b1nd has quit [Ping timeout: 250 seconds]
Monito has quit [Read error: Connection reset by peer]
jesse__ has quit [Quit: Leaving]
s00pcan has quit [Quit: Lost terminal]
Tomasso has joined #ruby
lkba has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
einarj has quit [Remote host closed the connection]
lw has quit [Quit: s]
bufferloss has quit [Quit: bufferloss]
blackavr has joined #ruby
yubrew has joined #ruby
combusean has joined #ruby
r_rios has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby
jamto11 has joined #ruby
alpha123 has joined #ruby
b1nd has joined #ruby
lw has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
srji_ has joined #ruby
r_rios has joined #ruby
lw has quit [Ping timeout: 250 seconds]
i_s has quit [Remote host closed the connection]
jacky has quit [Excess Flood]
i_s_ has joined #ruby
binw has quit [Read error: Connection reset by peer]
srji has quit [Ping timeout: 252 seconds]
jackyalcine has joined #ruby
jackyalcine is now known as Guest59703
cassioscabral has quit [Ping timeout: 265 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby
<shevy> atmosx, do you find yourself often making use of things like:
<shevy> Bio::Sequence::NA
<atmosx> shevy: yeap
SonicX has quit [Read error: Connection reset by peer]
<atmosx> I'll show you my code tomorrow
<atmosx> got get some sleep now
<atmosx> goot night
<shevy> k
i_s_ has quit [Ping timeout: 240 seconds]
Guest59703 is now known as jacky
jacky has quit [Changing host]
jacky has joined #ruby
binw has joined #ruby