apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: 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
<crocket> 'gem install bundler' installs bundler in a user directory.
JDiPierro has joined #ruby
josephndenton has joined #ruby
adriancb has quit [Remote host closed the connection]
thatslifeson has quit [Quit: Leaving]
nateberkopec has joined #ruby
shime_ has joined #ruby
Xeago has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
jerematic has joined #ruby
fgo has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
jamison has joined #ruby
josephndenton has quit [Ping timeout: 276 seconds]
shime has quit [Ping timeout: 264 seconds]
divi has joined #ruby
TgMts has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
St_Marx has joined #ruby
quimrstorres has quit [Remote host closed the connection]
c355E3B has quit [Quit: Leaving]
skj3gg_ has joined #ruby
skj3gg_ has quit [Client Quit]
hefest has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
TgMts has quit [Client Quit]
divi has quit [Ping timeout: 246 seconds]
amclain has joined #ruby
commmmodo has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
skinux has joined #ruby
athan has joined #ruby
<skinux> Isn't require 'gtk' correct for using GTK toolkit?
banister has joined #ruby
adriancb has joined #ruby
banister has quit [Max SendQ exceeded]
divi has joined #ruby
jonmorehouse has joined #ruby
martinium has quit [Remote host closed the connection]
withnale_ has quit [Quit: Be back later ...]
TgMts has joined #ruby
thumpba has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
greenbagels has joined #ruby
thumpba has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
skj3gg has joined #ruby
banister has joined #ruby
TgMts has joined #ruby
Aova has joined #ruby
jobewan has joined #ruby
ni291187 has joined #ruby
ni291187 has left #ruby [#ruby]
backhoe_ has quit [Ping timeout: 246 seconds]
thumpba has quit [Remote host closed the connection]
backhoe_ has joined #ruby
thumpba has joined #ruby
thumpba has quit [Remote host closed the connection]
rbennacer has joined #ruby
bitflipping has joined #ruby
Takle has quit [Remote host closed the connection]
CrazyM4n has joined #ruby
BTRE has quit [Ping timeout: 252 seconds]
siwica1 has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby
Astrologos_ has joined #ruby
dorei has quit [Ping timeout: 255 seconds]
jamison has quit [Ping timeout: 265 seconds]
<gr33n7007h> >> "string".encoding
<eval-in_> gr33n7007h => #<Encoding:UTF-8> (https://eval.in/258987)
JoshGlzBrk has joined #ruby
shime_ has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
oo_ has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
greenbagels_ has joined #ruby
iamninja has joined #ruby
dorei has joined #ruby
crome has joined #ruby
divi has quit [Ping timeout: 245 seconds]
<gr33n7007h> 19>> __ENCODING__
<eval-in_> gr33n7007h => #<Encoding:US-ASCII> (https://eval.in/258988)
<gr33n7007h> 2.0>> __ENCODING__
<gr33n7007h> 20>> __ENCODING__
<eval-in_> gr33n7007h => #<Encoding:UTF-8> (https://eval.in/258989)
Astrologos_ has quit [Ping timeout: 265 seconds]
greenbagels has quit [Ping timeout: 276 seconds]
nicolastarzia has joined #ruby
BTRE has joined #ruby
nettus has quit [Ping timeout: 246 seconds]
crome has quit [Remote host closed the connection]
crome has joined #ruby
commmmodo has quit [Quit: commmmodo]
dorei has quit [Ping timeout: 244 seconds]
sent1nel_ has quit [Remote host closed the connection]
evilptr has joined #ruby
rickruby has quit [Quit: Connection closed for inactivity]
dorei has joined #ruby
quimrstorres has quit [Remote host closed the connection]
nicolastarzia has quit [Ping timeout: 264 seconds]
skj3gg has quit [Quit: ZZZzzz…]
quimrstorres has joined #ruby
JDiPierro has quit [Remote host closed the connection]
dc has joined #ruby
dc has quit [Remote host closed the connection]
digitalcake has quit [Quit: Leaving.]
leonshalimov has joined #ruby
michael_mbp has quit [Excess Flood]
meschi has quit [Quit: Leaving]
jonr22 has joined #ruby
pdoherty has joined #ruby
timanema has quit [Ping timeout: 244 seconds]
crome has quit [Ping timeout: 276 seconds]
michael_mbp has joined #ruby
CJD14______ has quit [Quit: Connection closed for inactivity]
divi has joined #ruby
crocket has left #ruby ["Leaving"]
leonshalimov has quit [Ping timeout: 264 seconds]
pdoherty has quit [Ping timeout: 245 seconds]
dc has joined #ruby
quimrstorres has quit [Remote host closed the connection]
klmlfl has joined #ruby
jamison has joined #ruby
digitalcake has joined #ruby
sent1nel has joined #ruby
tcrypt has quit []
skj3gg has joined #ruby
nateberkopec has quit [Quit: Leaving...]
TgMts has quit [Ping timeout: 252 seconds]
elfuego has left #ruby [#ruby]
agjacome has quit [Quit: leaving]
fgo has joined #ruby
crome has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
tkuchiki has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
sent1nel_ has joined #ruby
timanema has joined #ruby
josephndenton has joined #ruby
havenwood has quit [Remote host closed the connection]
evilptr has quit [Quit: Leaving]
sent1nel has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
digitalcake has quit [Quit: Leaving.]
evilptr has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
lauterbrunnen has joined #ruby
withnale_ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
PanPan has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/20150108202552]]
crome has quit [Ping timeout: 265 seconds]
maximski has quit [Ping timeout: 255 seconds]
Sendo has joined #ruby
swgillespie has joined #ruby
jenrzzz has joined #ruby
hamakn has joined #ruby
maximski has joined #ruby
n008f4g_ has quit [Ping timeout: 255 seconds]
Aova has joined #ruby
commmmodo has joined #ruby
withnale_ has quit [Ping timeout: 276 seconds]
tyfighter has joined #ruby
BTRE has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
jason_ has joined #ruby
jason_ has quit [Client Quit]
jason_ has joined #ruby
thatslifeson has joined #ruby
<Sendo> Is ruby with ror fast for creating websites?
keen__________42 has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
keen__________41 has quit [Ping timeout: 264 seconds]
kerin has quit [Quit: Leaving]
jason_ has quit [Client Quit]
wldcordeiro has joined #ruby
Deele has quit [Ping timeout: 244 seconds]
adriancb has quit [Read error: Connection reset by peer]
adriancb has joined #ruby
Joufflu has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
AlexRussia has joined #ruby
rbennacer has quit [Remote host closed the connection]
bronson has joined #ruby
einarj has joined #ruby
backhoe_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jobewan has quit [Ping timeout: 276 seconds]
BTRE has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamison has quit [Ping timeout: 276 seconds]
crome has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
davidhq has joined #ruby
backhoe_ has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
arescorpio has joined #ruby
einarj has quit [Ping timeout: 256 seconds]
Trynemjoel has quit [Ping timeout: 272 seconds]
tokik has joined #ruby
seanmarcia_ is now known as seanmarcia
timanema has quit [Ping timeout: 244 seconds]
Trynemjoel has joined #ruby
debajit has quit [Quit: Leaving...]
DadoCe has joined #ruby
FooMunki has quit [Quit: FooMunki]
NightMonkey has joined #ruby
chipotle has quit [Quit: cheerio]
d10n-work has joined #ruby
rbennacer has joined #ruby
jonr22 has quit [Remote host closed the connection]
agrinb has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
agrinb has joined #ruby
DadoCe has quit [Ping timeout: 245 seconds]
hamakn has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
chrishough has joined #ruby
<patrick99e99> hey ruby friends... I just made my own Matrix class and put it within a module, and for whatever weird reason, when I run rake, when rspec / spec_helper gets included and the default rake task for spec gets loaded, MyModule::Matrix explodes and says it's undefined
<patrick99e99> if I rename my class to Matricks then it works fine
<patrick99e99> but I thought this was the whole reason for modules, and that it is supposed to make it possible to do this sort of thing?
tyfighter has quit [Quit: tyfighter]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
crocket has joined #ruby
<crocket> It seems backward compatibility is not important in ruby world.
bronson has joined #ruby
<waxjar> crocket?
<crocket> waxjar, why?
<waxjar> just curious why you say that
crome has quit [Ping timeout: 265 seconds]
crome has joined #ruby
rbennacer has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
dc has quit [Remote host closed the connection]
robustus has joined #ruby
jonr22 has joined #ruby
rbennacer has joined #ruby
cntrx has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
davidhq has joined #ruby
ozialien_ has joined #ruby
ivanskie has joined #ruby
davidhq has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
centrx has quit [Ping timeout: 264 seconds]
cntrx has quit [Client Quit]
centrx has joined #ruby
ChoiKyuSang_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
Guest85006 is now known as _chs_
ChoiKyuSang has joined #ruby
ChoiKyuSang has quit [Changing host]
ChoiKyuSang has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
Xeago has quit [Remote host closed the connection]
EvanFree_ has joined #ruby
EvanFree_ has quit [Remote host closed the connection]
insaneinside has joined #ruby
lauterbrunnen has quit [Ping timeout: 264 seconds]
david312 has joined #ruby
<insaneinside> SO! Why does Object#extend(mod) not invoke mod.included, while Object#singleton_class#include (which I've seen used much less often) does? Am I... Doing It Wrong(TM)?
SHyx0rmZ has joined #ruby
oo__ has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
<wallerdev> hm?
<wallerdev> extend and include dont do the same thing
<centrx> insaneinside, There is a Module#extended
<centrx> Module.extended
<centrx> whatever it's called
Sendo has quit [Quit: Page closed]
fgo has joined #ruby
VBlizzard has joined #ruby
weaksauce has quit [Excess Flood]
Aova has quit [Read error: Connection reset by peer]
oddraisin has quit [Ping timeout: 246 seconds]
divi_ has joined #ruby
<insaneinside> ack! so much for consistency in (in)transitivity!
oddraisin has joined #ruby
<centrx> Usually class methods are included in an included module through a ClassMethods submodule called from the included method
DadoCe has joined #ruby
divi has quit [Ping timeout: 245 seconds]
blizzy has quit [Ping timeout: 264 seconds]
digitalcake has joined #ruby
<insaneinside> >> module M; [:included,:extended].each { |x| class_eval("def self.#{x.to_s}(by); puts \"\#{by} #{x.to_s} \#{self}!\"; end") }; end; Object.new.extend(M)
<eval-in_> insaneinside => #<Object:0x424734d8> extended M! ... (https://eval.in/259196)
VBlizzard is now known as blizzy
agrinb has quit [Read error: Connection reset by peer]
<insaneinside> >> module M; [:included,:extended].each { |x| class_eval("def self.#{x.to_s}(by); puts \"\#{by} #{x.to_s} \#{self}!\"; end") }; end; Object.new.include(M)
jobewan has joined #ruby
<eval-in_> insaneinside => undefined method `include' for #<Object:0x4173b504> (NoMethodError) ... (https://eval.in/259197)
<insaneinside> er
<insaneinside> >> module M; [:included,:extended].each { |x| class_eval("def self.#{x.to_s}(by); puts \"\#{by} #{x.to_s} \#{self}!\"; end") }; end; Object.singleton_class.include(M)
<eval-in_> insaneinside => #<Class:Object> included M! ... (https://eval.in/259198)
eka_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agrinb has joined #ruby
<insaneinside> see, in the extend case it's actually that *M* extended the object, and not the other way around.
Aova has joined #ruby
aaas has joined #ruby
<insaneinside> (and derp, that was supposed to be Object.new.singleton_class.include(M), but w/e)
DadoCe has quit [Ping timeout: 245 seconds]
Channel6 has quit [Remote host closed the connection]
Jameser` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<insaneinside> but i've complained enough. Thanks for the reference to Module#extended, centrx :)
chipotle has joined #ruby
<aaas> newbie question: tryign to understand blocks on youtube etc....in particular how do i Understand this code: https://gist.github.com/anonymous/6a2932396335212017a2 is 'movies' an argument to create_tables? then what is create_tables
hamakn has joined #ruby
m4rCsi has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
weaksauce has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
<insaneinside> aaas: someone else knows the proper channel for Ruby on Rails questions, but it isn't this channel...
hamakn has joined #ruby
david312 has quit [Remote host closed the connection]
<aaas> insaneinside well my question is not really about rails per se...i can probably dig up a different non-rails example
<waxjar> #rubyonrails :)
jonr22 has quit [Remote host closed the connection]
<insaneinside> aaas: it looks like you're asking about the API. Syntax? Yeah, `create_tables` is a method, called with argument 'movies'.
x77686d has joined #ruby
<aaas> insaneinside so as i understand it the do...end is a block, and this is ALSO an argument to create_table, as well as 'movies'?
<insaneinside> kinda
klmlfl has quit [Remote host closed the connection]
<insaneinside> think of it like a lambda function (or a functor, if you've donce C++...) that gets passed to the method definition
<insaneinside> explicitly -or- implicitly, i.e. `def x(y,&z); z.call(y); end` is equivalent to `def x(y); yield y; end`.
ta_ has joined #ruby
<insaneinside> (but i hear the latter is more efficient)
nicolastarzia has joined #ruby
freerobby has quit [Quit: Leaving.]
jerematic has quit []
<aaas> ok looks like i have a bit more reading up to do to understand this stuff, thanks
<insaneinside> np, always happy to run my mount :S
<insaneinside> er
<insaneinside> mouth.
pontiki has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
nicolastarzia has quit [Ping timeout: 245 seconds]
<waxjar> if you're familiar with javascript, it's very similar to passing in callbacks like so: onSomething(function() { "this would be the block" });
sevenseacat has joined #ruby
leonshalimov has joined #ruby
multi_io_ has joined #ruby
crocket has left #ruby ["Leaving"]
<aaas> yes i understand labmdas, java anonymous functions, closures, etc, but in this case I dont exactly see how it's working ...maybe i have to understand the rails specific design to do so
<multi_io_> do you install rbenv on OSX via homebrew?
ikeike443 has joined #ruby
skj3gg has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<insaneinside> multi_io_: maybe RTFM? => https://github.com/sstephenson/rbenv#installation
<multi_io_> insaneinside: yeltzooo
<multi_io_> whoops
<insaneinside> yelwhoo?
<insaneinside> :)
<multi_io_> insaneinside: yeah, I read that, and now I'm unsure :)
<waxjar> the biggest difference is that the block is outside the parenthesis (method(method, args) do |block, args| .. end)
divi_ has quit [Ping timeout: 246 seconds]
<insaneinside> multi_io_: my (very quick) reading of the OS X-related parts tells me either git- or homebrew-based would work
jonmorehouse has quit [Ping timeout: 265 seconds]
<multi_io_> exactly, that's what I'm unsure about -- which of the two would be preferable.
<multi_io_> I guess I'll use brew
wldcordeiro has quit [Ping timeout: 245 seconds]
agrinb has quit [Read error: Connection reset by peer]
leonshalimov has quit [Ping timeout: 264 seconds]
<multi_io_> for now
agrinb has joined #ruby
divi has joined #ruby
tjohnson has joined #ruby
jonmorehouse has joined #ruby
_matt has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
pdoherty has joined #ruby
dc has joined #ruby
oo__ has quit [Remote host closed the connection]
divi has quit [Ping timeout: 264 seconds]
zacts_ has quit [Quit: leaving]
zacts has joined #ruby
zacts has quit [Changing host]
zacts has joined #ruby
bronson has joined #ruby
kt2 has quit [Ping timeout: 272 seconds]
<insaneinside> uh-oh. It's that time when... that "fun little project" has become complex enough that I need to disambiguate some issues on paper.
pdoherty has quit [Ping timeout: 252 seconds]
divi has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
yeticry has quit [Ping timeout: 272 seconds]
maximski has quit []
yeticry has joined #ruby
pontiki has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
withnale_ has joined #ruby
oo_ has joined #ruby
pontiki has joined #ruby
<pontiki> woops
jonmorehouse has quit [Ping timeout: 272 seconds]
digitalcake has quit [Quit: Leaving.]
withnale_ has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
nateberkopec has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
skj3gg has quit [Quit: ZZZzzz…]
agrinb has joined #ruby
ekem is now known as ekem`
cyberarm has joined #ruby
kapil__ has joined #ruby
ekem` is now known as ekem_`d
Aova has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
evilptr has quit [Quit: Leaving]
DadoCe has joined #ruby
rbennacer has quit []
ta_ has quit [Ping timeout: 264 seconds]
fandi has joined #ruby
Aova has joined #ruby
DadoCe has quit [Ping timeout: 245 seconds]
divi has quit [Read error: Connection reset by peer]
divi has joined #ruby
divi_ has joined #ruby
divi has quit [Read error: Connection reset by peer]
tus has quit []
thumpba has joined #ruby
duggiefresh has joined #ruby
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
urtokk has quit [Ping timeout: 272 seconds]
thumpba has quit [Ping timeout: 265 seconds]
divi_ has quit [Ping timeout: 245 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
divi has joined #ruby
St_Marx has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
divi has quit [Client Quit]
nobitanobi has joined #ruby
Kn|t3_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
radic has quit [Ping timeout: 245 seconds]
dorei has quit []
Megtastique has joined #ruby
arup_r has joined #ruby
Eiam has joined #ruby
radic has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
St_Marx has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
Ankhers has quit [Remote host closed the connection]
Ankhers has joined #ruby
synaptik has joined #ruby
synaptik has left #ruby [#ruby]
<d10n-work> What is a nice way to make docopt work with the command-line arguments used by require 'sinatra'? I want to add flags for a different sinatra-based program but I can only think of duplicating some of the code in sinatra/main for docopt's output
glyphic_ has joined #ruby
glyphic_ has left #ruby [#ruby]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jpstokes has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
oo_ has quit [Remote host closed the connection]
urtokk has joined #ruby
oo_ has joined #ruby
psy has joined #ruby
swgillespie has joined #ruby
mloveless has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Glyphik has joined #ruby
braincrash has quit [Quit: bye bye]
sent1nel_ has quit [Remote host closed the connection]
mikepack has joined #ruby
Glyphik has left #ruby [#ruby]
fgo has joined #ruby
<pontiki> d10n-work: what is docopt?
<d10n-work> pontiki: it parses command-line options from standard documentation
<pontiki> d10n-work: also, i'm not sure what command-line arguments have to do with require 'sinatra'...
<d10n-work> hhttp://docopt.org/
braincrash has joined #ruby
Rollabunna has joined #ruby
<d10n-work> require 'sinatra' does require 'sinatra/base' which does require 'optparse' and makes a new OptionParser
<insaneinside> we
<insaneinside> er: we're worried about duplicating `require` statements?
<d10n-work> no. It would be nice not to have to duplicate sinatra/base's handling of arguments
Aova has quit [Read error: Connection reset by peer]
tyfighter has joined #ruby
<pontiki> d10n-work: it seems that OptionParser is required in Sinatra::Application, which isn't in sinatra/base
<pontiki> so just require 'sinatra/base' and you won't have an options parser
jcdesimp has joined #ruby
<pontiki> you'll have to use a module-style sinatra app
longfeet has quit [Read error: Connection reset by peer]
<d10n-work> ah I typed base and meant main :) I will use a module-style sinatra app
yfeldblum has quit [Read error: Connection reset by peer]
Aova has joined #ruby
yfeldblum has joined #ruby
fandi has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]
vdamewood has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Megtastique has quit []
dseitz has joined #ruby
leonshalimov has joined #ruby
blackoperat has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
surs has joined #ruby
leonshalimov has quit [Ping timeout: 264 seconds]
diegoviola has quit [Quit: WeeChat 1.1]
Loaft has quit []
diegoviola has joined #ruby
fandi has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baltazore has joined #ruby
Loaft has joined #ruby
Pharaoh2 has joined #ruby
mikepack has joined #ruby
Kn|t3_ has quit [Quit: Kn|t3_]
Rhainur1 has left #ruby [#ruby]
wldcordeiro has joined #ruby
bronson has joined #ruby
evilptr has joined #ruby
DadoCe has joined #ruby
jobewan has quit [Quit: Leaving]
nobitanobi has quit [Remote host closed the connection]
timanema has joined #ruby
strat0cat has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
charliesome has joined #ruby
nobitano_ has joined #ruby
ddd has quit [Quit: i broke shit]
oo_ has quit [Remote host closed the connection]
maletor has joined #ruby
maletor has quit [Changing host]
maletor has joined #ruby
ddd has joined #ruby
Channel6 has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
DadoCe has quit [Ping timeout: 245 seconds]
swgillespie has joined #ruby
Sgeo has joined #ruby
fgo has joined #ruby
maletor has quit [Ping timeout: 245 seconds]
pdoherty has joined #ruby
Sgeo_ has quit [Ping timeout: 244 seconds]
josephndenton has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
withnale_ has joined #ruby
supergiel has joined #ruby
ohaibbq has joined #ruby
mikepack has quit [Remote host closed the connection]
yeticry has joined #ruby
pdoherty has quit [Ping timeout: 246 seconds]
fandi has quit [Quit: Leaving]
bluOxigen has joined #ruby
JoshGlzBrk has joined #ruby
withnale_ has quit [Ping timeout: 264 seconds]
JoshGlzBrk has quit [Client Quit]
fandi has joined #ruby
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
mikepack has joined #ruby
codeFiend has joined #ruby
fandi has quit [Max SendQ exceeded]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
avrc has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
sent1nel has joined #ruby
fandi has joined #ruby
kayloos has joined #ruby
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
avrc has quit [Client Quit]
tyfighter has quit [Ping timeout: 255 seconds]
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
tyfighter has joined #ruby
insaneinside has left #ruby ["buh-bye"]
jonmorehouse has joined #ruby
fandi has quit [Max SendQ exceeded]
chipotle has quit [Remote host closed the connection]
mloveless has quit [Remote host closed the connection]
fandi has joined #ruby
Fusl has quit [Ping timeout: 250 seconds]
braincra- has joined #ruby
chipotle has joined #ruby
<jidar> is there a easy way to upgrade your ruby version with rbenv? I did a install 2.1.5 but now I've got to go manually get all the gems and such
braincrash has quit [Ping timeout: 252 seconds]
chipotle has quit [Max SendQ exceeded]
<jidar> so I usually just do a gem list and copy that into a notepad/fixup then paste a gem install with a hundred items
fandi has quit [Max SendQ exceeded]
chipotle has joined #ruby
Aova has quit [Read error: Connection reset by peer]
fandi has joined #ruby
fandi has quit [Max SendQ exceeded]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chinmay_dd has joined #ruby
tyfighter has quit [Quit: tyfighter]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
Aova has joined #ruby
ivanskie has joined #ruby
x77686d has quit [Quit: x77686d]
randiman has joined #ruby
x77686d has joined #ruby
lkba has joined #ruby
x77686d has quit [Client Quit]
krz has joined #ruby
CrazyM4n has quit [Quit: sleep]
lkba_ has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
sumark has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
klmlfl has joined #ruby
sumark has joined #ruby
<sevenseacat> just bundle in your apps?
randiman has quit [Quit: (null)]
diegoviola has quit [Quit: WeeChat 1.1]
psy has quit [Ping timeout: 245 seconds]
Joufflu has joined #ruby
Fusl has joined #ruby
agrinb has quit [Remote host closed the connection]
psy has joined #ruby
agrinb has joined #ruby
klmlfl has quit [Ping timeout: 252 seconds]
oleo is now known as Guest30460
oleo__ has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
mloveless has joined #ruby
arup_r has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
tyfighter has joined #ruby
kyb3r_ has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 252 seconds]
sent1nel has quit [Read error: Connection reset by peer]
Guest30460 has quit [Ping timeout: 264 seconds]
sent1nel has joined #ruby
charliesome has quit [Quit: zzz]
Channel6 has quit [Quit: Leaving]
cout_ is now known as cout
oo_ has joined #ruby
bthesorceror has quit [Quit: bthesorceror]
avahey has quit [Quit: Connection closed for inactivity]
Akuma has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
kyb3r_ has joined #ruby
michael_mbp has quit [Excess Flood]
blackoperat has quit [Ping timeout: 255 seconds]
amclain has quit [Read error: Connection reset by peer]
commmmodo has quit [Quit: commmmodo]
michael_mbp has joined #ruby
lxsameer has joined #ruby
arescorpio has quit [Excess Flood]
codeFiend has quit [Ping timeout: 252 seconds]
backhoe_ has quit [Ping timeout: 264 seconds]
Mon_Ouie has quit [Ping timeout: 252 seconds]
crueber has joined #ruby
backhoe_ has joined #ruby
mloveless has quit []
Lingo_ has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
greenbagels__ has joined #ruby
crueber has quit [Client Quit]
<Lingo_> I have a question about organizing data. I have a Message object, and I need to keep analytical data about it. For example, wasOpened, didSendPushNotification, wasDeleted, timeOpened, wasForwarded, lots of booleans, counters, etc. Is it better to keep these as columns in the Message model, or is it better practice to create some model, Analytics, and have that associated to a
<Lingo_> Message instance?
bthesorceror has joined #ruby
greenbagels_ has quit [Ping timeout: 245 seconds]
hgl has quit [Ping timeout: 255 seconds]
wldcordeiro has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
Xnfu is now known as d1str0_
d1str0_ is now known as Xnfu
codeFiend has joined #ruby
maletor has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
nobitano_ has quit [Read error: Connection reset by peer]
timanema has quit [Ping timeout: 246 seconds]
MasterPiece has joined #ruby
oleo__ has quit [Quit: Verlassend]
sent1nel has quit [Remote host closed the connection]
hgl has joined #ruby
oo__ has joined #ruby
agrinb has joined #ruby
supergiel has quit [Ping timeout: 264 seconds]
oo_ has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
duggiefresh has joined #ruby
Mon_Ouie has joined #ruby
patrick99e99 has joined #ruby
fgo has joined #ruby
bitflipping is now known as newguise1234
nicolastarzia has joined #ruby
newguise1234 has quit [Changing host]
newguise1234 has joined #ruby
newguise1234 has joined #ruby
doritostains has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
duggiefresh has quit [Ping timeout: 255 seconds]
newguise1234 is now known as bitflipping
MasterPiece has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 245 seconds]
fgo has quit [Ping timeout: 240 seconds]
nicolastarzia has quit [Ping timeout: 264 seconds]
leonshalimov has joined #ruby
Aova has quit [Read error: Connection reset by peer]
lessless has joined #ruby
DrCode has quit [Ping timeout: 250 seconds]
craigp has joined #ruby
shime has joined #ruby
kayloos has quit [Remote host closed the connection]
DrCode has joined #ruby
_maes_ has joined #ruby
leonshalimov has quit [Ping timeout: 246 seconds]
polyzen has quit [Quit: polyzen]
Aova has joined #ruby
greenbagels__ has quit [Read error: Connection reset by peer]
Cache_Money has quit [Quit: Cache_Money]
shime has quit [Ping timeout: 240 seconds]
kalusn has joined #ruby
The_Phoenix has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
The_Phoenix has quit [Max SendQ exceeded]
hgl- has joined #ruby
hgl has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
kalusn has quit [Ping timeout: 246 seconds]
hgl- is now known as hgl
The_Phoenix has quit [Max SendQ exceeded]
hgl has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
The_Phoenix has quit [Changing host]
The_Phoenix has joined #ruby
tagrudev has joined #ruby
bronson has joined #ruby
hgl has joined #ruby
codeFiend has quit [Ping timeout: 252 seconds]
evilptr has quit [Ping timeout: 264 seconds]
hirzu has joined #ruby
yfeldblu_ has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
patrick99e99 has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
codeFiend has joined #ruby
hvxgr has quit [Ping timeout: 245 seconds]
withnale_ has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
evilptr has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
sigurding has joined #ruby
jcdesimp_ has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
debajit has joined #ruby
debajit has quit [Client Quit]
withnale_ has quit [Ping timeout: 246 seconds]
astrobunny has joined #ruby
jcdesimp has quit [Ping timeout: 252 seconds]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
nobitanobi has quit [Remote host closed the connection]
last_staff has joined #ruby
pdoherty has joined #ruby
mikepack has quit [Remote host closed the connection]
jcdesimp_ has quit [Remote host closed the connection]
mikepack has joined #ruby
jcdesimp has joined #ruby
baltazore has quit [Remote host closed the connection]
tyfighter has quit [Quit: tyfighter]
pdoherty has quit [Ping timeout: 245 seconds]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
lolmaus has joined #ruby
kenneth has joined #ruby
mikepack has quit [Ping timeout: 276 seconds]
tobago has joined #ruby
agrinb has joined #ruby
MasterPiece has joined #ruby
kalusn has joined #ruby
apeiros_ has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
sent1nel has joined #ruby
claptor has quit [Quit: this channel is bakas]
craigp has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 246 seconds]
kalusn has quit [Ping timeout: 276 seconds]
ta_ has quit [Ping timeout: 276 seconds]
vikram_ has quit [Quit: Connection closed for inactivity]
codecop has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
sent1nel has quit [Ping timeout: 265 seconds]
bal has joined #ruby
eka has joined #ruby
krz has quit [Ping timeout: 244 seconds]
bthesorceror has quit [Quit: bthesorceror]
dumdedum has joined #ruby
terlar has joined #ruby
patrick99e99 has joined #ruby
hvxgr has joined #ruby
kamilc__ has joined #ruby
codeFiend has quit [Ping timeout: 252 seconds]
tyfighter has joined #ruby
wallerdev has quit [Quit: wallerdev]
aganov has joined #ruby
sinkensabe has joined #ruby
kl has quit [Ping timeout: 264 seconds]
learner has quit [Ping timeout: 264 seconds]
Aova has quit [Read error: Connection reset by peer]
lessless has joined #ruby
craigp has joined #ruby
ta_ has joined #ruby
codeFiend has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aova has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
hmsimha has joined #ruby
samfisher has joined #ruby
samfisher has joined #ruby
<samfisher> anyone knows what a Prague Attention Test is?
duggiefresh has joined #ruby
ShadySQL has joined #ruby
ptrrr has quit [Quit: ptrrr]
duggiefresh has quit [Ping timeout: 245 seconds]
bronson has joined #ruby
havenwood has quit []
bronson has quit [Ping timeout: 244 seconds]
bigkevmcd has joined #ruby
ki0 has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
decoponio has joined #ruby
<certainty> yow
ohaibbq has quit [Quit: Leaving...]
tyfighter has quit [Quit: tyfighter]
kalusn has joined #ruby
<lxsameer> does using instance_eval is bad idea in general ?
samfisher has quit [Ping timeout: 244 seconds]
Sp4rKy_ is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
rbrs has joined #ruby
tyfighter has joined #ruby
shime has joined #ruby
kalusn has quit [Ping timeout: 245 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<certainty> lxsameer: my rule is to think again whenever i think i need some form of eval. But sometimes it is the right choice
lessless has joined #ruby
<lxsameer> certainty: cool
sigurding has quit [Quit: sigurding]
agrinb has joined #ruby
sigurding has joined #ruby
Xeago has joined #ruby
ta has quit [Remote host closed the connection]
aswen has joined #ruby
andikr has joined #ruby
nicolastarzia has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
lkba has quit [Ping timeout: 244 seconds]
davedev24_ has quit [Remote host closed the connection]
fgo has joined #ruby
nicolastarzia has quit [Ping timeout: 272 seconds]
ta has joined #ruby
leonshalimov has joined #ruby
shime has quit [Ping timeout: 265 seconds]
lkba has joined #ruby
Lingo_ has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 252 seconds]
Stoge88 has joined #ruby
ta has quit [Ping timeout: 276 seconds]
leonshalimov has quit [Ping timeout: 246 seconds]
backhoe_ has quit [Ping timeout: 256 seconds]
backhoe_ has joined #ruby
jcdesimp has quit [Quit: Leaving...]
Stoge88 has quit [Remote host closed the connection]
Stoge88 has joined #ruby
amundj has joined #ruby
greenarrow has joined #ruby
Stoge88 has quit [Client Quit]
roshanavand has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has joined #ruby
hgl has quit [Ping timeout: 264 seconds]
defrang has joined #ruby
Aova has quit [Read error: Connection reset by peer]
TgMts has joined #ruby
Stoge88 has joined #ruby
einarj has joined #ruby
hgl has joined #ruby
antgel has joined #ruby
Stoge88 has quit [Read error: Connection reset by peer]
ponga has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has quit [Ping timeout: 272 seconds]
<pontiki> he's really uncertain
tyfighter has quit [Quit: tyfighter]
<pontiki> (*sigh* 2:21am)
Spami has joined #ruby
Aova has joined #ruby
Macaveli has joined #ruby
TgMts has quit [Ping timeout: 244 seconds]
learner has joined #ruby
eka has joined #ruby
Stoge88 has joined #ruby
learner has quit [Max SendQ exceeded]
learner has joined #ruby
doobi-sham-78872 has joined #ruby
codeFiend has quit [Ping timeout: 252 seconds]
Stoge88 has quit [Client Quit]
msgodf has joined #ruby
Stoge88 has joined #ruby
hgl has quit [Ping timeout: 246 seconds]
sameerynho has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
hgl has joined #ruby
klaas_ is now known as klaas
withnale_ has joined #ruby
bronson has joined #ruby
Juanchito_ has joined #ruby
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
kenneth has joined #ruby
Stoge88 has joined #ruby
Stoge88 has quit [Client Quit]
Xeago_ has joined #ruby
kenneth has quit [Client Quit]
withnale_ has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 272 seconds]
kenneth has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
kalusn has joined #ruby
kenneth has quit [Client Quit]
avril14th has joined #ruby
Nameo0 has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
kenneth has joined #ruby
marcdel has quit []
tcrypt has joined #ruby
apeiros_ has joined #ruby
timanema has joined #ruby
kenneth has quit [Client Quit]
Stoge88 has joined #ruby
kenneth has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
yokel has quit [Remote host closed the connection]
ta has joined #ruby
msgodf has quit [Ping timeout: 265 seconds]
kenneth has quit [Client Quit]
kenneth has joined #ruby
astrobunny has quit [Remote host closed the connection]
thatslifeson has quit [Ping timeout: 245 seconds]
kenneth has quit [Client Quit]
kenneth has joined #ruby
timanema has quit [Ping timeout: 264 seconds]
olivier_bK has joined #ruby
tpilionis has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
codeFiend has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has quit [Ping timeout: 276 seconds]
yokel has joined #ruby
kenneth has quit [Client Quit]
bhaak has joined #ruby
Joufflu has quit [Quit: Peace]
agrinb has joined #ruby
jgt2 has joined #ruby
last_staff has quit [Quit: last_staff]
dotix has joined #ruby
dotix has joined #ruby
elabs-developer has joined #ruby
elabs-developer has quit [Client Quit]
CustosL1men has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agrinb has quit [Ping timeout: 246 seconds]
last_staff has joined #ruby
yokel has quit [Ping timeout: 252 seconds]
sent1nel has joined #ruby
pdoherty has joined #ruby
kaareltinn has joined #ruby
last_staff has quit [Client Quit]
kl__ has joined #ruby
tesuji has joined #ruby
yokel has joined #ruby
razieliyo has joined #ruby
ta has joined #ruby
livathin_ has joined #ruby
Manouel has joined #ruby
decoponyo has joined #ruby
<Manouel> Hey guys ! One of you already used hdf5 gem ?
hirzu has quit [Quit: This computer has gone to sleep]
ariejan has joined #ruby
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
pdoherty has quit [Ping timeout: 256 seconds]
sent1nel has quit [Ping timeout: 264 seconds]
astrobunny has joined #ruby
livathinos has quit [Ping timeout: 245 seconds]
baltazore has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
decoponio has quit [Ping timeout: 264 seconds]
shime has joined #ruby
ta_ has joined #ruby
Manouel has quit [Quit: leaving]
ariejan has quit [Ping timeout: 246 seconds]
<Nameo0> Hello! =) How would you extract a value based on key from a hash that is nested inside an array?
alex88 has joined #ruby
<certainty> find the hash in the array then access the wanted element by key
fgo has joined #ruby
<Nameo0> I meant what is the syntax b/c I cannot figure that out.
<Nameo0> Is it: array[0]hash[:key]
ta_ has quit [Ping timeout: 245 seconds]
<Nameo0> ?
<certainty> array[indexd][key]
<certainty> is one way
<avril14th> hello
samfisher has joined #ruby
samfisher has joined #ruby
kl__ has quit [Ping timeout: 264 seconds]
codeFiend has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
<Nameo0> Okay, cool it works! Thnak you certainty! =)
Stoge88 has joined #ruby
<Nameo0> avril14th, Hello! =)
AFKGeek has joined #ruby
Deele has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
Stoge88 has quit [Client Quit]
yokel has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
Stoge88 has joined #ruby
kaareltinn has quit [Quit: Page closed]
sigurding has quit [Quit: sigurding]
yokel has joined #ruby
roshanavand1 has joined #ruby
ypasmk has joined #ruby
roshanavand has quit [Ping timeout: 252 seconds]
codeFiend has joined #ruby
Hobogrammer_ has quit [Ping timeout: 265 seconds]
sigurding has joined #ruby
Pupeno has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
adriancb has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
ypasmk has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
Aova has quit [Read error: Connection reset by peer]
georgesmith has quit [Quit: georgesmith]
duggiefresh has joined #ruby
adriancb has joined #ruby
ypasmk has joined #ruby
fandi has joined #ruby
fandi has quit [Max SendQ exceeded]
Takle has joined #ruby
Ankhers has joined #ruby
fandi has joined #ruby
fandi has quit [Max SendQ exceeded]
msgodf has joined #ruby
duggiefresh has quit [Ping timeout: 264 seconds]
Aova has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Changing host]
The_Phoenix has joined #ruby
roshanavand1 has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
wpp has joined #ruby
hefest has quit [Quit: leaving]
chth0n has joined #ruby
samfisher has quit [Quit: exit error code 434]
The_Phoenix has quit [Ping timeout: 245 seconds]
AlSquire has joined #ruby
Morkel has joined #ruby
jonmorehouse has quit [Ping timeout: 245 seconds]
ShadySQL has quit [Quit: Leaving]
chth0n has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
bronson has joined #ruby
livathin_ has quit [Remote host closed the connection]
jeekl_ is now known as jeekl
joonty has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
livathinos has joined #ruby
michael_mbp has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
chthon has joined #ruby
The_Phoenix has joined #ruby
atmosx has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 246 seconds]
atmosx has joined #ruby
<atmosx> good morning
duncannz has quit [Read error: Connection reset by peer]
dotix has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 245 seconds]
<atmosx> I'm trying to figure out what happens in the second part of the array in this line: https://gist.github.com/atmosx/5164717f9659424552a5#file-test-rb-L13 . I understand that hte first part is called and then called again and again... until we have 2 elements. But what about the '2nd' end of the array?
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<avril14th> atmosx: what you want to do?
<certainty> atmosx: it returns the smaller element of the two
oo__ has quit [Remote host closed the connection]
ariejan has joined #ruby
codeFiend has quit [Ping timeout: 252 seconds]
<atmosx> avril14th: I'm trying to understand how recursion works. In this example, the code creates a 2-size array and then compares a to b
<ariejan> I have a module, which gets included into a class. But calling the method just returns ‘nil’, method not executed, so it seems. https://gist.github.com/ariejan/809659c42fdbda2e8eac
hirzu has joined #ruby
CustosL1men has quit [Quit: Leaving]
<certainty> to understand recursion you, of course, have to first understand recursion
<atmosx> avril14th: whre a is array[0] and b [1] ... what I don't underand is where is compared the 2nd part of the array, or maybe it's not compared at all?
CustosL1men has joined #ruby
<atmosx> certainty: yeah, that's the problem.
nobitanobi has joined #ruby
<atmosx> certainty: seems like the topic is kinda hard for me to grasp, unfortunately.
<ariejan> atmosx: think of it like this: you have a method calling itself, calling itself, etc.
<atmosx> ariejan: Yeah I get that.
<ariejan> atmosx: to process a list, your method takes a list, processes the first argument, and calls itself with the rest of the list, until there is no ‘rest’ left, just one element to process.
<certainty> atmosx: do you understand simpler examples of recursion?
Stoge88 has joined #ruby
hanmac1 has joined #ruby
<atmosx> certainty: are there any simpler examples?
oo_ has joined #ruby
<ariejan> atmosx: that was a simple example. :-)
agrinb has joined #ruby
<certainty> atmosx: sure, just traversing a list for example as ariejan currently tells you
withnale_ has joined #ruby
<atmosx> okay let me try to implement that
<certainty> or counting down
<atmosx> a list, which deletes each element?
<atmosx> err 1 element at each iteration
last_staff has joined #ruby
baltazore has quit [Read error: Connection reset by peer]
hirzu_ has joined #ruby
codeFiend has joined #ruby
nobitanobi has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 245 seconds]
<certainty> ariejan: i can not confirm that.
nicolastarzia has joined #ruby
hirzu has quit [Ping timeout: 265 seconds]
<certainty> i mean, the code you gisted works here
<ariejan> atmosx: check this example: https://gist.github.com/ariejan/537680134081dbe3c468
Zai00 has joined #ruby
fandi has joined #ruby
<ariejan> the print_list method takes an array of integers. It uses Array#shift to take an delete the first element of the array and print out the result. It then calls itself again to process the rest of the list. The kicker is that there is a guard in the method to just do nothing (return) if the provided list is empty.
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
Pharaoh2_ has joined #ruby
<atmosx> ariejan: made this but pop doesn't work for some reason https://gist.github.com/atmosx/4b8ccacca719bf9fb192
Stoge88 has joined #ruby
<atmosx> ariejan: looking at your code now
<certainty> atmosx: Array#pop returns the pop'ed element not the rest of the array
<atmosx> certainty: oh.
<certainty> generally your recursive step should bring you closer to the basecase
<atmosx> my bad...
<certainty> (recursive steps actually as there might be multiple)
dotix has joined #ruby
nicolastarzia has quit [Ping timeout: 264 seconds]
Pharaoh2 has quit [Ping timeout: 245 seconds]
leonshalimov has joined #ruby
<certainty> atmosx: also to stay in your example. while that should generally work. you can think about the algorithm differently. removing an element can be seens as copying the array but leaving out the element you want to be removed
<atmosx> certainty: array.delete(array.pop) ?
<atmosx> certainty: like new_array = array.delete(array.pop) ...but then I'mnot using the exact same call
Stoge88 has quit [Client Quit]
<waxjar> array.pop already modifies the array
<atmosx> I'm creating a new list, I don't know can I do that?
roshanavand has quit [Remote host closed the connection]
<atmosx> waxjar: hm
<atmosx> oh true, let me modify the code
roshanavand has joined #ruby
baltazore has joined #ruby
Stoge88 has joined #ruby
<atmosx> https://gist.github.com/atmosx/671910a7cf7cae74936a works! Thanks guys I made my first successful recursion, but any idea how can I count the steps? The valie of 'step' is always because essentially it's like if it is always called for the first time.
leonshalimov has quit [Ping timeout: 276 seconds]
<tobiasvl> define step outside the recursive method
<atmosx> I guess I could do that if I ceated a class, then a method and 'step' was a class variable.
<tobiasvl> yeah
<atmosx> oh stupid me, I think so much in terms of classes
roshanavand has quit [Ping timeout: 246 seconds]
<certainty> atmosx: generally if you need to carry state around during recursion you have to pass it into the methods. Creating helpers to make the interface cleaner
<certainty> accumulators commonly
<atmosx> certainty: pass it you mean like an argument?
AlexRussia has joined #ruby
<certainty> also notice that using accumulators and a special form of recursion you actually generate and iterative process
<certainty> some languages can optimize this and in fact create code that is as efficent iteration constructs in other languages
<certainty> atmosx: yes like arguments
<tobiasvl> note that what certainty talks about is called tail call optimization, and in ruby it depends on the implementation
fgo has joined #ruby
<atmosx> "tail call" optimization
<atmosx> A tail recursive function is one where the final statement is a call to the same method.
<certainty> yeah though the iterative part doesn't depend on tail calls. You can think about this way. if you pass the state in explicetly, you could in general, stop the computation with the state it currently knows about. Then resume it some time later. because all information to make the computation is in the arguments and not somewhere in the stack frames
ramfjord has quit [Ping timeout: 272 seconds]
<certainty> also sorry if that confuses you more than it helps
<atmosx> but literally speaking any recursion is a 'tail call' since at the moment the menthod/function is called inside herself execution stops until the inner call returns a result, isn't so?
<atmosx> certainty: Yes I think I'm a little bit over my head now.
<atmosx> by the end of the course I might be able to discuss the topic again having more insight.
<certainty> atmosx: generally it's only considered a tail call if no work is done after that recursive call
lessless has joined #ruby
<atmosx> certainty: i see.
<atmosx> so not my case. since I'm comparing in the end
<certainty> this means that you for example don't depend on the result of the recursive step
<atmosx> oh I see.
<atmosx> what is the use of a having a call upon which result you don't depend?!
quimrstorres has joined #ruby
<certainty> there are basically two ways to arrive at a result in a recursive implementation. 1) compute while you go down the recursion and return the result once you hit the base case 2) go down and down building up temporary results on the stack frames and compute the final result after you hit the base case when you walk the stack up again
codeFiend has quit [Ping timeout: 252 seconds]
fgo has quit [Ping timeout: 256 seconds]
<certainty> atmosx: usuall when you can apply strategy 1
<certainty> in version one you can throw away all the stack frames and just return the result
<atmosx> the second is a good case for debugging?
rdark has joined #ruby
<atmosx> I need to see an implementation of the 2nd case to really undertand it but I think that I see your point
roshanavand has joined #ruby
n008f4g_ has joined #ruby
lessless has quit [Read error: Connection reset by peer]
codeFiend has joined #ruby
<certainty> let me see
marr has joined #ruby
zcreative has joined #ruby
greenarrow has quit [Quit: 500]
<atmosx> certainty: nevermind, I have some homework to do on what we've discussed :-) . I'll see if I can figure it out, it's a merge-sort algorithm implementation with many limitations though.
kl__ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
pengin has joined #ruby
rodfersou has joined #ruby
chu has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
posixpascal has joined #ruby
chu has joined #ruby
roshanavand has quit [Quit: roshanavand]
gccostabr has joined #ruby
roshanavand has joined #ruby
<atmosx> certainty: what does this code mean _,*r = ary
<atmosx> line 5
Aova has joined #ruby
<certainty> it destructures the array, binding the first element to _ and all the rest to *r
bal has quit [Quit: bal]
ponga has quit [Quit: Leaving...]
<certainty> then returning r
<certainty> this just means that it returns the array minus the first element
<atmosx> wow
<atmosx> amazing
<certainty> dunno, it may even be buggy. but it works as a quick way to implement that
<atmosx> certainty: thanks mate, I'll work on it again later on.
<certainty> yw
FooMunki_ has joined #ruby
krz has joined #ruby
Cyberheb has joined #ruby
<workmad3> certainty: would probably have been easier to just do 'def tail(ary); ary[1..-1]; end' ;)
pengin has quit [Remote host closed the connection]
timonv has joined #ruby
<certainty> workmad3: yep, though that is somewhat uncommon to approach lists from the right no?
pengin has joined #ruby
<workmad3> certainty: ary[1..-1] is fairly common in ruby to get a tail
bal has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
<workmad3> certainty: dunno about lists in general, especially in functional languages
<certainty> ok i didn't know that. My first instinct is to alway remove elements from the head
<workmad3> certainty: well, ary[1..-1] does remove the head
<certainty> workmad3: they generally do the head,*rest thing.
Takle has quit [Remote host closed the connection]
<certainty> workmad3: woops
<certainty> of course
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
<certainty> forget what i've just said
<workmad3> certainty: but I could see, especially with the possibility for infinite lazy lists, that ary[1..-1] could be... interesting... to support :)
Takle has joined #ruby
<workmad3> certainty: heh :) I was almost tempted to do 'def car(ary); ary[1..-1]; end'
<workmad3> certainty: but then I got worried about which one was which with car and cdr :)
<certainty> would be cdr
timanema has joined #ruby
<workmad3> so I was right to worry :)
<certainty> hehe yeah
pengin has quit [Ping timeout: 240 seconds]
<certainty> but generally lispers nowadays tend to use first and rest
<workmad3> certainty: btw, if you need both the head and the tail, then 'head, *tail = ary' would be great
<certainty> hard to find computers with address and decrement registers these days
<workmad3> it's just if you throw away the head that ary[1..-1] is more rubyish :)
<certainty> workmad3: that's basically how languages with pattern matching do this
ldnunes has joined #ruby
<certainty> workmad3: true
Timgauthier has joined #ruby
<certainty> to be honest, i tend to forget the different possible usecases for Array#[] and i almost never get them right from the start (except the simple case where the argument is just the index)
<certainty> if i know those better i'd probably chosen your (better) solution
Akuma has quit [Ping timeout: 252 seconds]
kapil__ has quit [Quit: Connection closed for inactivity]
<certainty> knew
roshanavand has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
jenrzzz has joined #ruby
kaspertidemann has joined #ruby
timanema has quit [Ping timeout: 264 seconds]
Darryl___ has joined #ruby
agrinb has joined #ruby
<workmad3> certainty: the only ones I tend to remember are index access, and range-slicing :)
<certainty> hehe, seems as if i should at least get the latter under my belt as well
<workmad3> certainty: I tend to have to try it out before I remember if 'ary[1,2]' does a slice from ary[1] to ary[2], or 2 elements starting at ary[1]
tesuji has quit [Ping timeout: 245 seconds]
<certainty> i'd say the letter again, but i don't know
<certainty> i would test out as well
tokik has quit [Ping timeout: 264 seconds]
ikanobori has quit []
Timgauthier has quit [Read error: Connection reset by peer]
Timgauthier has joined #ruby
jonmorehouse has joined #ruby
agrinb has quit [Ping timeout: 264 seconds]
<Timgauthier> since your on the topic of arrays
<certainty> we're on the topic of age since we both can't seem to remember things so well anymore :p
sent1nel has joined #ruby
<Timgauthier> lets say i have 2 arrays one is a list of courses and they have a "product id" so like courses[(1, Course name, 15), (2, Second Course name, 12)]
dotix has quit [Ping timeout: 240 seconds]
<Timgauthier> that is a multidimension array right, an array of arrays
<certainty> *nod*
<Timgauthier> okay, now lets say i have another array that is just a list of product ID's, this one is from the "user" so user has access to these products
<Timgauthier> userarray[12,16,18]
ta_ has joined #ruby
<certainty> ok?
mkaesz has joined #ruby
<Timgauthier> what is the logic to compare them. I want to compare the userarray to the product arrays to find only the courses that match keys that are in the userarray
baltazor_ has joined #ruby
scientist1642 has joined #ruby
<Timgauthier> so i only want to show courses that have a product id that matches at least one found in the userarray
<certainty> courses.select{|id,name,*| userarray.include?(id) }
auxbuss has joined #ruby
<certainty> maybe
<Timgauthier> whats that actually doing though, is it taking the one array, exploading it into a for each and comparing each one? thats just a whole logic chunk i'm not grasping
auxbuss has quit [Client Quit]
Pharaoh2_ has quit [Ping timeout: 240 seconds]
sent1nel has quit [Ping timeout: 264 seconds]
<Timgauthier> ohhhh, your doing a select then comparing the third key to an if statement from the second array?
jack_rabbit has quit [Ping timeout: 256 seconds]
<certainty> yeah
asmodlol has joined #ruby
<certainty> the third element is the id?
<Timgauthier> oh yeah, then i need to make an array of the courses that inclu... fuck why is this such convoluted logic :(
<certainty> well then i got it wrong
<Timgauthier> yea
<Timgauthier> ok
<certainty> yeah but you get the idea
baltazore has quit [Ping timeout: 276 seconds]
<Timgauthier> yeah you had ID as the 'key' or whatever
<Timgauthier> yeah
<certainty> .select{|_,_,id| userarray.include?(id) }
<Timgauthier> now to make this logic work in php :P lol but honestly i just wasn't grasping the logic enough to even look for answers or figure out what i was trying to do
<certainty> not exactly the most efficent way to do it maybe
Kn|t3_ has joined #ruby
<Timgauthier> yeah, sadly i can't really change how the course-list is presented, its from a third party api so i'd have to deal with it the way it is
Pharaoh2 has joined #ruby
<certainty> alright
<certainty> then i'd probably change the userarry to a set
ta_ has quit [Ping timeout: 276 seconds]
<certainty> the lookup should be faster then
<scientist1642> When we say x = "1"; x = "2" the second assignment doesn't actually overwrite the value at current object location right? it creates a new object and stores it's location in x. then how come - x = "1"; l = lambda {x}; x = "2" l.call still returns 2, as x maps to previous location of object in closure
<certainty> workmad3: is that right or am i telling nonsense?
<Xeago_> scientist1642: the implementation differs per type
<zwer> Xeago_ it does? when would the behavior be different
<workmad3> certainty: seems right
<Xeago_> hmm, I amw rong indeed, thought it was integers
<Xeago_> but he uses strings…
<Xeago_> some strings are stored inline, others are pointers to structs
<scientist1642> Xeago_: it's the same for fixnums
<Xeago_> and some fixnums are stored in the value to the pointer
<workmad3> Timgauthier: no idea what you'd use in PHP... .select is a ruby enumerable method... in PHP, what you'd probably do is something like '$founditems = []; foreach(item in $userarray) {$founditems.push(item) if $idarray.contains($userarray[2])}
<workmad3> Timgauthier: something along those lines anayway
<workmad3> *anyway
<Xeago_> I can't really explain it in english: x->pointer->struct, or x->pointer,which-has-a-value
reinaldob has joined #ruby
<Timgauthier> workmad3 that actually helps a ton, my problem was not even understanding it on a conceptual level
<workmad3> scientist1642: closures store a reference to the local binding, not a copy of it at the instant the closure was created
<workmad3> scientist1642: i.e. if you update a local variable before the closure is called, the closure reflects that change
pdoherty has joined #ruby
<ddv> this is why its called a closure...
<ddv> :-)
<scientist1642> workmad3: that's my point - that means that value at the location is overwritten right?
agjacome has joined #ruby
<workmad3> scientist1642: no... 'x' is updated to point to a new object
<workmad3> scientist1642: but in another sense, yes... because the 'value' of 'x' in the local variable bindings is overwritten with a new location
jack_rabbit has joined #ruby
Morkel has quit [Quit: Morkel]
jack_rabbit has quit [Remote host closed the connection]
Stoge88 has quit [Ping timeout: 276 seconds]
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
last_staff has quit [Quit: last_staff]
<scientist1642> workmad3: but in closure we have x pointed to the old location
davedev24_ has joined #ruby
<workmad3> scientist1642: no
<avril14th> is there a way to run a shell script from ruby without ruby waiting for the script to finish?
pdoherty has quit [Ping timeout: 245 seconds]
<avril14th> like asynchronously, returning immediately even though the script keeps running
n008f4g_ has quit [Ping timeout: 255 seconds]
<avril14th> workmad3: wonderful, thx
bal has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
lxsameer_ has joined #ruby
<scientist1642> workmad3: hmm, why not closure includes current lexical scope bindings doesn't it?
<workmad3> scientist1642: it stores a reference to the scope, it doesn't copy it... if something updates the scope, those changes are reflected inside the closure
duggiefresh has joined #ruby
<workmad3> scientist1642: e.g. the same as if you did 'a = []; b = a; a.push("foobar")' then b would show an array with "foobar" in it
<workmad3> scientist1642: because they both reference the same object
sameerynho has quit [Ping timeout: 276 seconds]
<workmad3> scientist1642: similarly, you can think of the lexical scope as an object (sort of), and the closure simply points to the same scope as the outside, so any updates to the scope are reflected in both places
<workmad3> (that's a bit simplistic... but it demonstrates the idea at least... it's no doubt inaccurate in many ways that others could pick up on though :) )
kirun has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
shime has quit [Read error: Connection reset by peer]
DonM has joined #ruby
<scientist1642> workmad3: wow I see, that's very dangerous. then sometimes lexical scope actually will turn out to be a "dynamic scope" which takes a fun from using closures, but I also see that otherwise a lot of memory will be used as garbage collection won't be able to free up space
felltir has joined #ruby
shime has joined #ruby
duggiefresh has quit [Ping timeout: 240 seconds]
<Timgauthier> i don't... really understand how it is important in what most people are doing for programminging
<workmad3> scientist1642: dunno about calling them 'dangerous'... any tool can be dangerous in many circumstances... it's the way closures work in ruby though, and it's pretty useful for them to have those characteristics, otherwise a lot of things in ruby would break
CamonZ has joined #ruby
lkba has joined #ruby
<workmad3> scientist1642: according to the wiki page on closures, ruby closures are 'lexical closures that capture variables by reference' rather than something like ML, which captures variables by value
tyfighter has joined #ruby
bal has joined #ruby
<scientist1642> workmad3: I actually had ML closures in mind when learning about blocks in ruby
<workmad3> scientist1642: heh :)
sigurding has quit [Quit: sigurding]
Aova has quit [Read error: Connection reset by peer]
<scientist1642> workmad3: thank you I will continue exploring ;)
<workmad3> Timgauthier: it can be useful to figure these things out, as it lets you determine differences between languages in a more comparable way than 'X has closures, Y has closures, therefore if I know how to use closures in X then I know how to use closures in Y'
tkuchiki has quit [Remote host closed the connection]
<Timgauthier> i see
tkuchiki has joined #ruby
<Timgauthier> i love this, i can't use http at all right now because my wifi is too slow, but irc is fine
<workmad3> Timgauthier: also, there would be a big difference in how you use blocks/lambdas/procs etc. in ruby if closures worked differently :)
nfk has joined #ruby
vikram_ has joined #ruby
parametaortho is now known as parametaortho_
timonv has quit [Quit: WeeChat 1.1]
<kl__> Did someone just say Ruby's variables are lexical w/ closures?
<kl__> Pretty sure they're not, otherwise I wouldn't have been bitten by them before
<Timgauthier> kl__ no they said
<kl__> All I know is, from some traumatic experience, I try and avoid closures in Ruby
<Timgauthier> that they are closures with pointers
<Timgauthier> not values
ki0 has quit [Remote host closed the connection]
<kl__> what's the difference (in Ruby)?
<workmad3> well, I said they are lexical closures with capture-by-reference semantics rather than capture-by-value
<workmad3> no reference to pointers :P
ki0 has joined #ruby
<Timgauthier> yeah sorry, i don't know what i'm talking about
<ddv> obviously
<Timgauthier> its why i'm here
<workmad3> kl__: probably the bit that bit you and surprised scientist1642 is the difference :) that if you do 'x = "1"; f = lambda{x}; x = "2"; f.call' then you will get "2" out of the lambda, not 1
<Timgauthier> thats nice code you got there, wouldn't it be a shame if i broke it...
posixpascal has quit [Ping timeout: 252 seconds]
Aova has joined #ruby
<felltir> >> x = "1"; f = lambda{x}; x = "2"; f.call
<eval-in_> felltir => "2" (https://eval.in/260252)
tkuchiki has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
<felltir> et voila
<workmad3> kl__: in capture-by-value, the lambda would have returned "1", not "2"
<Timgauthier> see and i expect that to be 2 looking at it
hamakn has quit [Remote host closed the connection]
<Timgauthier> but i can also see how it could be 1... so yeah
<Timgauthier> rubyrific!
<workmad3> Timgauthier: in ML, reassigning x would have been strictly prohibited anyway :)
<Timgauthier> lol
<Timgauthier> ML being matlab?
<workmad3> no
posixpascal has joined #ruby
<Timgauthier> ok
Kn|t3_ has quit [Quit: Kn|t3_]
<Timgauthier> yeah, i could click that
<Timgauthier> but it won't load anything
<kl__> workmad3: i see. that *is* confusing!
<kl__> workmad3: everything else in Ruby is pass-by-value: why the difference?
theOak has joined #ruby
wald0 has joined #ruby
dotix has joined #ruby
dotix has joined #ruby
fandi has quit [Quit: Leaving]
<certainty> >> def lets_see(x); x.object_id end; a = []; [a.object_id, lets_see(a)]
<eval-in_> certainty => [542677360, 542677360] (https://eval.in/260253)
<certainty> doesn't look like pass-by-value
axilla has joined #ruby
JohnBat26 has joined #ruby
davidhq has joined #ruby
theOak has left #ruby [#ruby]
<workmad3> kl__: err... pretty much everything in ruby is pass-by-reference
commmmodo has joined #ruby
agrinb has joined #ruby
<workmad3> >> def not_by_value(ary); ary.push("hello!"); end; a = []; not_by_value(a); puts a
Takle has quit [Remote host closed the connection]
<eval-in_> workmad3 => hello! ... (https://eval.in/260284)
posixpanda has joined #ruby
<kl__> workmad3: duh. Let's pretend I didn't just say that
<kl__> :)
<workmad3> :)
* certainty saves the log
<workmad3> kl__: I guess you were thinking of the behaviour of reassigning parameters not reflecting outside the method?
MasterPiece has quit [Quit: Leaving]
posixpascal has quit [Ping timeout: 252 seconds]
commmmodo has quit [Ping timeout: 246 seconds]
<certainty> actually i used to think some years back that strings were passed by value. I had a bad bug in a mailer that would gsub! on a string and the calling code used that string later. Customers got truncated E-Mails
<certainty> that was bad
posixpascal has joined #ruby
<felltir> in some cases things are pass-by-value
<workmad3> certainty: oops :)
The_Phoenix has quit [Read error: Connection reset by peer]
<workmad3> felltir: tbh, the most accurate description would be the C description of 'pass by pointer-value'
<certainty> workmad3: yeah that was a bad day for me. I took a week and some shots to get over it
Takle has joined #ruby
<felltir> >> a = "foo"; h = {a => "bar"}; puts [a.object_id, h.keys.first.object_id]
<eval-in_> felltir => 543096260 ... (https://eval.in/260285)
jack_rabbit has joined #ruby
<felltir> >> a = "foo"; h = {a => "bar"}; puts [a.object_id, h.keys.first.object_id].inspect
<eval-in_> felltir => [553803580, 554999760] ... (https://eval.in/260286)
<felltir> like that, I mean
agrinb has quit [Ping timeout: 245 seconds]
Spami_ has joined #ruby
<kl__> workmad3: i was thinking that - yes: how comes reassigning parameters doesn't mess up the outside?
lxsameer_ has quit [Ping timeout: 256 seconds]
<workmad3> kl__: as said, it's more 'pass-by-pointer-value' in C terms
Spami has quit [Read error: Connection reset by peer]
Kn|t3_ has joined #ruby
nicolastarzia has joined #ruby
<workmad3> kl__: so you have pointers to the same objects, but the pointers themselves are passed by value, so re-assigning them doesn't cause external changes
posixpanda has quit [Ping timeout: 252 seconds]
<workmad3> kl__: in that respect, closures do work slightly differently... but it's close enough that you can see the logic at least :)
<felltir> well it makes sense in that case, because the internal variable is a different object, in ruby terms
<felltir> whereas the inside of a closure references the external variables directly
krz has quit [Quit: WeeChat 1.0.1]
<felltir> because it contains the entirety of it's binding
<workmad3> felltir: I'd guess that the internals of hash .clone or .dup the key so that it's protected from updates that would change the hash code
<workmad3> felltir: so it's not quite a 'pass-by-value', but it looks kinda similar :)
jack_rabbit has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
<felltir> workmad3: I think it doesn't matter if it's clone or dup, given that it's special behaviour for strings and gets frozen anyway :p
<kl__> workmad3: gotcha. ta :)
nicolastarzia has quit [Ping timeout: 245 seconds]
<workmad3> felltir: yeah, but it's still not the case that there's a special-case of arguments being passed to a method there, which is important to note, IMO ;)
<felltir> definitely :)
lxsameer_ has joined #ruby
leonshalimov has joined #ruby
tvw has joined #ruby
tyfighter has quit [Quit: tyfighter]
zwer_r has joined #ruby
zwer_r has quit [Client Quit]
Nameo0 has quit [Ping timeout: 244 seconds]
zwer has quit [Ping timeout: 250 seconds]
leonshalimov has quit [Ping timeout: 246 seconds]
kamilc__ has quit [Ping timeout: 245 seconds]
rkr090 has joined #ruby
rkr090 has quit [Client Quit]
raphaelss has joined #ruby
AlSquirrel has joined #ruby
iamninja has quit [Ping timeout: 250 seconds]
claw has joined #ruby
jack_rabbit has joined #ruby
ShadySQL has joined #ruby
<ShadySQL> hello
<Timgauthier> no
<ShadySQL> guys could anyone please help me out
<Timgauthier> DATABASES ARE BAD MKAY
<Timgauthier> DONT DO DRUGZ
<ShadySQL> I am having a strange errır
<Timgauthier> workmad3 would likely help you ShadySQL
<certainty> Timgauthier: you mean with drugs?
<Timgauthier> no thats your dept
<ShadySQL> drugs are good
<ShadySQL> do them please
<certainty> i was going to say
<ShadySQL> with a couple of women
<ShadySQL> :P
<workmad3> I have high-quality caffeine available in a variety of brews...
<ShadySQL> seems like I have a ruby version error
AlSquire has quit [Ping timeout: 255 seconds]
<ShadySQL> can anyone square me away?
<ShadySQL> some recommendation?
<certainty> ShadySQL: gem install daemons. Add them to your Gemfile or whatever you use to manage your gems
asmodlol has quit [Ping timeout: 246 seconds]
<certainty> anyway. bbl
kamilc__ has joined #ruby
<ddv> I drink tea nowadays
<Timgauthier> vita cola
<shevy> ddv wimp
<Timgauthier> shevy does lines of php
<ddv> shevy: :-)
<workmad3> Timgauthier: whereas you seem to mainline it :P
<Timgauthier> hardcore
ta_ has joined #ruby
<Timgauthier> i wrote this one line, its amazing, i made an array from a comma seperated string!
<Timgauthier> next up i'm going to put CSV's in!
<Timgauthier> jk
asmodlol has joined #ruby
<shevy> Timgauthier yeah I can't deny it, I think I wrote 10k or 20k lines of PHP in my life
<shevy> but I have repented my sins and became a better man
<Timgauthier> i'm likely near that, but thats because i keep <? ?> <?= ?> things
<Timgauthier> lol
<shevy> embedded php!
<ddv> I only wrote PHP in college, which is like 8 years ago or something
<shevy> mix html and php!!!
baltazor_ has quit [Remote host closed the connection]
<shevy> ddv were you not the diesel engine guy?
<ddv> no...
<shevy> or was that ddd
<shevy> I can't keep your nicks apart
<ddv> that is YOUR problem
shevy is now known as ddw
<ddw> my brother ddv and ddd!
<workmad3> ddv: well, one of his problems anyway...
<ShadySQL> doesn't work
<ShadySQL> I am trying to install
<ShadySQL> the new relic aws plugin
<ShadySQL> doesn't work
<ShadySQL> their service doest even start
backhoe_ has quit [Ping timeout: 264 seconds]
<ShadySQL> it won't even demonize
<ShadySQL> it just sucks
zwer has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 245 seconds]
patrick99e99 has quit [Ping timeout: 245 seconds]
backhoe_ has joined #ruby
<sevenseacat> you're doing it wrong?
shazaum has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
codeFiend has quit [Ping timeout: 252 seconds]
jgt2 has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
jgt2 has joined #ruby
last_staff has joined #ruby
codeFiend has joined #ruby
fgo has joined #ruby
iamninja has joined #ruby
jonmorehouse has quit [Ping timeout: 276 seconds]
The_Phoenix has joined #ruby
maoko has joined #ruby
Xeago has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
sigurding has joined #ruby
baltazore has joined #ruby
The_Phoenix has joined #ruby
felltir has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 255 seconds]
The_Phoenix has quit [Max SendQ exceeded]
jack_rabbit has quit [Ping timeout: 245 seconds]
CustosLimen has quit [Ping timeout: 252 seconds]
Xeago_ has quit [Ping timeout: 272 seconds]
<ShadySQL> now I have another strange error
<ShadySQL> anyone?
<ShadySQL> words of wisdom?
baltazore has quit [Remote host closed the connection]
CustosL1men has quit [Ping timeout: 276 seconds]
baltazore has joined #ruby
The_Phoenix has joined #ruby
zcreative has quit [Quit: (null)]
<sevenseacat> what does your config file look like?
<sevenseacat> looks like it has asyntax error
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zanzibizarre has joined #ruby
asmodlol has quit [Ping timeout: 255 seconds]
sent1nel has joined #ruby
shime has quit [Read error: Connection reset by peer]
craigp has quit [Ping timeout: 252 seconds]
agjacome has quit [Quit: leaving]
shime has joined #ruby
asmodlol has joined #ruby
Aova has quit [Read error: Connection reset by peer]
sent1nel has quit [Ping timeout: 245 seconds]
maoko has quit [Ping timeout: 252 seconds]
baltazore has quit [Remote host closed the connection]
troubadour has joined #ruby
baltazore has joined #ruby
Takle has quit [Remote host closed the connection]
Aova has joined #ruby
jack_rabbit has joined #ruby
leafybasil has quit [Remote host closed the connection]
<Timgauthier> workmad3 this is what i'm comparing for my two arrays lol :'( https://gist.github.com/timgauthier/89fbaf1a6514e1ab8768/edit
AlexRussia has quit [Ping timeout: 256 seconds]
backhoe_ has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
agrinb has joined #ruby
asmodlol has quit [Ping timeout: 276 seconds]
backhoe_ has joined #ruby
_lazarevsky has joined #ruby
<_lazarevsky> hey guys
<_lazarevsky> I have the following string -> "asddfsdbollocks(ineedthis)therestshouldgo"
The_Phoenix has quit [Quit: Leaving.]
<_lazarevsky> I wanna return only the stuff inbetween the ()
<_lazarevsky> what's the most elegant way of doing that?
<_lazarevsky> thanks so much
<sevenseacat> youre welcome
<DefV_> _lazarevsky: regexp matchh
<_lazarevsky> DefV_: would you happen to know the regex for that ? :)
<DefV_> >> "adzaijdazi(stuff)alzdlalzd"[/\((.+)\)/,1]
<eval-in_> DefV_ => "stuff" (https://eval.in/260400)
asmodlol has joined #ruby
<_lazarevsky> DefV_: you beauty
<_lazarevsky> thanks so much
<Hijiri> >> runParser (char '(' *> many (noneOf ")") <* char ')') "fiejslfiejlsfij(aaaa)fefe"
<eval-in_> Hijiri => /tmp/execpad-e8922734a82c/source-e8922734a82c:2: syntax error, unexpected '>' ... (https://eval.in/260427)
agrinb has quit [Ping timeout: 245 seconds]
<dotix> can you monkey patch a class but without opening it (normal way) : class String; def to_s; ... ; end; end; ?
CustosL1men has joined #ruby
<dotix> I'm looking for something similar with: [String, ....].each { ... }
maximski has joined #ruby
jpstokes has joined #ruby
zanzibizarre has left #ruby [#ruby]
n1lo has joined #ruby
maximski has quit [Max SendQ exceeded]
<scientist1642> dotix: how about using mixins?
jack_rabbit has quit [Ping timeout: 246 seconds]
maximski has joined #ruby
jpstokes has quit [Remote host closed the connection]
<dotix> you still have to open the class .. module MyMixin; def to_s; end; end; .. class String; include MyMixin; end;
kaspertidemann has quit []
<apeiros_> String.include Mixin
<apeiros_> String.__send__ :include, Mixin # for older rubies where Module#include is private
<dotix> hmm..
<apeiros_> also: monkey patching is bad. don't do it.
<dotix> maybe you have to do it
<apeiros_> you almost certainly don't.
tkuchiki has quit [Remote host closed the connection]
<dotix> :D maybe depends on the experience.. I can't see other way of doing some tasks without using mixins
tkuchiki has joined #ruby
<apeiros_> dotix: "using mixins" is *not* the same as "monkey patching"
<apeiros_> monkey patching is specifically about modifying classes you don't own.
ta_ has quit [Ping timeout: 276 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
ypasmk has quit [Quit: ypasmk]
codeFiend has quit [Ping timeout: 252 seconds]
baltazore has quit [Remote host closed the connection]
<apeiros_> alternatives to monkey patching:
<apeiros_> 1) create a subclass and instantiate that
<dotix> I see your point. Thanks for explanation. What if you want to add few functionalities to XML::Element
<apeiros_> 2) decorator pattern (wrap the object, delegate all original methods, implement your own ones in the wrapper)
<apeiros_> dotix: do you own the XML::Element class? I assume not -> monkey patching. rules as said apply.
tkuchiki has quit [Ping timeout: 264 seconds]
plashchynski has joined #ruby
<dotix> I will try to understand the second method
tkuchiki has joined #ruby
<dotix> I have a method and I want to add them to XML::Attr and XML::Element
<arup_r> Did anyone ever work with Ruby to work with openoffice doc ?
chipotle has quit [Quit: cheerio]
<dotix> and probably to more classes in the future
baltazore has joined #ruby
<arup_r> Need some pointer..
<dotix> add it*
oo_ has quit [Remote host closed the connection]
<apeiros_> dotix: oh, third and often used variant: use a function (pass in the object instead of using self)
aswen has quit [Ping timeout: 245 seconds]
Darryl___ has quit [Quit: Connection closed for inactivity]
pusewicz has quit []
pusewicz has joined #ruby
Pupeno_ has joined #ruby
Pupeno has quit [Ping timeout: 252 seconds]
<dotix> I like the last one. Thank you apeiros_
vt102 has joined #ruby
bove_ is now known as bove
codeFiend has joined #ruby
<dotix> I still have to read what are you trying to say at 2) decorator pattern. Do you happen to have a link?
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
aswen has joined #ruby
patrick99e99 has joined #ruby
jumex_ has joined #ruby
cpt_yossarian has quit [Ping timeout: 245 seconds]
jaygen_ has joined #ruby
gfawcettpq1 has joined #ruby
FDj_ has joined #ruby
LekeFly has joined #ruby
rbrs1 has joined #ruby
ged__ has joined #ruby
quimrsto_ has joined #ruby
apeiros__ has joined #ruby
rbrs has quit [Remote host closed the connection]
maximski has quit [Ping timeout: 252 seconds]
AlSquirrel has quit [Write error: Connection reset by peer]
alex88 has quit [Read error: Connection reset by peer]
last_staff has quit [Ping timeout: 252 seconds]
Kharma has quit [Read error: Network is unreachable]
mahlon has quit [Read error: Network is unreachable]
ged_ has quit [Read error: Connection reset by peer]
phoo1234567 has joined #ruby
AlSquirrel has joined #ruby
Kharma has joined #ruby
yosafbridge` has quit [Ping timeout: 252 seconds]
reprazent has quit [Ping timeout: 252 seconds]
Ulrike_Schultz has joined #ruby
suy has quit [Remote host closed the connection]
suy|BNC is now known as suy
mahlon has joined #ruby
alex88 has joined #ruby
mjulian has quit [Remote host closed the connection]
suy_ has joined #ruby
patric101e99 has quit [Ping timeout: 252 seconds]
Perceptes has quit [Ping timeout: 252 seconds]
mjulian has joined #ruby
jidar has quit [Ping timeout: 252 seconds]
gfawcettpq has quit [Ping timeout: 252 seconds]
Ulrike_Rayne has quit [Read error: Connection reset by peer]
Ulrike_Schultz is now known as Ulrike_Rayne
jaygen has quit [Ping timeout: 252 seconds]
jidar has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
jumex has quit [Ping timeout: 252 seconds]
FDj has quit [Ping timeout: 252 seconds]
jumex_ is now known as jumex
yosafbridge has joined #ruby
n1lo has quit [Read error: Connection reset by peer]
Perceptes has joined #ruby
reprazent has joined #ruby
craigp has joined #ruby
maximski has joined #ruby
phoo1234567 has joined #ruby
quimrstorres has quit [Ping timeout: 252 seconds]
apeiros_ has quit [Ping timeout: 252 seconds]
gfawcettpq has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
duggiefresh has joined #ruby
maoko has joined #ruby
nateberkopec has joined #ruby
pdoherty has joined #ruby
<avril14th> how would you write a regex to match 14 digits with any number of spaces in between?
Takle has joined #ruby
<pontiki> i wouldn't use a regexp
duggiefresh has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Ping timeout: 264 seconds]
<tobiasvl> well you can do something like /(\d\s){14}/
vcoinminer has quit []
<avril14th> tobiasvl: that's 14 where spaces count 1
vcoinminer has joined #ruby
<tobiasvl> oh yeah hehe
<jefus> how about strip the spaces first?
<tobiasvl> that doesn't work at all lol
<tobiasvl> yeah strip spaces while I get a coffee
max96at|off is now known as max96at
pdoherty has quit [Ping timeout: 245 seconds]
<jefus> if the spaces are not significant, that should be easier
mostlybadfly has joined #ruby
fgo has joined #ruby
shime has quit [Read error: Connection reset by peer]
shime has joined #ruby
<workmad3> avril14th: as jefus said... '.gsub(/\s/, '').match(/(\d{14})/)
<avril14th> indeed, working. but less efficient, and I also need to remove the matches from the string (gsub!) so I can't work on a copy
<arup_r> Any body worked with Ruby and OpenOffice document ?
<workmad3> avril14th: or, if you only wanted to strip out spaces between digits... .gsub(/(?<=\d)\s(?=\d)/, '')
<arup_r> before
<workmad3> avril14th: sorry, that should be \s+ in the middle there :)
rebcabin has joined #ruby
<avril14th> arup_r: reading with roo
<workmad3> >> "foo 1 2 bar 2 4 5\t6".gsub(/(?<=\d)\s+(?=\d)/, '')
<eval-in_> workmad3 => "foo 12 bar 2456" (https://eval.in/260506)
fgo has quit [Ping timeout: 272 seconds]
<arup_r> No.. It wouldn't work.. I have to work with word doc file.. not excel doc
<arup_r> :(
<workmad3> avril14th: so, with your needs, you could do a pre-process to remove spaces between digits with that, and then gsub out your 14-digit long matches ;)
Tuxero has joined #ruby
<workmad3> avril14th: or are the spaces significant if they're in digit runs of less than 14 digits?
kl__ has quit [Ping timeout: 245 seconds]
<avril14th> workmad3: can't, I need to keep the string as it is and just remove what I match from it because what's left needs to go to some other processing
<workmad3> avril14th: ok... then I think you're out of the realm of regexp
Ankhers has quit [Ping timeout: 250 seconds]
<avril14th> ok, just needed a confirmation
<avril14th> thx workmad3 jefus
<avril14th> :)
jeregrine has quit []
bronson has joined #ruby
<jefus> :)
<avril14th> ~ 1000 lines of text processing here, if I meet Regexp in the street I'll slap it
it0a has quit [Ping timeout: 245 seconds]
brb3 has joined #ruby
<pontiki> oh, it's australia day
jeregrine has joined #ruby
adriancb has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
sent1nel has joined #ruby
parduse has quit []
maasha has joined #ruby
alol__ has quit []
alol__ has joined #ruby
<maasha> hi, what is a great way using ruby to find out how much memory is available on a system?
matgee has joined #ruby
<matgee> howdy
bronson has quit [Ping timeout: 240 seconds]
<maasha> There is a gem with a strange name, but I cant remember ...
<maasha> Or is there a builtin method?
Aova has quit [Read error: Connection reset by peer]
aclearman037 has joined #ruby
troubadour has quit [Quit: troubadour]
sent1nel has quit [Ping timeout: 245 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
LekeFly has quit [Quit: Textual IRC Client: www.textualapp.com]
davedev24_ has joined #ruby
dblessing has joined #ruby
agrinb has joined #ruby
hamakn has joined #ruby
posixpascal has joined #ruby
chipotle has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
Aova has joined #ruby
banister has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
banister has quit [Max SendQ exceeded]
hamakn has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
gccostabr has quit [Ping timeout: 272 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
banister has joined #ruby
CamonZ_ has joined #ruby
CamonZ has quit [Read error: Connection reset by peer]
nerium has joined #ruby
joonty has quit [Quit: joonty]
lkba has quit [Read error: Connection reset by peer]
hamakn has quit [Read error: Connection reset by peer]
jpstokes has joined #ruby
timanema has joined #ruby
lkba has joined #ruby
hamakn has joined #ruby
<nerium> Is it a bad idea to asserts (like you do in C) inline in the code?
<hanmac1> nerium: hm an example of what you mean?
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troubadour has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
commmmodo has joined #ruby
Trynemjoel has joined #ruby
silkfox has joined #ruby
Takle has quit [Remote host closed the connection]
leonshalimov has joined #ruby
tiagonobre__ has quit []
tiagonobre__ has joined #ruby
felltir has joined #ruby
<nerium> hanmac1: Any idea?
<hanmac1> hm currently i dont know
OliverTynes has quit []
OliverTynes has joined #ruby
troubadour has quit [Quit: troubadour]
leonshalimov has quit [Ping timeout: 244 seconds]
kapil__ has joined #ruby
Xeago_ has joined #ruby
ypasmk has joined #ruby
paulfm has joined #ruby
parduse has joined #ruby
astrobunny has quit [Remote host closed the connection]
dimaursu16 has quit [Ping timeout: 264 seconds]
bjeanes_ has quit []
bjeanes_ has joined #ruby
Timgauthier is now known as timgauthier_away
adriancb has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cyberheb has quit [Ping timeout: 255 seconds]
<kstuart> nerium: what would assert do if the expression was false?
<nerium> kstuart: it would raise an error
Xeago has quit [Ping timeout: 265 seconds]
`ph8 has quit [Changing host]
`ph8 has joined #ruby
<Kn|t3_> noob ruby question - i have a = [1,2,3,4,5,6,7,8,9]. puts a[i].map(&:to_s).join.to_i works as expected (in a loop) but num = a[i].map(&:to_s).join.to_i fails with undefined method `map' for nil:NilClass
Cyberheb has joined #ruby
<Kn|t3_> ok i missed something, i also do a = a.permutation.to_a.reverse
<kstuart> if assert is just an abstraction over 'raise "assertion failed" unless largest >= n' then I don't see it as bad.
<Kn|t3_> i would appreciate any pointers
<avril14th> Kn|t3_: a[i] is nil
<kstuart> nerium: just a convenience method?
<kstuart> more terse
patric100e99 has joined #ruby
<kstuart> nerium: ps, where are you getting assert method from?
<Kn|t3_> umm ok avril14th , any idea why any value would be nil ?
craigp has quit [Ping timeout: 245 seconds]
apeiros__ is now known as apeiros_
featheryahn_ has quit []
raphaelss has quit [Quit: leaving]
featheryahn_ has joined #ruby
<gr33n7007h> Kn|t3_, a.length-1
<Kn|t3_> oops - thanks gr33n7007h
<Kn|t3_> that was an embarassing mistake
<gr33n7007h> :)
BTRE has quit [Ping timeout: 244 seconds]
<avril14th> Kn|t3_: yeah, length - 1
<Kn|t3_> sure - thanks avril14th :)
<gr33n7007h> or 0...a.length
patric100e99 has quit [Ping timeout: 252 seconds]
hellschreiber has quit []
Renich has joined #ruby
shazaum has quit [Quit: This computer has gone to sleep]
hellschreiber has joined #ruby
<Kn|t3_> woah -that looks amazing, awesome!
Pupeno_ has quit [Read error: Connection reset by peer]
dimaursu16 has joined #ruby
Pupeno has joined #ruby
commmmodo has quit [Quit: commmmodo]
<pontiki> i don't think you need the final res in that inject
joonty has joined #ruby
fenak has joined #ruby
longfeet has joined #ruby
shime has quit [Read error: Connection reset by peer]
plashchynski has quit [Quit: plashchynski]
shime has joined #ruby
<matgee> kicked for flooding
<matgee> kicked for flooding
<matgee> kicked for floodingkicked for flooding
<matgee> kicked for flooding
<matgee> kicked for flooding
<matgee> kicked for flooding
<matgee> kicked for flooding
<matgee> kicked for flooding
matgee has left #ruby [#ruby]
<wasamasa> lol
<sevenseacat> o.O
<apeiros_> wow, slow chanserv
<wasamasa> apeiros: slam the brakes
whoisjake has joined #ruby
niko has joined #ruby
workmad3 is now known as wm3|away
baltazore has quit []
oo_ has joined #ruby
JDiPierro has joined #ruby
jherbst has joined #ruby
craigp has joined #ruby
roshanavand has joined #ruby
hamakn has joined #ruby
BTRE has joined #ruby
gccostabr has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
CamonZ_ has quit [Quit: Textual IRC Client: www.textualapp.com]
hamakn_ has joined #ruby
CamonZ has joined #ruby
raphaelss has joined #ruby
fgo has joined #ruby
hamakn has joined #ruby
roshanavand has quit [Ping timeout: 244 seconds]
cassianoleal has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
The_Phoenix has joined #ruby
Timgauthier has joined #ruby
jerius has joined #ruby
<kstuart> fg
The_Phoenix has quit [Max SendQ exceeded]
<kstuart> oops, wrong screen!
fmcgeough has joined #ruby
hamakn_ has quit [Ping timeout: 272 seconds]
hamakn__ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
hamakn__ has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
adambeynon has quit []
adambeynon has joined #ruby
gccostabr has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
gccostabr has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
ariejan has quit [Quit: Houdoe!]
hamakn has joined #ruby
The_Phoenix has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
jcdesimp has joined #ruby
The_Phoenix has joined #ruby
Takle has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
kl has joined #ruby
leafybasil has joined #ruby
The_Phoenix has joined #ruby
dstarh has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
agrinb has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
it0a has joined #ruby
bergelmir has joined #ruby
drkyro has joined #ruby
<bergelmir> i have a rspec-related question. is there a way to check if a method was called with an array that contains 10 items? i need to check the array size
Aova has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
sevenseacat has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
The_Phoenix has quit [Changing host]
The_Phoenix has joined #ruby
tjohnson has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
paulfm has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
paulfm has joined #ruby
codeFiend has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
blackoperat has joined #ruby
Parker0 has joined #ruby
Parker0 has quit [Client Quit]
Aova has joined #ruby
chipotle has quit [Quit: cheerio]
Parker0 has joined #ruby
Tuxero has quit [Quit: Tuxero]
bergelmir has quit [Quit: leaving]
metadave has joined #ruby
metadave has quit [Client Quit]
duggiefresh has joined #ruby
rbrs1 has quit [Remote host closed the connection]
<avril14th> bergelmir: yes
oleo has joined #ruby
djcp has joined #ruby
metadave_ has quit [Ping timeout: 272 seconds]
haylon has joined #ruby
codeFiend has joined #ruby
shime has quit [Read error: Connection reset by peer]
shime has joined #ruby
<jhass> avril14th: no patience and crossposter
skj3gg has joined #ruby
<jhass> spare your time
nerdman has quit [Ping timeout: 246 seconds]
Jackneill has joined #ruby
Channel6 has joined #ruby
enebo has joined #ruby
JDiPierro has quit [Remote host closed the connection]
lxsameer_ has quit [Quit: Leaving]
allcentu1 has joined #ruby
emilkarl has joined #ruby
<emilkarl> Hi, having problem with compass 1.0.3. I have config.rb in a project, but then I run compass compile it tris to load a rails config file which is strange…and there is no app/config/application.rb so it just run this loop over and over again.
paulfm has quit [Read error: Connection reset by peer]
_maes_ has joined #ruby
metadave has joined #ruby
avahey has joined #ruby
allcentu1 has quit [Read error: Connection reset by peer]
paulfm has joined #ruby
perrier has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
werelivinginthef has joined #ruby
craigp has quit []
haylon has quit [Quit: haylon]
wm3|away is now known as workmad3
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
bkulbida has joined #ruby
pdoherty has joined #ruby
krz has joined #ruby
cpt_yossarian has joined #ruby
krz is now known as Guest2594
ShadySQL has quit [Quit: This computer has gone to sleep]
hirzu_ has quit [Ping timeout: 264 seconds]
RedNifre has joined #ruby
ypasmk has quit [Quit: ypasmk]
<RedNifre> Hi there! :)
commmmodo has joined #ruby
ypasmk has joined #ruby
<RedNifre> What is the most elegant way to increment the last number in a string? E.g. turning "1.0.99" into "1.0.100" or "release 3 beta" into "release 4 beta"?
Guest2594 has quit [Client Quit]
rebcabin has quit [Quit: Leaving.]
<workmad3> RedNifre: "1.0.99".gsub(/\d+[^\d]*$/){|m| m.succ} is the best I can come up with
krzkrz has joined #ruby
Channel6 has quit [Quit: Leaving]
ta_ has joined #ruby
leonshalimov has joined #ruby
commmmodo_ has joined #ruby
<workmad3> bah, one sec, needs reworking for numbers in the middle of strings
astrobunny has joined #ruby
shazaum has joined #ruby
commmmodo has quit [Ping timeout: 245 seconds]
commmmodo_ is now known as commmmodo
cassianoleal has quit [Quit: (null)]
<tobiasvl> or some comparable gem
<tobiasvl> sure there's a gem for this
az7ar_away has quit [Ping timeout: 245 seconds]
hrs has joined #ruby
josephndenton has joined #ruby
msgodf has quit [Remote host closed the connection]
krzkrz has quit [Client Quit]
ta has quit [Remote host closed the connection]
msgodf has joined #ruby
<workmad3> .gsub(/\d+(?=[^0-9]*$)/){|m| m.succ}
Parker0 has quit [Ping timeout: 272 seconds]
Fusl has quit [Ping timeout: 250 seconds]
<gr33n7007h> workmad3, bravo!
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
longfeet has quit [Ping timeout: 264 seconds]
<RedNifre> Thanks, that's great!
<workmad3> today is a regexp lookahead day, obviously :)
hrs has left #ruby [#ruby]
krzkrz has joined #ruby
ixti has joined #ruby
colli5ion has joined #ruby
<RedNifre> I played around with succ, it's funny how it already does something similar, e.g. "9".succ -> "10" or "9a".succ -> "9b" or "9z".succ -> "10a"
astrobunny has quit [Ping timeout: 255 seconds]
mitchellhenke has joined #ruby
<workmad3> RedNifre: yeah, it's almost but not quite enough :)
<RedNifre> I'll use workmad3's solution for now, but I'll bookmark the gem for future reference. Thank you two very much :)
roshanavand has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
<workmad3> RedNifre: "1.0.99".succ gives "1.1.00" for example
ShadySQL has joined #ruby
blandflakes has joined #ruby
zenith_ has joined #ruby
<gr33n7007h> RedNifre, .pred gives you the opposite :)
shazaum has joined #ruby
shazaum has quit [Changing host]
<RedNifre> Does this channel have a bot that connects to irb?
<gr33n7007h> yep, eval-in_
tmtwd has quit [Remote host closed the connection]
drkyro has joined #ruby
agrinb has joined #ruby
<RedNifre> how to use it?
pandaant has joined #ruby
<gr33n7007h> that's g14 classified
<gr33n7007h> jk :)
<RedNifre> > "aaa".pred
<gr33n7007h> only on ints
<havenwood> a slight modification for consideration: sub(/\d+(?=[^\d]*\z)/, &:succ)
arup_r has quit [Quit: Leaving.]
skj3gg has quit [Quit: ZZZzzz…]
arup_r has joined #ruby
<gr33n7007h> >> "abc".succ
<eval-in_> gr33n7007h => "abd" (https://eval.in/260723)
skj3gg has joined #ruby
<RedNifre> havenwood, what does your version do differently?
<gr33n7007h> using /z end of a string
<havenwood> RedNifre: just #sub instead of #gsub, since you're doing it once
bronson has joined #ruby
<havenwood> RedNifre: and shorthand :succ block
roshanavand has quit [Remote host closed the connection]
<havenwood> and some random meddling for no good reason
<gr33n7007h> >> "abc".next
<eval-in_> gr33n7007h => "abd" (https://eval.in/260747)
codeFiend has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
Darryl___ has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
Ankhers has joined #ruby
<epitron> >> "abc".prev
<eval-in_> epitron => undefined method `prev' for "abc":String (NoMethodError) ... (https://eval.in/260748)
<epitron> :(
commmmodo has quit [Quit: commmmodo]
<jhass> >> "abc".pred
<eval-in_> jhass => undefined method `pred' for "abc":String (NoMethodError) ... (https://eval.in/260749)
<jhass> mmh
<gr33n7007h> I know there should be
sent1nel has joined #ruby
<jhass> wasn't there something?
zenith_ has quit [Remote host closed the connection]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
fgo has joined #ruby
<gr33n7007h> idk of anything
<epitron> >> entropy.reverse
<eval-in_> epitron => undefined local variable or method `entropy' for main:Object (NameError) ... (https://eval.in/260750)
<RedNifre> >> 5.pred
<eval-in_> RedNifre => 4 (https://eval.in/260751)
thoraxe_ is now known as thoraxe
bronson has quit [Ping timeout: 245 seconds]
krzkrz has quit [Quit: WeeChat 1.0.1]
ta has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
az7ar_away has joined #ruby
aclearman037 has joined #ruby
Fusl has joined #ruby
mitchellhenke has joined #ruby
<epitron> >> SpaceSpace.each_qbit.map { |q| q.information }.sum
<eval-in_> epitron => uninitialized constant SpaceSpace (NameError) ... (https://eval.in/260754)
Morkel has joined #ruby
krzkrz has joined #ruby
ShadySQL has quit [Ping timeout: 252 seconds]
<matti> epitron: Hahaha
<epitron> :(
<matti> epitron: <3 each_qbit
<havenwood> >> "abc".tap { |s| last = s.bytes.last.pred.chr; s.chop! << last }
<eval-in_> havenwood => "abb" (https://eval.in/260758)
<epitron> Omg!
blackoperat has quit [Ping timeout: 252 seconds]
<havenwood> >.>
<matti> LOL
<epitron> havenwood: can it be done for qbits? :D
Macaveli has quit [Ping timeout: 276 seconds]
zenith_ has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
sent1nel has quit [Ping timeout: 276 seconds]
<arup_r> Ahh.. Dunno how to work with OpenOffice word using Ruby... :( I'm in trouble.. Nothing I found on internet too...
<epitron> Lol @ chop
OrbitalKitten has joined #ruby
<matti> arup_r: It has API in Python, not sure if anyone did anything with Ruby :(
<arup_r> link please..
<havenwood> epitron: not a lot of chances to chop!, have to manufacture use cases :P
flip_digits has joined #ruby
<arup_r> no body did in Ruby,,, even if they do.. didn't share
mitchell_ has joined #ruby
<arup_r> :(
flip_digits has quit [Client Quit]
<epitron> Ruby needs more cooking metaphors
ta has quit [Ping timeout: 276 seconds]
triple_b has joined #ruby
<epitron> String#dice
<epitron> String#julienne
<oddmunds> Array#sample
<epitron> String#puree (alias for sha1)
<jefus> Hash#scramble
<havenwood> >> %w[cookies cake pie].sample
codeFiend has joined #ruby
<eval-in_> havenwood => "cake" (https://eval.in/260773)
<havenwood> why i think i will...
<epitron> Good choice, ruby!
<havenwood> mm, scrambled hash
sent1nel has joined #ruby
<jefus> hungry. :/
<matti> epitron: No! Cake is a lie.
parametaortho_ is now known as parametaortho
<epitron> Omg
<havenwood> Pie. Ala. Mode.
<matti> ;
mitchellhenke has quit [Ping timeout: 264 seconds]
ShadySQL has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
plashchynski has joined #ruby
duggiefresh has joined #ruby
<epitron> Mmm... Mode
pu22l3r has quit [Remote host closed the connection]
crueber has joined #ruby
Sgeo_ has joined #ruby
pu22l3r has joined #ruby
<havenwood> "à la mode" made up in the States. no relation to ice cream. weird.
davidhq has joined #ruby
n1ftyn8 has quit []
n1ftyn8 has joined #ruby
emilkarl has quit [Quit: emilkarl]
Sgeo has quit [Ping timeout: 244 seconds]
Aova has quit [Read error: Connection reset by peer]
<arup_r> no Ruby -- http://www.openoffice.org/api/ :p
<DefV_> get cracking!
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emilkarl has joined #ruby
<epitron> Mmm... Made up words
DaniG2k has joined #ruby
jonmorehouse has joined #ruby
<havenwood> arup_r: ^
<arup_r> cool.
<epitron> :rockstar:
OrbitalKitten has joined #ruby
<DefV_> wow
<DefV_> I was hoping for UNO the game
Aova has joined #ruby
<DefV_> #disapointed
fryguy9 has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
blackoperat has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ankhers` has joined #ruby
pontiki_ has joined #ruby
<DefV_> :-D
codeFiend has quit [Quit: codeFiend]
jmcharnes has joined #ruby
pontiki has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
snath has quit [Ping timeout: 256 seconds]
<epitron> Deck is a good enumerable
<epitron> Take 3
<epitron> Cycle
DaniG2k has quit [Quit: leaving]
posixpascal has joined #ruby
klmlfl has joined #ruby
Ankhers` has quit [Remote host closed the connection]
_honning_ has joined #ruby
<epitron> 3 deck shoe: ([deck]*3).shuffle
<epitron> + .flatten
<havenwood> is it april yet? we should propose a #flat_shuffle
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron> Yis
tagrudev has quit [Quit: Me = Awesome]
<epitron> And shuffled_cycle
<havenwood> #bicycle to do two cycles
<epitron> Haha!
Megtastique has joined #ruby
<oddmunds> deck.riffle(other_deck)
<epitron> Ooo
<epitron> I like it
<epitron> This is a fun idea to teach my ruby class
livingstn has joined #ruby
klmlfl has quit [Remote host closed the connection]
centrx has joined #ruby
klmlfl has joined #ruby
<epitron> Deck.52_pickup: creates 52 new global variables with a card in each
klmlfl has quit [Remote host closed the connection]
<oddmunds> deck.deal(3) #=> [[0,3,6], [1,4,7], [2,5,8]] #(assuming a sorted deck)
<epitron> Nice
<kalleth> rofl, epitron
<kalleth> 52 card pickup in ruby, nice
<epitron> Card class would be good too
<epitron> Card.succ
<kalleth> can you fudge the GC to spray them over the memory space? ;)
ixti has quit [Ping timeout: 255 seconds]
<epitron> Hah
<oddmunds> Card#+(other_card) #=> new_deck
flip_digits has joined #ruby
<epitron> 52 random objects are turned into cards
patric100e99 has joined #ruby
<kalleth> rofl
<epitron> That would require a patch
<epitron> But it would totally be worth it
<kalleth> totally
ak has joined #ruby
thatslifeson has joined #ruby
<epitron> I like the idea of cards with succ methods
<epitron> (2..ace)
<epitron> That's a deck!
<gr33n7007h> >> suits = %w[2660 2663 2665 2666].map(&:hex).map{|s|[s].pack('U')}; cards = %w[A 2 3 4 5 6 7 8 9 T J Q K]; cards.product(suits).shuffle.sample(2)
<ak> Hi, I'm trying to deploy casino - http://casino.rbcas.com/ I am running centos 7 with mariadb, ruby 2.0.0 and apache 2.4. When I go to the webpage for the app I see http://i60.tinypic.com/wldhqh.png
<ak> any ideas?
<epitron> Lol
mkaesz has quit [Remote host closed the connection]
patric100e99 has quit [Ping timeout: 265 seconds]
<epitron> gr33n7007h: what happened to the result :(
JDiPierro has joined #ruby
<gr33n7007h> :(
ypasmk has quit [Remote host closed the connection]
rippa has joined #ruby
<havenwood> ak: gem install bundler
divi has joined #ruby
<epitron> hand-crafted in Switzerland
<epitron> :D
<ak> cheers, I thought I had, will check :)
duggiefresh has quit [Read error: Connection reset by peer]
jcdesimp_ has joined #ruby
duggiefresh has joined #ruby
divi has quit [Client Quit]
<ak> havenwood: yes, still the same error
tiagonobre__ has quit [Quit: Connection closed for inactivity]
<epitron> Good old 3521b9a4
<epitron> If you look in that memory address, there's buried treasure
ixti has joined #ruby
cpt_yossarian has quit [Ping timeout: 256 seconds]
jcdesimp has quit [Ping timeout: 245 seconds]
hamakn has quit [Remote host closed the connection]
maasha has quit [Quit: Page closed]
OrbitalKitten has joined #ruby
<ak> actually, error ID is now 18c197f7 although the part above that is still the same
kapil__ has quit [Quit: Connection closed for inactivity]
<epitron> I see
<epitron> Quite a different error
shredding has joined #ruby
jgt3 has joined #ruby
<jhass> ak: try #passenger
<ak> cheers :)
kl has quit [Ping timeout: 245 seconds]
maximski has quit []
<epitron> Thanks for stopping by!
Takle has joined #ruby
jgt2 has quit [Ping timeout: 276 seconds]
emilkarl has quit [Quit: emilkarl]
etqqkoiflwhb has joined #ruby
sinkensabe has quit [Remote host closed the connection]
mitchell_ has quit [Quit: Computer has gone to sleep.]
byprdct has joined #ruby
rbrs has joined #ruby
joonty has quit [Quit: joonty]
The_Phoenix has quit [Quit: Leaving.]
mitchellhenke has joined #ruby
cphrmky has joined #ruby
adamkittelson has joined #ruby
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
cphrmky has quit [Client Quit]
cyberarm has quit [Quit: Bye]
cphrmky has joined #ruby
ta has joined #ruby
krzkrz has quit [Ping timeout: 255 seconds]
cassianoleal has joined #ruby
joonty has joined #ruby
kl has joined #ruby
cphrmky has quit [Client Quit]
bal has quit [Quit: bal]
jlambert121 has joined #ruby
aganov has quit [Quit: Leaving]
skj3gg has joined #ruby
vikram_ has quit [Quit: Connection closed for inactivity]
thatsnotjack has joined #ruby
Renich has quit [Ping timeout: 245 seconds]
cphrmky has joined #ruby
maZtah has quit []
borel has joined #ruby
jfran has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adamjleonard has joined #ruby
Ankhers has joined #ruby
maZtah has joined #ruby
ta has quit [Ping timeout: 276 seconds]
hirzu has joined #ruby
snath has joined #ruby
_lazarevsky has quit [Ping timeout: 246 seconds]
blackoperat has quit [Ping timeout: 276 seconds]
bal has joined #ruby
symbol has joined #ruby
einarj has quit [Remote host closed the connection]
ShadySQL has quit [Quit: This computer has gone to sleep]
fgo has joined #ruby
jfran has quit [Remote host closed the connection]
dotix has quit [Ping timeout: 245 seconds]
abuzze has joined #ruby
bal has quit [Client Quit]
guest977 has joined #ruby
CustosL1men has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
MyMind has joined #ruby
adamkittelson has left #ruby [#ruby]
cphrmky has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
hirzu has quit [Ping timeout: 245 seconds]
P-NuT has joined #ruby
hamakn has joined #ruby
<P-NuT> Hi all, does anyone know what the fastest ORM for reading results is for ruby on ARM?
weems|mac has joined #ruby
<P-NuT> ...I guess also what is the fastest DB to use with it?
ta has joined #ruby
EvanFreeman has joined #ruby
klmlfl has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
<centrx> P-NuT, Probably Sequel with SQLite
aaas_ has joined #ruby
davedev2_ has joined #ruby
helpa has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 264 seconds]
helpa has joined #ruby
davedev24_ has quit [Ping timeout: 264 seconds]
jobewan has joined #ruby
hirzu has joined #ruby
<workmad3> P-NuT: on ARM? bleh, no idea... embedded sqlite is probably the way to go as centrx suggested though
jlambert121 has left #ruby [#ruby]
agrinb_ has joined #ruby
jonmorehouse has quit [Ping timeout: 265 seconds]
agrinb has quit [Ping timeout: 245 seconds]
wpp has quit [Quit: ZZZzzz…]
aaas has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 272 seconds]
aaas_ is now known as aaas
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adamjleonard has quit [Quit: Leaving...]
DaniG2k has joined #ruby
blackoperat has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
adamjleonard has joined #ruby
hirzu has quit [Ping timeout: 276 seconds]
Aova has quit [Read error: Connection reset by peer]
Xeago_ has quit [Ping timeout: 245 seconds]
mrmargolis has joined #ruby
skj3gg has joined #ruby
mloveless has joined #ruby
<dstarh> when I do case "foo", "bar" is there some way to know which one matched?
Aova has joined #ruby
<workmad3> dstarh: if you care, they should probably be different cases :P
dennijensen has joined #ruby
rbrs has quit [Quit: rbrs]
<dstarh> workmad3 yea was trying to do soemthing like myobj.send("#{matched}=", val)
wald0 has quit [Quit: Lost terminal]
<dstarh> for like 5 or 6 cases I just need to call a setter which matches the accessor method
krzkrz has joined #ruby
<dstarh> call an accessor method which matches the matched that is
<centrx> dstarh, just use the same variable used in the case statement, set it beforehand if appropriate
<dstarh> centrx doh
lmickh has joined #ruby
etqqkoiflwhb has quit [Read error: Connection reset by peer]
aswen has quit [Ping timeout: 245 seconds]
wookiehangover has quit [Ping timeout: 245 seconds]
ta has joined #ruby
doobi-sham-78872 has quit [Remote host closed the connection]
thatslifeson has quit [Quit: WeeChat 0.4.2]
doobi-sham has joined #ruby
Lexun has joined #ruby
tmoore_ has quit []
tmoore_ has joined #ruby
thatslifeson has joined #ruby
Lexun has quit [Remote host closed the connection]
ta has quit [Ping timeout: 276 seconds]
primafacie_ has quit [Quit: Leaving]
Hobogrammer has joined #ruby
GaryOak_ has joined #ruby
wookiehangover has joined #ruby
baroquebobcat has joined #ruby
sigurding has quit [Quit: sigurding]
ak is now known as ak_afk
Kricir has joined #ruby
hanmac1 has quit [Quit: Leaving.]
<ericwood> I'm writing some tests and I need to stub out a class constant...any suggestions?
<ericwood> apparently Mocha doesn't really work with constants
jcdesimp_ has quit [Quit: Leaving...]
paulfm has quit [Remote host closed the connection]
paulfm has joined #ruby
randiman has joined #ruby
livathin_ has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<ericwood> damn. It's impossible. I knew it.
Morkel has quit [Quit: Morkel]
banister has joined #ruby
kaspertidemann has joined #ruby
danjordan has quit [Quit: danjordan]
gsd has joined #ruby
livathinos has quit [Ping timeout: 264 seconds]
livathin_ has quit [Remote host closed the connection]
martinium has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
<felltir> ericwood: in which framework? Rspec has stub_const
<ericwood> heh a coworker jsut informed me we have a custom test helper that does it
maximski has joined #ruby
ramfjord has joined #ruby
krzkrz has quit [Quit: WeeChat 1.0.1]
Lexun has joined #ruby
athan has quit [Remote host closed the connection]
P-NuT has left #ruby ["Leaving"]
Xeago has joined #ruby
ZucchiniZe has quit []
ZucchiniZe has joined #ruby
bronson has joined #ruby
patric100e99 has joined #ruby
Xeago has quit [Remote host closed the connection]
n88 has joined #ruby
jenrzzz has joined #ruby
Lexun has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 245 seconds]
hamakn has quit [Remote host closed the connection]
Lexun has joined #ruby
<epitron> :D
raphaelss has quit [Quit: leaving]
tus has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
ldnunes has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
<oddmunds> epitron: ...but that is a Deck
ptrrr has joined #ruby
<epitron> Card.all is a deck
nerium has quit [Quit: nerium]
jenrzzz has quit [Ping timeout: 255 seconds]
ldnunes has joined #ruby
pengin has joined #ruby
<epitron> hah, i could use divmod to get the card's value!
neoxquick has joined #ruby
<epitron> value, suit = pos.divmod(4)
Lexun has quit [Remote host closed the connection]
ghr has joined #ruby
deol has joined #ruby
Sgeo_ has quit [Read error: Connection reset by peer]
jimmyhoughjr has joined #ruby
guest977 has quit [Ping timeout: 255 seconds]
<oddmunds> i want to make a Card and Deck project now
<oddmunds> implementing it MY WAY
kenneth has joined #ruby
<centrx> YEAH
<ericwood> sometimes I wonder if java is a parody of itself
<epitron> oddmunds: GO GO GO
<workmad3> ericwood: each java version is a parody of the previous version
Sgeo has joined #ruby
<ericwood> it's literally just gibberish
<epitron> centrx: lolol
<epitron> centrx: i love the video too
multi_io has joined #ruby
<centrx> there's a video!?
<epitron> where he's using Eclipse to create all those implementations and stuff
<epitron> yeah! :D
<epitron> he starts with normal fizzbuzz, then refactors it into oblivion
patric100e99 has quit [Ping timeout: 246 seconds]
<skj3gg> gotta bookmark that, wow!
codeFiend has joined #ruby
<workmad3> ericwood: http://neverworkintheory.org/2014/01/29/stefik-siebert-syntax.html specifically the point 'C-style syntax, as used in Java and Perl, is just as hard for novices to learn as a randomly-designed syntax'
<epitron> damn, can't find it
<epitron> the guy was great too -- he had this cockney accent that made him sound like Bricktop from Snatch
deol has quit [Client Quit]
uptownhr has joined #ruby
<ericwood> workmad3: omg yes I remember that
chrishough has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Takle has joined #ruby
<workmad3> ericwood: so you can sort of say that Java is empirically demonstrated to be no better than gibberish, and be on fairly firm footing :)
<ericwood> finally!
apeiros_ has quit [Remote host closed the connection]
<workmad3> criticism also applies to C, Perl, C++, and probably a bunch of others :)
multi_io_ has quit [Ping timeout: 252 seconds]
<ericwood> everything sucks
<epitron> lol, randomly designed syntax
<ericwood> iirc perl performed the worst
sambao21 has joined #ruby
<max96at> the fact that to take a lambda as a function argument you need a interface with a single function first is kinda weird too
fgo has joined #ruby
livingstn has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
RedNifre has quit [Quit: Verlassend]
<GaryOak_> epitron: a language that changes syntax at compile time
ghr has quit [Ping timeout: 245 seconds]
<epitron> Syntax.succ
<epitron> Syntax.sample
tobago has quit [Remote host closed the connection]
msgodf has quit [Remote host closed the connection]
<epitron> Syntax.all.shuffle
pdoherty has quit [Remote host closed the connection]
mkaesz has joined #ruby
livingstn has joined #ruby
Hijiri has quit [Ping timeout: 276 seconds]
fgo has quit [Ping timeout: 272 seconds]
EvanFree_ has joined #ruby
oo_ has joined #ruby
tubuliferous has quit [Quit: Textual IRC Client: www.textualapp.com]
<ddw> guys
<ddw> damn
ddw is now known as shevy
<shevy> now that is better
<shevy> let's huge one another!
joonty has quit [Quit: joonty]
<GaryOak_> I'm hugeing you right now
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
EvanFreeman has quit [Ping timeout: 244 seconds]
andikr has quit [Remote host closed the connection]
charles81 has quit []
charles81 has joined #ruby
dfinninger has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
<shevy> lol
<shevy> I wanted to type hug
<shevy> :(
* workmad3 is worried as to what a 'huge' may be
kiddo__ has joined #ruby
casual_ has quit []
shredding has quit [Quit: shredding]
<kiddo__> Hi. How can I get the number of objects created under a namespace currently in memory?
<ericwood> plz don't huge me
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casual_ has joined #ruby
roolo has quit [Remote host closed the connection]
<centrx> kiddo__, Check out ObjectSpace
oo_ has quit [Ping timeout: 276 seconds]
mkaesz has quit [Ping timeout: 264 seconds]
roolo has joined #ruby
mskaesz has joined #ruby
dnewkerk has joined #ruby
bcavileer_ has quit []
Lexun has joined #ruby
alex88 has quit []
bcavileer_ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
Lexun has quit [Remote host closed the connection]
bricker has joined #ruby
ghr has joined #ruby
pietr0 has joined #ruby
ShadySQL has joined #ruby
Lexun has joined #ruby
JDiPierro has joined #ruby
Timgauthier has quit [Quit: done for today]
roolo has quit [Ping timeout: 264 seconds]
kf8a has joined #ruby
plashchynski has quit [Quit: plashchynski]
randiman has quit [Quit: (null)]
adamjleonard has quit [Quit: Leaving...]
EvanFree_ has quit [Remote host closed the connection]
Aova has joined #ruby
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
ShadySQL has quit [Client Quit]
Lexun has quit [Remote host closed the connection]
maletor has joined #ruby
* epitron huges shevy
<shevy> :
<shevy> you guys just riding on the typo...
<shevy> kiddo__ you probably have to select the objects in the namespace too
wallerdev has joined #ruby
<epitron> verbing huge is the best thing that's happened today
denym_OFF is now known as denym_
<epitron> you totally huged that word
<epitron> big huges for that
<shevy> you can have things like ObjectSpace.memsize_of() ObjectSpace.count_objects and ObjectSpace.each_object
plashchynski has joined #ruby
<shevy> you are still on it, it was a TYPO :(
pietr0 has quit [Quit: pietr0]
tyfighter has joined #ruby
<epitron> the guy who discovered penicillin made a typo too
<epitron> HE HUGED IT AS WELL
pdoherty has joined #ruby
<shevy> he made a typo?
<shevy> Fleming
<shevy> 1928!
klmlfl has quit [Remote host closed the connection]
<workmad3> epitron: I assume you're referring to the glory-hound flemming, not the people who made it useful, chains and florey?
<epitron> i dunno
chthon has quit [Ping timeout: 245 seconds]
<epitron> some of my history is from TV ^_^
nerium has joined #ruby
<epitron> 10 GREATEST HUGES IN HISTORY
<epitron> or maybe it was from an email forward
Lexun has joined #ruby
jmcharnes has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpbll has quit [Quit: ciao.]
siggy has joined #ruby
pygospa has joined #ruby
DaniG2k has quit [Quit: leaving]
commmmodo has joined #ruby
Lexun has quit [Remote host closed the connection]
<shevy> :/
<workmad3> epitron: fleming 'discovered' penicillin, made a note of it in a lab book as a vaguely interesting observation and basically wrote it off as pretty much useless... chains and florey did all the hard work of identifying the anti-biotic aspects of the mold, extracting it, concentrating it and turning it into something that could be used in medicine in the middle of WW2
<workmad3> epitron: and fleming gets all the credit as the 'discoverer of penicillin'
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skj3gg has quit [Quit: welp, see you later.]
<centrx> what a huge douche
<workmad3> centrx: yeah, almost as bad as edison :)
<GaryOak_> what a hug douche
<shevy> don't huge this douche
skj3gg has joined #ruby
<epitron> hahah
<epitron> edison
<epitron> total douche hugger
<GaryOak_> ian fleming also wrote the james bond books, little known fact
<workmad3> GaryOak_: different fleming :P
Lucky____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
olivier_bK has quit [Ping timeout: 246 seconds]
<workmad3> GaryOak_: alex fleming is the 'discoverer of penicillin'
wpp has joined #ruby
<GaryOak_> oh ian's brother
<workmad3> :)
baroquebobcat has quit [Quit: baroquebobcat]
bronson has joined #ruby
Kn|t3_ has quit [Quit: Kn|t3_]
sambao21 has joined #ruby
baroquebobcat has joined #ruby
shime has quit [Read error: Connection reset by peer]
<oddmunds> Barbara Broccoli, american filmmaker involved in the James Bond series, is the 'discoverer of Brocolli'
<oddmunds> lil' known fact
defrang has quit [Quit: defrang]
shime has joined #ruby
n008f4g_ has joined #ruby
GreatSUN has joined #ruby
<GreatSUN> Hi all
<GreatSUN> Searching for some trainer to provide ruby course for beginner and expert in baden Württemberg, Germany
Lexun has joined #ruby
<epitron> oddmunds: Albert R. Broccoli married into the Broccoli fortune
<epitron> it's a little known fact: if a poor guy marries a rich woman, he has to take HER last name
<GreatSUN> Best of he is known in the community and wrote some article(s)
uptownhr has quit [Quit: uptownhr]
antgel has quit [Ping timeout: 246 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachrab has joined #ruby
<workmad3> it's a little known fact: most little known facts are BS
paulfm has quit [Remote host closed the connection]
<bricker> workmad3: YOU are a little known fact.
felltir has quit [Remote host closed the connection]
<epitron> LOL
Hobogrammer has quit [Ping timeout: 272 seconds]
<bricker> wait we're talking about Barbara Broccolo?
<epitron> it's a little known fact: your mom is not a whore
<bricker> Broccoli*
paulfm has joined #ruby
abuzze has quit [Ping timeout: 256 seconds]
<shevy> pics from his mom
wallerdev has quit [Quit: wallerdev]
Eiam has joined #ruby
d10n-work has joined #ruby
<GaryOak_> This kind of great conversation would never happen on #python, I <3 ruby
<epitron> "strings /dev/mem" is fun
codeFiend has quit [Quit: codeFiend]
b-dean has joined #ruby
MrBeardy has joined #ruby
the1freeman has joined #ruby
Darryl___ has quit []
kalusn has quit [Remote host closed the connection]
kiddo__ has left #ruby [#ruby]
the1freeman has quit [Client Quit]
callenb___ has quit []
callenb___ has joined #ruby
testcore has joined #ruby
Darryl___ has joined #ruby
spyderman4g63 has joined #ruby
Zai00 has quit [Quit: Zai00]
<b-dean> does anyone know how long drb servers will run? do they have some sort of timeout where they the tcp connections die or something? I'm getting some "connection reset by peer" stuff with drb and am unsure where to look to figure out what's going on
rfv has quit []
<pipework> As long as the process is up, I believe.
Renich has joined #ruby
<pipework> Unless you're doing something interesting that might prevent that.
rfv has joined #ruby
<b-dean> that's what I thought too. but I can't figure out why the connection would get reset then
ta has joined #ruby
Lexun has quit [Remote host closed the connection]
<epitron> b-dean: that's probably a network issue
<pipework> Got code you can share?
<workmad3> b-dean: are you going through some form of proxy to reach the drb server?
<epitron> routers sometimes drop idle TCP connections
<epitron> especially NAT routers
<epitron> (they have to track all the connections in a big table, and often that table fills up)
<workmad3> ^^ that's the sort of thing I was thinking of, but was thinking more proxies rather than routers
<epitron> proxies too
<pipework> Let the sockets hit the floor, let the sockets hit the floor, let the sockets hit the floooooooor.
<epitron> haha
<ericwood> 1) nothing wrong with me
<ericwood> 2) nothing wrong with me
<b-dean> well the client and server are on different networks
<ericwood> I'll spare you the rest
djbender has quit []
<epitron> 3) jk i am 100% made of wrong lolol
djbender has joined #ruby
<b-dean> like 10.x vs some 172.x, but I've never noticed any problem before. Maybe the IT department changed something :\
<pipework> 1) Something's got to ACCEPT
<pipework> 2) Something's got to ACCEPT
<pipework> 31) Something's got to ACCEPT
withnale_ has quit [Ping timeout: 264 seconds]
<ericwood> you skipped a few numbers there
Lexun has joined #ruby
uptownhr has joined #ruby
ki0 has quit [Ping timeout: 255 seconds]
<epitron> ELPISIS
<pipework> Nope, see [09:49:17] <ericwood> 1) nothing wrong with me
<ericwood> 31
livathinos has joined #ruby
<pipework> I can confirm, in fact, there is nothing wrong with me. So it's obviously, you, not me. I hope we can still be friends though?
<ericwood> ok
livathin_ has joined #ruby
<epitron> pipework: did you run a level 1 diagnostic?
nobitanobi has joined #ruby
ta has quit [Ping timeout: 276 seconds]
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
apeiros_ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
dennijensen has quit [Quit: WeeChat 0.4.2]
ta has joined #ruby
nobitanobi has joined #ruby
kf8a has quit [Ping timeout: 264 seconds]
self has joined #ruby
<pipework> epitron: No, level 31.
<self> !list
grzywacz has joined #ruby
grzywacz has joined #ruby
self has quit [Client Quit]
self has joined #ruby
self has left #ruby [#ruby]
paulfm has quit [Read error: Connection reset by peer]
paulfm_ has joined #ruby
codeFiend has joined #ruby
livathinos has quit [Ping timeout: 240 seconds]
Hijiri has joined #ruby
maximski has quit []
bkulbida has quit [Ping timeout: 245 seconds]
zenith_ has quit [Remote host closed the connection]
ta has quit [Ping timeout: 272 seconds]
psy has quit [Disconnected by services]
psy_ has joined #ruby
whoisjake has quit []
grzywacz has quit [Ping timeout: 256 seconds]
borel has quit [Remote host closed the connection]
wallerdev has joined #ruby
OrbitalKitten has joined #ruby
Lexun has quit [Remote host closed the connection]
Lexun has joined #ruby
mikepack has quit [Remote host closed the connection]
sent1nel has quit [Remote host closed the connection]
thiagovsk has joined #ruby
livathin_ has quit []
Megtastique has quit []
jm2222 has joined #ruby
livathinos has joined #ruby
skmp has quit []
skmp has joined #ruby
siggy has quit [Quit: siggy]
hamakn has joined #ruby
codeFiend has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
sent1nel has joined #ruby
lolmaus has quit [Remote host closed the connection]
shime has quit [Read error: Connection reset by peer]
jkhvjhvjhvhjv has joined #ruby
jm2222 has quit [Client Quit]
bkulbida has joined #ruby
corgus has joined #ruby
b-dean has quit [Quit: Leaving]
Hijiri has quit [Ping timeout: 264 seconds]
<jkhvjhvjhvhjv> hi c
jkhvjhvjhvhjv has quit [Client Quit]
lolmaus has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
cephalostrum has quit [Ping timeout: 256 seconds]
hamakn has quit [Ping timeout: 240 seconds]
EvanFreeman has joined #ruby
corgus has quit [Client Quit]
commmmodo has quit [Quit: commmmodo]
Spami_ has quit [Quit: Leaving]
Spami has joined #ruby
avril14th has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 265 seconds]
crazydiamond_ has joined #ruby
crazydiamond_ has quit [Read error: Connection reset by peer]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cephalostrum has joined #ruby
GreatSUN has quit [Ping timeout: 246 seconds]
mame2 has joined #ruby
nanoyak has joined #ruby
dgarstang has joined #ruby
<dgarstang> Does ruby have a simple way to search a hash for a given key?
<workmad3> dgarstang: you mean like 'hsh.has_key?(some_key)'
<dgarstang> workmad3: yes but I don't know where in the hash the key is
<dgarstang> workmad3: i just want to return true/false if it's anywhere in the hash
<centrx> sounds like it's not hash
<dgarstang> centrx: que?
athan has joined #ruby
flip_digits has quit []
<centrx> dgarstang, Hashes are organized by key, the address of the key is the key
<workmad3> dgarstang: err... 'hsh.has_key?(some_key)' returns true/false depending on if the hash has that value...
<workmad3> *key
<dgarstang> sigh. hashes can be nested, no?
plashchynski has quit [Quit: plashchynski]
kamilc__ has quit [Quit: Leaving...]
<centrx> so is it a hash of hashes, a tree of hashes, an array of hashes, a hash of arrays of hashes...?
<dgarstang> centrx: yes, isn't that still a hash?
_yinzer has joined #ruby
<bkulbida> exit
<workmad3> dgarstang: it's lots of hashes
<workmad3> dgarstang: not a single hash
bkulbida has quit [Quit: leaving]
<dgarstang> workmad3: does it matter?
<centrx> yes
dfinninger has quit [Remote host closed the connection]
_yinzer has quit [Max SendQ exceeded]
<dgarstang> let me rephase. is there a ruby function to deep search a hash of unknown depth and return if a key exists or not?
<workmad3> no
Aova has quit [Read error: Connection reset by peer]
<dgarstang> :(
whatasunnyday has joined #ruby
ursooperduper has joined #ruby
<papercode> do other languages support that?
<dgarstang> seems like a pretty obvious piece of functionality
<whatasunnyday> Do people generally check in the coverage folder (generated by simplecov into version control)?
<papercode> you would have to check at every layer if the value for a key was a hash and recurse
klmlfl has joined #ruby
kl has quit [Ping timeout: 245 seconds]
<dgarstang> papercode: the structure is indeterminate
aclearman037 has joined #ruby
<pipework> dgarstang: Ruby doesn't provide a method in core or stdlib, but deep fetching is perfectly possible.
_yinzer has joined #ruby
<papercode> like i said, at every value you'd need to check if the value was a hash, then dive into that layer and repeat
<workmad3> heh, sorry, my 'no' was 'not in stdlib, feel free to write it yourself'
<centrx> it's pretty straightforward with recursion
<dgarstang> centrx: ruby makes my eyes bleed. was hoping for a one liner
<pipework> centrx: You don't even need to use recursion.
<pipework> Just a loop and fetch.
<papercode> well....
<pipework> Well, #key? too
<centrx> it could be any depth
<dgarstang> pipework: I haven't learned to read squiggle, so my ruby isn't so good
<papercode> .to_json.match(/..../)
CustosLimen has joined #ruby
_djbkd has joined #ruby
<pipework> centrx: You still don't need recursion, just a loop.
<havenwood> dgarstang: maybe you're thinking Perl
<dgarstang> havenwood: ruby, perl, same thing
<pipework> dgarstang: I don't know what that means.
<centrx> dgarstang, Hashie has "DeepFetch" and "DeepFind", might want to use that
<dgarstang> pipework: every time I read ruby code, I have to translate | and {} in my head.
<pipework> Do you just want to check anywhere in the hash if a key exists?
<dgarstang> pipework: yes
<pipework> Or do you have a 'path' to the key?
mikepack has joined #ruby
<dgarstang> pipework: i have a partial path. at a certain point below that, the structure may change
jenrzzz has joined #ruby
<dgarstang> centrx: thanks, i'll take a look at that'
diegoviola has joined #ruby
<pipework> dgarstang: Then you need deep_fetch, a gem, and the other part is taking the remaining hash and looping over it, detecting if there's a key you're looking for, and if not then you check if the #values are hashes, if they are, then you can loop again.
Aova has joined #ruby
<pipework> If you use recursion, mind that ruby isn't optimized for tail recursion by default, and I believe it's not that good at any recursion optimization, at least with cruby.
SparkMasterTape has quit [Read error: Connection reset by peer]
roshanavand has quit [Remote host closed the connection]
audy has left #ruby ["bye"]
roshanavand has joined #ruby
<dgarstang> ugh. "undefined method `deep_find'"
<pipework> dgarstang: Gems bruh
<pipework> gems.
<dgarstang> pipework: i installed it, and I have 'require hashie'
<pipework> dgarstang: You might want to use a gem that implements that method then.
nobitanobi has quit [Remote host closed the connection]
<dgarstang> pipework: sorry? i installed the gem, i have "require 'hashie'". i have a hash, and I'm running h.deep_find('key')
<pipework> Sorry, meeting.
mskaesz has quit [Remote host closed the connection]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> (reading docs helps)
<dgarstang> workmad3: i did
ta has joined #ruby
ghostmoth has joined #ruby
<workmad3> dgarstang: did you do that bit where you extend the hash with DeepFetch?
<workmad3> dgarstang: or DeepFind?
tvw has quit []
<dgarstang> workmad3: does that mean the hash gets modified?
nobitanobi has joined #ruby
wallerdev has quit [Quit: wallerdev]
<workmad3> dgarstang: hashie doesn't monkey-patch the core Hash class... you need to pull the bits you need into the hashes you want features on... such as extending a specific hash with deep_find, or subclassing Hash with coercion features
<workmad3> as the docs show
<dgarstang> workmad3: does that mean the hash gets modified?
<workmad3> dgarstang: depends what you mean by 'gets modified'
_djbkd has quit [Remote host closed the connection]
<dgarstang> workmad3: this is ohai in chef. not sure if that's kosher
oleo is now known as Guest20177
tkuchiki has quit [Remote host closed the connection]
oleo__ has joined #ruby
cstrahan_ has quit []
skj3gg has quit [Quit: ZZZzzz…]
cstrahan_ has joined #ruby
tkuchiki has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
denym_ is now known as denym_OFF
_djbkd has joined #ruby
mloveless has quit [Ping timeout: 246 seconds]
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest20177 has quit [Ping timeout: 240 seconds]
kenneth has joined #ruby
towski_ has joined #ruby
kalusn has joined #ruby
dstarh has quit [Ping timeout: 265 seconds]
Cyberheb has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has quit [Ping timeout: 244 seconds]
duggiefresh has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
maximski has joined #ruby
adamjleonard has joined #ruby
<workmad3> dgarstang: hmm... not sure on that front, I'm afraid
<workmad3> dgarstang: never needed to play with deep-searching hashes in chef
maximski has quit [Max SendQ exceeded]
<dgarstang> workmad3: just trying to work out if instance is in a vpc. if it is, ohai has a vpc_id key nested in there
skj3gg has joined #ruby
djcp has quit [Ping timeout: 245 seconds]
maximski has joined #ruby
colli5ion has quit []
maximski has quit [Max SendQ exceeded]
lolmaus has quit [Quit: Konversation terminated!]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
MiracleBlue has quit []
ta has quit [Ping timeout: 276 seconds]
MiracleBlue has joined #ruby
_djbkd has quit [Remote host closed the connection]
Drakevr_ is now known as Drakevr
maximski has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
maximski has quit [Max SendQ exceeded]
dumdedum has quit [Quit: foo]
Eiam_ has joined #ruby
maximski has joined #ruby
reset has joined #ruby
Megtastique has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
sssilver has joined #ruby
commmmodo has joined #ruby
antgel has joined #ruby
adamjleonard has quit [Ping timeout: 256 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rdark has quit [Quit: leaving]
amystephen has joined #ruby
jerius has quit []
OrbitalKitten has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
adamjleonard has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
defrang has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
pengin has quit [Remote host closed the connection]
tyfighter has quit [Quit: tyfighter]
chrisseaton has quit []
pengin has joined #ruby
nanoyak has quit [Remote host closed the connection]
chrisseaton has joined #ruby
thiagovsk has quit []
nanoyak has joined #ruby
thiagovsk has joined #ruby
adamjleonard has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
OrbitalKitten has quit [Client Quit]
Rollabunna has quit [Remote host closed the connection]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bthesorceror has joined #ruby
lmickh has quit [Remote host closed the connection]
Morkel has joined #ruby
axisys has joined #ruby
jerius has joined #ruby
Rollabunna has joined #ruby
nanoyak has quit [Client Quit]
_djbkd has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
pengin has quit [Ping timeout: 276 seconds]
siggy has joined #ruby
dfinninger has joined #ruby
Hijiri has joined #ruby
gfawcettpq1 has quit [Quit: Leaving.]
mkaesz has joined #ruby
commmmodo has quit [Quit: commmmodo]
skj3gg has quit [Quit: ZZZzzz…]
axisys has quit [Changing host]
axisys has joined #ruby
nanoyak has joined #ruby
nanoyak has quit [Remote host closed the connection]
lorn_ is now known as Lorn
Lorn has quit [Changing host]
Lorn has joined #ruby
adamjleonard has joined #ruby
nanoyak has joined #ruby
metadave has joined #ruby
zachrab has quit [Remote host closed the connection]
wallerdev has joined #ruby
mikepack has quit [Remote host closed the connection]
wpp has quit [Quit: ZZZzzz…]
fgo has joined #ruby
Pharaoh2 has joined #ruby
adamjleonar has joined #ruby
adamjleonard has quit [Ping timeout: 272 seconds]
pengin has joined #ruby
mikepack has joined #ruby
zachrab has joined #ruby
tyfighter has joined #ruby
vt102 has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jschoolcraft has joined #ruby
ta has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Nameo0 has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
kenneth has joined #ruby
adamjleonar has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 245 seconds]
grzywacz has joined #ruby
perturbation has joined #ruby
martinium has quit [Remote host closed the connection]
grzywacz has quit [Changing host]
grzywacz has joined #ruby
skj3gg has joined #ruby
nanoyak has joined #ruby
claymore has joined #ruby
ta has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
baweaver has joined #ruby
Neomex has joined #ruby
replay has joined #ruby
Aova has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
_2_supergirlygam has joined #ruby
<_2_supergirlygam> hi
<wallerdev> hi
<_2_supergirlygam> im cat im a cat
<wallerdev> oh
<_2_supergirlygam> so
nanoyak has quit [Client Quit]
asmodlol has quit [Ping timeout: 264 seconds]
<_2_supergirlygam> plutôt
oleo__ has quit [Quit: Verlassend]
_2_supergirlygam has quit [Remote host closed the connection]
alex88 has joined #ruby
claymore has quit [Ping timeout: 255 seconds]
chinmay_dd has quit [Quit: Connection closed for inactivity]
<wasamasa> what the hell was that
<mozzarella> French cat
asmodlol has joined #ruby
claymore has joined #ruby
CustosL1men has joined #ruby
Charliebr73 has joined #ruby
Aova has joined #ruby
baweaver has joined #ruby
<centrx> This bar is pretty dirty
psyprus has quit [Quit: leaving]
<havenwood> savon le chat
oleo__ has joined #ruby
oleo__ has quit [Changing host]
oleo__ has joined #ruby
plashchynski has joined #ruby
oleo__ has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
Hijiri has joined #ruby
yfeldblum has joined #ruby
Charliebr73 has quit [Quit: Leaving]
skj3gg has quit [Quit: welp, see you later.]
skj3gg has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
vt102 has joined #ruby
hirzu has joined #ruby
plashchynski has quit [Quit: plashchynski]
ghr has quit [Ping timeout: 245 seconds]
baweaver has quit [Remote host closed the connection]
werelivinginthef has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
pdoherty has quit [Remote host closed the connection]
jenrzzz has joined #ruby
kl has joined #ruby
adamjleonard has joined #ruby
ta has joined #ruby
nanoyak has joined #ruby
michael_mbp has joined #ruby
pontiki_ has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
siggy has quit [Quit: siggy]
werelivinginthef has joined #ruby
bronson has quit [Remote host closed the connection]
bthesorceror has quit [Quit: bthesorceror]
_djbkd has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
paulfm_ has quit [Quit: Zzzzz...]
tiagopog has joined #ruby
ta has quit [Ping timeout: 276 seconds]
tiagopog has quit [Client Quit]
quimrsto_ has quit [Remote host closed the connection]
_djbkd has joined #ruby
plashchynski has joined #ruby
wallerdev has quit [Quit: wallerdev]
perturbation has quit [Ping timeout: 256 seconds]
hirzu has quit [Ping timeout: 252 seconds]
pontiki has joined #ruby
chrishough has joined #ruby
aswen has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
davedev24_ has joined #ruby
davedev2_ has quit [Ping timeout: 264 seconds]
Lexun has quit [Remote host closed the connection]
randiman has joined #ruby
mrmargolis has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
jerius has quit []
d10n-work has quit [Quit: Connection closed for inactivity]
alex88 has quit []
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
nanoyak has joined #ruby
sinkensabe has joined #ruby
jerius has joined #ruby
AlHafoudh has joined #ruby
mikepack has joined #ruby
sinkensa_ has joined #ruby
zwer_c has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
chrishough has joined #ruby
sinkensabe has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 264 seconds]
davedev2_ has joined #ruby
wallerdev has joined #ruby
ta has joined #ruby
znst has joined #ruby
shime has joined #ruby
_mark_ has joined #ruby
dgarstang has quit [Quit: WeeChat 0.4.3]
zwer has quit [Ping timeout: 250 seconds]
zwer_c_w has joined #ruby
shazaum has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
chrishough has quit [Client Quit]
evilptr has left #ruby ["Leaving"]
werelivinginthef has quit [Remote host closed the connection]
sinkensa_ has quit [Client Quit]
lolmaus has joined #ruby
<AlHafoudh> which project skeleton generator do you use?
icarus has joined #ruby
zwer_c has quit [Ping timeout: 250 seconds]
astroduck has joined #ruby
<astroduck> Hi! gem on my Mac is working really slowly, its lookup time for gems is like 10mins
ta has quit [Ping timeout: 265 seconds]
ta has joined #ruby
<astroduck> Also, it wont install dependencies by itself, any fix for that?
<astroduck> Gem version is 2.0.14
MrBeardy has quit []
rodfersou has quit [Quit: leaving]
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
arup_r has quit [Quit: Leaving.]
<havenwood> astroduck: For starters update to the latest RubyGems: gem update --system
<havenwood> astroduck: Are you using system Ruby?
<astroduck> havenwood: yes, ruby --version gives me 2.0.0p481
fgo has joined #ruby
oleo has joined #ruby
MSY has joined #ruby
MSY is now known as Guest64431
<atmosx> astroduck: that's an awful choice
<atmosx> astroduck use rvm
kamilc__ has joined #ruby
shortdudey123 has joined #ruby
<atmosx> astroduck: or rbenv or anything\
DrCode has quit [Ping timeout: 250 seconds]
<astroduck> atmosx: The ruby version? Umm, ok so how do I install rvm? sorry this is my first time with ruby, I've only played around with jekyll
<weaksauce> gist your gemfile
<havenwood> astroduck: Are you using Homebrew? You could use the brew Ruby.
_mark_ has quit [Quit: Leaving]
<havenwood> astroduck: Or RVM or ruby-install/chruby are alternative options.
<atmosx> astroduck: you have xcode and llvm-gcc in yoru system already?
<havenwood> astroduck: 2.2.0 for the win!
chrishough has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
paulfm has joined #ruby
<weaksauce> astroduck ruby-install + chruby is better than rvm imo
<havenwood> ruby-install and chruby! \o/
<astroduck> atmosx: Yes I have both of those. ... You guys are confusing me now
<atmosx> havenwood: and rvm and rbenv
<havenwood> You can use chruby with the brew ruby too.
<atmosx> all together!
<havenwood> atmosx: and RVM ships with MRVM so you can use chruby.
<havenwood> in case you didn't feel like you had enough options
<atmosx> hahaha
<atmosx> nah I'm fine with rvm I don't bother with other alts
<atmosx> :-P
<atmosx> I took this coursera course on algorithms
wallerdev has quit [Quit: wallerdev]
nerium has quit [Quit: nerium]
<atmosx> I understood the theory after spending several hours studying back and forth, but I'm unable to produce a valid ruby merge-sort algorithm as of today. Recursive that is.
bronson has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
gfawcettpq has quit [Ping timeout: 264 seconds]
<astroduck> so, `brew install rvm`?
nerium has joined #ruby
<atmosx> astroduck: no, you have brew installed in your system?
baweaver has joined #ruby
<astroduck> atmosx: yes
<havenwood> astroduck: No, you could `brew install ruby` or `brew install ruby-install chruby` but RVM has its own installer.
<atmosx> astroduck: \curl -sSL https://get.rvm.io | bash -s stable
commmmodo has joined #ruby
<havenwood> astroduck: If you don't need more than one Ruby, just: brew install ruby
<atmosx> lol
<astroduck> havenwood: it'll give me latest gem as well?
<havenwood> astroduck: A pretty new one. But to update RubyGems on whatever Ruby, just: gem update --system
ldnunes has quit [Quit: Leaving]
duncannz has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
<astroduck> havenwood: ok cool, I'll install rvm later.
<astroduck> Thansk guys :)
mloveless has joined #ruby
<havenwood> astroduck: You can go back and forth between brew and system Ruby by linking and unlinking the brew one. E.g.: brew link ruby
<havenwood> brew unlink ruby
<havenwood> astroduck: If you want to use gem executables (you probably do) then just add this to your dotfiles: export PATH=$(brew --prefix ruby)/bin:$PATH
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Lexun has joined #ruby
spider-mario has joined #ruby
Aova has quit [Read error: Connection reset by peer]
<havenwood> Now that they've bottled the Ruby package you can pour it without compiling. (They've really run wild with the metaphors.)
<havenwood> Makes the brew Ruby quick to install. :)
nerium has quit [Quit: nerium]
lodgenbd has joined #ruby
Guest64431 has quit [Quit: Leaving]
nanoyak has quit [Remote host closed the connection]
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
Aova has joined #ruby
Takle has joined #ruby
nanoyak has joined #ruby
DrCode has joined #ruby
reinaldob has quit [Remote host closed the connection]
mwlang has joined #ruby
lmickh has joined #ruby
yalue has joined #ruby
<mwlang> is it possible to generate a Gemfile from a Gemfile.lock file? basically reverse the usual generation?
Lexun has quit [Remote host closed the connection]
<ericwood> oof sounds like you got yourself into some trouble
pengin has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
pengin has joined #ruby
<apeiros> mwlang: to a degree. you won't know what versions were specified.
<apeiros> also anything code is lost. not sure about stuff like git: and path:
<mwlang> apeiros: that’s ok, I’ve just about got it recreated by inspecting the lock file.
<ericwood> also namespaces for different environments most likely
St_Marx has joined #ruby
<astroduck> havenwood: I did `brew install ruby` but `ruby --version` still gives me 2.0.0, relinking doesn't work either
bronson has quit [Remote host closed the connection]
<mwlang> it was a slip of the finger selecting files to include in first git commit.
jerius has quit []
ta_ has joined #ruby
<havenwood> astroduck: Sounds like your PATH isn't setup correctly for Homebrew. It'll probably complain if you check: brew doctor
<apeiros> "I accidentally the world! Is that bad?"
deric_skibotn has quit [Ping timeout: 245 seconds]
jerius has joined #ruby
<havenwood> astroduck: It'll tell you the PATH order is wrong. You can fix it by editing your `/etc/paths` file.
tkuchiki has joined #ruby
guest977 has joined #ruby
grubernaut has quit []
<havenwood> astroduck: Putting `/usr/local/bin` above `/usr/bin` will fix this issue.
shanlar has quit [Quit: shanlar]
<havenwood> (In `/etc/paths`.)
grubernaut has joined #ruby
pdoherty has joined #ruby
<mwlang> “loofah” ?? what the heck is “loofah”? (encountered reading Gemfile.lock)
* mwlang goes looking for loofah
workmad3 has joined #ruby
nerium has joined #ruby
<Hijiri> shower sponge?
pengin has quit [Ping timeout: 276 seconds]
shanlar has joined #ruby
<astroduck> havenwood: /usr/local/bin is above /usr/bin in my zshrc
<havenwood> astroduck: printenv PATH
<havenwood> astroduck: ^ what does that say?
<mwlang> well, I’ll have to say it’s aptly named…its an HTML/XML/XHTML scrubber/sanitizer built on top of Nokogiri
<astroduck> havenwood: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin ... also brew doctor only says that brew is outdated, and some unexpected header files
ta_ has quit [Ping timeout: 276 seconds]
<havenwood> astroduck: brew update
Alina-malina has quit [Read error: Connection reset by peer]
shanlar has quit [Client Quit]
<havenwood> astroduck: then: brew upgrade
shanlar has joined #ruby
<havenwood> astroduck: then: ruby -v
tkuchiki has quit [Ping timeout: 245 seconds]
tyfighter has quit [Quit: tyfighter]
georgesmith has joined #ruby
whoisjake has joined #ruby
<astroduck> havenwood: ok, it might take some time, slow internet :/
kaspertidemann has quit []
perturbation has joined #ruby
mostlybadfly has joined #ruby
<astroduck> havenwood: I have to update brew once every 24 hours? That's really weird
workmad3 has quit [Ping timeout: 264 seconds]
kaspertidemann has joined #ruby
<havenwood> astroduck: Live in the "now", man...
georgesmith has quit [Client Quit]
Morkel has quit [Quit: Morkel]
sambao21 has quit [Quit: Computer has gone to sleep.]
<perturbation> you have to update brew every 24 hours or what? the bus will explode? ;)
swgillespie has joined #ruby
<astroduck> perturbation: ruby will, I suppose
<mwlang> ….we need “brew drink”
cpt_yossarian has joined #ruby
sambao21 has joined #ruby
_djbkd has quit [Remote host closed the connection]
<pontiki> first you brew, then you drink
kaspertidemann has quit [Client Quit]
nicolastarzia has joined #ruby
tyfighter has joined #ruby
<shevy> then you get rid of your clothes
georgesmith has joined #ruby
replay has quit [Ping timeout: 245 seconds]
weems|mac has quit [Quit: bai]
Zai00 has joined #ruby
<shevy> go out at moonlight
<shevy> and DANCE and PARTY more!
georgesmith has left #ruby [#ruby]
pdoherty has quit [Remote host closed the connection]
<astroduck> havenwood: I'll be damned, it worked! Brew update did it. I am most confused now
<astroduck> The world of brew is very complex and rather tasty
<mwlang> pontiki: good point….we need “drink brew”
<mwlang> :-)
vt102 has quit [Ping timeout: 265 seconds]
_yinzer has quit [Read error: Connection reset by peer]
<havenwood> mwlang: require 'bundler'; puts "source 'https://rubygems.org'\n\n#{Bundler::LockfileParser.new(Bundler.read_file('Gemfile.lock')).dependencies.map(&:name).map { |gem| "gem '#{gem}'" }.join("\n")}"
<mwlang> and to ensure it keeps the glass full…”brew drink brew”
<mwlang> havenwood: ah. nice. I’m saving that. Not the first time I accidentally lost the Gemfile.
<havenwood> mwlang: ^ This is just a standard source and the Gemfile gem names. You could piece together the other parts if you wanted, I suppose.
nicolastarzia has quit [Ping timeout: 240 seconds]
<havenwood> mwlang: Stop "losing" Gemfiles! :P
Lexun has joined #ruby
<mwlang> havenwood: I’ll have to stop doing “rm Gemfile; git checkout .” before first commit. ;-)
ta_ has joined #ruby
AlexRussia has joined #ruby
<astroduck> mwlang: whats wrong with your ? key, its like it has a mind of its own
pdoherty has joined #ruby
commmmodo has quit [Quit: commmmodo]
maximski has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
maximski has joined #ruby
<mwlang> astroduck: no idea.
jerematic has joined #ruby
djcp has joined #ruby
maximski has quit [Max SendQ exceeded]
baweaver has quit [Remote host closed the connection]
bronson has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
pengin has joined #ruby
zachrab has quit [Remote host closed the connection]
maximski has joined #ruby
quimrstorres has joined #ruby
maximski has quit [Max SendQ exceeded]
spider-mario has quit [Read error: Connection reset by peer]
fmcgeough has quit [Quit: fmcgeough]
maximski has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
maximski has quit [Max SendQ exceeded]
spider-mario has joined #ruby
maximski has joined #ruby
postmodern has joined #ruby
maximski has quit [Max SendQ exceeded]
Eiam_ has joined #ruby
pika_pika has joined #ruby
maximski has joined #ruby
davedev2_ has quit [Ping timeout: 244 seconds]
werelivinginthef has joined #ruby
triple_b has quit [Ping timeout: 256 seconds]
bkulbida has joined #ruby
c355E3B has joined #ruby
checkit has joined #ruby
jamesaxl has joined #ruby
Timgauthier has joined #ruby
zenith_ has joined #ruby
Timgauthier has quit [Client Quit]
davedev24_ has joined #ruby
afex has joined #ruby
Jackneill has quit [Ping timeout: 276 seconds]
TgMts has joined #ruby
pdoherty has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
werelivinginthef has quit [Ping timeout: 255 seconds]
bkulbida has quit [Client Quit]
Alina-malina has joined #ruby
dc has quit [Remote host closed the connection]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
bklane has joined #ruby
ta_ has joined #ruby
fgo has joined #ruby
bkulbida has joined #ruby
_yinzer has joined #ruby
<afex> hi all. is it possible for one ruby process to host 2 rack applications on separate ports? for example, an application server on one port, and a metrics server on another.
quimrstorres has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
_yinzer has quit [Read error: Connection reset by peer]
blandflakes has quit [Quit: Page closed]
grzywacz has quit [Quit: :wq]
nobitanobi has quit [Remote host closed the connection]
baweaver has joined #ruby
nobitanobi has joined #ruby
mloveless has quit [Remote host closed the connection]
tcrypt has quit []
fgo has quit [Ping timeout: 246 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
<ddv> afex, sure why not
ta_ has quit [Ping timeout: 276 seconds]
siggy has joined #ruby
prereflect_ has joined #ruby
prereflect_ has quit [Client Quit]
maximski has quit [Ping timeout: 265 seconds]
prereflect has joined #ruby
astroduck has quit [Quit: WeeChat 1.1]
djcp has quit [Ping timeout: 265 seconds]
prereflect has quit [Remote host closed the connection]
frem has joined #ruby
prereflect has joined #ruby
amitchellbullard has quit [Remote host closed the connection]
AdamMeghji_ has quit [Remote host closed the connection]
rakm has quit [Remote host closed the connection]
culturelabs has quit [Remote host closed the connection]
ramblinpeck_ has quit [Remote host closed the connection]
KnownSyntax has quit [Remote host closed the connection]
PhilK has quit [Remote host closed the connection]
ballPointPenguin has quit [Remote host closed the connection]
dukedave has quit [Remote host closed the connection]
ckrailo__ has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
gmcintire has quit [Remote host closed the connection]
neektza has quit [Remote host closed the connection]
zrl has quit [Remote host closed the connection]
spastorino_ has quit [Remote host closed the connection]
troter___ has quit [Remote host closed the connection]
rkornmeyer has quit [Remote host closed the connection]
jrunning_ has quit [Remote host closed the connection]
rudisimo has joined #ruby
<afex> ddv: do i need to use a specific web server to accomplish this? (puma, unicorn, etc) or is this something handled by my application?
<afex> i'm not sure exactly how to declare the port bindings for my separate apps
maximski has joined #ruby
rudisimo has quit [Client Quit]
<c355E3B> afex, you may want to look at passenger
<c355E3B> if your trying to run a bunch of apps on one server
<ddv> afex, works out the box with passenger
maximski has quit [Max SendQ exceeded]
<ddv> afex, if you want to keep using puma/unicorn, you need to proxy those requests, with nginx, varnish etc
<c355E3B> they ship a nice PPA for nginx and apache
baweaver has quit [Remote host closed the connection]
<ddv> afex, (if you want to use the same port)
prereflect has quit [Remote host closed the connection]
timonv has joined #ruby
vt102 has joined #ruby
<scottstamp> Hmm, am I misunderstanding something with routes? This is one of the lines in my initializer, get 'explore(/:sort(/:tags))' => 'explore#index', I'd expect /explore/popular to map to explore#index{params[:sort]=>"popular"}, but for some reason it's setting :tag instead.
<deepy> If you've not decided between nginx or apache, pick nginx. it's much much nicer to work with
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<scottstamp> nginx w/ passenger <3 my dream stack
<wallerdev> scottstamp: probably want #rubyonrails
<afex> ddv, c355E3B: in my case it is a primary app, where each request is producing in-memory metrics. i'd like another app to listen on a different port and expose those metrics for my monitoring tolos
maximski has joined #ruby
<ddv> afex, ok
<scottstamp> Oh, thanks wallerdev, I was trying #rails and thought it was odd nobody was there.
<mwlang> my only complaint with nginx w/ passenger is having to manually install the system startup script into /etc/init.d
maximski has quit [Max SendQ exceeded]
<ddv> mwlang, depends on distro
guest977 is now known as prereflect
siggy has quit [Quit: siggy]
<c355E3B> hmm
<mwlang> so different Linux systems means finding the right init script.
<wallerdev> its empty cuz rails is dead
roolo has joined #ruby
<ddv> mwlang, systemd is very easy
<wallerdev> nodejs is the future
<wallerdev> lol
djcp has joined #ruby
Aova has quit [Read error: Connection reset by peer]
TgMts_ has joined #ruby
<c355E3B> afex, have you concidered using something like mtqq or amqp to publish this data
<c355E3B> then read it that way
linduxed has quit [Ping timeout: 276 seconds]
<c355E3B> Or if both apps are rack apps
maximski has joined #ruby
<c355E3B> you can mount both of them inside of one config.ru file
maximski has quit [Max SendQ exceeded]
bklane has quit [Remote host closed the connection]
<c355E3B> then have the app publishing the metrics gain direct access to them
maximski has joined #ruby
<afex> so config.ru settings can bind different rack apps to different ports?
TgMts has quit [Ping timeout: 264 seconds]
<mwlang> so I have a deeply nested hash structure…occassionally the whole nested structure isn’t there. Rather than an error, what’s a simple way to return nil?
_djbkd has joined #ruby
<mwlang> this seems a little hacky: my_hash[:a][:b][:c] rescue nil
maximski has quit [Max SendQ exceeded]
<c355E3B> afex, yes in some cases
<c355E3B> I was sugesting using `Rack::Cascade` to do this
<waxjar> mwlang: my_hash.fetch(:a).fetch(:b).fetch(:c), throws a KeyError when a key isn't there
maximski has joined #ruby
baweaver has joined #ruby
bklane has joined #ruby
pietr0 has joined #ruby
maximski has quit [Max SendQ exceeded]
guest977 has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
<mwlang> hmmm…I think wrapping that in a begin rescue block would be smart.
timonv has quit [Ping timeout: 240 seconds]
<wallerdev> .fetch(:a, {}) would work
athan has quit [Read error: Connection reset by peer]
maximski has joined #ruby
Aova has joined #ruby
livathinos has quit []
aaas has quit [Read error: Connection reset by peer]
<afex> c355E3B: ok so it seems that as long as i write the metrics server to the rack spec, users could choose to host it as they'd like. (same port with cascade, separate port with passenger). does that sound accurate?
nerium has quit [Quit: nerium]
dukedave has joined #ruby
<c355E3B> yes
aaas has joined #ruby
<afex> thanks!
sambao21 has joined #ruby
mroth has joined #ruby
<c355E3B> np
<mwlang> wallerdev: actualy, I think that might be the cleanest, then no rescue block needed…although rescue block gives me opportunity to write to logs.
nerium has joined #ruby
ckrailo__ has joined #ruby
<wallerdev> kinda ugly still haha
_djbkd has quit [Ping timeout: 264 seconds]
prereflect has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
<wallerdev> id change the structure if i could but no idea on your data
<waxjar> you can also set a default_proc which returns a hash with a default_proc that returns a hash with a... etc
<wallerdev> yeah
thatsnotjack has quit [Ping timeout: 245 seconds]
fenak has quit [Quit: leaving]
perturbation has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
<waxjar> >> Hash.new { |h,k| h[k] = h.dup.clear }[:a][:b][:c]
<eval-in_> waxjar => {} (https://eval.in/261555)
thatsnotjack has joined #ruby
PhilK has joined #ruby
<apeiros_> why h.dup.clear instead of Hash.new(&h.default_proc)?
leonshalimov has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 245 seconds]
_1_Ermelyo has joined #ruby
reinaldob has quit [Ping timeout: 256 seconds]
<waxjar> no particular reason, that's better actually
afex has quit []
blindsight has quit [Ping timeout: 245 seconds]
linduxed has joined #ruby
_1_Ermelyo has quit [Quit: WhatsChat IRC Android APP]
reinaldob has joined #ruby
icarus has quit [Ping timeout: 265 seconds]
<checkit> Hey guys... I'm looking for a good vagrant box for rails development.
ursooperduper has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ursooperduper has quit [Remote host closed the connection]
amitchellbullard has joined #ruby
culturelabs has joined #ruby
lmickh has quit [Remote host closed the connection]
rkornmeyer has joined #ruby
icarus has joined #ruby
rakm has joined #ruby
PsychOrganic has joined #ruby
zrl has joined #ruby
jrunning_ has joined #ruby
AlexRussia has joined #ruby
plashchynski has quit [Quit: plashchynski]
ballPointPenguin has joined #ruby
beneggett has joined #ruby
bkulbida has quit [Ping timeout: 245 seconds]
<skinux> Since I've finished CodeAcademy's Ruby course, are there any other free courses or tutorials for learning more advanced programming?
plashchynski has joined #ruby
spastorino_ has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
sigurding has joined #ruby
tyfighter has quit [Quit: tyfighter]
<ericwood> just start writing some stuff
<ericwood> the pickaxe book is really good
siggy has joined #ruby
tyfighter has joined #ruby
kamilc__ has quit [Quit: Leaving...]
zachrab has joined #ruby
aswen has quit [Quit: WeeChat 1.0.1]
ramblinpeck_ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
St_Marx has joined #ruby
troter___ has joined #ruby
djcp has quit [Ping timeout: 244 seconds]
sambao21 has joined #ruby
whoisjake has quit []
AdamMeghji_ has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
cphrmky has joined #ruby
<GaryOak_> checkit: not sure if this will help
cphrmky has quit [Client Quit]
ta_ has quit [Ping timeout: 265 seconds]
<checkit> GaryOak_: Thanks bud
Kricir has quit [Remote host closed the connection]
neektza has joined #ruby
gmcintire has joined #ruby
jgt3 has quit [Ping timeout: 245 seconds]
JDiPierro has quit [Remote host closed the connection]
psy_ has quit [Read error: No route to host]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
jonesthedolphin has joined #ruby
cor has joined #ruby
JDiPierro has quit [Remote host closed the connection]
jgt3 has joined #ruby
_honning_ has quit [Ping timeout: 245 seconds]
ta has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
thejoecarroll has quit [Quit: ZNC - http://znc.in]
mkaesz has quit [Remote host closed the connection]
einarj has joined #ruby
mkaesz has joined #ruby
freerobby has quit [Quit: Leaving.]
ddd has quit [Ping timeout: 265 seconds]
sigurding has quit [Quit: sigurding]
jgt3 has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
thejoecarroll has joined #ruby
Lexun has quit [Remote host closed the connection]
Lexun has joined #ruby
blindsight has joined #ruby
blindsight is now known as Guest17986
djcp has joined #ruby
mkaesz has quit [Ping timeout: 272 seconds]
juanpablo_ has joined #ruby
aclearman037 has quit [Quit: I'm out!]
mloveless has joined #ruby
zachrab has quit [Remote host closed the connection]
max96at is now known as max96at|off
duggiefresh has quit []
blackoperat has quit [Ping timeout: 264 seconds]
tier has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
tyfighter has quit [Quit: tyfighter]
sambao21 has quit [Quit: Computer has gone to sleep.]
werelivinginthef has joined #ruby
tyfighter has joined #ruby
siggy has quit [Quit: siggy]
tmtwd has joined #ruby
baweaver has quit [Remote host closed the connection]
znst has quit [Ping timeout: 255 seconds]
ta has joined #ruby
sambao21 has joined #ruby
decoponio has joined #ruby
ta_ has joined #ruby
_djbkd has joined #ruby
werelivinginthef has quit [Ping timeout: 264 seconds]
decoponyo has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
zenith_ has quit [Remote host closed the connection]
jonr22 has joined #ruby
guest977 has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
blackoperat has joined #ruby
_djbkd has quit [Remote host closed the connection]
scientist1642 has quit [Quit: Leaving.]
symbol has quit [Ping timeout: 256 seconds]
_djbkd has joined #ruby
asmodlol has quit [Ping timeout: 276 seconds]
razieliyo has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
odigity has joined #ruby
Rollabunna has quit [Quit: Leaving...]
<odigity> The docs for Kernel#load says if the filename isn't an absolute path, it checks the paths in $:. However, you can load a file in the same dir with load('foo.rb') or load('./foo.rb'). So, it implicitly also checks the CWD, even though it doesn't show up in $: or in the docs?
davedev24_ has quit [Ping timeout: 264 seconds]
fgo has quit [Ping timeout: 265 seconds]
zachrab has joined #ruby
jerius has quit []
brb3 has quit [Quit: <.<]
siggy has joined #ruby
werelivinginthef has joined #ruby
paulfm_ has joined #ruby
jerius has joined #ruby
kenichi_ is now known as kenichi
paulfm has quit [Read error: Connection reset by peer]
reinaldob has quit [Remote host closed the connection]
blackoperat has quit [Ping timeout: 272 seconds]
Pupeno_ has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
prereflect has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
diegoviola has quit [Ping timeout: 245 seconds]
claymore has quit [Quit: Leaving]
martinium has joined #ruby
martinium has joined #ruby
nanoyak has joined #ruby
_djbkd has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 256 seconds]
werelivinginthef has quit [Ping timeout: 264 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
silkfox has quit [Ping timeout: 245 seconds]
tmtwd has quit [Remote host closed the connection]
karmatr0n has joined #ruby
werelivinginthef has joined #ruby
workmad3 has joined #ruby
Aova has quit [Read error: Connection reset by peer]
<eam> odigity: looks that way, my guess is docs are wrong
<odigity> that's so weird, for such an old and fundamental method
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> load/require should behave as they do
iamninja has quit [Ping timeout: 250 seconds]
<eam> I suspect it's just incomplete, it should be: "if it's an absolute path, that's that. Else $:, else relative path"
martinium has quit [Ping timeout: 256 seconds]
shazaum has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
<odigity> is it easy to open an issue on ruby docs? :)
<eam> should be yeah
prereflect has quit [Remote host closed the connection]
<eam> we just fixed a sorta related bug around rb loading last week
parduse has quit [Ping timeout: 240 seconds]
livingstn has quit []
<eam> there's a heuristic ruby uses to find itself and it'll incorrectly find a directory if the name is "ruby"
paulfm_ has quit [Quit: Zzzzz...]
parduse has joined #ruby
claw has quit [Ping timeout: 240 seconds]
prereflect has joined #ruby
Aova has joined #ruby
iamninja has joined #ruby
adamjleonard has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 272 seconds]
<odigity> I didn't know ruby was so spiritual.
<c355E3B> well a rose by any other name
bennyklo1z has quit [Ping timeout: 256 seconds]
Hijiri has quit [Ping timeout: 252 seconds]
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
bennyklotz has joined #ruby
josephndenton has joined #ruby
pengin has quit [Remote host closed the connection]
jonr22 has quit [Remote host closed the connection]
backhoe_ has quit [Ping timeout: 264 seconds]
pengin has joined #ruby
livingstn has joined #ruby
blandflakes has joined #ruby
backhoe_ has joined #ruby
Lexun has quit [Remote host closed the connection]
<GaryOak_> odigity: lololol
it0a has quit [Quit: WeeChat 1.1]
symbol has joined #ruby
roshanavand has quit [Ping timeout: 255 seconds]
<eam> I also noticed the default path for the ruby loader, if PATH is unset, includes "."
<odigity> got some annoying warnings from rails about some changes bundler made to the binstubs -- and I'm not even sure what those are for or if I should be using them -- which has prompted me to take a deep tour through ruby code loading, rubygems, bundler, up to the rails binstubs, so I can really understand what it's all about
<eam> haven't fully reasoned out whether that's a potential attack vector, kinda suspicious
ta_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
pengin has quit [Ping timeout: 245 seconds]
duncannz has quit [Ping timeout: 265 seconds]
kaspertidemann has joined #ruby
<odigity> I don't assume anything on my system represents default ruby because of distro packaging. I'd have to build from source to get a value I trust to represent ruby's built-in default load path
livingstn has quit []
tyfighter has quit [Quit: tyfighter]
codeFiend has joined #ruby
nicolastarzia has joined #ruby
reinaldob has joined #ruby
ta_ has joined #ruby
tkuchiki has joined #ruby
<eam> odigity: well, as I mentioned it may calculate those values on the fly based on the interpreter path
<eam> relocatable
_djbkd has joined #ruby
_djbkd has quit [Remote host closed the connection]
odin22 has joined #ruby
_djbkd has joined #ruby
plashchynski has quit [Quit: plashchynski]
nateberkopec has quit [Quit: Leaving...]
nicolastarzia has quit [Ping timeout: 245 seconds]
skj3gg has quit [Quit: welp, see you later.]
tmtwd has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
linduxed has quit [Ping timeout: 256 seconds]
AlexRussia has quit [Ping timeout: 264 seconds]
josephnd1nton has joined #ruby
siggy has quit [Quit: siggy]
athan has joined #ruby
einarj has quit [Remote host closed the connection]
icarus has quit [Ping timeout: 245 seconds]
longfeet has joined #ruby
siggy has joined #ruby
jgt3 has joined #ruby
PsychOrganic has quit [Remote host closed the connection]
prereflect has quit [Ping timeout: 255 seconds]
josephnd1nton has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
Lexun has joined #ruby
hfor has joined #ruby
DadoCe has joined #ruby
AlexRussia has joined #ruby
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
jakesyl has quit [Ping timeout: 245 seconds]
defrang has quit [Quit: defrang]
davedev24_ has joined #ruby
djcp has quit [Ping timeout: 246 seconds]
odin22 has quit [Quit: Leaving]
KnownSyntax has joined #ruby
baweaver has quit [Remote host closed the connection]
chrishough has joined #ruby
codecop has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
crueber has quit [Quit: Leaving.]
chipotle has joined #ruby
jakesyl has joined #ruby
thatsnotjack has quit [Quit: Lost terminal]
baroquebobcat has joined #ruby
guest977 has joined #ruby
freerobby has joined #ruby
linduxed has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
symbol has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
blandflakes has quit [Ping timeout: 246 seconds]
mrmargolis has joined #ruby
speaking1ode is now known as speakingcode
mrmargolis has quit [Remote host closed the connection]
pdoherty has joined #ruby
pengin has joined #ruby
jgt3 has quit [Ping timeout: 265 seconds]
leonshalimov has joined #ruby
thumpba has quit [Remote host closed the connection]
backhoe_ has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
fgo has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
backhoe_ has joined #ruby
_djbkd has quit [Remote host closed the connection]
Hijiri has joined #ruby
Akuma has joined #ruby
tier has quit [Remote host closed the connection]
djcp has joined #ruby
pdoherty has quit [Ping timeout: 265 seconds]
Lexun has quit [Remote host closed the connection]
randiman has quit [Quit: (null)]
diegoviola has joined #ruby
tyfighter has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
niko has quit [Ping timeout: 600 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
ZucchiniZe has quit [Remote host closed the connection]
baweaver has joined #ruby
nateberkopec has joined #ruby
ZucchiniZe has joined #ruby
tpilionis has quit [Ping timeout: 252 seconds]
jenrzzz_ has quit [Ping timeout: 246 seconds]
TgMts_ has quit [Ping timeout: 255 seconds]
_djbkd has joined #ruby
Eiam_ has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
riotjone_ has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aova has quit [Read error: Connection reset by peer]
werelivinginthef has joined #ruby
Zai00 has quit [Quit: Zai00]
nanoyak has joined #ruby
DadoCe has quit [Remote host closed the connection]
blackmesa has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
DadoCe has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
riotjones has quit [Ping timeout: 246 seconds]
werelivinginthef has quit [Remote host closed the connection]
sent1nel has quit [Remote host closed the connection]
djcp has quit [Quit: WeeChat 1.0.1]
spyderman4g63 has quit [Remote host closed the connection]
kalusn has quit [Remote host closed the connection]
Aova has joined #ruby
greenbagels has joined #ruby
juanpablo_ has quit [Quit: (null)]
mikepack has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
sambao21 has joined #ruby
leonshalimov has quit [Ping timeout: 264 seconds]
enebo has quit [Quit: enebo]
lodgenbd has quit [Quit: Leaving]
hiyosi has joined #ruby
bkulbida has joined #ruby
r0bby_ is now known as robbyoconnor
jenrzzz has quit [Ping timeout: 245 seconds]
c355E3B has quit [Quit: Leaving]
_djbkd has joined #ruby
TgMts has joined #ruby
jenrzzz has joined #ruby
wallerdev has quit [Quit: wallerdev]
bklane has quit [Remote host closed the connection]
zachrab has quit [Remote host closed the connection]
bklane has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
bklane has quit [Remote host closed the connection]
tmk1108 has joined #ruby
avahey has joined #ruby
swgillespie has joined #ruby
Lexun has joined #ruby
bklane has joined #ruby
zachrab has joined #ruby
jerius has quit []
apeiros_ has quit [Remote host closed the connection]
prereflect has joined #ruby
apeiros_ has joined #ruby
DrShoggoth has quit [Quit: Leaving]
ta has quit [Ping timeout: 252 seconds]
snath has quit [Ping timeout: 244 seconds]
prereflect has quit [Client Quit]
ptrrr has quit [Quit: ptrrr]
olivier_bK has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
prereflect has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
deric_skibotn has quit [Ping timeout: 265 seconds]
Pupeno has joined #ruby
Pupeno_ has quit [Ping timeout: 265 seconds]
greenbagels has quit [Read error: Connection reset by peer]
pontiki has quit [Quit: suppertime, bbl]
kt2 has joined #ruby
snath has joined #ruby
freerobby has quit [Quit: Leaving.]
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
znst has joined #ruby
Megtastique has quit []
pandaant has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
bklane has quit [Remote host closed the connection]
znst has quit [Ping timeout: 264 seconds]
backhoe_ has quit [Ping timeout: 264 seconds]
bklane has joined #ruby
Megtastique has joined #ruby
backhoe_ has joined #ruby
bklane has quit [Remote host closed the connection]
AlSquirikou has joined #ruby
Eiam_ has joined #ruby
bklane has joined #ruby
tonyhb has joined #ruby
klmlfl has quit [Remote host closed the connection]
sent-hil has joined #ruby
AlSquirrel has quit [Ping timeout: 244 seconds]
Hijiri has quit [Ping timeout: 272 seconds]
backhoe__ has joined #ruby
freerobby has joined #ruby
linduxed has quit [Ping timeout: 255 seconds]
Lexun has quit [Remote host closed the connection]
Lexun has joined #ruby
Akuma has quit [Quit: So long sukkas!]
mary5030 has joined #ruby
backhoe_ has quit [Ping timeout: 264 seconds]
CpuID has joined #ruby
centrx has joined #ruby
bklane has quit [Remote host closed the connection]
bklane has joined #ruby