havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.2, 2.5.5, 2.4.5: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ae84 has joined #ruby
cagomez has quit [Ping timeout: 258 seconds]
r29v has quit [Quit: r29v]
Swyper has quit [Remote host closed the connection]
gell5 has joined #ruby
gell5 has quit [Ping timeout: 245 seconds]
tdy1 has quit [Ping timeout: 246 seconds]
<ae84> Hi! I'm trying to `gem install sassc -v '2.0.1'` but am getting some compilation errors here on OpenBSD regarding `src/cencode.c`: https://gist.github.com/ae84/1d3dcb0384d6aff7d8210c30f2823e9c
<ae84> So now that I've fixed this file, how do I rerun gem install without it overwriting it?
renich has quit [Quit: renich]
laaron- has quit [Remote host closed the connection]
renich has joined #ruby
renich has quit [Remote host closed the connection]
renich has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.4]
Swyper has joined #ruby
cthulchu_ has quit [Ping timeout: 246 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
* ae84 now playing: RubyConf 2018 - Running a Government Department on Ruby for over 13 Years by Jeremy Evans -- https://www.youtube.com/watch?v=k7j4p4I1icY
gell5 has joined #ruby
gell5 has quit [Ping timeout: 246 seconds]
bambanx has joined #ruby
dsuper7 has quit [Quit: Catch you on the flip side....]
tdy1 has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zachk has quit [Quit: Leaving]
agent_white has quit [Quit: bbl]
arescorpio has joined #ruby
ss9421 has joined #ruby
<ss9421> hello, how do I create regex that would find out if my string beggins with 'cf-' then there is a number and then ends with '-asc' or 'desc'?
<ss9421> For exemple 'cf-420-desc' or 'cf-112-asc'
<ss9421> I want it to return true or false
gell5 has joined #ruby
gell5 has quit [Ping timeout: 245 seconds]
<bougyman> string =~ /^cf-[0-9]{3}-(?:a|de)sc$/
<bougyman> [3] pry(main)> %w[cf-123-asc cf-132-desc cf-aaa-asc cf-9-desc].map { |string| !!(string =~ /^cf-[0-9]{3}-(?:a|de)sc$/) }
<bougyman> => [true, true, false, false]
ss9421 has quit [Quit: Leaving.]
<jidar> what's !! doing here?
<bougyman> turning it into a boolean.
mangold has joined #ruby
<bougyman> instead of 0 or nil
<bougyman> just outputs cleaner
<bougyman> he said he wanted true or false
<uplime> whats the differnece between that and .match?
<uplime> just preference?
<bougyman> nothing, with the !!
<bougyman> [4] pry(main)> %w[cf-123-asc cf-132-desc cf-aaa-asc cf-9-desc].map { |string| string.match /^cf-[0-9]{3}-(?:a|de)sc$/ }
<bougyman> => [#<MatchData "cf-123-asc">, #<MatchData "cf-132-desc">, nil, nil]
<bougyman> [5] pry(main)> %w[cf-123-asc cf-132-desc cf-aaa-asc cf-9-desc].map { |string| !!(string.match(/^cf-[0-9]{3}-(?:a|de)sc$/)) }
<bougyman> => [true, true, false, false]
<bougyman> no, =~ will be more efficient.
<bougyman> it doesn't have to create MatchData objects.
<uplime> sorry, i meant String#match?
<uplime> oh
sylario has quit [Quit: Connection closed for inactivity]
hahuang6- has quit [Disconnected by services]
hahuang6- has joined #ruby
d10n-work has joined #ruby
grilix has quit [Ping timeout: 250 seconds]
gell5 has joined #ruby
hahuang6- has quit [Ping timeout: 255 seconds]
esrse has joined #ruby
hahuang6- has joined #ruby
gell5 has quit [Ping timeout: 250 seconds]
hahuang6- has quit [Disconnected by services]
hahuang6- has joined #ruby
grilix has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
hahuang6- has quit [Ping timeout: 250 seconds]
hahuang6- has joined #ruby
ariedler has joined #ruby
laaron has joined #ruby
hahuang6| has joined #ruby
hahuang6- has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
renich_ has joined #ruby
renich has quit [Ping timeout: 244 seconds]
gell5 has joined #ruby
marmotini_ has joined #ruby
ariedler has quit [Remote host closed the connection]
nfstern_ has joined #ruby
nfstern_ has quit [Quit: Leaving]
fredolinhares has quit [Quit: WeeChat 1.9.1]
<zenspider> uplime: same
AJA4350 has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
Swyper has quit [Read error: Connection reset by peer]
Alison` has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
crankharder has quit [Ping timeout: 245 seconds]
renich has joined #ruby
renich_ has quit [Ping timeout: 268 seconds]
brool has quit [Ping timeout: 250 seconds]
yield has joined #ruby
gell5 has quit [Ping timeout: 255 seconds]
bambanx has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
braincrash has quit [Quit: bye bye]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
braincrash has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
gell5 has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
gell5 has quit [Ping timeout: 255 seconds]
tau has quit [Remote host closed the connection]
DmitryBochkarev has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
stan has quit [Ping timeout: 250 seconds]
stryek has quit [Quit: Connection closed for inactivity]
gell5 has joined #ruby
gell5 has quit [Ping timeout: 244 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
grilix has quit [Ping timeout: 258 seconds]
DmitryBochkarev has quit [Ping timeout: 250 seconds]
sauvin has joined #ruby
houhoulis has quit [Remote host closed the connection]
gell5 has joined #ruby
Inline has quit [Quit: Leaving]
DmitryBochkarev has joined #ruby
gell5 has quit [Ping timeout: 268 seconds]
v01d4lph4 has joined #ruby
ferr has joined #ruby
Hobbyboy has quit [Ping timeout: 250 seconds]
conta has joined #ruby
Hobbyboy has joined #ruby
aupadhye has joined #ruby
sidx64 has joined #ruby
gell5 has joined #ruby
reber has joined #ruby
gell5 has quit [Ping timeout: 250 seconds]
marmotini_ has quit [Ping timeout: 245 seconds]
Devalo has joined #ruby
Fusl has quit [Excess Flood]
Fusl has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
yield has quit [Remote host closed the connection]
sidx64_ has joined #ruby
yield has joined #ruby
sidx64 has quit [Ping timeout: 245 seconds]
gix- has quit [Ping timeout: 246 seconds]
sidx64 has joined #ruby
sidx64_ has quit [Ping timeout: 245 seconds]
stan_ has joined #ruby
Dbugger has joined #ruby
lido has joined #ruby
lido has quit [Changing host]
lido has joined #ruby
marmotini has joined #ruby
gell5 has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
gell5 has quit [Ping timeout: 268 seconds]
jinie has joined #ruby
sidx64 has joined #ruby
vondruch has joined #ruby
axsuul- has joined #ruby
Rudd0 has quit [Ping timeout: 245 seconds]
conta has quit [Ping timeout: 245 seconds]
axsuul has quit [Ping timeout: 245 seconds]
conta has joined #ruby
mozzarel1 has joined #ruby
segy has quit [Read error: Connection reset by peer]
c-c has quit [Ping timeout: 245 seconds]
c-c has joined #ruby
c-c is now known as Guest15322
Rudd0 has joined #ruby
mozzarella has quit [Ping timeout: 245 seconds]
mozzarel1 is now known as mozzarella
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
segy has joined #ruby
azizLIGHT has joined #ruby
Dbugger has quit [Quit: Leaving]
Dbugger has joined #ruby
gell5 has joined #ruby
mangold has joined #ruby
yield has quit [Remote host closed the connection]
gell5 has quit [Ping timeout: 246 seconds]
sidx64 has joined #ruby
reber has quit [Remote host closed the connection]
schleppel has joined #ruby
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Ping timeout: 268 seconds]
clemens3_ has quit [Remote host closed the connection]
_joes_ has joined #ruby
marmotini_ has joined #ruby
marmotini has quit [Ping timeout: 250 seconds]
aufi has joined #ruby
tdy1 has quit [Ping timeout: 250 seconds]
_joes_ has quit [Read error: Connection reset by peer]
gell5 has joined #ruby
_joes_ has joined #ruby
suukim has joined #ruby
tdy1 has joined #ruby
sinanislekdemir has joined #ruby
nowhere_man has quit [Ping timeout: 259 seconds]
gell5 has quit [Ping timeout: 250 seconds]
tdy1 has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
clemens3 has joined #ruby
DmitryBochkarev has quit [Read error: Connection reset by peer]
DmitryBochkarev has joined #ruby
DmitryBochkarev has quit [Remote host closed the connection]
DmitryBochkarev has joined #ruby
Dbugger has quit [Ping timeout: 250 seconds]
sinanislekdemir has quit [Quit: rcirc on GNU Emacs 27.0.50]
marmotini has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marmotini_ has quit [Ping timeout: 268 seconds]
marmotini_ has joined #ruby
marmotini has quit [Ping timeout: 246 seconds]
marmotini has joined #ruby
lxsameer has joined #ruby
marmotini_ has quit [Ping timeout: 245 seconds]
TomyWork has joined #ruby
gell5 has joined #ruby
sidx64 has joined #ruby
yield has joined #ruby
gell5 has quit [Ping timeout: 250 seconds]
marmotini has quit [Ping timeout: 245 seconds]
nowhere_man has joined #ruby
yield has quit [Ping timeout: 245 seconds]
yqt has joined #ruby
sylario has joined #ruby
marmotini_ has joined #ruby
mikecmpbll has joined #ruby
marmotini has joined #ruby
marmotini_ has quit [Ping timeout: 250 seconds]
dhollin3 has joined #ruby
marmotini_ has joined #ruby
dhollinger has quit [Ping timeout: 246 seconds]
marmotini has quit [Ping timeout: 255 seconds]
andikr has joined #ruby
danguita has joined #ruby
marmotini_ has quit [Ping timeout: 244 seconds]
marmotini_ has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
gell5 has joined #ruby
cd has quit [Quit: cd]
gell5 has quit [Ping timeout: 245 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marmotini_ has quit [Ping timeout: 246 seconds]
marmotini has joined #ruby
kyrylo has joined #ruby
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
sidx64 has joined #ruby
jottr_ has joined #ruby
yield has joined #ruby
marmotini has quit [Ping timeout: 255 seconds]
marmotini has joined #ruby
marmotini_ has joined #ruby
marmotini has quit [Ping timeout: 268 seconds]
gell5 has joined #ruby
jottr has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mangold has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
gell5 has quit [Ping timeout: 272 seconds]
tdy1 has joined #ruby
pwnd_nsfw` has joined #ruby
BH23 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 268 seconds]
tdy1 has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
mroshanavand has joined #ruby
mroshanavand has quit [Client Quit]
yield has quit [Remote host closed the connection]
yield has joined #ruby
roshanavand has joined #ruby
marmotini has joined #ruby
pwnd_nsfw has joined #ruby
livcd has quit [Changing host]
livcd has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 245 seconds]
roshanavand has quit [Ping timeout: 256 seconds]
marmotini_ has quit [Ping timeout: 250 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 258 seconds]
xtsee has quit [Ping timeout: 258 seconds]
Fire-Dragon-DoL has joined #ruby
gell5 has joined #ruby
xtsee has joined #ruby
yqt has quit [Ping timeout: 245 seconds]
ellcs has joined #ruby
conta has quit [Remote host closed the connection]
gell5 has quit [Ping timeout: 245 seconds]
sidx64 has joined #ruby
<ellcs> hey guys, why do i have to wrap a string into an array in order to use pack?
<ytti> i don't think you're gonna like thte answer, but because #pack is Array method
<ellcs> i like you
<ellcs> because you understand me
<ytti> string.each_char.to_a.pack
<ellcs> i might also use String#unpack aight?
<ytti> pack and unpack do the opposite things
<ellcs> a = ["01111010", "01101100", "01101001"]
<ellcs> how would you pack this into chars?
<ellcs> i did use ary.pack("B*B*B*")
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ytti> that seems reasonable
<ellcs> and if a might have any length?
<ytti> another option is a.map{|c|c.to_i(2).chr}.join
marmotini_ has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
marmotini has quit [Ping timeout: 250 seconds]
<ellcs> seems reasonable
<ellcs> what do you think of `ary.pack("B*" * ary.size)
<ellcs> `
sidx64 has joined #ruby
<ytti> usually pack and unpack are used to deal like wire coding
<ytti> so usually you know exactly how many you want to pack and unpack
<ellcs> what do you mean with wire coding?
<ytti> you don't know, and i wonder, why not
<ellcs> i just want to play with pack
<ellcs> because i saw it quite often
<ellcs> however, thank you!
mangold has joined #ruby
<ytti> you could do something like a.map{|c|[c].pack("B*")}.join also
<ytti> i'm not sure i like the "" * ary.size
<ytti> usually your array would contain like fields, say ip source address, ip destination address, l4 port, ip protocl etc
<ytti> fixed set of values, that you know specificallyt how each needs to be coded
<ytti> then you'd pack it into a blob and send to the wire
<ytti> and conversely, once you read it from the wire, you'd use unpack to restore them
<ytti> but it is entirely possible i'm missing practical use case of not knowing how many items you need to pack
yield has quit [Remote host closed the connection]
tdy1 has joined #ruby
gell5 has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gell5 has quit [Ping timeout: 245 seconds]
sidx64 has joined #ruby
dante has quit [Ping timeout: 246 seconds]
dante has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has joined #ruby
ldnunes has joined #ruby
Zeno_ has joined #ruby
Zeno_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
marmotini has joined #ruby
marmotini_ has quit [Ping timeout: 272 seconds]
marmotini_ has joined #ruby
marmotini has quit [Ping timeout: 246 seconds]
marmotini has joined #ruby
marmotini_ has quit [Ping timeout: 250 seconds]
sidx64 has joined #ruby
tdy1 has quit [Ping timeout: 255 seconds]
mangold has quit [Quit: This computer has gone to sleep]
marmotini_ has joined #ruby
cranq has quit [Ping timeout: 245 seconds]
gell5 has joined #ruby
gray_-_wolf has joined #ruby
mangold has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
cranq has joined #ruby
nowhere_man has quit [Ping timeout: 250 seconds]
marmotini has quit [Ping timeout: 250 seconds]
terabytes has quit [Quit: Connection closed for inactivity]
gell5 has quit [Ping timeout: 255 seconds]
cranq has quit [Remote host closed the connection]
cranq has joined #ruby
conta1 has joined #ruby
marmotini_ has quit [Ping timeout: 245 seconds]
marmotini_ has joined #ruby
DmitryBochkarev has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
DmitryBochkarev has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
barg has joined #ruby
BH23 has quit [Ping timeout: 245 seconds]
_joes_ has quit [Ping timeout: 245 seconds]
yield has joined #ruby
_joes_ has joined #ruby
BH23 has joined #ruby
conta1 has quit [Ping timeout: 250 seconds]
gell5 has joined #ruby
cow[moo] has quit [Quit: Textual IRC Client: www.textualapp.com]
def_jam has joined #ruby
eb0t_ has joined #ruby
eblip has quit [Ping timeout: 244 seconds]
eb0t has quit [Ping timeout: 250 seconds]
gell5 has quit [Ping timeout: 255 seconds]
danguita has quit [Ping timeout: 250 seconds]
yield has quit [Ping timeout: 272 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yield has joined #ruby
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
marmotini has joined #ruby
marmotini_ has quit [Ping timeout: 250 seconds]
cow[moo] has joined #ruby
_joes_ has quit [Ping timeout: 244 seconds]
_joes_ has joined #ruby
marmotini_ has joined #ruby
sidx64 has joined #ruby
marmotini has quit [Ping timeout: 245 seconds]
phaul has quit [Quit: :wq]
sidx64 has quit [Client Quit]
marmotini has joined #ruby
phaul has joined #ruby
marmotini_ has quit [Ping timeout: 250 seconds]
sidx64 has joined #ruby
marmotini_ has joined #ruby
marmotini has quit [Ping timeout: 250 seconds]
phaul has quit [Quit: :wq]
yield has quit []
danguita has joined #ruby
phaul has joined #ruby
marmotini has joined #ruby
gell5 has joined #ruby
marmotini_ has quit [Ping timeout: 255 seconds]
rprimus has quit [Ping timeout: 250 seconds]
rprimus has joined #ruby
gell5 has quit [Ping timeout: 272 seconds]
marmotini has quit [Ping timeout: 244 seconds]
esrse has quit [Ping timeout: 250 seconds]
marmotini_ has joined #ruby
marmotini has joined #ruby
marmotini_ has quit [Ping timeout: 244 seconds]
marmotini has quit [Remote host closed the connection]
d10n-work has joined #ruby
marmotini_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower2 has joined #ruby
_joes_ has quit [Ping timeout: 245 seconds]
_joes_ has joined #ruby
asio_ is now known as asio
Guest15322 has left #ruby [#ruby]
marmotini_ has quit [Ping timeout: 255 seconds]
def_jam is now known as eblip
eb0t_ is now known as eb0t
jrafanie has joined #ruby
marmotini_ has joined #ruby
gray_-_wolf has quit [Quit: WeeChat 2.4]
marmotini has joined #ruby
ikbenhet has joined #ruby
marmotini_ has quit [Ping timeout: 272 seconds]
gell5 has joined #ruby
paraxial has joined #ruby
gell5 has quit [Ping timeout: 245 seconds]
DmitryBochkarev has quit [Ping timeout: 250 seconds]
<ae84> Hi! I got some build errors for this gem and had to fix things manually. That worked out nicely, but how come I can't write the gemspec? https://gist.github.com/ae84/278c808f2a0fc5f92aba16f8990ac6c0
<ae84> oh wait, nevermind
marmotini_ has joined #ruby
nowhere_man has joined #ruby
marmotini has quit [Ping timeout: 272 seconds]
cek has joined #ruby
cek has left #ruby [#ruby]
suukim has quit [Quit: Konversation terminated!]
dinfuehr_ is now known as dinfuehr
vondruch has quit [Ping timeout: 272 seconds]
<ae84> nope
DmitryBochkarev has joined #ruby
nowhere_man has quit [Ping timeout: 250 seconds]
Rapture has joined #ruby
gell5 has joined #ruby
laaron- has joined #ruby
v01d4lph4 has quit [Read error: Connection reset by peer]
laaron has quit [Remote host closed the connection]
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
Ai9zO5AP has joined #ruby
gell5 has quit [Ping timeout: 245 seconds]
dhollin3 is now known as dhollinger
noboruma has quit [Remote host closed the connection]
venmx has joined #ruby
<venmx> hi, sorry for the noob question... how can i fix this ERROR: While executing gem ... (Gem::Exception)", " Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
<venmx> i tried installing libssl-dev on ubuntu and also using insecure repo, neither worked
noboruma has joined #ruby
Dbugger has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
Inline has joined #ruby
marz_d`ghostman has joined #ruby
rippa has joined #ruby
<havenwood> venmx: have you tried rebuilding Ruby after installing libssl-dev?
<havenwood> venmx: apt deps should be: build-essential bison zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev
renich has quit [Quit: renich]
Deesl has joined #ruby
renich has joined #ruby
gell5 has joined #ruby
ferr has quit [Quit: WeeChat 2.4]
gell5 has quit [Ping timeout: 272 seconds]
alpha_sh has joined #ruby
<alpha_sh> Bored? Call the official freenode IRC partyline at +4521137886
alpha_sh has quit [Remote host closed the connection]
Qantourisc20 has joined #ruby
<Qantourisc20> Bored? Call the official freenode IRC partyline at +4521137886
Qantourisc20 has quit [Read error: Connection reset by peer]
lucasb has joined #ruby
SeepingN has joined #ruby
debdog12 has joined #ruby
<debdog12> Bored? Call the official freenode IRC partyline at +4521137886
Sausage22 has joined #ruby
<Sausage22> Bored? Call the official freenode IRC partyline at +4521137886
debdog12 has quit [Remote host closed the connection]
Sausage22 has quit [Remote host closed the connection]
BH23 has quit [Ping timeout: 272 seconds]
_joes_ has quit [Ping timeout: 268 seconds]
aupadhye has quit [Ping timeout: 272 seconds]
<SeepingN> no one's answering
<SeepingN> just like real IRC wow!
nowhere_man has joined #ruby
sphenxes has joined #ruby
lilmonkey`` has joined #ruby
lilmonkey`` has quit [Remote host closed the connection]
jabberwock11 has joined #ruby
jabberwock11 has quit [Remote host closed the connection]
rukenden has joined #ruby
tau has joined #ruby
rukenden has quit [Remote host closed the connection]
divx1187 has joined #ruby
mattwc1 has joined #ruby
divx1187 has quit [Remote host closed the connection]
mattwc1 has quit [Remote host closed the connection]
al2o3-cr has quit [Quit: WeeChat 2.4]
Te[u]K3 has joined #ruby
Guest31414 has joined #ruby
Te[u]K3 has quit [Remote host closed the connection]
Guest31414 has quit [Remote host closed the connection]
Wessie19 has joined #ruby
Wessie19 has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
_joes_ has joined #ruby
BH23 has joined #ruby
grilix has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
gell5 has joined #ruby
marmotini has joined #ruby
nowhere_man has joined #ruby
marmotini_ has quit [Ping timeout: 244 seconds]
gell5 has quit [Ping timeout: 246 seconds]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
marmotini_ has joined #ruby
sphenxes has quit [Remote host closed the connection]
marmotini has quit [Ping timeout: 246 seconds]
tau has quit [Remote host closed the connection]
grilix has quit [Ping timeout: 250 seconds]
grilix has joined #ruby
agent_white has joined #ruby
zleap has joined #ruby
zleap has quit [Changing host]
zleap has joined #ruby
orbyt_ has joined #ruby
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
marmotini has joined #ruby
marmotini_ has quit [Remote host closed the connection]
tdy1 has joined #ruby
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
marmotini_ has joined #ruby
gell5 has joined #ruby
marmotini has quit [Remote host closed the connection]
gell5 has quit [Ping timeout: 268 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polishdub has joined #ruby
ikbenhet has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
WhereIsMySpoon has joined #ruby
<WhereIsMySpoon> Is there a binary version of bson I can depend on instead of bundle install trying to build bson with make each time? The docker image im trying to deploy onto doesnt have make
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
<WhereIsMySpoon> or can I make mongo gem not depend on bson_ext?
aufi has quit [Ping timeout: 245 seconds]
venmx has quit [Ping timeout: 250 seconds]
andikr has quit [Remote host closed the connection]
Devalo has joined #ruby
marmotini has joined #ruby
marmotini_ has quit [Ping timeout: 246 seconds]
jcarl43 has joined #ruby
suukim has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
gell5 has joined #ruby
<havenwood> WhereIsMySpoon: the BSON gem has JRuby extensions, but unfortunately not a slow, pure Ruby version
Roserin has joined #ruby
Roserin has quit [Remote host closed the connection]
<havenwood> WhereIsMySpoon: is JRuby an option? it ships a jar.
Devalo has quit [Ping timeout: 245 seconds]
<WhereIsMySpoon> i dont really want to write jruby
<WhereIsMySpoon> :P
tdy1 has quit [Ping timeout: 245 seconds]
gell5 has quit [Ping timeout: 250 seconds]
hightower2 has quit [Changing host]
hightower2 has joined #ruby
<havenwood> it's just Ruby!
<havenwood> (with a J in front)
<ae84> :D
jinie has joined #ruby
renich has quit [Ping timeout: 250 seconds]
sidx64 has joined #ruby
paraxial has quit [Quit: The Lounge - https://thelounge.chat]
paraxial has joined #ruby
paraxial has quit [Read error: Connection reset by peer]
renich has joined #ruby
AdmiralAsshat has joined #ruby
AdmiralAsshat has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 250 seconds]
_joes_ has quit [Ping timeout: 250 seconds]
DmitryBochkarev has quit [Ping timeout: 250 seconds]
BH23 has quit [Ping timeout: 246 seconds]
emberquill has joined #ruby
wsmoak has joined #ruby
orbyt_ has joined #ruby
emberquill has quit [Remote host closed the connection]
gix has joined #ruby
sidx64_ has joined #ruby
orbyt_ has quit [Remote host closed the connection]
sidx64 has quit [Ping timeout: 245 seconds]
clemens3 has quit [Ping timeout: 244 seconds]
drewc17 has joined #ruby
kurosu has joined #ruby
drewc17 has quit [Remote host closed the connection]
kurosu has quit [Remote host closed the connection]
_joes_ has joined #ruby
venmx has joined #ruby
BH23 has joined #ruby
bambanx has joined #ruby
alem0lars has joined #ruby
WhereIsMySpoon has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
lytol has joined #ruby
fredolinhares has joined #ruby
gell5 has joined #ruby
gell5 has quit [Ping timeout: 246 seconds]
_joes_ has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 272 seconds]
BH23 has quit [Ping timeout: 246 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
alem0lars has quit [Ping timeout: 250 seconds]
Deesl has quit [Quit: Textual IRC Client: www.textualapp.com]
marmotini has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
Devalo has joined #ruby
hiroaki has joined #ruby
reber has joined #ruby
gell5 has joined #ruby
zleap has quit [Quit: WeeChat 2.4]
bezt20 has joined #ruby
bezt20 has quit [Remote host closed the connection]
gell5 has quit [Ping timeout: 244 seconds]
grilix has quit [Quit: Ooops]
danguita has quit [Quit: WeeChat 2.4]
feepk27 has joined #ruby
feepk27 has quit [Remote host closed the connection]
sauvin has quit [Remote host closed the connection]
ldnunes has quit [Ping timeout: 245 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aufi has joined #ruby
thurstylark has joined #ruby
thurstylark has quit [Remote host closed the connection]
tau has joined #ruby
ldnunes has joined #ruby
irdr has quit [Remote host closed the connection]
irdr has joined #ruby
aufi has quit [Ping timeout: 250 seconds]
kapil____ has joined #ruby
gell5 has joined #ruby
emberquill has joined #ruby
emberquill has quit [Remote host closed the connection]
Guest90089 has joined #ruby
Guest90089 has quit [Remote host closed the connection]
hahuang6| has quit [Disconnected by services]
hahuang6- has joined #ruby
hahuang6- has quit [Disconnected by services]
hahuang6- has joined #ruby
venmx has quit [Ping timeout: 255 seconds]
klaxa3 has joined #ruby
hahuang6- has quit [Disconnected by services]
gell5 has quit [Ping timeout: 245 seconds]
klaxa3 has quit [Remote host closed the connection]
hahuang6- has joined #ruby
hahuang6- has quit [Disconnected by services]
hahuang6- has joined #ruby
archpc1 has joined #ruby
archpc1 has quit [Read error: Connection reset by peer]
hahuang6- has quit [Client Quit]
bmurt has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
suukim has quit [Quit: Konversation terminated!]
schleppel has quit [Quit: Konversation terminated!]
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has quit [Changing host]
diegok has joined #ruby
diegok has quit [Remote host closed the connection]
schleppel has joined #ruby
WhereIsMySpoon has quit [Ping timeout: 255 seconds]
phadej18 has joined #ruby
phadej18 has quit [Remote host closed the connection]
DmitryBochkarev has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ua has quit [Ping timeout: 255 seconds]
gell5 has joined #ruby
bambanx has quit [Quit: Leaving]
AJA4351 has joined #ruby
zeroquake has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
gell5 has quit [Ping timeout: 244 seconds]
dviola has joined #ruby
bambanx has joined #ruby
orbyt_ has quit [Ping timeout: 244 seconds]
tdy1 has joined #ruby
bambanx has quit [Read error: Connection reset by peer]
ua has joined #ruby
skryking has quit [Quit: Leaving]
yoshie902a has joined #ruby
<yoshie902a> Need some help solving why a self.search method in module is getting an error. https://stackoverflow.com/questions/55405385/nomethoderror-undefined-method-search-for-hobbiesquerymodule
<yoshie902a> is anything wrong with my syntax?
zeroquake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zeroquake has joined #ruby
bambanx has joined #ruby
nwradio8 has quit [Quit: The Lounge - https://thelounge.chat]
nwradio8 has joined #ruby
orbyt_ has joined #ruby
DmitryBochkarev has quit [Ping timeout: 246 seconds]
wsmoak has quit [Quit: Connection closed for inactivity]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
dinfuehr_ has joined #ruby
terabytes has joined #ruby
bambanx has quit [Read error: Connection reset by peer]
dinfuehr has quit [Ping timeout: 268 seconds]
Devalo has quit [Ping timeout: 246 seconds]
gell5 has joined #ruby
zleap has joined #ruby
zleap has quit [Changing host]
zleap has joined #ruby
SCHAPiE has quit [Quit: ZNC - https://znc.in]
gell5 has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
SCHAPiE has joined #ruby
Devalo has joined #ruby
yoshie902a has left #ruby [#ruby]
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #ruby
gkos has joined #ruby
zeroquake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zachk has joined #ruby
zachk has quit [Changing host]
zachk has joined #ruby
danielbeck has joined #ruby
gkos has quit [Client Quit]
danielbeck has quit [Remote host closed the connection]
venmx has joined #ruby
gkos has joined #ruby
zeroquake has joined #ruby
asdawer__ has joined #ruby
asdawer__ has quit [Client Quit]
tdy1 has quit [Ping timeout: 245 seconds]
AJA4351 has joined #ruby
gell5 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy1 has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
gell5 has quit [Ping timeout: 250 seconds]
orbyt_ has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
kyrylo has joined #ruby
Xiti has quit [Ping timeout: 250 seconds]
Xiti has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
gkos has quit []
reber has quit [Read error: Connection reset by peer]
jcalla has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 255 seconds]
lido has quit [Ping timeout: 250 seconds]
pwnd_nsfw` has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sgen has joined #ruby
rprimus has quit [Ping timeout: 244 seconds]
pwnd_nsfw has quit [Ping timeout: 245 seconds]
rprimus has joined #ruby
ldnunes has quit [Quit: Leaving]
Fernando-Basso has joined #ruby
mikecmpbll has joined #ruby
gell5 has joined #ruby
{41444d494e}10 has joined #ruby
{41444d494e}10 has quit [Remote host closed the connection]
crankharder has quit [Ping timeout: 246 seconds]
gell5 has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
zdzichu11 has joined #ruby
zdzichu11 has quit [Remote host closed the connection]
t0xik has joined #ruby
code_zombie has joined #ruby
Ai9zO5AP has quit [Quit: WeeChat 2.4]
crankharder has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
brool has joined #ruby
AJA4350 has joined #ruby
codefriar17 has joined #ruby
codefriar17 has quit [Remote host closed the connection]
<haylon_> jRuby is handy when you can't get Ruby on a system, but you have Java available. Then I'm not technically installing Ruby, just using what's there.
zleap has quit [Quit: WeeChat 2.4]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gell5 has joined #ruby
sidx64_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ae84 has quit [Quit: leaving]
daaniel_5 has joined #ruby
daaniel_5 has quit [Remote host closed the connection]
gell5 has quit [Ping timeout: 250 seconds]
zeroquake has quit [Quit: Textual IRC Client: www.textualapp.com]
moei has quit [Quit: Leaving...]
orbyt_ has joined #ruby
geordi18 has joined #ruby
geordi18 has quit [Remote host closed the connection]
tdy1 has quit [Ping timeout: 245 seconds]
Devalo has joined #ruby
tau is now known as silvereye
Dbugger has quit [Ping timeout: 250 seconds]
Devalo has quit [Ping timeout: 246 seconds]
davel_ has joined #ruby
venmx has quit [Ping timeout: 250 seconds]
gell5 has joined #ruby
renich_ has joined #ruby
venmx has joined #ruby
davel_ has quit [Client Quit]
renich has quit [Ping timeout: 250 seconds]
<ryouba> hi
cd has joined #ruby
<phaul> hi, tsup
<ryouba> how would you do "cat *-dns.txt | grep 'IN A' | grep 249 | cut -d ' ' -f 1 | grep -v '@' | sed s/\*/www/" in ruby? File.read each of them and run a RegEx?
gell5 has quit [Ping timeout: 244 seconds]
thnee10 has joined #ruby
thnee10 has quit [Remote host closed the connection]
<phaul> how is it possible that the faker gem doesn't have anything from the big bang theory?
gell5 has joined #ruby
gell5 has quit [Remote host closed the connection]
gell5 has joined #ruby
gell5_ has joined #ruby
lytol has quit [Remote host closed the connection]
luyikei20 has joined #ruby
luyikei20 has quit [Remote host closed the connection]
<adam12> ryouba: cat *-dns.txt | ruby -pe 'sub("*", "www") if $_.include?("249") && $_.include?("IN A") && !$_.include?("@")' ?
<ryouba> wow, it's actually longer
<adam12> ryouba: I didn't bother to test it since you didn't provide any test data. If you weren't looking for a one-liner then rephrase maybe?
gell5 has quit [Ping timeout: 250 seconds]
<ryouba> adam12: nono, that's perfect. i was looking for a one-liner!
<ryouba> i was just wondering if it would be worth to try and re-learn to do these things in ruby
<adam12> ryouba: Could likely optimize it a bunch.
<ryouba> but it seems the bash way is still really useful for quickly throwing something like this together
<adam12> ryouba: I use Ruby oneliners all the time! You could of used awk to some degree too.
<adam12> ryouba: If you had a regex that could fit in the conditional, you could simplify it a bunch.
<ryouba> hmm i never liked awk ... when you already know some bash and are using/learning ruby anyways, then what's the point
<ryouba> i'm becoming better at regexs but still not so natural that i wouldn't have to play around with regex101.com each time i need one
<adam12> like `sub() if /!@\s+IN A\s+249.*/` or something
<adam12> !@ is likely wrong for negation but I can't remember negate off the top of my head. ^ maybe.
<bougyman> ryouba: because awk is lightning fast at things.
<adam12> I find awk more convenient on machines without ruby, but where I'd use grep/cut
<ryouba> bougyman: i rarely need lightning fast... most of the time i'm thinking for longer than the script runs
<adam12> since cut acts super funny on some strings.
<bougyman> ryouba: for instance, in parsing a 140G LDIF, awk takes 7 minutes. Perl: 58 minutes. Ruby: 1 hour 18 minutes.
<ryouba> seconded on the cut tho
<ryouba> 140G o_O
<adam12> awk '/match/ { print $2 }' beats grep/cut a million times in annoynances.
<bougyman> 140G isn't even large, these days.
<ryouba> okay i'm operating on ~30 files here, each around 10kB
sanscoeur has joined #ruby
sanscoeur has quit [Remote host closed the connection]
<adam12> ryouba: did you only care about the name portion of the zone file?
<adam12> ryouba: my oneliner preserved the entire file as-is. Likely not what you wanted.
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ryouba> adam12: i'm trying to look for everything that's http and going to the ip ending in 249 (relatively easy as everything containing 'IN A' happens to go to http)
wookienz has joined #ruby
<ryouba> and then '*' is not needed as that's unknowable anyways and '@' needs to become 'www'
wookienz has quit [Remote host closed the connection]
<ryouba> took me a couple of seconds with that piped chain of commands
<ryouba> and then i stuck it inside of a ruby script, but somehow that felt wrong
<ryouba> but gosh, that's narcissism
venmx has quit [Ping timeout: 244 seconds]
<ryouba> i guess that happens when you're doing a boring task and it's be more fun learning more ruby
<adam12> the ruby binary has some niceties that it borrowed from Perl. -n, -e, -p, -r, $_, etc. Definitely worth checking out.
SuperL4g is now known as SuperLag
<ryouba> i was wondering why you used -p instead of -e
AJA4351 has joined #ruby
<adam12> -p instead of -n? saved me a few characters since $_ is automatically printed for -p and not for -n.
<ryouba> oh!
<ryouba> okay, it's a bit of a different way of thinking
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
<baweaver> If you're using TruffleRuby that speed hit is a lot smaller.
<ryouba> wow a company like oracle is throwing resources at ruby in 2019? that's nice!
polishdub has quit [Quit: leaving]
<baweaver> havenwood: It's showtime
<baweaver> your favorite topic
<adam12> lol
Gaffel10 has joined #ruby
Gaffel10 has quit [Remote host closed the connection]
eckhardt has joined #ruby
Kethsar3 has joined #ruby
Kethsar3 has quit [Remote host closed the connection]
<adam12> I was wondering why truffleruby can't be installed by ruby-install but apparently I'm _many_ versions behind. I wonder how that happened.
<adam12> Oh well. Worth a try. "!!! unknown platform FreeBSD"
lucasb has quit [Quit: Connection closed for inactivity]
renich_ has quit [Ping timeout: 255 seconds]
dinfuehr_ is now known as dinfuehr
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
Yayou has joined #ruby
Yayou has quit [Remote host closed the connection]
corecode29 has joined #ruby
corecode29 has quit [Remote host closed the connection]
Synthead has joined #ruby
<Synthead> I want to use a different gcc when compiling a gem via Bundler. How can I do this?
<Synthead> it's in my path as gcc-7
<havenwood> adam12: TruffleRuby currently only has binaries for Linux and macOS :(
<havenwood> You should be able to build it from source on FreeBSD
honestly18 has joined #ruby
honestly18 has quit [Remote host closed the connection]
gix has quit [Ping timeout: 246 seconds]
hiroaki has quit [Ping timeout: 245 seconds]
duderonomy has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
seirl24 has joined #ruby
seirl24 has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 268 seconds]