duderonomy has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
auteroche has joined #ruby
drincruz_ has quit [Ping timeout: 258 seconds]
ctOS has quit [Quit: Connection closed for inactivity]
NODE has quit [Quit: changing servers]
itarato has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Nicmavr has joined #ruby
itarato has quit [Ping timeout: 268 seconds]
auteroche has quit [Quit: leaving]
_whitelogger has joined #ruby
drincruz_ has joined #ruby
s2013 has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
s2013 has quit [Ping timeout: 268 seconds]
wallace_mu has quit [Ping timeout: 258 seconds]
ivanskie has joined #ruby
<uplime>
havenwood: whenever you're around, what would be the best way to tuse timers with async?
bkuhlmann has quit []
dinfuehr has quit [Ping timeout: 258 seconds]
dinfuehr has joined #ruby
cthulchu has joined #ruby
fphilipe_ has joined #ruby
AJA4350 has quit [Quit: AJA4350]
fphilipe_ has quit [Ping timeout: 248 seconds]
cincy_kal has joined #ruby
<cincy_kal>
I am running into an issue with bundler. I do a bundle install and all goes well. When I try to run my app, it says that it can't find gem bcrypt. When I inspect the /usr/local/bundle/gems directory, the bcrypt gem is there and the proper version. however when i run bundle check, it says bcrypt is not installed. Out of 25 gems, it does this with
<cincy_kal>
only 4 of them.
<cincy_kal>
I'm having a hard time understanding how it can find some but not others as they are all installed to the same bundle
SeepingN has quit [Quit: The system is going down for reboot NOW!]
greypack has quit [Read error: Connection reset by peer]
greypack has joined #ruby
_whitelogger has joined #ruby
code_zombie has quit [Read error: Connection reset by peer]
code_zombie has joined #ruby
cincy_kal has quit [Remote host closed the connection]
markopasha has quit [Ping timeout: 240 seconds]
xipho[m] has joined #ruby
RiPuk has joined #ruby
RiPuk_ has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
jenrzzz has joined #ruby
wallace_mu has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
wallace_mu has quit [Ping timeout: 260 seconds]
Inline has quit [Quit: Leaving]
code_zombie has quit [Quit: Leaving]
pablo_ has joined #ruby
<pablo_>
Hi, anyone here is familiar with the async gem?
Tikku has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pablo_ has quit [Quit: Leaving]
shah^ has joined #ruby
Tikku has quit [Quit: Leaving]
bambanx has quit [Ping timeout: 265 seconds]
cthulchu has quit [Read error: Connection reset by peer]
houhoulis has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 250 seconds]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
rippa has joined #ruby
bsdbandit-01 has quit [Ping timeout: 246 seconds]
bsdband23 has joined #ruby
BTRE has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
BTRE has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
turbo_choo has quit [Ping timeout: 268 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
suukim has joined #ruby
vondruch has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
DTZUZO has quit [Ping timeout: 248 seconds]
fphilipe_ has joined #ruby
Emmanuel_Chanel has joined #ruby
schne1der has joined #ruby
akemhp has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
fphilipe_ has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
fphilipe_ has joined #ruby
akemhp_ has joined #ruby
akemhp has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
akemhp_ has quit [Ping timeout: 258 seconds]
akemhp has joined #ruby
akemhp_ has joined #ruby
lacedem777 has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
akemhp has quit [Ping timeout: 260 seconds]
shokohsc89 has joined #ruby
<lacedem777>
Hello, I am try to parse the result on a env command done via ssh, see exemple below. I try this with scan method but cant find the good regexp.
thebananaking has quit [Quit: Connection closed for inactivity]
fphilipe_ has quit [Read error: Connection reset by peer]
akemrir has joined #ruby
jenrzzz has joined #ruby
fanta1 has joined #ruby
evdubs_ has joined #ruby
evdubs has quit [Ping timeout: 260 seconds]
chalkmonster has joined #ruby
dionysus69 has joined #ruby
alexherbo24 has joined #ruby
alexherbo2 has quit [Ping timeout: 260 seconds]
clemens3 has quit [Quit: WeeChat 1.6]
alexherbo245 has joined #ruby
alexherbo24 has quit [Ping timeout: 240 seconds]
clemens3 has joined #ruby
phaul has joined #ruby
phaul__ has quit [Ping timeout: 240 seconds]
Bounga has joined #ruby
tobiasvl has quit [Ping timeout: 250 seconds]
Fernando-Basso has joined #ruby
ellcs has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 260 seconds]
ellcs has quit [Ping timeout: 260 seconds]
chalkmonster has quit [Quit: WeeChat 2.7]
ctOS has joined #ruby
<NL3limin4t0r>
lacedem777: Another option is: txt.split(/\n(?! )/).map { |str| str.split('=', 2) }.each { |_key, value| value.gsub!(/^ /, '') }.to_h
turbo_choo has quit [Ping timeout: 265 seconds]
<NL3limin4t0r>
Which first splits the string when the line doesn't start with two spaces. Then splits each elements on the first "=" character. Then removes the first two spaces form multiline variables.
turbo_choo has joined #ruby
ellcs has joined #ruby
phaul has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
bvdw has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
yann-kaelig has quit [Quit: yann-kaelig]
turbo_choo has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
rippa has quit [Read error: Connection reset by peer]
davor_ has joined #ruby
davispuh has joined #ruby
davor has quit [Ping timeout: 268 seconds]
davor_ is now known as davor
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
fphilipe_ has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
cliluw has quit [Read error: Connection reset by peer]
mozzarella has quit [Remote host closed the connection]
cliluw has joined #ruby
mozzarel1 has joined #ruby
mozzarel1 is now known as mozzarella
turbo_choo has joined #ruby
AJA4350 has joined #ruby
RiPuk has quit [Remote host closed the connection]
RiPuk has joined #ruby
teamslothdotnet has joined #ruby
za1b1tsu has joined #ruby
RiPuk has quit [Remote host closed the connection]
<svankmajer>
Has someone used RSpec `allow_any_instance_of(Class).to receive(:method)`, where :method is called with a block, and been able to access that block?
<svankmajer>
Something like `yield arg if block_given?` doesn't work =/
errst has quit [Read error: Connection reset by peer]
chalkmonster has joined #ruby
bsdband23 has quit [Quit: -a- Connection Timed Out]
alexherbo2453 has joined #ruby
fanta1 has quit [Quit: fanta1]
alexherbo245 has quit [Ping timeout: 268 seconds]
chalkmonster has quit [Quit: WeeChat 2.7]
bsdbandit-01 has joined #ruby
DaRock has quit [Ping timeout: 268 seconds]
<adam12>
svankmajer: Are you looking for something like and_yield?
<svankmajer>
adam12: Yes! Thanks. But... this method can be invoked like this: `my_method(:arg)` and `my_method { |arg| ... }`. Do I need to mock/stub (sorry for my ignorance) each kind of invocation, so to speak?
phaul has joined #ruby
<adam12>
svankmajer: Not sure tbh. Can you share some code? What's your ultimate goal here?
phaul has quit [Ping timeout: 240 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
<havenwood>
(Split on newlines not followed by whitespace, split on equals, the get rid of soft tabs.)
<havenwood>
(Split on newlines not followed by whitespace, split those on equals, then get rid of soft tabs.)
wallace_mu has quit [Remote host closed the connection]
shokohsc887 has quit [Ping timeout: 268 seconds]
wallace_mu has joined #ruby
wallace__ has joined #ruby
wallace_mu has quit [Ping timeout: 265 seconds]
impermanence has joined #ruby
drincruz_ has joined #ruby
svankmajer has quit [Ping timeout: 268 seconds]
skryking has joined #ruby
william1_ has quit [Ping timeout: 258 seconds]
lacrymology has quit [Remote host closed the connection]
Bounga` has joined #ruby
Bounga has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
orbyt_ has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
Esa_ has joined #ruby
turbo_choo has joined #ruby
ellcs has joined #ruby
gix has joined #ruby
phaul has joined #ruby
Bounga` has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
clemens3 has quit [Quit: WeeChat 1.6]
davidw has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
phaul has joined #ruby
william1_ has joined #ruby
shokohsc has joined #ruby
sameerynho has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
svankmajer has joined #ruby
ctOS has quit [Quit: Connection closed for inactivity]
phaul has quit [Ping timeout: 258 seconds]
conta1 has joined #ruby
phaul has joined #ruby
svankmajer has quit [Quit: leaving]
ivanskie has joined #ruby
conta1 has quit [Client Quit]
NODE has quit [Quit: changing servers]
phaul has quit [Ping timeout: 265 seconds]
NODE has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
impermanence has quit [Ping timeout: 265 seconds]
fphilipe_ has quit [Ping timeout: 268 seconds]
bvdw has joined #ruby
bambanx has joined #ruby
gheegh has joined #ruby
<gheegh>
Hey all, I'm curious to get some feedback. I've got a gem im' working on that a NER thing. I have about 15 million records i need to store.. I'd like to avoid pulling it all into memory.. but i'd like it to be as quick as posssible.. thoughts on how I should store it? I'm currently using Moneta / GDBM and compressing the value..
houhoulis has joined #ruby
markopasha has quit [Remote host closed the connection]
<adam12>
gheegh: Is that mechanism not working for you? Building on top of one of the DBM (maybe SDBM since it ships with Ruby) is a nice solution since it's dependency free.
<gheegh>
well, the file is something like 1GB in size..
<gheegh>
though maybe it is the best solution.. i'm about to double the size of teh DB most likley..
evert has joined #ruby
<gheegh>
the good news is that this seems to perform well.. just wondering about the ram implications..
<adam12>
I guess my next solution would be something sqlite based?
evert has quit [Client Quit]
evert has joined #ruby
<gheegh>
yeah, which is pretty similar..
<gheegh>
these records in theory are highly compressable.. i'm wondering if there's some sort of better strategy for compressing the data, yet keeping similar performance
<adam12>
I guess if that's the case then looking at a better compression engine might work. Something like xz where you pay the compression penalty up front but decompression has very little penalty?
shah^ has quit []
za1b1tsu has quit [Remote host closed the connection]
<gheegh>
yeah, something like that
phaul has joined #ruby
william1_ has quit [Ping timeout: 260 seconds]
phaul has quit [Ping timeout: 268 seconds]
Ai9zO5AP has joined #ruby
pavelz has joined #ruby
<pavelz>
hola ppl
NODE has quit []
Benett has quit [Quit: ]
<pavelz>
why does "%#X" % [["1",2]].hash give me "0X..FCC96BDD45DCC9D22"
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
phaul has joined #ruby
cliluw has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
fphilipe_ has joined #ruby
fphilipe_ has quit [Ping timeout: 260 seconds]
jinie_ has joined #ruby
jinie has quit [Ping timeout: 265 seconds]
jinie_ is now known as jinie
william1_ has quit [Ping timeout: 265 seconds]
william1_ has joined #ruby
s2013 has joined #ruby
bsdband61 has quit [Ping timeout: 260 seconds]
fphilipe_ has joined #ruby
bsdbandit-01 has joined #ruby
<uplime>
havenwood: so i got a small client working with async, only question now is, how do I run multiple loops in a non blocking manner? like if i wanted to run multiple instances of the bot at once (to connect to multiple networks) from one script?
jmcgnh has quit [Read error: Connection reset by peer]
<havenwood>
uplime: It follows the patter of the Asyc gem, where it's synchronous when one Async deep and asynchronous when two: https://github.com/socketry/async#usage
<uplime>
ohhhhhh
<uplime>
I'm already doing that already actually, my testing was just flawed
<uplime>
that clears that up though, thanks!
jmcgnh has joined #ruby
william1_ has quit [Ping timeout: 258 seconds]
william1_ has joined #ruby
davidw has quit [Ping timeout: 265 seconds]
<adam12>
havenwood: I think we're changing your title to async evangelist.
<dorian>
anybody know of an example of a gem that tests for headers of a C library and if it doesn't find them, downloads that library and compiles it?
fphilipe_ has joined #ruby
itarato has quit [Ping timeout: 260 seconds]
<adam12>
dorian: Only one I've seen that's remotely comparable is bcrypt, but it ships with the blowfish crypt sources.
<uplime>
that sounds like something that a package/dep manager would do rather than a gem
<adam12>
I guess nokogiri is similar in that regard.
<dorian>
i'm taking over maintaining the lmdb gem, and currently it has the lmdb source embedded in it
<dorian>
and i was thinking, it would be nice to strip that out and only download it if necessary
<dorian>
(that way it would always be fresh)
<dorian>
i haven't looked at it too hard but it seems to prefer the system's install
phaul has quit [Ping timeout: 260 seconds]
<adam12>
Looks that way.
<adam12>
Does it change frequently enough that downloading and compiling is worth it?
<adam12>
I'd probably prefer that it shipped as a whole unit, if I was looking at adding a dependency to my project.
skryking has quit [Quit: WeeChat 1.9.1]
istrasci has joined #ruby
<istrasci>
How can I check if a value can be converted to a Date object by `to_date`?
william1_ has quit [Ping timeout: 258 seconds]
<pabs>
istrasci: obj.respond_to?(:to_date)
<uplime>
havenwood: is it possible to send a client certificate with Async::IO::SSLEndpoint?
<istrasci>
pabs: "abc".respond_to?(:to_date) is true, but "abc".to_date gives an ArgumentError ("invalid date").
<istrasci>
So this is not what I'm looking for.
phaul has joined #ruby
<pabs>
istrasci: 'abc'.respond_to?(:to_date) is false for me, are you in an environment that adds additional global methods to objects (e.g. rails)