havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
ebbflowgo has quit [Quit: ebbflowgo]
jobewan has quit [Quit: Leaving]
kirun has quit [Quit: Client exiting]
dotix has quit [Ping timeout: 255 seconds]
eminencehc has quit [Remote host closed the connection]
Voker57 has quit [Remote host closed the connection]
Guest92672 has quit [Quit: This computer has gone to sleep]
markfletcher has left #ruby [#ruby]
dfockler has quit [Ping timeout: 240 seconds]
ivanskie has joined #ruby
mattwildig has quit [Remote host closed the connection]
iateadonut has quit [Quit: Leaving.]
benlieb has joined #ruby
finisherr has quit [Quit: finisherr]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ja has quit [Quit: Reconnecting]
ja has joined #ruby
ja has quit [Changing host]
ja has joined #ruby
stannard has joined #ruby
axl__ has quit [Quit: axl__]
rgrmatt has joined #ruby
infamos has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dorei has joined #ruby
baweaver has joined #ruby
charliesome has quit [Client Quit]
stannard has quit [Ping timeout: 265 seconds]
ebbflowgo has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
ivanskie has joined #ruby
casadei_ has joined #ruby
casadei has quit [Read error: Connection reset by peer]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
to_json has joined #ruby
to_json has quit [Changing host]
to_json has joined #ruby
cluda01 has quit [Quit: Leaving.]
kies^ has joined #ruby
j3r0 has joined #ruby
Arkon has quit [Remote host closed the connection]
foomanchu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Arkon has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
Rollabunna has joined #ruby
roshanavand has joined #ruby
<shevy> yo
Rodya_ has joined #ruby
<craysiii> why does the ruby styleguide recommend the hashrocket syntax instead of the json style?
Arkon has quit [Ping timeout: 240 seconds]
lukaszes has joined #ruby
millerti has joined #ruby
DLSteve has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> craysiii: https://github.com/bbatsov/ruby-style-guide has much more of a following.
<craysiii> yeah i just realized i should be reading that one
RegulationD has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Ping timeout: 260 seconds]
radgeRayden has joined #ruby
jdawgaz has joined #ruby
roshanavand has quit []
whippythellama has quit [Quit: WeeChat 1.3]
millerti has quit [Ping timeout: 265 seconds]
<shevy> dunno, it does not mention any reason
Arkon has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has quit [Ping timeout: 264 seconds]
zenguy_pc has quit [Ping timeout: 260 seconds]
<shevy> keyword args are weird in that guide
<shevy> remove_member(user, true)
<shevy> remove_member user, skip_membership_check: true
<shevy> in the second case I also need to know the name
Trynemjoel has joined #ruby
<shevy> I opted to prefer using custom hashes or symbols as instructions
<_blizzy_> til ruby has lambdas
ddv has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
predator217 has joined #ruby
Ohga has joined #ruby
ddv has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aadam21 has joined #ruby
dankweed has joined #ruby
<dankweed> does ruby come default with a gui?
<craysiii> yeah shevy that was odd
<craysiii> dankweed no, most people use a simple text editor like vim/emacs/sublimetext
<dankweed> oh no no
<dankweed> i meant a gui library i know theres gems
<craysiii> you mean a gui library?
<craysiii> oh
<dankweed> we have to do a project and it requires a gui
<craysiii> not worth your time
<dankweed> i didnt know if he wanted the default
<dankweed> if it even has one like java
predator117 has quit [Ping timeout: 272 seconds]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hwcd has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ohga> I have this quickly written script that gathers so called Markov chains. There is something wrong with it, variable scope or something.. on L22,23 the "entry" updates from two spaces to space, some letter, but in the next block invokation it's back to two spaces.. http://pastie.org/10535014
<Ohga> what am I doing wrong?
fgo has joined #ruby
swgillespie has joined #ruby
aadam21 has quit [Ping timeout: 240 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
<Ox0dea> dankweed: Ruby ships with Tcl/Tk bindings.
willardg has joined #ruby
zenguy_pc has joined #ruby
<dankweed> fuck
<dankweed> excuse my language but yeah thats gonna be a mess alright ;\
Channel6 has quit [Ping timeout: 264 seconds]
DEA7TH has quit [Quit: DEA7TH]
SCHAAP137 has quit [Quit: Leaving]
<craysiii> you could use C# winforms and IronRuby hehe.
sebstrax has quit [Quit: Connection closed for inactivity]
fgo has quit [Ping timeout: 246 seconds]
Xiti has quit [Quit: Xiti]
<Ox0dea> You could use a browser.
<Ox0dea> >> Time.now.year # dankweed
<ruboto> Ox0dea # => 2015 (https://eval.in/464636)
TomPeed has joined #ruby
rzsd has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 265 seconds]
<craysiii> i really wish i could get shoes to work
hxegon has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EllisTAA has quit [Quit: EllisTAA]
eminencehc has joined #ruby
dEPy has joined #ruby
<rzsd> If i do dt = Date.today then do dt.to_time.strftime('%I:%M%p'), i get "12:00AM" as expected. But i i do (Date.today).to_time.strftime('%I:%M%p') i get undefined method strftime. Why is this so ?
<jhass> rzsd: because you did require "time" in one but not in the other
blackmesa has quit [Ping timeout: 260 seconds]
duckpupp1 has joined #ruby
<rzsd> @jhaas: sorry didnt get that. require "time" ?
am55 has joined #ruby
jas02 has joined #ruby
<rzsd> can you please explain ?
craysiii has quit [Quit: Leaving.]
sankaber has joined #ruby
<jhass> mmh, looks like Time#strftime is actually in core
<jhass> >> (Date.today).to_time.strftime('%I:%M%p')
<ruboto> jhass # => uninitialized constant Date (NameError) ...check link for more (https://eval.in/464637)
<jhass> meh
<jhass> >> require "date"; (Date.today).to_time.strftime('%I:%M%p')
<ruboto> jhass # => "12:00AM" (https://eval.in/464638)
<jhass> well, your example doesn't reproduce
<jhass> besides that
<jhass> >> require "date"; Date.today.strftime('%I:%M%p')
<ruboto> jhass # => "12:00AM" (https://eval.in/464639)
<jhass> the to_time is entirely redundant
<rzsd> @jhass: im using ruby 2.1.2
rgrmatt has quit [Remote host closed the connection]
<rzsd> 2.1.2p95
<jhass> you should update to at least .7
build22__ has quit [Remote host closed the connection]
<rzsd> @jhass: is this a bug ?
<jhass> 21>> require "date"; Date.today.strftime('%I:%M%p') # but it's not relevant to your issue
<ruboto> jhass # => "12:00AM" (https://eval.in/464640)
dankweed has quit [Quit: Leaving]
<jhass> rzsd: 80% of all point releases are security fixes
millerti has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
duckpupp1 has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 255 seconds]
<rzsd> @jhass: I tried on ruby 2.2.0, and i have to require "date" else i get Date uninitialized constant Context::Date... error. After i require date, if i do Date.today.to_time.strftime('%I:%M%p') it works as expected
hxegon_ has joined #ruby
Feyn has joined #ruby
<jhass> rzsd: yes, of course
<jhass> rzsd: the to_time is still entirely redundant
rgrmatt has joined #ruby
<daed> yeah i'm not following the to_time?
A124 has quit [Quit: '']
hxegon has quit [Ping timeout: 252 seconds]
<rzsd> @jhass: ok, makes sense now
eminencehc has quit [Remote host closed the connection]
daed has quit [Quit: .]
jas02 has quit [Ping timeout: 264 seconds]
Asher has quit [Quit: Leaving.]
ddv has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
djellemah_ has joined #ruby
rgrmatt has quit [Remote host closed the connection]
<BraddPitt> rzsd no need to preface usernames with @, irc will hilight the user when their full nick is mentioned
Ox0dea has quit [Ping timeout: 250 seconds]
bruno-_ has quit [Ping timeout: 272 seconds]
<rzsd> BraddPitt: got it, thanks :)
Spami has quit [Client Quit]
Ox0dea has joined #ruby
ddv has joined #ruby
djellemah has quit [Ping timeout: 260 seconds]
<Ox0dea> BraddPitt: As long as it's on a word boundary, mind.
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
infamos has joined #ruby
jdawgaz has joined #ruby
<shevy> hmm we have .index and .rindex but do we also have a way to obtain the position of all indices of a given token? like: 'a b a b', seeking for a would return 1 3 (or 0 2 whatever)
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
rzsd has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
baweaver has quit [Read error: Connection reset by peer]
<Ox0dea> > whatever
<Ox0dea> Dijkstra would like a word with you.
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> whatever
baweaver has joined #ruby
Jardayn has quit [Quit: Leaving]
eminencehc has joined #ruby
tomphp has joined #ruby
bigmac has quit [Ping timeout: 260 seconds]
bigmac has joined #ruby
kies^ has quit [Ping timeout: 264 seconds]
<Ox0dea> >> 'alabaster'.each_char.with_index.with_object([]) { |(c, i), a| a << i if c == ?a } # shevy
<ruboto> Ox0dea # => [0, 2, 4] (https://eval.in/464641)
<shevy> hmm
low-prof1 has quit [Ping timeout: 244 seconds]
neanderslob has joined #ruby
Asher has joined #ruby
rgrmatt has joined #ruby
<Ox0dea> What does that mean?
<shevy> it does not feel right
rabbithole has quit [Ping timeout: 272 seconds]
low-prof1 has joined #ruby
<Ox0dea> Pfft.
diegoaguilar has joined #ruby
<Ox0dea> It's pefect.
<shevy> I also just noticed that you used ?a
rabbithole has joined #ruby
<shevy> I am wondering what would happen if I make a suggestion to add .indices
<Ox0dea> You will lose.
<shevy> hmm
<shevy> I think you are right
<Ox0dea> ?try
<ruboto> Why don't you try it and see for yourself?
<shevy> we need to get hanmac to make the suggestion
sp4rrow has joined #ruby
passcod has quit [Remote host closed the connection]
blackmesa has joined #ruby
neanderslob has quit [Client Quit]
towski_ has quit [Remote host closed the connection]
passcod has joined #ruby
SenpaiSilver has joined #ruby
Quandl has quit [Ping timeout: 252 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBirnie has quit [Ping timeout: 250 seconds]
fantazo has quit [Quit: Verlassend]
neanderslob has joined #ruby
sshuff|gone has quit [Ping timeout: 244 seconds]
ddv has quit [Ping timeout: 250 seconds]
rgrmatt has quit [Remote host closed the connection]
Feyn has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 252 seconds]
inteq has joined #ruby
krz has joined #ruby
neanderslob has quit [Client Quit]
sshuff|gone has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
tulak has quit [Remote host closed the connection]
rgrmatt has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
Rickmasta has joined #ruby
<Ox0dea> shevy: I went too far. `PILE OF POO * 2` does The Right Thing now.
wprice has quit [Quit: wprice]
ddv has joined #ruby
hwcd has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
neanderslob has joined #ruby
A124 has joined #ruby
fedexo has joined #ruby
ekinmur has joined #ruby
stamina has quit [Ping timeout: 255 seconds]
hxegon_ has quit [Ping timeout: 240 seconds]
tvw has quit []
rgrmatt has quit [Remote host closed the connection]
mattwildig has joined #ruby
rgrmatt has joined #ruby
to_json has quit [Quit: Leaving.]
rgrmatt has quit [Remote host closed the connection]
aadam21 has joined #ruby
leafybas_ has quit [Remote host closed the connection]
shock_one has joined #ruby
NeverDie_ has joined #ruby
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
NeverDie has quit [Ping timeout: 260 seconds]
NeverDie_ has quit [Max SendQ exceeded]
NeverDie has joined #ruby
<Ox0dea> >> include
<ruboto> Ox0dea # => Object (https://eval.in/464645)
mg^ is now known as mg^weekend
shock_one has quit [Ping timeout: 246 seconds]
aadam21 has quit [Ping timeout: 250 seconds]
Feyn has joined #ruby
sepp2k has quit [Quit: Leaving.]
_blizzy_ has quit [Quit: Leaving]
fgo has joined #ruby
solocshaw has joined #ruby
giuseppesolinas has joined #ruby
<Arkon> Hello, it is a little bit about chef also: in a recipe I am doing citadel(bucket). How come I can do this (working fine) and I am not doing Citadel.new(bucket) instead ?
pietr0 has quit [Quit: pietr0]
<Arkon> there is no Citadel.new() anywhere. Is it possible to create an object without calling the constructor ?
<Arkon> I am probably just missing it actually
to_json has joined #ruby
to_json has quit [Changing host]
to_json has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Arkon: You are (thankfully); Follow the trail provided by `method(:citadel).source_location`.
NeverDie has quit [Max SendQ exceeded]
giuseppesolinas has quit [Client Quit]
<Arkon> Oh nice thanks Im trying
jas02 has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
eminencehc has quit [Remote host closed the connection]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
NeverDie has joined #ruby
rgrmatt has joined #ruby
Pupeno has quit [Ping timeout: 246 seconds]
braincras has quit [Ping timeout: 260 seconds]
duckpupp1 has joined #ruby
braincrash has joined #ruby
rgrmatt has quit [Remote host closed the connection]
rbennacer has joined #ruby
hxegon has joined #ruby
build22_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
Xiti has joined #ruby
DLSteve has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
sp4rrow has quit [Quit: Textual IRC Client: www.textualapp.com]
j3r0 has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Arkon has quit [Remote host closed the connection]
build22_ has quit [Ping timeout: 244 seconds]
bruno- is now known as Guest10623
Arkon has joined #ruby
pwnd_nsfw has quit [Ping timeout: 246 seconds]
Guest10623 has quit [Ping timeout: 264 seconds]
Arkon has quit [Ping timeout: 252 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
goodcodeguy has joined #ruby
passcod has quit [Remote host closed the connection]
minimalism has quit [Quit: leaving]
krz has quit [Ping timeout: 252 seconds]
passcod has joined #ruby
Arkon has joined #ruby
mattwildig has quit []
rgrmatt has joined #ruby
sp_ has quit [Quit: Reconnecting]
sp_ has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
sp_ has quit [Client Quit]
shum has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
pwnd_nsfw has joined #ruby
devoldmx has joined #ruby
m_ has joined #ruby
sankaber has joined #ruby
diegoaguilar has quit [Ping timeout: 240 seconds]
jas02 has quit [Ping timeout: 265 seconds]
Rollabunna has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
baweaver has quit [Remote host closed the connection]
fedexo has quit [Read error: Connection reset by peer]
Rodya_ has quit [Remote host closed the connection]
fedexo has joined #ruby
Rollabunna has quit [Ping timeout: 250 seconds]
dorei has quit []
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby
RobertBirnie has joined #ruby
m_ is now known as mus
Rodya_ has joined #ruby
diegoaguilar has joined #ruby
saddad has joined #ruby
RobertBirnie has quit [Client Quit]
shadoi has quit [Quit: Leaving.]
gambl0re has quit []
mikecmpbll has quit [Quit: i've nodded off.]
fedexo has quit [Ping timeout: 246 seconds]
leafybas_ has joined #ruby
gambl0re has joined #ruby
RegulationD has joined #ruby
aadam21 has joined #ruby
djbkd has quit [Quit: My people need me...]
hxegon_ has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
abucha has joined #ruby
neanderslob has joined #ruby
leafybas_ has quit [Ping timeout: 250 seconds]
Arkon has quit [Remote host closed the connection]
Ohga has left #ruby [#ruby]
RegulationD has quit [Ping timeout: 255 seconds]
aadam21 has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
arescorpio has joined #ruby
wildlander has joined #ruby
Oog has quit []
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
fgo has quit [Ping timeout: 246 seconds]
neanderslob has joined #ruby
lele has quit [Ping timeout: 240 seconds]
duckpupp1 has joined #ruby
swgillespie has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lele has joined #ruby
build22_ has joined #ruby
rabbithole has quit [Ping timeout: 240 seconds]
rustyk has joined #ruby
rustyk has left #ruby [#ruby]
duckpupp1 has quit [Ping timeout: 240 seconds]
rustyk has joined #ruby
rustyk has left #ruby [#ruby]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Fire-Dragon-DoL> In case ruby process is run without TTY, will it have a nil $stdout ?
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
<Fire-Dragon-DoL> and since I'm there, should I use $stdout or STDOUT :S
rabbithole has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest83445
neanderslob has joined #ruby
Wsewolod has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
build22_ has quit [Ping timeout: 240 seconds]
<Ox0dea> $ ruby -e 'warn $stdout.tty?' > /dev/null
<Ox0dea> false
<Ox0dea> Fire-Dragon-DoL: STDOUT is a constant and should thus not be changed by anybody; utilize that information to decide which to use.
s00pcan has quit [Quit: leaving]
s00pcan has joined #ruby
abucha has quit [Remote host closed the connection]
abucha has joined #ruby
Guest83445 has quit [Ping timeout: 240 seconds]
rgrmatt has quit [Remote host closed the connection]
<Fire-Dragon-DoL> Ox0dea: ok thanks, performing a few tests if you send process in background and leave console, or run it with monit
<Fire-Dragon-DoL> I don't want a puts crash the entire system :P
baweaver has quit [Ping timeout: 240 seconds]
<Ox0dea> Fire-Dragon-DoL: As demonstrated, $stdout is still an IO if the controlling process has had its output redirected.
<Ox0dea> `nil` does not respond to #tty?.
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
abucha has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
<Fire-Dragon-DoL> Ox0dea: mh if I run the command without redirecting (to dev null) and send it in background, then leave (exit and exit from ssh) and come back, in theory that process is not redirected and without a pty, I'm testing if in that case $stdout is still there
abucha has joined #ruby
jas02 has joined #ruby
<Ox0dea> Fire-Dragon-DoL: It will be; it certainly won't be `nil`, at any rate.
BTRE has quit [Quit: Leaving]
<Fire-Dragon-DoL> Ox0dea: ok good, thanks for the exaustive explaination. Just for safety I added an if $stdout && $stdout.tty? and a rescue nil near the puts (it's only one or a bootstrap script)
<Ox0dea> Fire-Dragon-DoL: Defensive programming never hurt anybody, I guess.
solocshaw has quit [Read error: Connection reset by peer]
<Ox0dea> Be advised that that'd be `$stdout&.tty?` if you were on trunk. :P
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Remote host closed the connection]
jas02 has quit [Ping timeout: 250 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
wprice has joined #ruby
s00pcan has quit [Quit: leaving]
s00pcan has joined #ruby
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
neanderslob has joined #ruby
chouhoulis has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
to_json1 has joined #ruby
tulak has joined #ruby
tokik has quit [Ping timeout: 244 seconds]
to_json has quit [Ping timeout: 246 seconds]
sdothum has quit [Ping timeout: 255 seconds]
tokik has joined #ruby
<Fire-Dragon-DoL> Ox0dea: wasn't that going to be `$stdout.?tty?`
zenguy_pc has quit [Ping timeout: 240 seconds]
<Ox0dea> Fire-Dragon-DoL: It was.
<Fire-Dragon-DoL> oh they changed it again, lol
s00pcan has quit [Quit: leaving]
<Fire-Dragon-DoL> I MIGHT stick with `try` for the moment
s00pcan has joined #ruby
teclator has quit [Quit: leaving]
tulak has quit [Ping timeout: 265 seconds]
sdothum has joined #ruby
yqt has quit [Ping timeout: 246 seconds]
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
goodcodeguy has joined #ruby
zenguy_pc has joined #ruby
neanderslob has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
tubuliferous_ has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
peppers has joined #ruby
tubuliferous_ has quit [Excess Flood]
abucha has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
devoldmx has quit [Remote host closed the connection]
tectonic has joined #ruby
am55 has quit [Ping timeout: 260 seconds]
aadam21 has joined #ruby
charliesome has joined #ruby
Arkon has joined #ruby
JDiPierro has joined #ruby
I has joined #ruby
fgo has joined #ruby
aadam21 has quit [Ping timeout: 255 seconds]
I is now known as Guest7378
TomPeed is now known as justbleed
dEPy has quit [Ping timeout: 240 seconds]
Channel6 has joined #ruby
abucha has joined #ruby
Pupeno has joined #ruby
JDiPierro has quit [Ping timeout: 260 seconds]
fgo has quit [Ping timeout: 272 seconds]
jdawgaz has joined #ruby
kp666_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kp666 has quit [Ping timeout: 250 seconds]
to_json1 has quit [Quit: Leaving.]
saddad has quit [Ping timeout: 264 seconds]
Pupeno has quit [Ping timeout: 250 seconds]
duckpupp1 has joined #ruby
pu22l3r has joined #ruby
Musashi007 has joined #ruby
infamos has quit [Ping timeout: 264 seconds]
moss has quit [Read error: Connection reset by peer]
asianMike has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Channel6 has quit [Quit: Leaving]
build22_ has joined #ruby
<shevy> IceDragon, your old nemesis is back again... Fire-Dragon-DoL
<IceDragon> ;O
<odigity> So class Object is an instance of class Class, which is a subclass of Object? OWW! (sorry, just snapped a synapse)
duckpupp1 has quit [Ping timeout: 246 seconds]
* IceDragon throws water
linoge has joined #ruby
<Fire-Dragon-DoL> IceDragon: I'm back!!!
<IceDragon> D8< My arch nemesis, we meet again!
<Fire-Dragon-DoL> wait, that's not fair, aren't you made of Ice? Water is too bad :P
<Ox0dea> > The dragon has three heads.
<Ox0dea> It is known.
* IceDragon says that from 200 yards away
<IceDragon> D8< I'll get you
* IceDragon backs away
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
<IceDragon> Just you watch!
* IceDragon runs off screaming
<Fire-Dragon-DoL> ahaha
<Musashi007> Guys, what exactly is the “:” in # Braintree::Configuration.environment = :sandbox doing?
* Fire-Dragon-DoL watches IceDragon with some concern
* linoge sits and starts to eat popcorns
<linoge> Musashi007, :? That's a symbol
<shevy> odigity everything is an object!
<Ox0dea> >> >> [Class.is_a?(Module), Class.is_a?(Object), Module.is_a?(Class), Module.is_a?(Object), Object.is_a?(Class), Object.is_a?(Module)].all? # odigity
<ruboto> Ox0dea # => /tmp/execpad-e747df11e2a6/source-e747df11e2a6:2: syntax error, unexpected >> ...check link for more (https://eval.in/464660)
<shevy> so all classes are objects!
<Ox0dea> Dammit.
<Ox0dea> Sorry.
<Ox0dea> >> [Class.is_a?(Module), Class.is_a?(Object), Module.is_a?(Class), Module.is_a?(Object), Object.is_a?(Class), Object.is_a?(Module)].all? # odigity
<ruboto> Ox0dea # => true (https://eval.in/464661)
* IceDragon trips over a ruby and lands in a python pit
braincrash has quit [Quit: bye bye]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<IceDragon> fuuuuuuuuu
<shevy> R.I.P. IceDragon
<Fire-Dragon-DoL> lol
<Musashi007> @linoge
<Musashi007> symbol means an immutable object?
<Ox0dea> No.
<shevy> a symbol will have the same object id
bruno- has joined #ruby
<Ox0dea> >> [:foo.object_id == :foo.object_id, "foo".object_id == "foo".object_id] # Musashi007
<ruboto> Ox0dea # => [true, false] (https://eval.in/464662)
<Musashi007> kk reading. ty
<IceDragon> everything is an object, the bootstrap trio is a mystery (Class, Module, Object)
bruno- is now known as Guest63271
<shevy> Musashi007 in your code example, you simply call a method called "environment", and pass a symbol as value to it
<shevy> erm, "environment="
build22_ has quit [Ping timeout: 250 seconds]
<Ox0dea> IceDragon: Do you know that's some of the oldest code in Ruby?
willardg has joined #ruby
baweaver has joined #ruby
<Fire-Dragon-DoL> IceDragon: you definitely won the prize for being the most humorous today
<IceDragon> ヽ(^ヮ^)ノ♪
<IceDragon> 0x0dea: Nope, care to share? Is it riddled with globals?
<shevy> the fire dragon acknowledged that the ice dragon is superior
<IceDragon> and weird arcane syntax
<Musashi007> so I’m passing sandbox to the method environment? if I wanted to change that as a configuration variable, could I just go: Braintree::Configuration.environment = ENV['BRAINTREE_ENVIRONMENT']
<IceDragon> (ง •̀┌┐•́)ง
<Ox0dea> IceDragon: I just meant that matz knew what he wanted from day one.
<Fire-Dragon-DoL> IceDragon: what are you doing CRAZY man, you don't want to know what's inside OLDES RUBY, it's ancient, is secret, it's a pit of PYTHONS!
jas02 has joined #ruby
<IceDragon> 0x0dea: That... is impressive in many ways :O
rgrmatt has joined #ruby
<shevy> Musashi007 if the method and code that was written by whoever wrote that braintree thing, then sure. it all depends on how it is written. if the author did not like flexibility then perhaps you are required to pass symbols
<IceDragon> To withstand the test of time
<shevy> note that ENV['FOO'] will be a string though
<Fire-Dragon-DoL> Musashi007: for safety, do ENV['BRAINTREE_ENVIRONMENT'].to_sym
<shevy> or nil
<Ox0dea> IceDragon: BasicObject threw a slight spanner into the works, but Ruby's object model is still remarkably consistent.
<linoge> shevy, he could use .to_sym right?
<shevy> yeah
<Ox0dea> linoge: Or #intern.
<Fire-Dragon-DoL> wtf is #intern
<Ox0dea> Fire-Dragon-DoL: An alias for #to_sym.
<Fire-Dragon-DoL> doh
<shevy> ENV variables used to break my code when I was a newbie
abucha has quit [Remote host closed the connection]
<shevy> since then I have learned to radically distrust ENV!
<Fire-Dragon-DoL> ENV variables still manage to break code when they don't like you
neanderslob has joined #ruby
<shevy> ruby objects live in a dirty environment
<IceDragon> shevy: I pull ENV values early and keep them in my code, the last thing you want to see is ENV['API_PASSWORD'] riddled all our your code
gix has quit [Ping timeout: 240 seconds]
Guest63271 has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
<shevy> yeah!
baweaver has quit [Ping timeout: 240 seconds]
<IceDragon> 0x0dea: BasicObject always bothered me
<shevy> I usually handle them very early before defining any method
s00pcan has quit [Ping timeout: 255 seconds]
<IceDragon> It just came out of nowhere for me
<Musashi007> @Fire-Dragon-DoL thank you #shevy
<shevy> I think BasicObject was added after _why wrote his sandboxed irb
<IceDragon> #shevy
<Ox0dea> IceDragon: Jim Weirich created BlankSlate.
* IceDragon posts that on twitter
<Ox0dea> It was so good that it got put into core as BasicObject.
<IceDragon> O:
<shevy> I asked _why for the code for the sandbox back then and he said it's too ugly, he does not want to share it :(
<IceDragon> So I need to make something awesom that will be included in ruby as well
<IceDragon> and conrete my name in ruby history!
<shevy> you must do it like hanmac
<IceDragon> orz
<IceDragon> then its hopeless
* IceDragon returns to his cave
rgrmatt has quit [Ping timeout: 240 seconds]
s00pcan has joined #ruby
<shevy> he is slowly taking over ruby
jas02 has quit [Ping timeout: 272 seconds]
<shevy> Ox0dea on the other hand can't get any suggestion into core
<Ox0dea> shevy: But I am in the ChangeLog twice?
nibbo has quit [Ping timeout: 255 seconds]
<Ox0dea> For stupid things, mind.
<shevy> we still have 2 months left in 2015
infamos has joined #ruby
<Ox0dea> They'll close the merge window soon.
<Ox0dea> #grep-like #any? and friends aren't going to make it. :<
<Ox0dea> (I hate that.)
asianMike has quit [Remote host closed the connection]
abucha has joined #ruby
linoge has quit [Quit: Leaving]
gix has joined #ruby
<IceDragon> 0x0dea, shevy: I'd like a F***ing core Boolean module right about now
<IceDragon> HUH RUBY TEAM, GIVE ME BOOLEAN SO I CAN STOP HACKING IT IN EVERY SINGLE PROJECT!
<IceDragon> (ノ `Д´)ノ ~┻━┻
<Ox0dea> Wat.
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
<Ox0dea> Use Ruby's truthiness semantics to your advantage, silly.
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
<IceDragon> 0x0dea: I do, its just that one odd case where you want to check if something is a "Boolean" a literal true or false for data validation
baweaver has joined #ruby
<IceDragon> You know like how we have Numeric
<IceDragon> for Float, Integer, Bignum, the whole family
charliesome has joined #ruby
neanderslob has joined #ruby
<IceDragon> Its not even Integer, its Fixnum orz
<IceDragon> see my point
charliesome has quit [Client Quit]
devoldmx has joined #ruby
<blubjr> why did ruby take fixnum and bignum and not flonum
c_nick has joined #ruby
safe has joined #ruby
A124 has quit [*.net *.split]
The_Phoenix has joined #ruby
braincra- has joined #ruby
<Ox0dea> IceDragon: I do confess to having reached for Boolean a time or two, and you're right that its absence is slightly anomalous.
<Ox0dea> For what it's worth, Integer is a thing; it's the superclass of Fixnum and Bignum.
leafybas_ has joined #ruby
<IceDragon> So let us, #ruby COME TOGETHER AND DEMAND A BOOLEAN CLASS/MODULE!
<Ox0dea> Module?
<IceDragon> yeah you can just include it into TrueClass FalseClass
<IceDragon> >.>
braincrash has quit [Ping timeout: 255 seconds]
astrobunny has joined #ruby
<Ox0dea> Pretty sure TrueClass and FalseClass should just be subclasses of Boolean.
<IceDragon> 0x0dea: see, when you can't change core class structure, you settle for the next best
<Musashi007> .to_sym didn’t resolve it.. do you guys see anything wrong with : https://gist.github.com/skuhn/a14eb0fb656e26afefc1
<IceDragon> Modules!
<Ox0dea> But you can change it?
<IceDragon> Musashi007, try ENV.fetch('RACK_ENV', :development).to_sym ?
<Musashi007> on it
<IceDragon> Symbols will just return themselves when to_sym is called
leafybas_ has quit [Ping timeout: 272 seconds]
<Musashi007> wait you’re suggesting i replace environment = ENV['RACK_ENV'] || 'development' with that?
yfeldblum has quit [Ping timeout: 240 seconds]
<IceDragon> @Musashi007 Yup
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Musashi007> same error
<Musashi007> i dont’ gegt how that would set environment, however.
solocshaw has joined #ruby
<Ox0dea> IceDragon: https://eval.in/464670
<Ox0dea> Yay, Ruby! <3
<Ox0dea> Kinda scary, though.
<IceDragon> o_O
<IceDragon> HAAAAX
* IceDragon points
rabbitho1e has joined #ruby
arescorpio has quit [Quit: Leaving.]
Contigi has quit [Ping timeout: 250 seconds]
<IceDragon> 0x0dea: very clever, I never got into dl/fiddle apart from simple win32 bindings
<Musashi007> I’m a little worried about how I’m using symbols - It used to be set like this: # Braintree::Configuration.environment = :production . I then set an environment var to be ‘production’. and changed it to Braintree::Configuration.environment = ENV['BRAINTREE_ENVIRONMENT'].to_sym
<Ox0dea> IceDragon: Poking raw memory is fun.
<Ox0dea> Thanks, QBasic.
<IceDragon> 0x0dea: until you poke the wrong address and everything goes up in black with a kernel panic
rabbithole has quit [Ping timeout: 265 seconds]
<Ox0dea> Relevant: https://eval.in/464671
devbug has joined #ruby
<IceDragon> TOLD YA
<Ox0dea> I wonder why the segfault happens at the very hand of the process's address space, though.
<Ox0dea> *very end
kies^ has joined #ruby
s00pcan has quit [Ping timeout: 260 seconds]
darkf has joined #ruby
Arkon has quit [Remote host closed the connection]
s00pcan has joined #ruby
nibbo has joined #ruby
A124 has joined #ruby
aadam21 has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
Arkon_ has joined #ruby
blackmesa has joined #ruby
cmoney has joined #ruby
CloCkWeRX has joined #ruby
fgo has joined #ruby
CloCkWeRX has left #ruby [#ruby]
aadam21 has quit [Ping timeout: 260 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 260 seconds]
atomical has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
solocshaw has joined #ruby
jhack has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
jhack has quit [Client Quit]
mattwildig has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
NeverDie has quit [Ping timeout: 250 seconds]
duckpupp1 has joined #ruby
pu22l3r has quit []
<shevy> IceDragon yeah even crystal has a boolen value
<shevy> Musashi007 you invest too much time into thinking about symbols. focus on what you want to do, and why
benlieb has quit [Quit: benlieb]
<Musashi007> Ok?
mattwildig has quit [Remote host closed the connection]
jas02 has joined #ruby
<shevy> in your case, if an environment variable called BRAINTREE_ENVIRONMENT exists, it's string value will be queried, then turned into a symbol
<shevy> so if BRAINTREE_ENVIRONMENT is foo
<shevy> the above code will evaluate to:
<shevy> Braintree::Configuration.environment = :foo
build22_ has joined #ruby
<shevy> if the variable does not exist
duckpupp1 has quit [Ping timeout: 260 seconds]
<shevy> then things will fail
<shevy> >> nil.to_sym
<ruboto> shevy # => undefined method `to_sym' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/464672)
<Musashi007> I don’t know what I don’t know.. so it’s a struggle.
aadam21 has joined #ruby
NeverDie has joined #ruby
<shevy> yeah, you are thinking that symbols are cool
<shevy> but they are boring
kies^ has quit [Ping timeout: 244 seconds]
<Musashi007> Not that they are cool, that it is the reason I am getting this error
kies has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
bruno- is now known as Guest66358
build22_ has quit [Ping timeout: 255 seconds]
<Musashi007> I think I got it. @IceDragon was correct that it needed .to_sym I think
<shevy> you are not even assigning
<IceDragon> =w= see, IceDragon is right
<IceDragon> shevy, D: even Crystal has Boolean!?
<IceDragon> ;-; come on, someone get ruby team to squeeze Boolean in
baweaver has quit [Remote host closed the connection]
<IceDragon> I don't want to hack anymore
<c_nick> array_1 =[] array_2=[] hash.each {|element| array_1 << element{:name] array_2 << element{:age}} Is there a better way to do this
Arkon_ has quit [Remote host closed the connection]
Ox0dea has joined #ruby
Guest66358 has quit [Ping timeout: 260 seconds]
<Ox0dea> c_nick: https://eval.in/464680
<Ox0dea> Didn't we learn #transpose yesterday?
<Ox0dea> Never mind; it was #group_by.
shock_one has joined #ruby
yfeldblum has joined #ruby
jas02 has quit [Ping timeout: 260 seconds]
justbleed has quit [Ping timeout: 260 seconds]
kies^ has joined #ruby
dayepa has joined #ruby
vigintas has quit [Read error: Connection reset by peer]
vigintas1 has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
Melpaws has quit [Quit: Leaving.]
Arkon has joined #ruby
NeverDie_ has joined #ruby
vigintas1 has quit [Ping timeout: 240 seconds]
leafybas_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
<c_nick> Ox0dea: yes, We did learn Transpose with MAP, but what i was confused was splitting different key values into arrays
<c_nick> I Will check your solution thank you .. i was afk
kobain has quit [Ping timeout: 250 seconds]
NeverDie has quit [Ping timeout: 272 seconds]
<Ox0dea> c_nick: Ah, fair enough. The method you wanted was #values_at, but you could just as well say `[h[:name], h[:age]]`. The latter is a little "noisy", though.
Melpaws has joined #ruby
eboaz has joined #ruby
leafybas_ has quit [Ping timeout: 240 seconds]
swgillespie has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
tulak has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Quit: Leaving...]
kies^ has quit [Ping timeout: 250 seconds]
<c_nick> Ox0dea: ok :)
zenguy_pc has quit [Ping timeout: 255 seconds]
tulak has quit [Ping timeout: 246 seconds]
bnizzle has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
<Fire-Dragon-DoL> good night everyone
<blubjr> bye fire dragon
Fire-Dragon-DoL has quit []
astrobunny has quit [Read error: Connection reset by peer]
Melpaws has quit [Quit: Leaving.]
baweaver has joined #ruby
arup_r has joined #ruby
infamos has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
baweaver has quit [Ping timeout: 265 seconds]
kies^ has joined #ruby
vdamewood has quit [Quit: Life beckons.]
c_nick has left #ruby [#ruby]
infamos has joined #ruby
zenguy_pc has joined #ruby
TheNet has joined #ruby
davedev2_ has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
Guest7378 has quit [Quit: Leaving]
dopie has joined #ruby
fgo has joined #ruby
gizmore has quit [Ping timeout: 250 seconds]
dayepa has quit [Remote host closed the connection]
maikowblue has quit [Quit: .]
RobertBirnie has joined #ruby
charliesome has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
fgo has quit [Ping timeout: 260 seconds]
hxegon_ has quit [Ping timeout: 265 seconds]
duckpupp1 has joined #ruby
YaknotiS has quit [Ping timeout: 272 seconds]
cmoney has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InternetFriend has joined #ruby
musou has joined #ruby
build22_ has joined #ruby
duckpupp1 has quit [Ping timeout: 246 seconds]
radgeRayden_ has joined #ruby
gizmore has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
radgeRayden has quit [Ping timeout: 246 seconds]
bruno- is now known as Guest28386
chouhoulis has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
build22_ has quit [Ping timeout: 252 seconds]
hightower has joined #ruby
mattwashere has joined #ruby
<hightower> Hey, what's a convenient way to parse lines in a file and store captured match ($1) of all lines that matched into an array?
rgrmatt has joined #ruby
rabbitho1e has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
rabbithole has joined #ruby
Guest28386 has quit [Ping timeout: 250 seconds]
<al2o3-cr> hightower: File.readlines(file).select { |line| line.match /regexp/ }
jdeen has joined #ruby
<hightower> al2o3-cr, right, but that only performs selection, not automatic mapping of the results to $1 of each match
<Ox0dea> al2o3-cr: Why do you hate #grep?
<al2o3-cr> hightower: I just woke up :)
<al2o3-cr> Ox0dea: I don't
<Ox0dea> al2o3-cr: Then why that gnarly block back there?
<Ox0dea> `select { |line| line.match /regexp/ }` is just `grep(/regexp/)`.
rgrmatt has quit [Ping timeout: 252 seconds]
<al2o3-cr> Ox0dea: because i'm still half asleep :)
<Ox0dea> Bollocks.
tjohnson has quit [Quit: Connection closed for inactivity]
<Ox0dea> >> 'abc123def456'[/(\d+\w+)/, 1] # hightower
<ruboto> Ox0dea # => "123def456" (https://eval.in/464686)
astrobunny has joined #ruby
<hightower> Ox0dea, fantastic, ++
<Ox0dea> <3
bnizzle has joined #ruby
<al2o3-cr> Ox0dea: What's you fucking problem?
<al2o3-cr> *your
<Ox0dea> Maintain your composure.
<jdeen> Hi there. Not sre if its the right place to ask the probelm. I am interested in implementing a JSON api on a Rails app with Grape. I would like to use jsonapi.org format. Does any one know a open source project that uses it.
<jdeen> *sure
barhum2013 has quit [Quit: barhum2013]
astrobunny has quit [Remote host closed the connection]
barhum2013_ has joined #ruby
barhum2013_ has quit [Client Quit]
sinkensabe has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bnizzle has quit [Read error: Connection reset by peer]
DexterLB has quit [Ping timeout: 260 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
bnizzle has joined #ruby
trosborn has joined #ruby
DexterLB has joined #ruby
kies^ has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
devoldmx has quit [Remote host closed the connection]
shock_one has joined #ruby
trosborn has quit [Client Quit]
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
peppers has quit [Quit: Leaving]
bnizzle1 has joined #ruby
bnizzle has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
trosborn has joined #ruby
RegulationD has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
jdeen has quit [Quit: leaving]
baweaver has quit [Ping timeout: 264 seconds]
tubuliferous_ has joined #ruby
trosborn has quit [Client Quit]
RegulationD has quit [Ping timeout: 240 seconds]
agentmeerkat has quit [Ping timeout: 255 seconds]
<Ox0dea> Is the act of prepending "prepension" or "prependiture"?
solocshaw has joined #ruby
<Ox0dea> VeryBewitching: Halp.
<VeryBewitching> Hmm
<Ox0dea> "Inclusion", "extension", "prepension", but also "expenditure", "prependiture".
mattwashere has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
jas02 has joined #ruby
dionysus69 has joined #ruby
<Ox0dea> Even /usr/share/dict/words-insane isn't of much help on this one. :<
rabbithole has quit [Ping timeout: 240 seconds]
<VeryBewitching> Prependiture would reference the past, as would expenditure
<VeryBewitching> It's not the act of doing it, it's the result of having done it
TheNet has quit [Remote host closed the connection]
<VeryBewitching> including, extending, prepending
<VeryBewitching> That's *now*
hahuang65 has joined #ruby
chipotle has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
* VeryBewitching pokes Ox0dea
mary5030 has quit [Remote host closed the connection]
<VeryBewitching> Discuss
<Ox0dea> VeryBewitching: "Appension" looks very wrong to me.
charliesome has joined #ruby
charliesome has quit [Client Quit]
<VeryBewitching> It's a word.
* VeryBewitching shrugs
sulky has quit [Ping timeout: 246 seconds]
<VeryBewitching> "Inclusion", "Extension", "Prologue", "Epilogue"
<Ox0dea> "Suspenditure" is a word, but "appenditure" connotes vaguely clinical in a way I don't like.
<VeryBewitching> What is this in reference to, if you don't mind me asking?
duckpupp1 has joined #ruby
<Ox0dea> >> Module.instance_method(:prepend) # VeryBewitching
<ruboto> Ox0dea # => #<UnboundMethod: Module#prepend> (https://eval.in/464695)
<Ox0dea> I'd like to speak of the act.
kp666_ has quit [Ping timeout: 240 seconds]
<VeryBewitching> >> Module.instance_method(:prologue)
<ruboto> VeryBewitching # => undefined method `prologue' for class `Module' (NameError) ...check link for more (https://eval.in/464696)
dotix has joined #ruby
<VeryBewitching> That's promising.
kp666 has joined #ruby
<Ox0dea> #prepend is similar in nature to #include and #extend.
<VeryBewitching> Is it evaluated first?
<VeryBewitching> I've never seen the method.
<Ox0dea> >> Foo = Module.new; String.prepend(Foo); String.ancestors.first
<ruboto> Ox0dea # => Foo (https://eval.in/464697)
<Ox0dea> It's for sticking methods right at the front of the lookup chain.
<Ox0dea> And `super` behaves very conveniently therein by looking down instead of up.
<VeryBewitching> Sounds like witchcraft to me
<VeryBewitching> :D
build22_ has joined #ruby
<Ox0dea> It's the cleanest way I know to incorporate a minimally invasive #method_missing.
duckpupp1 has quit [Ping timeout: 252 seconds]
<Ox0dea> If you don't intend to handle it, you just `super` and let whatever was already there take over.
<Ox0dea> Much better than mucking about with aliasing.
<VeryBewitching> I was trying to find a way to preserve existing method definitions from mixins so I could call mixin B's copy of the method on this object.
dotix has quit [Ping timeout: 244 seconds]
<Ox0dea> You wanted Module#prepend. :)
<VeryBewitching> I can't remember what frustrated me about trying to do it, but I couldn't get it to work as I wanted to
hwcd has joined #ruby
trosborn has joined #ruby
justbleed has joined #ruby
<VeryBewitching> Well if I called include for 4 modules that all implemented :hello, I wanted, each time it's overridden, to duplicate the method and add it into a module variable which allowed me to toss the constant for the source mixin module and call my method.
<Ox0dea> Ah, that sounds pretty stateful, though.
<VeryBewitching> I'll look at prepend though, maybe there's something happy and warm there
trosborn has quit [Client Quit]
bruno- has joined #ruby
<Ox0dea> That is, you'd almost certainly need to maintain either a class variable or a module instance variable for remembering your place.
<VeryBewitching> For calculating rates for insurance purposes, the method for doing it from last year has to be maintained as it was.
bruno- is now known as Guest75111
kies has joined #ruby
build22_ has quit [Ping timeout: 272 seconds]
<Ox0dea> And this year's is different but similar to last's, presumably?
<VeryBewitching> I was trying to do it when it was called: rate.calc(Tips::Re2012)
<VeryBewitching> I had another way to do it, which worked, but I wanted to make this work for fun, mostly
Pupeno has joined #ruby
<VeryBewitching> Kinda, sometimes the formula and it's sources are wildly different
<VeryBewitching> But the inputs are always the same
<Ox0dea> Maybe you just wanted #remove_const?
trosborn has joined #ruby
astrobu__ has joined #ruby
rgrmatt has joined #ruby
<VeryBewitching> Well with the above, Tips::Re2012#calc and Tips::Re2011#calc would both be preserved (their method definitions) inside the Rate class scope.
Guest75111 has quit [Ping timeout: 240 seconds]
astrob___ has joined #ruby
<VeryBewitching> But it was screwy, and I never pursued it.
tvw has joined #ruby
krz has joined #ruby
jas02 has quit [Ping timeout: 250 seconds]
astrobunny has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
rgrmatt has quit [Ping timeout: 246 seconds]
astrobu__ has quit [Ping timeout: 265 seconds]
speakingcode has quit [Ping timeout: 240 seconds]
kies has quit [Ping timeout: 255 seconds]
s00pcan has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
kies has joined #ruby
Arkon has quit [Remote host closed the connection]
Arkon has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
yeticry has quit [Read error: Connection reset by peer]
<VeryBewitching> The actual solution was kinda just as nice though.
Arkon has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
tulak has joined #ruby
trosborn has joined #ruby
dfockler has joined #ruby
<dfockler> woop ruby nights
<VeryBewitching> Ox0dea: Your original wordlist has an anomaly
<Ox0dea> VeryBewitching: Hm?
<VeryBewitching> Ox0dea: {inclusion: :grow, extension: :grow, prepension: :before, appension: :after}
<VeryBewitching> Two of these things are not like the others.
zenguy_pc has quit [Ping timeout: 260 seconds]
SamGerber has quit [Ping timeout: 255 seconds]
tulak has quit [Ping timeout: 250 seconds]
<Ox0dea> Well, I was only really looking at them morphologically, but I'd also be happy to maintain that they're all essentially to do with growth.
<VeryBewitching> I guess I'd have to know what you're intending.
<Ox0dea> "by way of module prependiture", more or less.
<VeryBewitching> But prependiture into another module?
<Ox0dea> Well, that's the only place it can happen?
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<VeryBewitching> No, I meant "the act of being mixed in"?
<Ox0dea> Specifically "the act of being prepended"; on that I won't budge. :)
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> If you chance upon some happy third possibility, I'm all eyes.
baweaver has joined #ruby
PaulCapestany has quit [Quit: .]
shock_one has quit [Remote host closed the connection]
swgillespie has joined #ruby
Arkon has joined #ruby
lxsameer has joined #ruby
<Ox0dea> Me right now: http://i.imgur.com/sH2tqKT.gifv
<Ox0dea> (Trypophobia warning, I guess.)
Miron has quit [Ping timeout: 246 seconds]
<VeryBewitching> That could make a sober man question the soundness of his own mind.
baweaver has quit [Ping timeout: 240 seconds]
zenguy_pc has joined #ruby
* Ox0dea is safe by at least three counts.
<VeryBewitching> "Inclusion", "Extension", "Prepension", "Appension" => "Including", "Extending", "Prepending", "Appending" is how I would go about it.
moeabdol has joined #ruby
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blue_deref has quit [Quit: bbn]
fgo has joined #ruby
dfockler has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
sulky has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
Miron has joined #ruby
isuckdickatcodin has joined #ruby
tubuliferous_ has quit [Ping timeout: 272 seconds]
isuckdickatcodin has left #ruby [#ruby]
tubuliferous_ has joined #ruby
baroquebobcat has quit [Read error: Connection reset by peer]
duckpupp1 has joined #ruby
speakingcode has joined #ruby
goodcodeguy has joined #ruby
<Ox0dea> That the "include" clitic found its way into the discussion is a circumstantial accident, but the other two do make a compelling case for "prepension".
baroquebobcat has joined #ruby
<Ox0dea> It's just that the "pre-" in "prependiture" is much more plainly not a prefix; there's no such word as "penditure".
dotix has joined #ruby
shock_one has joined #ruby
platzhirsch has quit [Ping timeout: 264 seconds]
<Ox0dea> Every single example is a broken hyphenation.
BSaboia has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Quit: Leaving...]
krz has quit [Ping timeout: 264 seconds]
build22_ has joined #ruby
duckpupp1 has quit [Ping timeout: 250 seconds]
speakingcode has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
dotix has quit [Ping timeout: 265 seconds]
bigkevmcd has quit [Quit: Outta here...]
mary5030 has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest71156
build22_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 246 seconds]
PaulCapestany has joined #ruby
Guest71156 has quit [Ping timeout: 240 seconds]
hwcd has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
conta has joined #ruby
hhatch has joined #ruby
lukaszes has joined #ruby
Ropeney has joined #ruby
kcidkcusi has joined #ruby
<kcidkcusi> are there any programmers here?
solocshaw has quit [Ping timeout: 244 seconds]
sulky has quit [Ping timeout: 272 seconds]
trosborn has quit [Quit: trosborn]
<Ox0dea> >> 'kcidkcusi'.reverse # Should I phone the authorities?
<ruboto> Ox0dea # => "isuckdick" (https://eval.in/464699)
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kcidkcusi has left #ruby [#ruby]
dionysus69 has joined #ruby
bMalum has joined #ruby
Miron has quit [Ping timeout: 240 seconds]
sulky has joined #ruby
speakingcode has joined #ruby
firstdayonthejob has joined #ruby
<apeiros> heh Ox0dea - you scared them away :D
solars has joined #ruby
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
mrd_ has joined #ruby
Miron has joined #ruby
iateadonut has joined #ruby
spider-mario has joined #ruby
speakingcode has quit [Ping timeout: 265 seconds]
iateadonut has quit [Client Quit]
PaulCapestany has quit [Quit: .]
arup_r has quit [Quit: Leaving]
hhatch has quit [Remote host closed the connection]
iateadonut has joined #ruby
speakingcode has joined #ruby
PaulCapestany has joined #ruby
conta has quit [Ping timeout: 244 seconds]
<Ox0dea> apeiros: The fear was inside them all along.
<Ox0dea> >> 0xfea12.itself # the only thing we have to fear
<ruboto> Ox0dea # => 1042962 (https://eval.in/464702)
kies has quit [Read error: Connection reset by peer]
aspiers has joined #ruby
baweaver has joined #ruby
YaknotiS has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrob___ has quit [Remote host closed the connection]
jiada has joined #ruby
<jiada> Hey guys,I'm trying to slove https://leetcode.com/problems/distinct-subsequences/.
<jiada>
<jiada> My first version was wrote in recursion.As expected, "Time Limit
<jiada> Exceeded".Then I converted it to loop.It's really difficult.And
<jiada> unfortunatly,it's still too slow, almost 1min.
<jiada>
<jiada> Here is my code and profile report https://gist.github.com/d845736b1982a18d008f.git.
<jiada>
baweaver has quit [Ping timeout: 265 seconds]
<jiada> 1. In haskell,recursion is more recommanded than loop.And I find it's
<jiada> more natural to thinking in recursion.How to make ruby effective in
<jiada> recursion?
<jiada>
<jiada> 2. Is there any tutorial teaching converting recursion to loop?
<jiada>
<jiada> 3. And how to improve the loop version?
<jiada>
<jiada>
<jiada>
mrd_ has quit [Quit: Leaving]
lyq has joined #ruby
safe has quit [Quit: Leaving]
fgo has joined #ruby
djbkd has quit [Remote host closed the connection]
minimalism has quit [Quit: leaving]
karapetyan has quit [Ping timeout: 246 seconds]
minimalism has joined #ruby
willardg has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
moeabdol has joined #ruby
tectonic has quit []
tulak has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
kies has joined #ruby
willardg has quit [Client Quit]
fgo has quit [Ping timeout: 250 seconds]
duckpupp1 has joined #ruby
shock_one has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
build22_ has joined #ruby
duckpupp1 has quit [Ping timeout: 250 seconds]
bMalum has joined #ruby
jiada has quit [Remote host closed the connection]
kies has quit [Ping timeout: 264 seconds]
build22_ has quit [Ping timeout: 250 seconds]
qba73 has joined #ruby
Rollabunna has joined #ruby
solocshaw has joined #ruby
rgrmatt has joined #ruby
etcetc has joined #ruby
User458764 has joined #ruby
trosborn has joined #ruby
<hightower> Hey, I have a couple threads and I send them their corresponding work via Queues. What's the standard way for threads to signal to the main thread that they've done their work?
rgtk has joined #ruby
rgrmatt has quit [Ping timeout: 272 seconds]
karapetyan has joined #ruby
marr has joined #ruby
<apeiros> hightower: a queue
<apeiros> btw., did you say you send the work via queue*s*? plural? a single queue is sufficient to serve multiple threads.
<hightower> apeiros, yes I did create separate queue for each thread
Arkon has quit [Remote host closed the connection]
bruno- has joined #ruby
bruno- is now known as Guest47952
Arkon_ has joined #ruby
trosborn has quit [Quit: trosborn]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
shock_one has joined #ruby
leafybas_ has joined #ruby
<hightower> apeiros, I did that because each thread is only processing one type of work
kies has joined #ruby
kies^ has joined #ruby
musou has quit [Quit: Connection closed for inactivity]
Arkon_ has quit [Ping timeout: 246 seconds]
karapetyan has quit [Ping timeout: 244 seconds]
al2o3-cr has quit [Ping timeout: 240 seconds]
leafybas_ has quit [Ping timeout: 246 seconds]
<hightower> apeiros, but in any case, how would you use a queue to signal to the main thread that all threads have executed their work? I don't see a method that would help with that in Queue's manual
VeryBewitching has quit [Quit: Konversation terminated!]
karapetyan has joined #ruby
conta has joined #ruby
<apeiros> hightower: you push result and optionally the thread to the queue. main thread can read from the queue. but with a "one thread per type of work" - not sure that's the right approach. might as well just use a hash with a mutex (thread => done-status)
<apeiros> though I'm still not sure I see a good reason to do a "one thread per worktype" pattern
adac has joined #ruby
zenguy_pc has quit [Ping timeout: 264 seconds]
conta has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
charliesome has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
baweaver has joined #ruby
djellemah_ is now known as djellemah
trosborn has joined #ruby
karapetyan has quit [Ping timeout: 252 seconds]
baweaver has quit [Ping timeout: 240 seconds]
zenguy_pc has joined #ruby
Spami has joined #ruby
tulak_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
symm- has joined #ruby
tulak has quit [Ping timeout: 260 seconds]
<hightower> djellemah, right, thanks, my issue is that I don't want to terminate the threads, but just be notified when all threads have executed the work I sent to them
<hightower> (they still remain working after that, waiting for the next batch of work)
fgo has joined #ruby
Silverfall has quit [Quit: .]
fgo has quit [Ping timeout: 260 seconds]
rgtk has quit [Remote host closed the connection]
duckpupp1 has joined #ruby
bMalum has quit [Quit: bMalum]
<trosborn> I’m having a hard time rewriting a multi line block as a single line block: https://gist.github.com/trosborn/fcecd8dc944471a53415
<trosborn> If anyone could lend a hand, that would be great :)
Voker57 has joined #ruby
build22_ has joined #ruby
duckpupp1 has quit [Ping timeout: 272 seconds]
shock_one has quit [Remote host closed the connection]
DEA7TH has joined #ruby
build22_ has quit [Ping timeout: 260 seconds]
<apeiros> trosborn: you need parens. {} has different precedence than do/end.
<apeiros> foo bar {} is foo(bar {})
<apeiros> foo bar do … end is foo(bar) do … end
bMalum has joined #ruby
BSaboia has quit [Ping timeout: 244 seconds]
<trosborn> Ah I see, so like this: within all('.salad_sizes_name'). (last { find('input').set('Large') })
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgtk has joined #ruby
inteq has quit [Quit: Leaving]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
bruce_lee has joined #ruby
minimalism has quit [Quit: leaving]
skade has joined #ruby
<apeiros> trosborn: no, like this: within(all('.salad_sizes_name').last { find('input').set('Large') }). but the basic idea of the block going to last is correct :)
charliesome has quit [Client Quit]
yosiat has joined #ruby
pard has joined #ruby
User458764 has joined #ruby
<pard> greet all
<pard> just found an nteresting case
unrar has joined #ruby
<unrar> hihi
jas02 has joined #ruby
solocshaw has quit [Ping timeout: 260 seconds]
bMalum has quit [Quit: bMalum]
<trosborn> Hm.. I don’t think I am comprehending how that works. Is that passing all('.salad_sizes_name').last { find('input').set('Large') } into within as a single param?
<pard> >> def l(_e) _e end; l l:e #the 2nd l is a labl
<ruboto> pard # => undefined local variable or method `e' for main:Object (NameError) ...check link for more (https://eval.in/464728)
SCHAAP137 has joined #ruby
<pard> but
<pard> >> def l(_e) _e end; l:e
<apeiros> s/labl/symbol/
<ruboto> pard # => :e (https://eval.in/464729)
<apeiros> I still don't get why you like to prefix your lvars with _ for no apparent reason
<pard> apeiros, no sir, i meant a label
<pard> sorry
<apeiros> *sigh* and I get sir'ed again. I'm a lord, damit.
<pard> i.e, l l:e means l l=>e, but l:e means l(:e)
<apeiros> no, l:e does not mean l=>e. it means :l => e
<pard> yes
charliesome has joined #ruby
<pard> thanks a lot
shock_one has joined #ruby
<apeiros> and yes, l:e -> l(:e), and l l:e -> l(l: e)
<apeiros> I dislike ruby allowing this. only place where it is reasonably used is code golf.
<pard> yes :\
<pard> strange though, i rather like this quirk
sinkensabe has joined #ruby
<pard> only not in deployed code
<apeiros> I wouldn't call it a quirk. it's unambiguous.
<pard> thanks, but how so ?
<apeiros> plain `l:e` can't possibly be `:l => e`
<pard> thanks; you are right
<apeiros> >> var = key: "value" # inavlid
<ruboto> apeiros # => /tmp/execpad-ba6c9f245f3a/source-ba6c9f245f3a:2: syntax error, unexpected tLABEL ...check link for more (https://eval.in/464735)
<apeiros> hashes without {} are only allowed as an argument
<pard> >> [l: 12]
<ruboto> pard # => [{:l=>12}] (https://eval.in/464736)
<pard> :\
<apeiros> hm, ok. in this place they are not an argument. true. there it is actually ambiguos.
<apeiros> >> def l(v); "method call"; end; [l:1]
<ruboto> apeiros # => [{:l=>1}] (https://eval.in/464739)
<apeiros> this case is actually ambiguous.
CloCkWeRX has joined #ruby
<pard> i really like the way a japanese mind works ; no wonder they've come this far
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
build22_ has joined #ruby
<pard> apeiros, thanks; i actually had not consider'd that case
pandaant has joined #ruby
RegulationD has joined #ruby
pard has quit [Quit: Leaving]
<trosborn> Okay… so I tried to refactor some similar code except, and the command line is yelling at me: https://gist.github.com/trosborn/84e526f0504ad0dbde5f
mattwashere has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
Miron has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
sulky has quit [Ping timeout: 260 seconds]
stamina has joined #ruby
blueOxigen has joined #ruby
mattwashere has quit [Ping timeout: 240 seconds]
infamos has quit [Ping timeout: 255 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
etcetc has quit [Quit: Leaving]
duncannz has quit [Ping timeout: 240 seconds]
shock_one has quit [Remote host closed the connection]
lkba_ has joined #ruby
shock_one has joined #ruby
moei has quit [Quit: Leaving...]
goodcodeguy has joined #ruby
al2o3-cr has joined #ruby
fgo has joined #ruby
<Radar> trosborn: define "yelling'
lyq has quit [Ping timeout: 246 seconds]
tulak_ has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
<trosborn> I updated the gist with the stack trace: https://gist.github.com/trosborn/84e526f0504ad0dbde5f
shock_one has quit [Ping timeout: 240 seconds]
tulak has joined #ruby
dikaio has quit [Quit: ........]
<Radar> You're missing a bracket for the within.
moei has joined #ruby
<Radar> within(all('.salad_sizes_price')[1]
<Radar> bracket is missing after the ]
tvw has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
j3r0 has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
lavros has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
tomphp has joined #ruby
TheHodge has joined #ruby
Feyn has quit [Quit: Leaving]
duckpupp1 has joined #ruby
jas02 has quit [Ping timeout: 260 seconds]
<trosborn> I’m confused :/ I have similar code earlier in the test that works fine: within(all('.salad_sizes_name').last { find('input').set('Large') })
dstarh has joined #ruby
<trosborn> Do I need to use an additional set of brackets for my broken code?
<djellemah> trosborn: within(all('.salad_sizes_name').last { find('input').set('Large') } ) <- this one
rodfersou has joined #ruby
Pupeno has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 240 seconds]
troulouliou_div2 has joined #ruby
dstarh has quit [Client Quit]
SCHAAP137 has quit [Quit: Leaving]
<apeiros> trosborn: I doubt that your last code example works fine.
<apeiros> your last code example passes the block to the method `last`. I'm pretty sure you want to pass it to `within`
skade has joined #ruby
<apeiros> and as said before, you'd have to use parens like this `within(expression) { block }` to achieve that.
Jackneill has joined #ruby
trajing has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rgrmatt has joined #ruby
<trosborn> Okay, you’re right that code did not work fine :/
<trosborn> within { all('.salad_sizes_name').last.find('input').set('Large') }
<trosborn> is that what you mean I should do?
trajing has joined #ruby
<apeiros> trosborn: stop riddling. read the example I gave you. analyze it and apply it to your case.
<apeiros> in short: no. that's not what you should do.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
conta has joined #ruby
dstarh has joined #ruby
mikecmpbll has joined #ruby
rgrmatt has quit [Ping timeout: 260 seconds]
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<trosborn> My apologies, I got confused because earlier when you gave me this I just copy pasted it assuming it would work: within(all('.salad_sizes_name').last { find('input').set('Large') })
<trosborn> Anyways I got it now: within(all('.salad_sizes_name').last) { find('input').set('Large') }
<trosborn> Thanks :)
A124 has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
yosiat has joined #ruby
Miron has joined #ruby
etcetc has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
skade has quit [Quit: Computer has gone to sleep.]
Miron has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Ping timeout: 240 seconds]
sulky has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
skade has joined #ruby
embs has joined #ruby
skade has quit [Client Quit]
RegulationD has joined #ruby
Pupeno has joined #ruby
matp has quit [Ping timeout: 240 seconds]
zenguy_pc has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
eggoez has quit [Ping timeout: 250 seconds]
but3k4 has joined #ruby
Pupeno has quit [Remote host closed the connection]
_joes__ has quit [Ping timeout: 250 seconds]
millerti has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
eggoez has joined #ruby
jas02 has joined #ruby
fgo has joined #ruby
ht__ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hhatch has joined #ruby
ht__ has quit [Client Quit]
rgtk has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ht__ has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
duckpupp1 has joined #ruby
embs has quit [Remote host closed the connection]
abucha has quit [Remote host closed the connection]
jas02 has quit [Ping timeout: 252 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
trosborn has quit [Quit: trosborn]
Drakevr has quit [Ping timeout: 265 seconds]
krz has joined #ruby
duckpupp1 has quit [Ping timeout: 244 seconds]
doddok has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
j3r0 has quit [Ping timeout: 272 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
freerobby has joined #ruby
Drakevr has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
_ko1 has joined #ruby
but3k4 has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
millerti has joined #ruby
kirun has joined #ruby
but3k4 has joined #ruby
abucha has joined #ruby
millerti has quit [Client Quit]
hightower has quit [Ping timeout: 246 seconds]
but3k4 has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
conta has quit [Ping timeout: 265 seconds]
tokik has quit [Ping timeout: 272 seconds]
gard_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tokik has joined #ruby
rgtk has joined #ruby
skade has joined #ruby
sepp2k has joined #ruby
weihan has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Arkon has joined #ruby
__ht has joined #ruby
adac has quit [Ping timeout: 250 seconds]
weihan has quit [Max SendQ exceeded]
krz has quit [Ping timeout: 260 seconds]
ht__ has quit [Ping timeout: 260 seconds]
weihan has joined #ruby
Arkon has quit [Ping timeout: 240 seconds]
Azure has quit [Read error: Connection reset by peer]
wildlander has quit [Quit: Saliendo]
Miron has joined #ruby
Azure has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weihan has quit [Read error: Connection reset by peer]
millerti has joined #ruby
sonOfRa has quit [Quit: Bye!]
sonOfRa has joined #ruby
freerobby has quit [Quit: Leaving.]
weihan has joined #ruby
stamina has quit [Ping timeout: 240 seconds]
Coldblackice has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
axsuul has joined #ruby
matp has joined #ruby
bMalum has joined #ruby
karapetyan has joined #ruby
xet7 has quit [Quit: Leaving]
jdawgaz has joined #ruby
Rickmasta has joined #ruby
psy_ has quit [Ping timeout: 244 seconds]
FernandoBasso has quit [Ping timeout: 250 seconds]
iateadonut has quit [Ping timeout: 255 seconds]
shinnya has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
jas02 has joined #ruby
weihan has quit [Read error: Connection timed out]
am55 has joined #ruby
tomphp has joined #ruby
FernandoBasso has joined #ruby
weihan has joined #ruby
jeffreylevesque has joined #ruby
weihan has quit [Max SendQ exceeded]
aspiers has quit [Quit: WeeChat 1.3]
jas02 has quit [Ping timeout: 240 seconds]
rgrmatt has joined #ruby
iateadonut has joined #ruby
Ropeney_ has joined #ruby
weihan has joined #ruby
Icey has quit [Quit: icey]
am55 has quit [Quit: Leaving]
fgo has joined #ruby
Ropeney_ has quit [Client Quit]
Icey has joined #ruby
Icey has left #ruby [#ruby]
desmondhume has joined #ruby
am55 has joined #ruby
iateadonut has quit [Quit: Leaving.]
fgo has quit [Ping timeout: 260 seconds]
leafybas_ has joined #ruby
duckpupp1 has joined #ruby
grn has joined #ruby
karapetyan has joined #ruby
kies has quit [Ping timeout: 246 seconds]
axsuul has quit [Ping timeout: 246 seconds]
but3k4 has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
but3k4 has quit [Client Quit]
troulouliou_div2 has quit [Quit: Leaving]
th0m__ has quit [Ping timeout: 265 seconds]
conta has joined #ruby
lavros_ has joined #ruby
freerobby has quit [Quit: Leaving.]
lavros has quit [Ping timeout: 250 seconds]
doddok has quit [Quit: Leaving]
doddok has joined #ruby
lavros_ has quit [Ping timeout: 244 seconds]
conta has quit [Ping timeout: 250 seconds]
desmondhume has quit [Remote host closed the connection]
krz has joined #ruby
victortyau has joined #ruby
lavros has joined #ruby
platzhirsch has joined #ruby
grn has quit []
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has quit [Ping timeout: 260 seconds]
build22_ has quit [Remote host closed the connection]
ekinmur has joined #ruby
Miron has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
victortyau has quit [Max SendQ exceeded]
jeffreylevesque has quit [Ping timeout: 246 seconds]
ebbflowgo has joined #ruby
victortyau has joined #ruby
tricktricktrck has joined #ruby
ebbflowgo has quit [Client Quit]
rgrmatt has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
victortyau has quit [Client Quit]
ebbflowgo has joined #ruby
tricktricktrck has quit [Client Quit]
Miron has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tricktricktrck has joined #ruby
mattwildig has joined #ruby
northfurr has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Ping timeout: 250 seconds]
tricktricktrck has quit [Client Quit]
The_Phoenix has quit [Ping timeout: 252 seconds]
tricktricktrck has joined #ruby
The_Phoenix has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
abucha has quit [Remote host closed the connection]
tricktricktrck has quit [Client Quit]
peteykun has joined #ruby
ht__ has joined #ruby
abucha has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
shock_one has joined #ruby
rgrmatt has joined #ruby
mary5030 has joined #ruby
lavros has quit [Ping timeout: 265 seconds]
__ht has quit [Ping timeout: 240 seconds]
skcin7 has joined #ruby
tricktricktrck has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jas02 has joined #ruby
mary5030 has quit [Remote host closed the connection]
lavros has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
_aeris_ has quit [Ping timeout: 265 seconds]
rgrmatt has quit [Remote host closed the connection]
tricktricktrck has quit [Client Quit]
tricktricktrck has joined #ruby
cmoney has joined #ruby
moeabdol has quit [Ping timeout: 255 seconds]
karapetyan has quit [Remote host closed the connection]
rgrmatt has joined #ruby
tk__ has joined #ruby
zenguy_pc has joined #ruby
sinkensabe has quit [Remote host closed the connection]
_aeris_ has joined #ruby
build22_ has joined #ruby
alexandre-linux has joined #ruby
alexandre-linux has quit [Client Quit]
_blizzy_ has joined #ruby
build22_ has quit [Read error: Connection reset by peer]
build22_ has joined #ruby
cbetta has quit [Quit: Connection closed for inactivity]
alexandre-linux has joined #ruby
luca768 has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
alexandre-linux has quit [Client Quit]
ht__ has joined #ruby
ohcibi has quit [Remote host closed the connection]
lkba_ has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
karapetyan has joined #ruby
ohcibi has joined #ruby
tubuliferous_ has quit [Ping timeout: 264 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tricktricktrck has quit [Quit: Got to go]
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
Dreamer3 has quit [Excess Flood]
ciampix_ has joined #ruby
desmondhume has joined #ruby
karapetyan has quit [Remote host closed the connection]
tricktricktrck has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
duckpupp1 has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
desmondhume has quit [Ping timeout: 264 seconds]
tricktricktrck has quit [Client Quit]
sankaber has joined #ruby
mattwildig has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 250 seconds]
shredding has joined #ruby
symm- has joined #ruby
ciampix_ has quit [Quit: Leaving]
Wsewolod has joined #ruby
ciampix_ has joined #ruby
ciampix_ has quit [Remote host closed the connection]
ciampix2 has joined #ruby
Mon_Ouie has quit [Ping timeout: 265 seconds]
moeabdol has joined #ruby
elaptics`away is now known as elaptics
abucha has quit [Remote host closed the connection]
abucha has joined #ruby
conta has joined #ruby
hightower has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
ciampix2 has quit [Quit: Leaving]
jas02 has quit [Ping timeout: 250 seconds]
ciampix2 has joined #ruby
ciampix2 has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
blueOxigen has quit [Read error: Connection reset by peer]
NeverDie_ has quit [Quit: http://radiux.io/]
bluOxigen has joined #ruby
NeverDie has joined #ruby
tricktricktrck has joined #ruby
conta has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
tricktricktrck has quit [Read error: Connection reset by peer]
tubuliferous_ has joined #ruby
diegoaguilar has joined #ruby
tricktricktrck has joined #ruby
DEA7TH has quit [Ping timeout: 255 seconds]
alain2 has joined #ruby
alain2 has quit [Client Quit]
mille_pattes has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
mille_pattes has quit [Client Quit]
lukaszes has joined #ruby
mattwildig has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
DEA7TH has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
ht__ has joined #ruby
desmondhume has joined #ruby
dionysus69 has joined #ruby
JDiPierro has joined #ruby
JDiPierro has quit [Remote host closed the connection]
cmoney has quit [Remote host closed the connection]
matp_ has joined #ruby
matp has quit [Ping timeout: 264 seconds]
shock_one has joined #ruby
troulouliou_div2 has joined #ruby
iateadonut has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
shock_one has quit [Ping timeout: 250 seconds]
northfurr has quit [Client Quit]
northfurr has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
Ropeney has quit [Quit: Leaving]
matp has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eldariof has joined #ruby
mghaig has joined #ruby
davedev24 has joined #ruby
kp666 has quit [Quit: Leaving]
matp_ has quit [Ping timeout: 272 seconds]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
kstuart has quit [Quit: WeeChat 1.3]
kstuart has joined #ruby
rgrmatt has quit [Remote host closed the connection]
conta has joined #ruby
lukaszes has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
abucha has quit [Remote host closed the connection]
eldariof has quit []
kobain has joined #ruby
stannard has quit [Remote host closed the connection]
mattwildig has quit [Remote host closed the connection]
exadeci has quit [Quit: Connection closed for inactivity]
fgo has joined #ruby
hxegon has joined #ruby
RegulationD has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kstuart has quit [Read error: Connection reset by peer]
mghaig has left #ruby ["Textual IRC Client: www.textualapp.com"]
mghaig has joined #ruby
karapetyan has joined #ruby
weihan has quit [Ping timeout: 240 seconds]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
rgtk has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 255 seconds]
fgo has quit [Ping timeout: 255 seconds]
mghaig has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 260 seconds]
jas02 has joined #ruby
krz has joined #ruby
<ja> Ruby ought to allow backslahes in symbol literals so I could write :SMS\Account instead of :'SMS::Account', hehehehe
desmondhume has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
th0m__ has joined #ruby
kalusn has joined #ruby
shock_one has joined #ruby
yqt has joined #ruby
Fire-Dragon-DoL has quit [Client Quit]
jas02 has quit [Ping timeout: 250 seconds]
krz has quit [Ping timeout: 260 seconds]
shredding has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
radgeRayden_ has quit [Ping timeout: 244 seconds]
kstuart has joined #ruby
moss has joined #ruby
northfurr has quit [Quit: northfurr]
krz has joined #ruby
northfurr has joined #ruby
s00pcan has joined #ruby
s00pcan has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 240 seconds]
Voker57 has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
northfurr has quit [Client Quit]
northfurr has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
subscope has joined #ruby
northfurr has quit [Client Quit]
subscope has quit [Client Quit]
spider-mario has quit [Ping timeout: 272 seconds]
northfurr has joined #ruby
northfurr has quit [Client Quit]
banister has joined #ruby
northfurr has joined #ruby
mistermocha has joined #ruby
spider-mario has joined #ruby
northfurr has quit [Client Quit]
subscope has joined #ruby
Gi0 has joined #ruby
zenguy_pc has quit [Ping timeout: 260 seconds]
desmondhume has joined #ruby
northfurr has joined #ruby
codecop has joined #ruby
conta has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
northfurr has quit [Client Quit]
ht__ has quit [Quit: Konversation terminated!]
northfurr has joined #ruby
ht__ has joined #ruby
bMalum has joined #ruby
northfurr has quit [Client Quit]
rippa has joined #ruby
northfurr has joined #ruby
tk__ has quit [Quit: ばいばい]
rgtk has joined #ruby
northfurr has quit [Client Quit]
kstuart has quit [Remote host closed the connection]
ESpiney has joined #ruby
northfurr has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenguy_pc has joined #ruby
bluOxigen has joined #ruby
blueOxigen has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
gambl0re has quit [Ping timeout: 250 seconds]
platzhirsch has quit [Ping timeout: 255 seconds]
rzsd has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mghaig has joined #ruby
<rzsd> I have a hash like h = {"9:00AM" => "abc", "10:00AM" => "def","01:00PM" => "ghi", "02:00PM" => "jkl"}.When i do h.sort i get {"01:00PM" => "ghi", "02:00PM" => "jkl","9:00AM" => "abc", "10:00AM" => "def"}
karapetyan has quit [Remote host closed the connection]
<rzsd> im stumped by this strange behavior
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwildig has joined #ruby
<rzsd> what could be causing this ?
matled has quit [Remote host closed the connection]
<havenwood> >> "01:00PM" > "9:00AM"
<ruboto> havenwood # => false (https://eval.in/464771)
cdg has joined #ruby
<havenwood> >> '0' > '9'
<ruboto> havenwood # => false (https://eval.in/464772)
<rzsd> havenwood:yeah, im expecting the result to be unchanged as h is already in sorted form
Wsewolod has quit [Ping timeout: 246 seconds]
<slash_part> apparently not
<rzsd> and the strange thing is if i create another hash, h1 = {"9:00AM" => "abc", "10:00AM" => "def","01:00PM" => "ghi", "02:00PM" => "jkl"} and then do h1.sort i get the correct output
step1step22 has joined #ruby
sumark has quit [Remote host closed the connection]
wprice has joined #ruby
wprice has quit [Client Quit]
sumark has joined #ruby
matled has joined #ruby
<rzsd> havenwood:im wondering why in in case of h1 the result is different, when both are of type Hash ?
shock_one has quit [Remote host closed the connection]
<havenwood> >> ['1', '09', '010'].sort
<ruboto> havenwood # => ["010", "09", "1"] (https://eval.in/464773)
Arkon has joined #ruby
<havenwood> rzsd: So you understand that ^ sort order?
<rzsd> {"9:00AM" => "abc", "10:00AM" => "def","01:00PM" => "ghi", "02:00PM" => "jkl"}.sort
<rzsd> >>{"9:00AM" => "abc", "10:00AM" => "def","01:00PM" => "ghi", "02:00PM" => "jkl"}.sort
<ruboto> rzsd # => [["01:00PM", "ghi"], ["02:00PM", "jkl"], ["10:00AM", "def"], ["9:00AM", "abc"]] (https://eval.in/464774)
moss has quit [Quit: kernel update]
shock_one has joined #ruby
DoubleMalt has joined #ruby
dionysus69 has joined #ruby
<rzsd> havenwood:see its giving the incorrect sort order
TheNet has joined #ruby
karapetyan has joined #ruby
<slash_part> rzsd: ?... 01 is before 02... and 1 is before 9... what's wrong?
<Ebok> use sort_by
<havenwood> rzsd: What order would you expect this to be?: ['1', '09', '010'].sort
<rzsd> >>{"09:00AM" => "abc", "10:00AM" => "def","01:00PM" => "ghi", "02:00PM" => "jkl"}.sort
<ruboto> rzsd # => [["01:00PM", "ghi"], ["02:00PM", "jkl"], ["09:00AM", "abc"], ["10:00AM", "def"]] (https://eval.in/464775)
<havenwood> rzsd: Are you trying to sort by the keys then?
fgo has joined #ruby
jas02 has joined #ruby
<rzsd> havenwood:yeah exactly, i want it to be sorted as per the time in the keys
<havenwood> rzsd: What Ebok said.
<slash_part> but you're sorting by the strings, not the times
ht__ has quit [Quit: Konversation terminated!]
<Ebok> sort_by{|key,value| value}
<Ebok> sort_by{|key,value| key}
ht__ has joined #ruby
<Ebok> Or negate either of those to reverse them
<Ebok> -key -value
<rzsd> >>{"09:00AM" => "abc", "10:00AM" => "def","01:00PM" => "ghi", "02:00PM" => "jkl"}.sort_by{|key,value| key}
<ruboto> rzsd # => [["01:00PM", "ghi"], ["02:00PM", "jkl"], ["09:00AM", "abc"], ["10:00AM", "def"]] (https://eval.in/464776)
<Ebok> That is correct
<havenwood> rzsd: So that's ^ sorting by key. Now try by value.
ebbflowgo has quit [Quit: ebbflowgo]
<Ebok> 01 is before 02, those are strings remember. So its sorting by abcdef. If you want it to sort by the TIME you should use miltiary time
<slash_part> rzsd: that's sorting the way you want because you left-padded 9:00AM with a 0 now...
<rzsd> havenwood: the values wont necessarily be in alphabetical order as above
<havenwood> rzsd: I think you should do a gist with various examples of possible input and desired output for each.
adac has joined #ruby
ht__ has quit [Client Quit]
shock_one has quit [Ping timeout: 240 seconds]
<havenwood> ?gist rzsd
<ruboto> rzsd, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
ebbflowgo has joined #ruby
<havenwood> rzsd: You want to sort them somehow. Multiple examples with desired order would be enlightening
<Ebok> Honestly, just type out what you want the sort to result in >_>
ebbflowgo has quit [Client Quit]
<slash_part> or use keys that are Time objects instead of strings... 24hour time (ditch am/pm) would work
<Ebok> ^ that would be best
<Ebok> military time
fgo has quit [Ping timeout: 272 seconds]
jas02 has quit [Ping timeout: 265 seconds]
<Ebok> You can also make a quick method converter to take the military time key when printing it to something to format it
jcoe has joined #ruby
<Ebok> assuming the Time objects dont have something built it
<rzsd> >>{"09:00AM" => "abc", "10:00AM" => "def","01:00PM" => "ghi", "02:00PM" => "jkl"}.sort_by{|key,value| key.to_time}
<ruboto> rzsd # => undefined method `to_time' for "09:00AM":String (NoMethodError) ...check link for more (https://eval.in/464777)
bruce_lee has quit [Read error: Connection reset by peer]
<Ebok> Well time is a gem so first you haev to require 'Time'
<Ebok> Secdondly the AM and : makes that a string, so you need to look up Timeobject format
<rzsd> >>require "time" {"09:00AM" => "abc", "10:00AM" => "def","01:00PM" => "ghi", "02:00PM" => "jkl"}.sort_by{|key,value| key.to_time}
<ruboto> rzsd # => /tmp/execpad-ed31a90b9746/source-ed31a90b9746:2: syntax error, unexpected '{', expecting keyword_end ...check link for more (https://eval.in/464778)
<adaedra> er
<havenwood> rzsd: Please experiment in your local REPL and just use ruboto to demonstrate to others.
<rzsd> Ebok: i tried in console on my machine, works with requiring time, thanks a lot :)
<Ebok> Yourwelcome
joufflu has joined #ruby
bnizzle has joined #ruby
northfurr has quit [Quit: northfurr]
Xeago has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
Melpaws has joined #ruby
sankaber has joined #ruby
mghaig has quit [Read error: Connection reset by peer]
banister has joined #ruby
yosiat has joined #ruby
mattwashere has joined #ruby
build22_ has quit [Read error: Connection reset by peer]
build22_ has joined #ruby
bnizzle1 has quit [Ping timeout: 272 seconds]
jcoe has quit [Quit: Quitting...]
arooni has joined #ruby
arooni has quit [Max SendQ exceeded]
bMalum_ has joined #ruby
Xeago has quit [Remote host closed the connection]
bMalum has quit [Ping timeout: 252 seconds]
bMalum_ is now known as bMalum
mattwashere has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 260 seconds]
mattwashere has joined #ruby
banister has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
mattwashere has quit [Remote host closed the connection]
funnel has quit [Ping timeout: 246 seconds]
krz has quit [Read error: Connection reset by peer]
funnel has joined #ruby
lkba has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
mistermocha has quit [Remote host closed the connection]
baweaver has joined #ruby
<shevy> simplicity
Croves has joined #ruby
gard_ has quit [Ping timeout: 272 seconds]
conta has joined #ruby
kstuart has joined #ruby
Oatmeal has quit [Ping timeout: 240 seconds]
tulak_ has joined #ruby
adac has quit [Quit: Leaving]
adac has joined #ruby
tulak has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
CloCkWeRX has quit [Quit: Leaving.]
tjohnson has joined #ruby
Croves has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ni638629 has joined #ruby
Oatmeal has joined #ruby
psy_ has joined #ruby
RobertBirnie has joined #ruby
<ni638629> Hi there. New to ruby, can suggest a good guide/tutorial for beginners?
<pontiki> ni638629: !r4ia
<pontiki> ni638629: railstutorial.org
<pontiki> ni638629: !getting-started
<adaedra> ?links
<pontiki> oops
tulak_ has quit []
<pontiki> we're in #ruby aren't we
<adaedra> yes we are.
<pontiki> ni638629: #rubyonrails
<pontiki> ?r4ia
<ruboto> I don't know anything about r4ia
<pontiki> damn
<adaedra> pontiki: notice they asked about ruby for now.
<pontiki> you are so right
<pontiki> i am so wrong
hhatch has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
gard_ has joined #ruby
stannard has joined #ruby
ni638629 has quit [Remote host closed the connection]
jas02 has joined #ruby
RobertBirnie has quit [Ping timeout: 250 seconds]
gard_ has quit [Ping timeout: 246 seconds]
mattwildig has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
<shevy> sounds like a song
moss has joined #ruby
_blizzy_ has quit [Quit: Leaving]
nateberkopec has quit [Quit: Leaving...]
fgo has joined #ruby
<moeabdol> in ruby, i have a class MyClass the class has instance variables like size, count, etc. it also holds an array of certain values [[1, 1], [2, 2]]
blackmesa has joined #ruby
<moeabdol> if i instantiate an instance
<moeabdol> my = MyClass.new([[1, 1], [2, 2]])
<moeabdol> when I call my directly
<moeabdol> I get the famous <MyClass:0x00001023210>
mattwildig has joined #ruby
<moeabdol> how can i make it so when I call my directly i can get the values in the array
<adaedra> implement #to_s
build22_ has quit [Remote host closed the connection]
<moeabdol> i want to implement to_a
<moeabdol> but delegate it in such a way that I can call it directly
sysanthrope has quit [Quit: No Ping reply in 180 seconds.]
<shevy> <MyClass:0x00001023210> is a stringified representation
duckpupp1 has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
sysanthrope has joined #ruby
ni638629 has joined #ruby
<moeabdol> does Array call to_s or to_a when accessed directoy
agentmeerkat has joined #ruby
<moeabdol> a = [1, 1]
_blizzy_ has joined #ruby
<moeabdol> if I call a does it call to_a or to_s?
<adaedra> What do you mean by "calling" it
<shevy> http://stackoverflow.com/a/9526262/722915 gives a nice example
<moeabdol> i mean by just typing a in the console
<adaedra> that uses #to_s
<havenwood> moeabdol: Try playing with this in irb: class MyClass; def initialize value; @value = value end; def inspect; @value.inspect end; def to_a; @value.to_a end; end
<shevy> in irb it will use inspect, see the example above
jas02 has quit [Ping timeout: 246 seconds]
RajD has joined #ruby
spider-mario is now known as spidermario
spidermario is now known as spider-mario
swgillespie has joined #ruby
<moeabdol> I see shevy thanks +1
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
duckpupp1 has quit [Ping timeout: 255 seconds]
<shevy> \o/ I always wondered myself why the 0x00001023210 was important to know
devl has joined #ruby
<adaedra> to differentiate objects, I'd say.
<shevy> hmm
chouhoulis has quit [Remote host closed the connection]
lkba has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
RajD has quit [Quit: Bye]
sye has quit [Remote host closed the connection]
baweaver has joined #ruby
sye has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<moeabdol> shevy: do you mind taking a look at my code here
<moeabdol> i'm basically trying to create my own custom array
<moeabdol> i used the forwardable module to delegate certain function to Array
davedev24 has quit [Ping timeout: 240 seconds]
<moeabdol> if I create an npc instance with some array in it and try to call it directly in irb
<moeabdol> i still get the dreaded <NPC:0x00123234>
lavros has quit [Quit: leaving]
fantazo has joined #ruby
lkba_ has quit [Read error: Connection reset by peer]
<shevy> no idea about forwardable, have you not defined your custom .inspect yet?
<moeabdol> shevy: I did
<moeabdol> but still getting the same
<moeabdol> def inspect
<moeabdol> @npc
<moeabdol> end
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
peteykun has quit [Quit: Leaving]
Croves has joined #ruby
<shevy> I don't see this in your code
<moeabdol> yes
<moeabdol> I just modified it and test it when you proposed
<moeabdol> I updated the gist shevy
sye has quit [Remote host closed the connection]
<shevy> ok
<moeabdol> but it still yields the same <NPC:0x0004234>
sye has joined #ruby
<shevy> no
<shevy> that is not right
<moeabdol> i know :/
<shevy> no
<shevy> I mean what you write there that it yields that, is not right
<shevy> I tested it on: http://pastie.org/10536661
<shevy> here is a second try: http://pastie.org/10536664
<shevy> the first returns the array; @npc must be an array; the second one returns 42
<shevy> so it works! now you only have to customize the message you want to appear
Guest47952 has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
<shevy> you can let it return anything
<moeabdol> it works when i remove puts
<moeabdol> and use p instead
<shevy> hmm
dionysus69 has joined #ruby
<havenwood> >> n = Numeric.new; n.to_s[/(?<=0x00)[^>]+/].hex >> 1 == n.object_id
<ruboto> havenwood # => undefined method `hex' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/464787)
<moeabdol> shevy i suppost inspect works now
<moeabdol> cause I have the same result wither i Implement my own inspect or delegate to Arrays inspect
<moeabdol> however when I
Mon_Ouie has joined #ruby
<moeabdol> in rspec
<moeabdol> expect(npc).to eq([1, 1])
<moeabdol> i get
<moeabdol> expected: [1, 1]
pandaant has quit [Remote host closed the connection]
<moeabdol> got: [1, 1]
<moeabdol> and it still fails
davedev24 has joined #ruby
<havenwood> >> RbConfig::CONFIG["arch"]
<ruboto> havenwood # => "i686-linux" (https://eval.in/464788)
<moeabdol> any idea why that's happening
<havenwood> aha
_blizzy_ has quit [Quit: Leaving]
cornerma1 has joined #ruby
<havenwood> I just assume x86_64. Oops.
zenguy_pc has quit [Ping timeout: 250 seconds]
<shevy> moeabdol perhaps this helps: http://pastie.org/10536681
<moeabdol> I'm sure am not comparing agains object id
Voker57 has joined #ruby
<shevy> the first one is a normal "puts x", which displays '42'; the other two variants apparently don't use .to_s
symm- has quit [Ping timeout: 246 seconds]
<moeabdol> true
<moeabdol> very clear thanks
cornerman has quit [Ping timeout: 246 seconds]
cornerma1 is now known as cornerman
kalusn has quit [Remote host closed the connection]
Croves has quit [Quit: Textual IRC Client: www.textualapp.com]
<moeabdol> i still get this
JDiPierro has joined #ruby
<moeabdol> expected [[0, 0], [1, 1], [2, 2]] to match [[0, 0], [1, 1], [2, 2]]
<Ox0dea> moeabdol: Are you using `to_be`?
<shevy> looks identical?
WajidKagzi has joined #ruby
<moeabdol> Ox0dea: i used to eq and to match
<Ox0dea> `to_be` checks object identity, not equality.
<shevy> perhaps there is some implicit to array / to string comparison happening
ni638629 has quit [Remote host closed the connection]
<shevy> do_be_do_be_do!
NeverTired has joined #ruby
<WajidKagzi> i am have access to frontendmasters.com, they provide videos for learning, anyone know how i can scrape this site for all the videos so that I can study offline?
agentmeerkat has quit [Ping timeout: 250 seconds]
<Ox0dea> moeabdol: Maybe consider not subclassing Array for NPC? The relationship isn't obvious at all.
<shevy> two ways come to my mind; one is open-uri, the other is mechanize WajidKagzi
<shevy> or perhaps a combination of both
Blaguvest has joined #ruby
build22 has quit [Ping timeout: 252 seconds]
<WajidKagzi> @shevy any resources? I would have to access it using my username and password
<Ox0dea> WajidKagzi: Are you asking us to assist you in the infringement of copyright and/or the licensing agreement you promised to abide?
goodcodeguy has joined #ruby
<moeabdol> Ox0dea: the thing is I need NPC to be an array with a slight customization (two more variables)
<WajidKagzi> whoa whoa whoa
JDiPierro has quit [Ping timeout: 240 seconds]
<Ox0dea> moeabdol: Right, but maybe reconsider; you probably want a Struct.
<shevy> WajidKagzi have a look at http://www.rubydoc.info/gems/mechanize/Mechanize and http://mechanize.rubyforge.org/ - there is some example for password + user
symm- has joined #ruby
<WajidKagzi> mersi shevy
tvw has joined #ruby
<moeabdol> Ox0dea: can I access the Struct like npc[1]
<Ox0dea> moeabdol: NPC here means "non-player character", right?
daveomcd has joined #ruby
<moeabdol> yes Ox0dea
<shevy> I think a struct requires a specific key... perhaps if the key is 1
<Ox0dea> moeabdol: Okay, so what's *your* second element?
<Ox0dea> Like, what does `moeabdol[1]` evaluate to?
<moeabdol> which represents positions of multiple npcs
<moeabdol> npc represents a team of positions on a grid
<moeabdol> npc[0] first npc position npc[1] second and so on
<moeabdol> i have two main npcs in the game
<moeabdol> each npc is a team
<moeabdol> humans vs zombies
<moeabdol> humans = NPC.new([[0, 0], [1, 1], [2, 2]])
<Ox0dea> Poor naming is causing you to chase the wrong object model, in my opinion.
sye has quit [Quit: Bye!]
<moeabdol> I have part of the program implemented
<Ox0dea> That should be `humans = [Entity.new(0, 0), ...]`, where `Entity = Struct.new(:x, :y)` or some such.
<moeabdol> and is using an array of each team
<moeabdol> the team as a whole have common properties
<moeabdol> like being intelligent or dumb
bMalum has quit [Quit: bMalum]
sye has joined #ruby
<Ox0dea> Arrays are plenty powerful, but this is Ruby; you have all the tools in the world to program at the appropriate level of abstraction, and you should use them.
sye has quit [Remote host closed the connection]
<Ox0dea> Having your core domain objects be "arrays with metadata" is almost masochistic.
sye has joined #ruby
stannard has quit [Remote host closed the connection]
<WajidKagzi> @sessions = current_professional.sessions.map{|session| session.patient}.uniq
mrtomme has quit [Ping timeout: 260 seconds]
Melpaws has quit [Quit: Leaving.]
<WajidKagzi> using uniq as a method to identify duplicates is good enough right? should i make a better method?
mrtomme has joined #ruby
swgillespie has joined #ruby
darkf has quit [Quit: Leaving]
<moeabdol> Ox0dea: i see. thank you I'll probably think of a better design
UtkarshRay has joined #ruby
<Ox0dea> WajidKagzi: #uniq doesn't identify the duplicates, per se; it just removes them.
j3r0 has joined #ruby
nateberkopec has joined #ruby
blue_deref has joined #ruby
Advocation has joined #ruby
<WajidKagzi> but its fail safe right?
<Ox0dea> As long as the elements have sensible definitions of equality, sure.
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<WajidKagzi> aight, cool beans
Fredrich010 has joined #ruby
mgorbach has quit [Quit: ZNC - http://znc.in]
mgorbach has joined #ruby
Arkon has quit [Remote host closed the connection]
conta has quit [Ping timeout: 260 seconds]
Arkon has joined #ruby
skweek has quit [Ping timeout: 252 seconds]
<WajidKagzi> @shevy Mechanize is very cool, thanks.
build22 has joined #ruby
mgorbach has quit [Client Quit]
mgorbach has joined #ruby
WajidKagzi has quit [Quit: WeeChat 1.3]
Arkon has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cheerio]
gambl0re has joined #ruby
rgrmatt has joined #ruby
fgo has joined #ruby
<shevy> \o/
duckpupp1 has joined #ruby
mghaig has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
Psyq has joined #ruby
sepp2k has quit [Quit: Leaving.]
nofxx has joined #ruby
Psyq has quit [Client Quit]
Psyq has joined #ruby
Psyq has quit [Client Quit]
duckpupp1 has quit [Ping timeout: 240 seconds]
rgrmatt has quit [Remote host closed the connection]
Psyq has joined #ruby
<moeabdol> Ox0dea: i found out why it wasn't working
<moeabdol> I just needed to include Enoumrable
kies has joined #ruby
ricer2 has quit [Quit: Caught SystemExit exception.]
<Ox0dea> >> Enumerable.instance_methods.size
<ruboto> Ox0dea # => 51 (https://eval.in/464814)
rgrmatt has joined #ruby
last_staff has joined #ruby
rgrmatt has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb> >> Enumerable.instance_methods.size - Object.instance_methods.size
<ruboto> Papierkorb # => -5 (https://eval.in/464815)
<Papierkorb> >> Enumerable.instance_methods.size - Module.instance_methods.size
<ruboto> Papierkorb # => -46 (https://eval.in/464816)
<Papierkorb> oh, right, there are no other methods in the mod
hpwcd has joined #ruby
<Ox0dea> Or you've conflated methods with instance methods.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Ping timeout: 244 seconds]
yqt has quit [Ping timeout: 265 seconds]
stannard has joined #ruby
devl has quit [Ping timeout: 246 seconds]
davedev2_ has joined #ruby
poguez_ has joined #ruby
codecop has quit [Remote host closed the connection]
gokulnath has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
gokulnath has quit [Client Quit]
stannard has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
iateadonut has quit [Quit: Leaving.]
nertzy has joined #ruby
desmondhume has quit [Remote host closed the connection]
kies has quit [Ping timeout: 260 seconds]
zapata has quit [Quit: WeeChat 1.3]
desmondhume has joined #ruby
shock_one has joined #ruby
zapata has joined #ruby
diegoaguilar has joined #ruby
desmondhume has quit [Ping timeout: 250 seconds]
GBrawl has joined #ruby
GBrawl has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
GBrawl has joined #ruby
shock_one has quit [Ping timeout: 265 seconds]
cdg has quit [Remote host closed the connection]
ThatsNotJack has joined #ruby
swgillespie has joined #ruby
daveomcd has quit [Ping timeout: 240 seconds]
mghaig has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skweek has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
DLSteve has joined #ruby
baweaver has quit [Remote host closed the connection]
mghaig has joined #ruby
nemesit|znc has quit [Ping timeout: 250 seconds]
nofxx has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
nemesit|znc has joined #ruby
kies has joined #ruby
moei has quit [Quit: Leaving...]
mattwildig has quit [Remote host closed the connection]
mghaig has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gi0 has quit [Ping timeout: 252 seconds]
ricer2 has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
mattwashere has joined #ruby
bMalum has joined #ruby
cmoney has joined #ruby
<shevy> Ox0dea the people on ##php talk a lot more than we here on #ruby :(
<havenwood> shevy: We're more concise?
Mia has quit [Read error: Connection reset by peer]
<Zarthus> shevy: ruby googles before they ask? ;)
<shevy> hmm ... I need to observe them for a bit longer before I can judge; apparently they talk about webpages more than we do here
<Zarthus> well, most of the webtalk is in #rubyonrails
weemsledeux has joined #ruby
<Zarthus> and php - in my opinion - is a language mostly purely for websites ;)
minimalism has joined #ruby
hxegon has quit [Ping timeout: 272 seconds]
<Ox0dea> Zarthus: People used to say that about JavaScript.
<Zarthus> Ox0dea: I still do.
<Ox0dea> Zarthus: You're wrong.
<Zarthus> Ox0dea: Yes. unfortunately :(
<Ox0dea> How do you mean?
<shevy> we can boot the linux kernel in javascript!
<Zarthus> the sudden explosion of everything-javascript lead to some particularily monstrous creations
rgrmatt has joined #ruby
fgo has joined #ruby
<Ox0dea> >> Time.now.year == 1995 # Zarthus
<ruboto> Ox0dea # => false (https://eval.in/464829)
Psyq has quit [Changing host]
Psyq has joined #ruby
<Zarthus> I liked it better when it was just contained to my browser.
<Ox0dea> Why?
<shevy> because it's a joke
<Zarthus> I've had an ongoing war with node package manager for several years now
<Zarthus> at some point it filled my servers 25 gig ssd with dependencies
<Ox0dea> Cool story. I thought we were talking about a programming language.
<shevy> why do you like it so much
ricer2 has quit [Quit: Caught SystemExit exception.]
<Ox0dea> There's no good reason to hate it anymore.
kadoppe has quit [Ping timeout: 272 seconds]
ricer2 has joined #ruby
<Zarthus> I don't like the programming language, but I'm not forced to write in it.
duckpupp1 has joined #ruby
<Ox0dea> What about the language don't you like?
<Zarthus> I don't like the packaging system because it doesn't work for me, and I *am* forced to work with it.
<Zarthus> It's just not a language I like writing as a professional web developer or overall
kadoppe has joined #ruby
<Ox0dea> How come?
<Zarthus> I don't have much of a reason. I just don't feel happy when I write javascript.
<havenwood> Can we just make an undefined a function already?
fgo has quit [Ping timeout: 252 seconds]
mattwildig has joined #ruby
hpwcd has quit [Ping timeout: 244 seconds]
yqt has joined #ruby
miah has quit [Remote host closed the connection]
peteyg has joined #ruby
beauby has joined #ruby
<Ox0dea> havenwood: Did you see this? https://eval.in/464832
Advocation has quit [Ping timeout: 240 seconds]
<Ox0dea> I don't actually know what all that memory I'm poking is for, but it works. :P
<havenwood> Ox0dea: Haha, nope didn't see!
devoldmx has joined #ruby
jeffreylevesque has joined #ruby
bMalum has quit [Quit: bMalum]
<Ox0dea> I'm not even writing inside the `struct RBasic` memory either, so it's unclear what exactly is happening.
duckpupp1 has quit [Ping timeout: 250 seconds]
mattwashere has quit [Read error: Connection reset by peer]
hxegon has joined #ruby
Musashi007 has joined #ruby
Fire-Dragon-DoL has joined #ruby
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
al2o3-cr has quit [Ping timeout: 260 seconds]
hxegon has quit [Ping timeout: 240 seconds]
hxegon has joined #ruby
tubuliferous_ has joined #ruby
build22 has quit [Read error: Connection reset by peer]
miah has joined #ruby
build22 has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
TheNet has quit [Quit: Leaving...]
nertzy has quit [Quit: This computer has gone to sleep]
peteyg has quit [Quit: leaving]
fantazo has quit [Ping timeout: 260 seconds]
agentmeerkat has joined #ruby
rgrmatt has quit [Remote host closed the connection]
rzsd has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tubuliferous_ has quit [Ping timeout: 250 seconds]
diegoaguilar has quit [Ping timeout: 240 seconds]
j3r0 has quit [Quit: Leaving]
mattwashere has joined #ruby
axsuul has joined #ruby
kp666 has joined #ruby
rgrmatt has joined #ruby
cmoney has quit [Remote host closed the connection]
conta has joined #ruby
mattwildig has quit [Remote host closed the connection]
mattwashere has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Spami has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
GBrawl has quit [Quit: (null)]
agentmeerkat has quit [Ping timeout: 240 seconds]
diegoaguilar has joined #ruby
lele has quit [Ping timeout: 240 seconds]
jas02 has joined #ruby
conta has quit [Quit: Leaving]
Marsupermammal has joined #ruby
jeffreylevesque has quit [Ping timeout: 260 seconds]
ebbflowgo has joined #ruby
jwaldrip has joined #ruby
al2o3-cr has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
skweek has joined #ruby
ciampix has joined #ruby
jas02 has quit [Ping timeout: 264 seconds]
ciampix_ has joined #ruby
ciampix_ has quit [Remote host closed the connection]
ciampix has quit [Client Quit]
inteq has joined #ruby
mattwashere has joined #ruby
ciampix has joined #ruby
baweaver has joined #ruby
ciampix has quit [Remote host closed the connection]
beauby has quit [Ping timeout: 240 seconds]
ciampix has joined #ruby
ciampix has quit [Remote host closed the connection]
stamina has joined #ruby
ciampix has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
lele has joined #ruby
baweaver has quit [Ping timeout: 265 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
mattwash_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ebbflowgo has joined #ruby
mattwash_ has quit [Read error: Connection reset by peer]
beauby has joined #ruby
idefine has joined #ruby
mattwash_ has joined #ruby
towski_ has joined #ruby
mattwas__ has joined #ruby
mattwildig has joined #ruby
mattwashere has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
nateberkopec has quit [Quit: Leaving...]
pdoherty has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has quit [Client Quit]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adac has quit [Ping timeout: 240 seconds]
pdoherty has joined #ruby
mattwash_ has quit [Ping timeout: 265 seconds]
axsuul has quit [Ping timeout: 260 seconds]
SenpaiSilver has quit [Quit: Leaving]
SenpaiSilver has joined #ruby
User458764 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
lkba has joined #ruby
ss_much has joined #ruby
fgo has joined #ruby
towski_ has quit [Remote host closed the connection]
idefine has quit [Read error: Connection reset by peer]
idefine has joined #ruby
cicloid has joined #ruby
ESpiney has quit [Ping timeout: 260 seconds]
duckpupp1 has joined #ruby
beauby has quit [Ping timeout: 246 seconds]
fgo has quit [Ping timeout: 260 seconds]
Drakevr has quit [Changing host]
Drakevr has joined #ruby
Coldblackice has joined #ruby
arup_r has quit [Quit: Leaving]
cmoney has joined #ruby
duckpupp1 has quit [Ping timeout: 260 seconds]
Fredrich010 has quit [Remote host closed the connection]
SenpaiSilver has quit [Quit: Leaving]
SenpaiSilver has joined #ruby
northfurr has quit [Quit: northfurr]
mattwas__ has quit [Remote host closed the connection]
northfurr has joined #ruby
SenpaiSilver has quit [Client Quit]
SenpaiSilver has joined #ruby
towski_ has joined #ruby
beauby has joined #ruby
mattwashere has joined #ruby
shinnya has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Rickmasta has joined #ruby
towski_ has quit [Remote host closed the connection]
shock_one has joined #ruby
dionysus69 has joined #ruby
Rickmast_ has joined #ruby
mattwashere has quit [Remote host closed the connection]
Rickmast_ has quit [Max SendQ exceeded]
fedexo has joined #ruby
PaulCapestany has quit [Quit: .]
Fredrich010 has joined #ruby
Rickmast_ has joined #ruby
northfurr has quit [Quit: northfurr]
Rickmasta has quit [Ping timeout: 250 seconds]
shock_one has quit [Ping timeout: 264 seconds]
absolutejam has quit [Ping timeout: 252 seconds]
northfurr has joined #ruby
PaulCapestany has joined #ruby
Pupeno has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
bMalum has joined #ruby
to_json has joined #ruby
to_json has joined #ruby
krainboltgreene has left #ruby [#ruby]
tmtwd has joined #ruby
yardenbar has quit [Ping timeout: 272 seconds]
k3asd` has joined #ruby
kalusn has joined #ruby
charliesome has joined #ruby
jas02 has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest97029
DiCablo has joined #ruby
tubuliferous_ has quit [Ping timeout: 265 seconds]
karapetyan has quit [Remote host closed the connection]
codecop has joined #ruby
karapetyan has joined #ruby
charliesome has quit [Client Quit]
Jardayn has joined #ruby
blueOxigen has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
JDiPierro has joined #ruby
jas02 has quit [Ping timeout: 240 seconds]
sankaber has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
bluOxigen has quit [Ping timeout: 240 seconds]
rgtk has quit [Remote host closed the connection]
cicloid has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
synthroid has quit []
karapetyan has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
northfurr has joined #ruby
karapetyan has joined #ruby
bMalum has quit [Quit: bMalum]
JDiPierro has quit [Ping timeout: 265 seconds]
VeryBewitching has joined #ruby
hwcd has joined #ruby
Guest97029 has quit [Read error: Connection reset by peer]
blueOxigen has quit [Ping timeout: 260 seconds]
agentmeerkat has joined #ruby
bMalum has joined #ruby
karapetyan has quit [Ping timeout: 246 seconds]
mattwashere has joined #ruby
northfurr has quit [Quit: northfurr]
harumph has joined #ruby
northfurr has joined #ruby
bodgix has joined #ruby
<harumph> dumb question: after each request a Sinatra app logs something like "GET / HTTP/1.1 200 62782 2.34"
<harumph> what is the second number refer to?
agentmeerkat has quit [Ping timeout: 250 seconds]
<harumph> the 62782
<adaedra> I'd say the size of the response
to_json has quit [Quit: Leaving.]
Rollabunna has quit [Quit: Leaving...]
<harumph> adaedra: that makes sense
tubuliferous_ has joined #ruby
Oog has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
unrar has quit [Quit: Leaving]
hwcd has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
Arkon has joined #ruby
cdg has joined #ruby
speakingcode has quit [Ping timeout: 240 seconds]
weemsledeux has joined #ruby
charliesome has joined #ruby
Oog has quit []
nateberkopec has joined #ruby
charliesome has quit [Client Quit]
skcin7 has joined #ruby
ricer2 has quit [Quit: Caught SystemExit exception.]
ricer2 has joined #ruby
Fire-Dragon-DoL has quit [Remote host closed the connection]
dh64 has joined #ruby
gizmore has joined #ruby
ESpiney has joined #ruby
Oog has joined #ruby
sankaber has quit [Remote host closed the connection]
mattwashere has quit [Remote host closed the connection]
sankaber has joined #ruby
BubonicPestilenc has joined #ruby
<BubonicPestilenc> hey all
<BubonicPestilenc> I'm interested, are there any "new"/"advanced" alternatives to nokogiri?
<adaedra> oga!
<Ox0dea> Oga!
mghaig has joined #ruby
<BubonicPestilenc> got it
mghaig has quit [Client Quit]
<BubonicPestilenc> tyvm :)
BubonicPestilenc has quit [Client Quit]
fgo has joined #ruby
Arkon has quit [Remote host closed the connection]
Arkon has joined #ruby
duckpupp1 has joined #ruby
mattwashere has joined #ruby
jatb has quit [Remote host closed the connection]
bruno- has joined #ruby
bruno- is now known as Guest27838
fgo has quit [Ping timeout: 252 seconds]
Arkon has quit [Ping timeout: 240 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpupp1 has quit [Ping timeout: 265 seconds]
tubuliferous_ has quit [Ping timeout: 240 seconds]
Arkon has joined #ruby
nibbo has quit [Ping timeout: 272 seconds]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maxz has joined #ruby
<Ox0dea> GitHub's raw diff API supports ?w and ?ts parameters for quashing whitespace and adjusting the tab size; are there any others?
hxegon has quit [Ping timeout: 240 seconds]
harumph has quit [Ping timeout: 244 seconds]
Arkon has quit [Remote host closed the connection]
<Ox0dea> They're using, essentially, `git diff --word-diff-regex=.` to display the precise differences in the UI; it'd be nice if the raw diffs could be coerced into doing the same.
s00pcan has quit [Ping timeout: 255 seconds]
Arkon_ has joined #ruby
swgillespie has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Trieste has quit [Ping timeout: 264 seconds]
banister has joined #ruby
csaunders has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 244 seconds]
mghaig has joined #ruby
mghaig has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
segfalt__ has joined #ruby
csaunders has joined #ruby
ricer2 has quit [Quit: Caught SystemExit exception.]
Trieste has joined #ruby
tricktricktrck has quit [Remote host closed the connection]
ricer2 has joined #ruby
millerti has joined #ruby
rgrmatt has quit [Remote host closed the connection]
CustosLim3n has joined #ruby
cmoney has quit [Read error: Connection reset by peer]
segfalt has quit [Ping timeout: 264 seconds]
northfurr has quit [Quit: northfurr]
Trynemjoel has joined #ruby
devoldmx has quit [Remote host closed the connection]
jwaldrip has quit [Quit: Be back later ...]
northfurr has joined #ruby
s00pcan has joined #ruby
jwaldrip has joined #ruby
CustosLimen has quit [Ping timeout: 264 seconds]
moei has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
casadei_ has quit []
northfurr has quit [Client Quit]
twistedpixels has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
twistedpixels has joined #ruby
northfurr has joined #ruby
hxegon has joined #ruby
ricer2 has quit [Quit: Caught SystemExit exception.]
dtordable has joined #ruby
constantinexvi has quit [Ping timeout: 264 seconds]
dtordable has quit [Client Quit]
ricer2 has joined #ruby
hmsimha_ has joined #ruby
Trieste has quit [Ping timeout: 264 seconds]
diegoaguilar has quit [Ping timeout: 240 seconds]
constantinexvi has joined #ruby
Arkon_ has quit [Remote host closed the connection]
Musashi007 has joined #ruby
dtordable has joined #ruby
Trieste has joined #ruby
Arkon has joined #ruby
rgrmatt has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
ekinmur has joined #ruby
beauby has quit [Read error: Connection reset by peer]
Jamo has quit [Ping timeout: 264 seconds]
Jamo has joined #ruby
mattwashere has quit [Remote host closed the connection]
infernix has quit [Ping timeout: 264 seconds]
shock_one has joined #ruby
dorei has joined #ruby
mattwashere has joined #ruby
Arkon has quit [Ping timeout: 240 seconds]
Trieste has quit [Ping timeout: 264 seconds]
dtordable has quit [Quit: leaving]
borkdude has quit [Ping timeout: 264 seconds]
bMalum has quit [Quit: bMalum]
trosborn has joined #ruby
dtordable has joined #ruby
Azure has joined #ruby
borkdude_ has joined #ruby
Trieste has joined #ruby
harumph has joined #ruby
diegoaguilar has joined #ruby
Xeago has joined #ruby
nibbo has joined #ruby
dtordable has quit [Quit: leaving]
dtordable has joined #ruby
harumph has quit [Ping timeout: 265 seconds]
kies has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
andykingking has joined #ruby
Xeago has quit [Remote host closed the connection]
andykingking has left #ruby [#ruby]
baweaver has joined #ruby
infernix has joined #ruby
rgrmatt has quit [Remote host closed the connection]
dtordable has quit [Client Quit]
sepp2k has joined #ruby
beauby has joined #ruby
dtordable has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
hmsimha_ has quit [Remote host closed the connection]
magikid has joined #ruby
trosborn has quit [Quit: trosborn]
baweaver has quit [Ping timeout: 240 seconds]
<cek> darlings, where do I find gems/2.1.0/extensions/x86_64-linux/2.1.0-static/ dir in gem config? RbConfig::CONFIG doesn't know a thing about it. I assume its rubygems field.
moeabdol has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
<adaedra> `gem env` may hold the path you're looking for.
gambl0re has quit [Ping timeout: 250 seconds]
<cek> it doesn't
beauby has quit [Ping timeout: 240 seconds]
<bigmac> im trying to generate 2 arrays from repeated_permutation and combine into a hash
<bigmac> here is the best example i can come up with
mattwashere has quit [Remote host closed the connection]
brendan- has joined #ruby
<bigmac> the problem i have run into is when i try to increase the size of this duel repeated_permutation
mattwashere has joined #ruby
<bigmac> buffer over flow happens and ruby terminates
<bigmac> here is where it happens
<bigmac> loot+=cash.repeated_permutation(cnt).map(&:join)
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: leaving]
dopie has quit [Quit: Leaving]
stamina has quit [Ping timeout: 250 seconds]
<Ox0dea> bigmac: You've been at this for weeks. I bet if you described *what* you're trying to do instead of all this *how*, you could move on to the next part.
I has joined #ruby
I has quit [Remote host closed the connection]
dopie has joined #ruby
Fire-Dragon-DoL has joined #ruby
<bigmac> i have been at this for weeks lol
<apeiros> bigmac: a buffer overflow means it's a bug in ruby and should be reported. however, you realize how much data 4**n permutated values produce?
<bigmac> yes, i understand
<havenwood> bigmac: For a little fun: ['y', 'x'].repeated_permutation(10).with_index.map { |a, i| [a.join, i.to_s(4).tr('0123', 'abcd')] }.to_h
<apeiros> you should probably look into figuring a more efficient way to get what you want
Arkon has joined #ruby
ReK2 has quit [Remote host closed the connection]
Melpaws has joined #ruby
<apeiros> btw., you've got a weird way to write %w[a b c d]
minimalism has joined #ruby
<apeiros> (or [*"a".."d"] if you want to retain the ability to dynamically change the chars)
northfurr has joined #ruby
maxz has quit [Quit: Textual IRC Client: www.textualapp.com]
<bigmac> havenwood: thanks you for your example
solocshaw has joined #ruby
dtordable has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
<apeiros> havenwood: I wonder - with that much data, it might actually pay off to use each_with_object instead of map.to_h
<havenwood> apeiros: Aye, I started in that direction. I'm not sure!
duckpupp1 has joined #ruby
<havenwood> bigmac: you're welcome
Glenny has quit [Remote host closed the connection]
dtordable has joined #ruby
Pupeno has quit [Remote host closed the connection]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpupp1 has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
darthdeus has left #ruby ["Leaving"]
mattwashere has quit [Read error: Connection reset by peer]
<shevy> apeiros that's a neat trick the * thing
nateberkopec has quit [Ping timeout: 250 seconds]
symm- has quit [Quit: Leaving...]
<SirFunk> Anyone know if there is a way to share variables between workers in unicorn?
<Ox0dea> >> [*ObjectSpace.each_object].sample 3 # shevy: You never noticed it here?
<ruboto> Ox0dea # => [#<Encoding:IBM775>, " s.test_files = [\"test/psych/handlers/test_recorder.rb\", \"test/psych/json/ ...check link for more (https://eval.in/464840)
<Ox0dea> Hey, not all Strings!
<shevy> you play russian roulette
northfurr has quit [Quit: northfurr]
<shevy> you also pulled out an IBM encoding
<shevy> I hope you do feel appropriately guilty now
trosborn has joined #ruby
northfurr has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
lxsameer has quit [Quit: Leaving]
Pupeno has joined #ruby
northfurr has quit [Client Quit]
rgrmatt has joined #ruby
northfurr has joined #ruby
bigmac has quit [Ping timeout: 255 seconds]
symm- has joined #ruby
northfurr has quit [Client Quit]
rodfersou has quit [Quit: leaving]
yosiat has joined #ruby
yosiat has quit [Client Quit]
northfurr has joined #ruby
banister has joined #ruby
rgrmatt has quit [Remote host closed the connection]
framling has joined #ruby
northfurr has quit [Client Quit]
Psyq has quit [Quit: Conversation terminated]
<shevy> if I have a big string, can I find the position of a substring? I need to read in all from the start of a text file, until the occurance of a specific substring, similar to __END__ but custom
mattwashere has joined #ruby
northfurr has joined #ruby
<Ox0dea> >> 'foobar'.index 'bar' # shevy?
<ruboto> Ox0dea # => 3 (https://eval.in/464841)
andykingking1 has joined #ruby
<Ox0dea> Better would be to say something like `line = file.gets until line.chomp == '__END__'` or some such.
andykingking1 has left #ruby [#ruby]
<Ox0dea> And then the file will be open and ready to read from after the __END__.
mattwashere has quit [Remote host closed the connection]
<shevy> hmm
<nofxx> ah... sipping a just brewed coffee... italian
<shevy> yeah I guess .index works \o/
<adaedra> ?coffee
<ruboto> here's a coffee, you seem to need it: ☕
kirun has quit [Quit: Client exiting]
magikid has quit [Quit: Leaving]
<shevy> this bot is really helpful in all situations of life
fgo has quit [Ping timeout: 240 seconds]
skcin7 has quit [Quit: Textual IRC Client: www.textualapp.com]
<nofxx> adaedra, ty... 1 month w/o espresso. Machine is repairing. Bad logistics... need to have 2 espresso machines ;)
<nofxx> but italian is nice too... dunno how it's called in your country.... moka, italian, bialetti....
<adaedra> I can't say I understand you, I don't drink coffee.
Arkon has quit [Remote host closed the connection]
<nofxx> adaedra, qm nao bebe café bom sujeito não é! (who doest drink coffee isn't a good fellow)
<nofxx> sounds better in portuguese ;)
<Ox0dea> adaedra: I can't say I understand you.
swgillespie is now known as swgillespie[GT]
<nofxx> heheh
alexherbo2 has quit [Quit: WeeChat 1.3]
<adaedra> nofxx: too bad.
bigmac has joined #ruby
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
northfurr has quit [Client Quit]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> shevy: or just copy my scriptfile project from github and replace the token
northfurr has joined #ruby
northfurr has quit [Client Quit]
northfurr has joined #ruby
northfurr has quit [Client Quit]
northfurr has joined #ruby
northfurr has quit [Client Quit]
framling has quit [Remote host closed the connection]
northfurr has joined #ruby
rgtk has joined #ruby
northfurr has quit [Client Quit]
northfurr has joined #ruby
stannard has joined #ruby
northfurr has quit [Client Quit]
peteyg has joined #ruby
last_staff has quit [Quit: last_staff]
northfurr has joined #ruby
kalusn has quit []
rgtk has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
beauby has joined #ruby
stannard has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Quit: Musashi007]
Arkon has joined #ruby
<apeiros> havenwood: hm, just occurred to me that `['y', 'x'].repeated_permutation(10).with_index.map { |a, i| [a.join, i.to_s(4).tr('0123', 'abcd')] }.to_h` is a very expensive way to perform what's essentially just a base transformation :)
karapetyan has joined #ruby
Guest27838 has quit [Ping timeout: 272 seconds]
shock_one has quit [Remote host closed the connection]
<Ox0dea> apeiros: That's why I asked bigmac to clarify what he's trying to do; there is absolutely a better way to do whatever it is.
<apeiros> value = key.tr('yx', '01').to_i(2).to_s(4).tr('0-3','a-d')
beauby has quit [Ping timeout: 260 seconds]
gard_ has joined #ruby
<apeiros> Ox0dea: sure. same reason I said they should look into more efficient ways
<havenwood> i was just excited to use base 4
rbennacer has joined #ruby
<apeiros> you're so excited
<apeiros> you just can't hide it
<apeiros> you're about to lose control and I think you like it :D
<apeiros> damn disco sounds…
skweek has quit [Ping timeout: 246 seconds]
<shevy> I have a question, since hashes seem to keep track of the insertion order nowadays (which I find useful anyway) - does anyone know what the main argument was to have hashes retain the insertion order?
<apeiros> shevy: that it is often useful and relatively cheap
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros> and that to manually do it outside of hashes is much more expensive
<shevy> ah
<shevy> ok
gard_ has quit [Ping timeout: 252 seconds]
bigmac__ has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has joined #ruby
<banister> Mon_Ouie 'alut
to_json has joined #ruby
to_json has quit [Changing host]
to_json has joined #ruby
but3k4 has joined #ruby
duckpupp1 has joined #ruby
mattwashere has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
dannluciano has joined #ruby
riotjone_ has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
Arkon has quit [Remote host closed the connection]
gambl0re has joined #ruby
goodcodeguy has joined #ruby
Arkon has joined #ruby
DLSteve has joined #ruby
jas02 has joined #ruby
riotjon__ has quit [Ping timeout: 240 seconds]
mattwildig has quit [Remote host closed the connection]
nateberkopec has joined #ruby
mattwashere has quit [Read error: Connection reset by peer]
build22 has quit [Read error: Connection reset by peer]
build22 has joined #ruby
build22 has quit [Client Quit]
fedexo has joined #ruby
ESpiney has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Quit: ciao.]
Fire-Dragon-DoL has joined #ruby
to_json has quit [Quit: Leaving.]
Fire-Dragon-DoL has quit [Client Quit]
Fire-Dragon-DoL has joined #ruby
jdawgaz has quit [Quit: Textual IRC Client: www.textualapp.com]
jas02 has quit [Ping timeout: 260 seconds]
nateberkopec has quit [Ping timeout: 255 seconds]
ivanskie has joined #ruby
jdawgaz has joined #ruby
Arkon has quit [Remote host closed the connection]
build22 has joined #ruby
charliesome has joined #ruby
Jackneill has quit [Ping timeout: 252 seconds]
k3asd` has quit [Ping timeout: 246 seconds]
lukaszes has joined #ruby
beagles has quit [Ping timeout: 255 seconds]
Vile` has quit [Ping timeout: 255 seconds]
mattwashere has joined #ruby
b3nt_pin has joined #ruby
b3nt_pin is now known as Guest24819
fgo has joined #ruby
Vile` has joined #ruby
rbennacer has quit [Remote host closed the connection]
bb010g has joined #ruby
blackmesa has quit [Quit: WeeChat 1.3]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
fgo has quit [Ping timeout: 246 seconds]
duncannz has joined #ruby
SCHAAP137 has joined #ruby
ruurd has joined #ruby
mattwashere has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
mattwashere has joined #ruby
_blizzy_ has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DiCablo has quit [Ping timeout: 272 seconds]
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
devl has joined #ruby
ruurd has joined #ruby
saber has joined #ruby
saber is now known as Guest32011
Guest32011 is now known as saber01234
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
trosborn has quit [Quit: trosborn]
QORRiE has joined #ruby
bruno- has joined #ruby
NeverTired has quit [Quit: Connection closed for inactivity]
bruno- is now known as Guest95143
FernandoBasso has quit [Quit: WeeChat 1.3]
chipotle has joined #ruby
<shevy> anyone happens to have some experience with youtube + ruby bindings? aka how simple would it be to query the title of a youtube video from the commandline through a ruby script, if all that one has is the URL to the youtube video in question?
freerobby has joined #ruby