nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
mroutis has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
<al2o3-cr>
phaul: what repl you tesinging in?
kurko__ has joined #ruby
<al2o3-cr>
irb/pry/?
kurko_ has quit [Ping timeout: 240 seconds]
<al2o3-cr>
i got two mins
<phaul>
no repl. just create 2 files, x.rb; y.rb. y.rb require 'x'; local vars defined in x are not available in y
<phaul>
executing ruby y.rb
Xiti has joined #ruby
<phaul>
hm, in fact y is not executing top level either.
TvL2386 has quit [Ping timeout: 260 seconds]
<phaul>
if I explcitly use TOPLEVEL + get / set I can communicate local vars across files. but if I just assume that y is running in the TOPLEVEL context accessing local vars set in the other file fails
TvL2386 has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
wolfshappen has quit [Ping timeout: 246 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
nowhere_man has joined #ruby
<phaul>
we shall crack this mystery tomorrow :) cya all
wolfshappen has joined #ruby
<mroutis>
bye, phaul
xfbs has quit [Read error: Connection reset by peer]
phaul has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
nchambers has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xfbs has joined #ruby
MoritaShinobu has joined #ruby
ansraliant has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
jcarl43 has quit [Quit: WeeChat 2.3]
discopatrick has quit [Quit: Connection closed for inactivity]
<ph88>
don't i need to do rvm get head before rvm install ruby ?
<havenwood>
ph88: that ^ command should have already fetched master
<havenwood>
iir
<ph88>
i see
<havenwood>
ph88: then sanity check: rvm list
<ph88>
all good now
<ph88>
thx for the help
<havenwood>
nice, you're welcome
openstruct has joined #ruby
Dimik has joined #ruby
<openstruct>
I'm in a situation where I need to use two versions of the elasticsearch gem to write to two instances of elasticsearch that are different versions. Is my best bet to fork the gem and rename it to something else so that I can use them both?
esrse has joined #ruby
bhaak has joined #ruby
akosednar has quit [Ping timeout: 245 seconds]
jp has joined #ruby
akosednar has joined #ruby
marmotini_ has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
mroutis has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Quit: AJA4350]
pharma_joe has quit [Ping timeout: 244 seconds]
m0nty0ne has joined #ruby
arekushi has quit [Ping timeout: 276 seconds]
dnewkerk has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
tdy has joined #ruby
dogweather has quit [Quit: dogweather]
Puffball has joined #ruby
evdubs_ has quit [Quit: Leaving]
Dimik has quit [Ping timeout: 246 seconds]
<lupine>
openstruct: I'd expect that to get very messy, very quicklyt
<lupine>
can you split into two separate processes, one for each version, each with their own Gemfile ?
<openstruct>
lupine: Was mostly a temporary idea while I do the upgrade, but I'm an hour into renaming elasticsearch and it is quite messy.
<openstruct>
I suppose I could have two processes running...
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
openstruct has quit [Ping timeout: 256 seconds]
evdubs has joined #ruby
akaiiro has quit [Remote host closed the connection]
zacts has joined #ruby
mangold has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m0nty0ne is now known as KoBuzz
dnewkerk has joined #ruby
tdy has quit [Ping timeout: 264 seconds]
dellavg_ has joined #ruby
KoBuzz is now known as m0nty0ne
xfbs has joined #ruby
xfbs has quit [Client Quit]
Inline has quit [Quit: Leaving]
xfbs has joined #ruby
kapil____ has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
danguita has joined #ruby
mroutis has joined #ruby
lytol_ has quit [Remote host closed the connection]
mangold has joined #ruby
m0nty0ne is now known as PellIT
xfbs has quit [Quit: afk]
marmotini_ has joined #ruby
bga57 has quit [Quit: Leaving.]
nowhereman has joined #ruby
nowhereman is now known as Guest75806
nowhere_man has quit [Read error: Connection reset by peer]
dogweather has joined #ruby
tdy has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
za1b1tsu has joined #ruby
arescorpio has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
dellavg_ has quit [Ping timeout: 252 seconds]
Vashy has left #ruby ["Leaving"]
jetchisel has quit [Ping timeout: 240 seconds]
marmotini_ has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
SteenJobs has joined #ruby
agent_white has quit [Quit: leaving]
bga57 has joined #ruby
mroutis has quit [Remote host closed the connection]
reber has joined #ruby
NpcOrangeManBad is now known as OrangeManBad
aupadhye has joined #ruby
OrangeManBad is now known as NpcOrangeManBad
NpcOrangeManBad is now known as OrangeManBad
Emmanuel_Chanel has quit [Quit: Leaving]
venmx has joined #ruby
venmx has quit [Ping timeout: 268 seconds]
mangold has joined #ruby
voolik has joined #ruby
SuperL4g has joined #ruby
Sup3rLurk has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has joined #ruby
SuperLag has quit [Ping timeout: 245 seconds]
SuperLag has joined #ruby
za1b1tsu has quit [Ping timeout: 268 seconds]
sirecote has quit [Ping timeout: 272 seconds]
cpallares has quit [Ping timeout: 272 seconds]
sirecote has joined #ruby
cpallares has joined #ruby
cxl has quit [Quit: bye]
mangold has quit [Quit: This computer has gone to sleep]
dionysus69 has joined #ruby
voolik has quit [Quit: Taking a nap...]
SteenJobs has quit [Quit: SteenJobs]
dionysus69_ has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
dionysus69_ is now known as dionysus69
cloaked1 has joined #ruby
Guest75806 has quit [Ping timeout: 250 seconds]
voolik has joined #ruby
clemens3 has joined #ruby
cloaked1 has quit [Ping timeout: 264 seconds]
drbrain has quit [Ping timeout: 268 seconds]
drbrain has joined #ruby
Tuor has joined #ruby
phaul has joined #ruby
DoubleMalt has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
esrse has quit [Ping timeout: 264 seconds]
mangold has joined #ruby
za1b1tsu has joined #ruby
mikecmpbll has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
dogweather has quit [Quit: dogweather]
dogweather has joined #ruby
dogweather has quit [Client Quit]
dogweather has joined #ruby
negev has joined #ruby
zapata has joined #ruby
danguita has quit [Quit: Connection closed for inactivity]
<dionysus69>
I converted it above and then I also checked later on second line it is also Bdecimal
<dionysus69>
incorrect i is being returned
<dionysus69>
it should return 5 or 6 instead of 1
<dionysus69>
in the incorrect example
clemens3 has quit [Ping timeout: 252 seconds]
<phaul>
but isnt the issue that by that time you convert to bigdecimal you already lost some precision with floats?
<dionysus69>
that's not the issue though in this particular example, it is regex :S
whysthatso has quit [Quit: whysthatso]
beowuff has joined #ruby
eddof13 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
nchambers has quit [Quit: WeeChat 2.2]
ph88 has quit [Ping timeout: 264 seconds]
akaiiro has joined #ruby
<Cork>
anybody know how to parse a OpenSSL::PKey::EC key from a byte string?
voolik has quit [Ping timeout: 246 seconds]
xuanrui has quit [Remote host closed the connection]
<Cork>
OpenSSL::PKey::EC.new doesn't seam capable of parsing
DTZUZU has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
<juri_>
part
Guest75806 has joined #ruby
juri_ has left #ruby [#ruby]
blackmesa has joined #ruby
dbugger_ has joined #ruby
beefjoe has joined #ruby
<ineb>
urgh how would i imeplement a long running task that returns something and reports its status? ret = task.run { |progress| p progress }
<ineb>
in this case its a push based design and if 'p progress' blocks, everything blocks.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ineb>
does some sort of async yield makes sense here? or does make a pull based approach more sense?
<ineb>
job_status = job.run; while job_status.finished?; p status.progress; job_status.value
<ineb>
or something like that
<baweaver>
ineb: y'mean until job finished?
SteenJobs has quit [Quit: SteenJobs]
<baweaver>
Set a variable in the loop that you define above it.
<baweaver>
Blocks set up a lexical closure. That's fancy talk for saying they remember the area around where they were defined, and if a variable is defined outside, it can set stuff to it.
<baweaver>
Otherwise that new variable is only in the block, and it's not getting out.
<baweaver>
Don't remember if while and until work like that though
<phaul>
no whle and until are not scopes
Tuor has quit [Quit: Konversation terminated!]
<baweaver>
Stuck in Rambda land again
<baweaver>
n = 5; while n > 0; x = n; n -= 1; end; p x
akem__ has quit [Remote host closed the connection]
havenwood has joined #ruby
akem__ has joined #ruby
knight_ has quit [Quit: No Ping reply in 180 seconds.]
mikecmpbll has quit [Quit: inabit. zz.]
agrecascino has joined #ruby
<phaul>
interesting... ruby[bot] did not even bother apologising this time.
<phaul>
>> 1
<ruby[bot]>
phaul: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<phaul>
there we go :)
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has joined #ruby
xfbs has joined #ruby
eddof13 has quit [Quit: eddof13]
leitz has joined #ruby
tdy has joined #ruby
<zenspider>
ugh
eddof13 has joined #ruby
venmx has joined #ruby
<baweaver>
zenspider: ugh?
Dimik has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
clemens3 has quit [Ping timeout: 272 seconds]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dmitch has joined #ruby
dmitch has quit [Client Quit]
<phaul>
i was just checking out hanami this afternoon, which led me to read most of dry-ruby docs. I'm not convinced. I mean,, I was doing haskell before. so most concepts are familiar to me. But some things just feel so over-engineered in Ruby in those examples.
Creatornator has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
<phaul>
the dry-matcher.. the dependency container thing.. It's all about whats fashionable, but I dont like the trend
<phaul>
funny how rails is the opposite of what the cool kids are doing these days.
bmurt has joined #ruby
<phaul>
good old fahsioned DSL in your classes :D
orbyt_ has quit [Read error: Connection reset by peer]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul>
I think we are heading somewhere with functional to where we had been with UML in the 2000s
marmotini has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
juria_roberts has joined #ruby
<juria_roberts>
How does ruby provide configure_args and envroot?
nexraf1_ has quit [Ping timeout: 260 seconds]
Creatornator has joined #ruby
<baweaver>
juria_roberts: for?
* baweaver
doesn't know what either of those are
<zenspider>
juria_roberts: not sure your words/question make sense...
<zenspider>
phaul: I tend to agree
<baweaver>
The problem with most FP gems in Ruby is that they try and be Haskell
<zenspider>
I try as much as possible to stick to "do the simplest thing that can possibly work" and that pushes back heavy on all of the dry-* packages (last I looked)
<baweaver>
It's a flawed premise from the start, as Ruby has a ton of power to do similar things in its own ways
akem__ has quit [Remote host closed the connection]
<baweaver>
That said, making an eloquent DSL / syntax for it is danged hard.
<phaul>
yeah, nice to hear Im not alone
Puffball has quit [Remote host closed the connection]
akem__ has joined #ruby
<zenspider>
phaul: calibrate accordingly... I'm an edge case. :P
<baweaver>
and I'm a basket case
Puffball has joined #ruby
<phaul>
Im in good company then
<phaul>
fit right in
<baweaver>
I've mentioned some of this to them in the past, they're aware, it's just a really hard problem to come up with a good API for it
<phaul>
juria_roberts: I don't know these things either, but Im guessing this is a packaging question? like configure_args was what was used to build ruby binary?
<hays>
anyone do chruby as a local/user install only?
<hays>
i guess just build it with --prefix=$HOME or something?
ellcs has joined #ruby
<hays>
one thing i like about rbenv is you can tuck it away in a user directory
orbyt_ has joined #ruby
cliluw has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
im0nde has quit [Ping timeout: 250 seconds]
xuanrui has quit [Ping timeout: 276 seconds]
<havenwood>
hays: I use a home dir for chruby.
eddof13 has quit [Quit: eddof13]
<havenwood>
hays: With ruby-install, the default is ~/.rubies if you don't use sudo.
<hays>
you just put it in $HOME/.local?
<hays>
for chruby itself
<havenwood>
hays: ah, I see what you're saying - no, I haven't bothered with that but it does work to prefix, like you suggested
<zenspider>
a tarball? oh... because bootstrap issue if it were a gem?
<zenspider>
still... why not a git checkout?
<zenspider>
man... I'm trying to profile and optimize this code and while the profile is pointing me at things worth working on and my microbenchmarks are definitely showing improvements... the actual improvement on the top level benchmark is ... zero