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