havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-preview2: 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!
jenrzzz has joined #ruby
Emmanuel_Chanel has joined #ruby
chunkypuffs has joined #ruby
yokel has quit [Ping timeout: 268 seconds]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
yokel has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
stooj has quit [Ping timeout: 268 seconds]
lupine has quit [Ping timeout: 265 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stooj has joined #ruby
canton7 has quit [Quit: ZNC - http://znc.in]
canton7 has joined #ruby
<SeepingN> nothing
<SeepingN> you already have it
<SeepingN> makes it very handy in som ecases!
drincruz has quit [Ping timeout: 250 seconds]
DaRock has joined #ruby
Hobbyboy has quit [Quit: The BNC has broken!]
chalkmonster has quit [Quit: WeeChat 2.6]
lupine has joined #ruby
Hobbyboy has joined #ruby
yokel has quit [Ping timeout: 250 seconds]
yokel has joined #ruby
davidw has quit [Ping timeout: 252 seconds]
cliluw has quit [Read error: Connection reset by peer]
AJA4350 has quit [Ping timeout: 246 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
Fernando-Basso has quit [Quit: Leaving]
Nicmavr has joined #ruby
Fenhl has quit [Ping timeout: 252 seconds]
Sina has quit [Ping timeout: 250 seconds]
JJonah_ has quit [Ping timeout: 250 seconds]
Liothen has quit [Ping timeout: 250 seconds]
englishm has quit [Ping timeout: 252 seconds]
hsiktas has quit [Ping timeout: 252 seconds]
WA9ACE has quit [Ping timeout: 252 seconds]
alnk has quit [Ping timeout: 250 seconds]
sparc has quit [Ping timeout: 250 seconds]
iamdevnul has quit [Ping timeout: 250 seconds]
sariyar has quit [Ping timeout: 252 seconds]
fowlduck has quit [Ping timeout: 252 seconds]
ryzokuken has quit [Ping timeout: 252 seconds]
Lewix has quit [Ping timeout: 252 seconds]
matti has quit [Ping timeout: 252 seconds]
jetpack_joe has quit [Ping timeout: 252 seconds]
pitastrudl has quit [Ping timeout: 252 seconds]
iamdevnul has joined #ruby
ctp has quit [Ping timeout: 250 seconds]
jerme_ has quit [Ping timeout: 250 seconds]
d10n-work has quit [Ping timeout: 250 seconds]
Iambchop has quit [Ping timeout: 250 seconds]
wbnns has quit [Ping timeout: 252 seconds]
strmpnk has quit [Ping timeout: 252 seconds]
sariyar has joined #ruby
jetpack_joe has joined #ruby
pitastrudl has joined #ruby
Iambchop has joined #ruby
strmpnk has joined #ruby
Liothen has joined #ruby
sparc has joined #ruby
Lewix has joined #ruby
Sina has joined #ruby
ctp has joined #ruby
jerme_ has joined #ruby
ryzokuken has joined #ruby
WA9ACE has joined #ruby
hsiktas has joined #ruby
englishm has joined #ruby
Fenhl has joined #ruby
JJonah_ has joined #ruby
fowlduck has joined #ruby
matti has joined #ruby
wbnns has joined #ruby
d10n-work has joined #ruby
cgfbee has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
cgfbee has joined #ruby
gix has quit [Ping timeout: 252 seconds]
drincruz has joined #ruby
tpanarch1st_ has quit [Ping timeout: 240 seconds]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
imtravis has joined #ruby
imtravis has quit [Ping timeout: 240 seconds]
drincruz has quit [Ping timeout: 240 seconds]
namelessjack has joined #ruby
orbyt_ has joined #ruby
wildtrees has quit [Quit: Leaving]
namelessjack has quit [Quit: Leaving]
drincruz has joined #ruby
spacesuitdiver has joined #ruby
chalkmonster has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
imtravis has joined #ruby
ctOS has joined #ruby
imtravis has quit [Ping timeout: 250 seconds]
namelessjack has joined #ruby
namelessjack has quit [Client Quit]
bkuhlmann has joined #ruby
skx86 has joined #ruby
genpaku has quit [Read error: Connection reset by peer]
genpaku has joined #ruby
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
cliluw has quit [Read error: Connection reset by peer]
Exuma has joined #ruby
cliluw has joined #ruby
davor has quit [Ping timeout: 240 seconds]
davor has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
Technodrome has joined #ruby
cliluw has quit [Ping timeout: 250 seconds]
akemhp has quit [Ping timeout: 252 seconds]
waterbrother has joined #ruby
waterbrother has quit [Quit: Quit]
waterbrother has joined #ruby
zrc has joined #ruby
zrc has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.6]
duderonomy has joined #ruby
Guest45383 has joined #ruby
Guest45383 has left #ruby [#ruby]
jaequery has joined #ruby
cliluw has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
alfiemax has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
alfiemax has quit [Remote host closed the connection]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
Omnilord has joined #ruby
cliluw has quit [Read error: Connection reset by peer]
baojg has joined #ruby
imtravis has joined #ruby
ravenousmoose has joined #ruby
bkuhlmann has quit []
Omnilord has quit [Quit: This computer has gone to sleep]
bitwinery has quit [Quit: Leaving]
ravenousmoose has quit [Ping timeout: 252 seconds]
Omnilord has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravenousmoose has joined #ruby
ravenousmoose has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
shoto has joined #ruby
brool has quit [Ping timeout: 276 seconds]
cd has quit [Quit: cd]
ravenousmoose has joined #ruby
ravenousmoose has quit [Ping timeout: 252 seconds]
roadt_ has quit [Ping timeout: 240 seconds]
ravenousmoose has joined #ruby
cthu| has joined #ruby
ravenousmoose has quit [Ping timeout: 252 seconds]
cthulchu_ has quit [Ping timeout: 245 seconds]
_whitelogger has joined #ruby
<baweaver> Here we go again with another Christmas themed lemur talk
jenrzzz has joined #ruby
Intelo has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
_whitelogger has joined #ruby
arup_r has joined #ruby
phaul_ has joined #ruby
roadt_ has joined #ruby
mr-kumar3 has joined #ruby
x0f has joined #ruby
KramerC_ has joined #ruby
catsed has joined #ruby
kentnl has joined #ruby
Intelo has quit [Ping timeout: 252 seconds]
quintasan_ has joined #ruby
ytti_ has joined #ruby
hagebake has joined #ruby
raddazong has joined #ruby
badeball_ has joined #ruby
_phaul has joined #ruby
phaul_ has quit [Ping timeout: 250 seconds]
j416_ has joined #ruby
KrzaQ- has joined #ruby
redlegion6 has joined #ruby
imtravis has quit [*.net *.split]
dinfuehr has quit [*.net *.split]
woodruffw has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
ta has quit [*.net *.split]
quintasan has quit [*.net *.split]
BTRE has quit [*.net *.split]
donofrio has quit [*.net *.split]
kent\n has quit [*.net *.split]
DTZUZO has quit [*.net *.split]
cats has quit [*.net *.split]
Bish has quit [*.net *.split]
phaul has quit [*.net *.split]
jordanm has quit [*.net *.split]
hagabaka has quit [*.net *.split]
x0f_ has quit [*.net *.split]
tricon has quit [*.net *.split]
thomas_25 has quit [*.net *.split]
gigetoo has quit [*.net *.split]
ablackack has quit [*.net *.split]
redlegion has quit [*.net *.split]
madhatter has quit [*.net *.split]
mr-kumar has quit [*.net *.split]
tabakhase has quit [*.net *.split]
ytti has quit [*.net *.split]
bluetown has quit [*.net *.split]
booboy has quit [*.net *.split]
tris has quit [*.net *.split]
rcs has quit [*.net *.split]
j416 has quit [*.net *.split]
KramerC has quit [*.net *.split]
phI||Ip has quit [*.net *.split]
nius has quit [*.net *.split]
electrostat has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
shenghi has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
Retr0Punk has quit [*.net *.split]
badeball has quit [*.net *.split]
eam has quit [*.net *.split]
KramerC_ is now known as KramerC
catsed is now known as cats
j416_ is now known as j416
Rudolph has quit [*.net *.split]
nirix has quit [*.net *.split]
asio has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
arthurnn has quit [*.net *.split]
gsingh93 has quit [*.net *.split]
kke has quit [*.net *.split]
dorian has quit [*.net *.split]
bier has quit [*.net *.split]
dalpo has quit [*.net *.split]
justinmrkva has quit [*.net *.split]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
akemhp has joined #ruby
donofrio has joined #ruby
Rudolph has joined #ruby
asio has joined #ruby
nirix has joined #ruby
MuffinPimp has joined #ruby
dorian has joined #ruby
arthurnn has joined #ruby
kke has joined #ruby
gsingh93 has joined #ruby
bier has joined #ruby
justinmrkva has joined #ruby
dalpo has joined #ruby
BTRE has joined #ruby
michael_mbp has joined #ruby
roadt_ has quit [Ping timeout: 245 seconds]
DTZUZO has joined #ruby
dinfuehr has joined #ruby
ta has joined #ruby
imtravis has joined #ruby
woodruffw has joined #ruby
dostoyevsky has joined #ruby
thomas_25 has joined #ruby
tabakhase has joined #ruby
tricon has joined #ruby
jordanm has joined #ruby
eam has joined #ruby
gigetoo has joined #ruby
booboy has joined #ruby
electrostat has joined #ruby
phI||Ip has joined #ruby
rcs has joined #ruby
Retr0Punk has joined #ruby
tris has joined #ruby
bluetown has joined #ruby
nius has joined #ruby
ablackack has joined #ruby
Bish has joined #ruby
shenghi has joined #ruby
roadt_ has joined #ruby
sauvin has joined #ruby
dostoyevsky has quit [Max SendQ exceeded]
ravenousmoose has joined #ruby
jenrzzz has joined #ruby
dostoyevsky has joined #ruby
Omnilord has quit [Quit: This computer has gone to sleep]
andikr has joined #ruby
ravenousmoose has quit [Ping timeout: 252 seconds]
rrichardsr3 has joined #ruby
rrichardsr3 has quit [Client Quit]
dinfuehr_ has joined #ruby
imtravis has quit [*.net *.split]
dinfuehr has quit [*.net *.split]
woodruffw has quit [*.net *.split]
ta has quit [*.net *.split]
DTZUZO has quit [*.net *.split]
Bish has quit [*.net *.split]
jordanm has quit [*.net *.split]
gigetoo has quit [*.net *.split]
thomas_25 has quit [*.net *.split]
tricon has quit [*.net *.split]
ablackack has quit [*.net *.split]
tabakhase has quit [*.net *.split]
bluetown has quit [*.net *.split]
booboy has quit [*.net *.split]
tris has quit [*.net *.split]
rcs has quit [*.net *.split]
nius has quit [*.net *.split]
phI||Ip has quit [*.net *.split]
electrostat has quit [*.net *.split]
shenghi has quit [*.net *.split]
Retr0Punk has quit [*.net *.split]
eam has quit [*.net *.split]
imtravis has joined #ruby
woodruffw has joined #ruby
nius has joined #ruby
ta has joined #ruby
bluetown has joined #ruby
tabakhase has joined #ruby
tris has joined #ruby
Bish has joined #ruby
ablackack has joined #ruby
gigetoo has joined #ruby
thomas_25 has joined #ruby
phI||Ip has joined #ruby
booboy has joined #ruby
tricon has joined #ruby
jordanm has joined #ruby
DTZUZO has joined #ruby
rcs has joined #ruby
shenghi has joined #ruby
Retr0Punk has joined #ruby
eam has joined #ruby
electrostat has joined #ruby
arup_r has quit []
roadt_ has quit [Ping timeout: 246 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roadt_ has joined #ruby
ravenousmoose has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
hiroaki has quit [Ping timeout: 276 seconds]
sandstrom has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
Omnilord has joined #ruby
dellavg has joined #ruby
Ducky has joined #ruby
Ducky has quit [Remote host closed the connection]
Navred has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
schne1der has joined #ruby
Intelo has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
mikecmpbll has joined #ruby
donofrio has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
Intelo has quit [Ping timeout: 250 seconds]
ravenousmoose has quit [Ping timeout: 250 seconds]
shoto_ has joined #ruby
shoto has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
guardian has quit [Ping timeout: 252 seconds]
naftilos76 has joined #ruby
<naftilos76> Hi everyone, i am using ruby structs and i am having an issue: https://paste.ubuntu.com/p/bFnDRmyCjh/
<naftilos76> Why is the second puts empty?
guardian has joined #ruby
<naftilos76> I do not get an exception there but it is still empty
<_phaul> because in Serial#init you use a local variable baud_rate
<_phaul> local variable has no effect outside of its lexical scope, here inparticualr the method
<_phaul> hint: local variables vs instance variables
sandstrom has quit [Quit: My computer has gone to sleep.]
Intelo has joined #ruby
<_phaul> also I would use proper classes not structs, and initialize which is automatically called by .new
<naftilos76> _phaul: just found out.... i used self and fixed it
queip has quit [Ping timeout: 245 seconds]
<_phaul> that's a convoluted way of getting it working but ok
mikecmpbll has quit [Quit: inabit. zz.]
<naftilos76> _phaul: what do you propose?
<_phaul> I would use proper classes not structs, initialize (which is automatically called by .new) not init, explicit attr_accessors.
<_phaul> class Serial ; attr_accessor :port, :stop_bit ..; def initialize; @baud_rate = 115200; end; end ...
<_phaul> Then you do s = Serial.new and then s.baud_rate is already 115200
queip has joined #ruby
<naftilos76> _phaul: ok thanks
bvdw has quit [Read error: Connection reset by peer]
Intelo has quit [Ping timeout: 240 seconds]
bvdw has joined #ruby
<naftilos76> _phaul: sorry to bother you but can you pls have a look at https://ruby-doc.org/core-2.5.0/Struct.html#method-c-new
<naftilos76> isn't the 'name' supposed to the attribute of the Customer struct?
<naftilos76> i did the same thing in my code
<_phaul> sorry I have to dash
<naftilos76> ok no worries
mikecmpbll has joined #ruby
sandstrom has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
imtravis has quit [Ping timeout: 268 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fernando-Basso has joined #ruby
Intelo has joined #ruby
Jonopoly has joined #ruby
drincruz has quit [Read error: Connection reset by peer]
laif has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
queip has quit [Ping timeout: 265 seconds]
queip has joined #ruby
lxsameer has joined #ruby
phaul_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
laif has quit [Ping timeout: 246 seconds]
shoto_ has quit [Quit: Leaving]
akemhp has quit [Ping timeout: 246 seconds]
queip has quit [Ping timeout: 250 seconds]
laif has joined #ruby
Intelo has quit [Ping timeout: 246 seconds]
<phaul_> /
jenrzzz has joined #ruby
queip has joined #ruby
BH23 has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
laif_ has joined #ruby
laif has quit [Ping timeout: 245 seconds]
laif_ has quit [Client Quit]
queip has quit [Ping timeout: 250 seconds]
Fernando-Basso has quit [Ping timeout: 250 seconds]
queip has joined #ruby
arup_r has joined #ruby
ta has quit [Quit: WeeChat 2.5]
ta has joined #ruby
ta has quit [Client Quit]
ta has joined #ruby
Fernando-Basso has joined #ruby
yann-kaelig has joined #ruby
jenrzzz has joined #ruby
queip has quit [Ping timeout: 245 seconds]
Intelo has joined #ruby
queip has joined #ruby
dionysus69 has joined #ruby
iNs has quit [Remote host closed the connection]
imtravis has joined #ruby
queip has quit [Ping timeout: 240 seconds]
donofrio has joined #ruby
dellavg has left #ruby ["Ex-Chat"]
queip has joined #ruby
iNs has joined #ruby
imtravis has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
alfiemax has quit [Remote host closed the connection]
drincruz has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Navred has quit [Remote host closed the connection]
Nicmavr has joined #ruby
jenrzzz has joined #ruby
queip has quit [Ping timeout: 276 seconds]
imtravis has joined #ruby
imtravis has quit [Ping timeout: 240 seconds]
queip has joined #ruby
waterbrother has quit [Quit: Quit]
<tankf33der> o/
<tankf33der> Target is ruby 2.7.0dev (2019-11-15T07:50:40Z master fa7618e4c1) [sparc-solaris2.11]
<tankf33der> PASS all 1409 tests
<tankf33der> oki.
<barg> from what I understand, the requre keyword is used with modules, is that correct? so when a gem is installed e.g. sinatra, are all the modules of that gem imported as if they are part of your project, so that require 'sinatra' then imports or uses the sinatra module?
cthulchu_ has joined #ruby
akemhp has joined #ruby
<phaul_> barg: not quite. require loads ruby files from your load paths
rrichardsr3 has joined #ruby
<phaul_> &>> $LOAD_PATH
<rubydoc> # => ["/usr/lib/ruby/site_ruby/2.6.0", "/usr/lib/ruby/site_ruby/2.6.0/x86_64-linux",... check link for more (https://carc.in/#/r/80wl)
cthu| has quit [Ping timeout: 250 seconds]
<phaul_> if the gem provides a ruby file with the appropriate path then in effect gem install sinatra makes require 'sinatra' work
<phaul_> but that's not a hard guarantee
jenrzzz has quit [Ping timeout: 245 seconds]
<phaul_> gem install adds the gem lib ruby file locations to the $LOAD_PATH
<phaul_> ruby Modules is sort of orthogonal to all this. that is units introduced by the module keyword
Omnilord has quit [Quit: Leaving]
ravenousmoose has joined #ruby
<Bish> does somebody have cool idea how to convert hashes with different counts of keys into csv?
<Bish> barg: ruby has pseudo modules, no real ones
ravenousmoose has quit [Ping timeout: 250 seconds]
<Bish> module Yep; require 'file'; end won't automagicially result in Yep::FileModule
ravenousmoose has joined #ruby
howdoi has joined #ruby
ravenousmoose has quit [Ping timeout: 252 seconds]
rrichardsr3 has quit [Quit: He who dares .... wins.]
queip has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
queip has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
rwb has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
<barg> is gems in any way dependent or involving modules?
<barg> and if i want to learn about gems, modules and require... then in what order should i learn them?
AJA4350 has joined #ruby
bkuhlmann has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
imtravis has joined #ruby
drincruz has quit [Ping timeout: 250 seconds]
tpanarch1st_ has joined #ruby
<barg> (and when I say modules, I mean like the module keyword).. thanks.
drincruz has joined #ruby
zapata has joined #ruby
drincruz has quit [Ping timeout: 250 seconds]
syngress has joined #ruby
queip has quit [Ping timeout: 246 seconds]
akemhp_ has joined #ruby
queip has joined #ruby
akemhp has quit [Ping timeout: 276 seconds]
akem__ has joined #ruby
lucasb has joined #ruby
akemhp_ has quit [Ping timeout: 250 seconds]
bkuhlmann has quit [Remote host closed the connection]
jenrzzz has joined #ruby
queip has quit [Ping timeout: 276 seconds]
Navred has joined #ruby
skx86 has joined #ruby
queip has joined #ruby
poontangmessiah has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arup_r has quit []
roadt_ has quit [Ping timeout: 246 seconds]
jcalla has joined #ruby
roadt_ has joined #ruby
bkuhlmann has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
duderonomy has joined #ruby
stryek has joined #ruby
tpanarch1st_ has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
cthu| has joined #ruby
akemhp_ has joined #ruby
RougeRR has joined #ruby
<RougeRR> hey
drincruz has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akem__ has quit [Ping timeout: 245 seconds]
cthulchu_ has quit [Ping timeout: 250 seconds]
<phaul_> hi there
jaequery has joined #ruby
<RougeRR> i found a horrid bug lol
<RougeRR> part of an authentication wrapper/cache profram failed due to an invalid uri on an s3 file object
<RougeRR> which wasnt really invalid but the uri parsed said it was
<RougeRR> was like foobar[2].jpeg
<RougeRR> stopped all clients with it from authing
SeepingN has joined #ruby
jaequery has quit [Client Quit]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
jaequery has joined #ruby
queip has quit [Ping timeout: 250 seconds]
Navred has quit [Ping timeout: 252 seconds]
Nahra has joined #ruby
Nahra has joined #ruby
bkuhlmann has quit []
jenrzzz has joined #ruby
dionysus70 has joined #ruby
queip has joined #ruby
erGoline has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
dionysus70 is now known as dionysus69
erGoline has left #ruby [#ruby]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akemhp_ has quit [Read error: Connection reset by peer]
akemhp_ has joined #ruby
DTZUZO has quit [Ping timeout: 268 seconds]
iotatron[m] has joined #ruby
kp666[m] has joined #ruby
execat[m] has joined #ruby
samdixon[m] has joined #ruby
f440[m] has joined #ruby
linuus[m] has joined #ruby
turt2live has joined #ruby
qbrd[m] has joined #ruby
aecepoglu[m] has joined #ruby
sepp2k has joined #ruby
Corey[m] has joined #ruby
dmitrycy[m] has joined #ruby
someGmrGrl[m] has joined #ruby
kodcx[m] has joined #ruby
kira_rose[m] has joined #ruby
danielk43[m] has joined #ruby
Hanspolo[m] has joined #ruby
Hanma[m] has joined #ruby
otaznik[m] has joined #ruby
gtwatt[m] has joined #ruby
DTZUZO has joined #ruby
AJA4351 has joined #ruby
akemhp_ has quit [Read error: Connection reset by peer]
AJA4350 has quit [Ping timeout: 252 seconds]
AJA4351 is now known as AJA4350
akemhp_ has joined #ruby
DaRock has quit [Ping timeout: 246 seconds]
Intelo has quit [Ping timeout: 240 seconds]
syngress has quit []
spacesuitdiver has joined #ruby
mdesantis has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<naftilos76> Hi i am using Curses and i am not able to set text color & background
jaequery has joined #ruby
<naftilos76> @window.addstr length.times.collect {" "}.join
<naftilos76> def bar(x, y, length, fg_color, bg_color)
<naftilos76> Curses.attrset(Curses.color_pair(1) | Curses::A_NORMAL)
<naftilos76> @window.setpos y, x
<naftilos76> Curses.init_pair(1, fg_color, bg_color)
<naftilos76> @window.refresh
<naftilos76> end
<naftilos76> This is a simple def for set a color bar
<naftilos76> do you see anything wrong?
jaequery has quit [Client Quit]
<naftilos76> i only get white fg & black bg
<naftilos76> I call the def => bar 0, 0, @window_properties.cols, Curses::COLOR_BLUE, Curses::COLOR_RED
<naftilos76> @window_properties.cols == Curses.cols
<naftilos76> ok got it to work but it seems that i have to use Curses instead of @window
KeyJoo has joined #ruby
code_zombie has joined #ruby
dinfuehr_ has quit [Ping timeout: 246 seconds]
mdesantis has quit [Quit: Leaving]
dinfuehr has joined #ruby
akem__ has joined #ruby
jenrzzz has joined #ruby
zapata has quit [Ping timeout: 250 seconds]
akemhp_ has quit [Read error: Connection reset by peer]
akemhp_ has joined #ruby
zapata has joined #ruby
AJA4351 has joined #ruby
akem__ has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
poontangmessiah has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
<leftylink> so is it time to make some really bad joke like "Curses, foiled again" ?
dviola has joined #ruby
<leftylink> eh... I guess the window of opportunity to make such a joke has passed long ago
<leftylink> oh well, good try
spacesuitdiver has joined #ruby
KeyJoo has quit [Quit: KeyJoo]
Intelo has joined #ruby
ravenousmoose has joined #ruby
akemhp has joined #ruby
ravenousmoose has quit [Ping timeout: 250 seconds]
Jonopoly has quit [Quit: WeeChat 2.5]
akemhp_ has quit [Ping timeout: 240 seconds]
swyper has joined #ruby
<swyper> hey guys
<swyper> hi havenwood
<barg> phaul_: thanks
<havenwood> swyper: Did you get a salt,salt,fish solution you like?
<swyper> no :P
<swyper> this was the intern interview for pagerduty btw if anyone cares. lol
ellcs has quit [Remote host closed the connection]
<adam12> swyper: Toronto office I'm presuming?
<swyper> yeah
<swyper> but I messed up the last question pretty bad so I have no chance of getting it which sucks cause it was my dream company lol
<havenwood> swyper: a lot of interviews are intended to test your limits, so finding your limit doesn't necessarily mean a fail!
<swyper> fair :D
gix has joined #ruby
<havenwood> swyper: even the best coders I know fail interviews, since interviews are so very subjective and arbitrary
davidw has joined #ruby
<swyper> blah its out of my hands now whatever happens happens I guess >_>
<swyper> all I can do is learn from it and find out the answer to the question I missed so if something similar ever comes up again I am prepared :D
Intelo has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
akemhp has quit [Ping timeout: 240 seconds]
<leftylink> some interviews I don't even know what I did wrong
<havenwood> swyper: I'd suggest trying out tests! See if they'll substantially speed up your feedback loop without a penalty. (Also way better for getting help to have failing test cases.)
<havenwood> swyper: Try making this test pass: https://gist.github.com/havenwood/c4c0e6f4ee798ab4359b63023eb88dbd
<havenwood> swyper: Just create an ingredient.rb file with those of ^ contents and run the test with: ruby ingredients.rb
<havenwood> swyper: The test fails!
<swyper> okay sweet
<swyper> thanks havenwood
<swyper> ive saved the link ill do it once im done grinding out calc 2 got a midterm coming up soon :P
<havenwood> swyper: Make it pass and we can show how to add another assertion. Once you have a few assertions to describe the expected behavior, you can make them pass. Then you can refactor without preventing regressions or having to retry every example.
<havenwood> swyper: Cool
<havenwood> swyper: Good luck with your midterm!
<swyper> thank youu
<swyper> i also followed you on github :P
<havenwood> those who do gain great fortune (i've heard)
<havenwood> refactor while preventing**
queip has quit [Ping timeout: 252 seconds]
cschneid has joined #ruby
hutch1 has joined #ruby
barg has quit []
AJA4351 has joined #ruby
<cschneid> Is there a way to get an error out of Marshal.dump that tells me *what* object has a Default Proc that it can't serialize?
<cschneid> (you can't Marhsal.dump(myHash) if myHash has a default_proc
<cschneid> but one is sneaking in anyway, and I don't know which of a nested object structure it is
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
<havenwood> cschneid: Hrm, good question.
<havenwood> &>> ObjectSpace.each_object(Hash).select(&:default_proc).size
<rubydoc> # => 2 (https://carc.in/#/r/80xh)
<havenwood> cschneid: There aren't many Hashes with default procs to start with, at least.
<cschneid> well, we use it in a few places, but those objects shouldn't ever make it in.
<cschneid> Can I limit objectspace to an object as the parent? "This, and all objects referenced from here"
queip has joined #ruby
<cschneid> (objects shouldn't ever make it into this marshal section)
<cschneid> Hmm, if I have MyObj, which has MyOtherObj and similar in instance vars, which in turn may have Hash, I should be able to recurse through it to figure it out right?
<cschneid> Get a big list of instance vars, loop over and see if they are a hash w/ a proc, or recurse in and ask if they are a hash w/ a proc.
<havenwood> cschneid: Yeah, sounds like you could recurse to find it. I don't know any trick to get marshal to cough that up.
<cschneid> alternatively, I could recurse in, and repeatedly try to dump, and cut off tree branches that do succeed.
davidw has quit [Remote host closed the connection]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
BH23 has quit [Ping timeout: 240 seconds]
akemhp has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
dviola has quit [Quit: WeeChat 2.6]
jaequery has joined #ruby
jenrzzz has joined #ruby
<naftilos76> Has anybody got any experience with curses gem? I am trying to use colors in my terminal but when i do, the previous colored text changes to the one i have just set
cthu| has quit [Ping timeout: 245 seconds]
cthulchu has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
cthulchu has quit [Ping timeout: 240 seconds]
paraxial has quit [Quit: The Lounge - https://thelounge.chat]
skx86 has quit [Quit: Connection closed for inactivity]
queip has quit [Ping timeout: 240 seconds]
sameerynho has joined #ruby
queip has joined #ruby
dionysus69 has quit [Remote host closed the connection]
Xiti` has joined #ruby
dionysus69 has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
Xiti has quit [Ping timeout: 240 seconds]
SCHAPiE has quit [Quit: ZNC - https://znc.in]
<havenwood> naftilos76: Show a gist with code demonstrating the issue?
<naftilos76> havenwood: fixed it - no worries
Jonopoly has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
AJA4350 has quit [Read error: Connection timed out]
AJA4350 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
orbyt_ has joined #ruby
Exuma has joined #ruby
SCHAPiE has joined #ruby
poontangmessiah has joined #ruby
dionysus69 has joined #ruby
imtravis has quit [Ping timeout: 252 seconds]
ElFerna has joined #ruby
laudecay has joined #ruby
queip has quit [Ping timeout: 250 seconds]
<laudecay> hi does anyone know how to contact the brakeman devs? a dev i work with found a bug in the newest version but i can't post the code that generates it in a github issue
ellcs has joined #ruby
AJA4351 has joined #ruby
<cschneid> havenwood: 95% done w/ a class that recurses and checks for undumpable stuff. May open source if it I bother making it cleaner
queip has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
gavlee has quit []
jenrzzz has joined #ruby
naftilos76 has quit [Quit: Leaving]
<laudecay> ?
imtravis has joined #ruby
<laudecay> sorry dog mashed keyboard
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gavlee has joined #ruby
poontangmessiah_ has joined #ruby
ravenousmoose has joined #ruby
poontangmessiah_ has quit [Read error: Connection reset by peer]
poontangmessiah_ has joined #ruby
poontangmessiah has quit [Ping timeout: 252 seconds]
i9zO5AP has quit [Quit: WeeChat 2.5]
ravenousmoose has quit [Ping timeout: 250 seconds]
queip has quit [Ping timeout: 246 seconds]
queip has joined #ruby
ElFerna has quit [Ping timeout: 246 seconds]
zapata has quit [Quit: WeeChat 2.5]
<adam12> Anybody using a non-stdlib logger? If so, which?
cthulchu has joined #ruby
imtravis has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
jenrzzz has quit [Ping timeout: 240 seconds]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
queip has quit [Ping timeout: 240 seconds]
bitwinery has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
bitwinery has quit [Remote host closed the connection]
bitwinery has joined #ruby
cliluw has joined #ruby
imtravis has joined #ruby
AJA4351 has joined #ruby
MrCrackPotBob has quit [Ping timeout: 250 seconds]
ellcs has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
queip has joined #ruby
AJA4351 is now known as AJA4350
cliluw has quit [Read error: Connection reset by peer]
wildtrees has joined #ruby
Intelo has joined #ruby
cliluw has joined #ruby
code_zombie has quit [Quit: Leaving]
cthulchu has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
imtravis has quit [Ping timeout: 276 seconds]
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
poontangmessiah_ has quit [Quit: Leaving]
swyper has quit [Remote host closed the connection]
skx86 has joined #ruby
cthulchu has joined #ruby
AJA4351 has joined #ruby
cd has joined #ruby
RougeRR has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
Technodrome has joined #ruby
ElFerna has joined #ruby
manakanapa has quit [Quit: The Lounge - https://thelounge.chat]
manakanapa has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
jenrzzz has quit [Ping timeout: 276 seconds]
cschneid has quit [Remote host closed the connection]
mitt3ns has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
laudecay has quit [Ping timeout: 246 seconds]
Nahra has quit [Ping timeout: 252 seconds]
dviola has joined #ruby
ElFerna has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
ElFerna has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mitt3ns has quit [Quit: leaving]
phaul_ has quit [Ping timeout: 250 seconds]
akemhp_ has joined #ruby
AJA4351 has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
nowhere_man has joined #ruby
ElFerna has quit [Ping timeout: 265 seconds]
ElFerna has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
dionysus70 is now known as dionysus69
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
cow[moo] has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 246 seconds]
bvdw has joined #ruby
ElFerna has quit [Ping timeout: 245 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
envex has joined #ruby
sandstrom has joined #ruby
imtravis has joined #ruby
GodFather has joined #ruby
Eiam_ has joined #ruby
ellcs has joined #ruby
AJA4351 has joined #ruby
akemhp_ has quit [Quit: Leaving]
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
Eiam has quit [Ping timeout: 245 seconds]
dviola has quit [Quit: WeeChat 2.6]
ravenousmoose has joined #ruby
ravenousmoose has quit [Ping timeout: 252 seconds]
imtravis has quit [Ping timeout: 240 seconds]
ellcs has quit [Remote host closed the connection]
ghostlines has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imtravis has joined #ruby
cassolas has joined #ruby
ellcs has joined #ruby
cassolas has quit [Quit: Textual IRC Client: www.textualapp.com]
cassolas has joined #ruby
cassolas has quit [Quit: Textual IRC Client: www.textualapp.com]
ravenousmoose has joined #ruby
hutch1 has quit [Ping timeout: 246 seconds]
Omnilord has joined #ruby
ravenousmoose has quit [Ping timeout: 250 seconds]
KrzaQ- is now known as KrzaQ
SeepingN has joined #ruby
rwb has joined #ruby
ellcs has quit [Ping timeout: 276 seconds]
spacesuitdiver has joined #ruby
Nahra has joined #ruby
Nahra has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
yokel has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
poontangmessiah has joined #ruby
ellcs has joined #ruby
hutch1 has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
RiPuk has quit [Ping timeout: 252 seconds]
RiPuk_ has joined #ruby
leitz has joined #ruby
<leitz> If m is an instance of HFDP::Mallard, with HFDP being the module and Mallard being the class, is there a way to alter a call to self.class to get just the class, and not the module?
iNs has quit [Quit: bubye]
iNs has joined #ruby
xGrind has joined #ruby
`Alison has quit [Quit: ZNC 1.7.4+deb4 - https://znc.in]
`Alison has joined #ruby
hutch1 has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Ping timeout: 265 seconds]
AJA4350 has joined #ruby
lxsameer has quit [Ping timeout: 276 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
sdrew has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Omnilord has quit [Quit: This computer has gone to sleep]
Omnilord has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> leitz: Why do you want to do that? Are you trying to get at the String equivalent or something else?
ellcs has quit [Ping timeout: 240 seconds]
cow[moo] has joined #ruby
<havenwood> leitz: Assuming this isn't Rails?
Nahra has quit [Quit: leaving]
<havenwood> &>> module Wombat; class Fox; def initialize; namespace, _separator, klass = self.class.name.rpartition '::'; p Module.const_get(namespace).const_get(klass); end end end; Wombat::Fox.new
<rubydoc> # => Wombat::Fox... check link for more (https://carc.in/#/r/80yf)
<havenwood> &>> module Wombat; class Fox; def initialize; self.class.name.rpartition('::').last; end end end; Wombat::Fox.new
<rubydoc> # => #<Wombat::Fox:0x000055b1eea0c7b0> (https://carc.in/#/r/80yg)
<havenwood> forgot to print, but: "Fox"
<havenwood> leitz: In Rails: self.class.demodulize
<havenwood> #=> "Fox"
yann-kaelig has quit [Quit: yann-kaelig]
lucasb has quit [Quit: Connection closed for inactivity]
galaxie_ has quit [Remote host closed the connection]
yann-kaelig has joined #ruby
mynameisdebian has joined #ruby
<mynameisdebian> Hey can anyone explain why Date.strptime is not working properly here? https://pastebin.com/Tnttw6SA
<ruby[bot]> mynameisdebian: as I told you already, please use https://gist.github.com
<havenwood> mynameisdebian: What result do you wannt?
<mynameisdebian> havenwood, I want it to return the year as 2019 instead of 0019
<havenwood> &>> Time.now.strftime('%-m/%-d/%Y')
<rubydoc> # => "11/15/2019" (https://carc.in/#/r/80yi)
<havenwood> mynameisdebian: Do you really want a different behavior for month and day with the leading zero?
<havenwood> mynameisdebian: Show a few examples of your desired output?
yann-kaelig has quit [Client Quit]
<havenwood> mynameisdebian: Examples are the easiest for us to respond to.
<havenwood> mynameisdebian: Oh, I misunderstood.
AJA4351 has joined #ruby
<mynameisdebian> havenwood, sorry if my examples weren't clear. If you need more explanation please let me know
<mynameisdebian> need/want
<havenwood> mynameisdebian: What do you mean that leading dash to be? I mistook it for strftime.
AJA4350 has quit [Ping timeout: 252 seconds]
AJA4351 is now known as AJA4350
<mynameisdebian> havenwood, the strptime reference gives that as a way of accounting for lack of a leading zero
<mynameisdebian> means, "month without leading zero"
<havenwood> mynameisdebian: "strptime does not support specification of flags and width unlike strftime."
<havenwood> mynameisdebian: No need to specify width when parsing, only when generating.
<mynameisdebian> havenwood, oh, I see I got it wrong
<mynameisdebian> havenwood, I can't figure out how to parse that string with strptime
<havenwood> mynameisdebian: My eyes just blurred when I saw `%-m` and I thought strftime.
<mynameisdebian> makes sense
<mynameisdebian> I read somewhere a while back that I can just use %m for strptime, but it's not giving me the result I intended
<al2o3-cr> mynameisdebian: what result do you need?
<leitz> havenwood, thanks! I'm working through "Head First Design Patterns", with a Ruby mindset. Well, as set as my mind gets.
<leitz> That, and enjoying the fire in the living room. :)
<havenwood> mynameisdebian: '%m/%d/%y'
<mynameisdebian> lol I'm stupid
<mynameisdebian> let me figure out how I got mixed up here
<mynameisdebian> havenwood thanks, sorry
<al2o3-cr> havenwood: or %D :P
<havenwood> mynameisdebian: There is a complicating thing though in the strptime POSIX standard.
<havenwood> >> require 'date'; Date.strptime('1/1/69', '%m/%d/%y')
<havenwood> &>> require 'date'; Date.strptime('1/1/69', '%m/%d/%y')
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<rubydoc> # => #<Date: 1969-01-01 ((2440223j,0s,0n),+0s,2299161j)> (https://carc.in/#/r/80yj)
<havenwood> &>> require 'date'; Date.strptime('1/1/68', '%m/%d/%y')
<rubydoc> # => #<Date: 2068-01-01 ((2476382j,0s,0n),+0s,2299161j)> (https://carc.in/#/r/80yk)
<havenwood> &>> require 'date'; Date.strptime('1/1/68', '%m/%d/%y').year
<rubydoc> # => 2068 (https://carc.in/#/r/80yl)
<havenwood> &>> require 'date'; Date.strptime('1/1/69', '%m/%d/%y').year
<rubydoc> # => 1969 (https://carc.in/#/r/80ym)
<havenwood> mynameisdebian: ^
<mynameisdebian> lol wut
<havenwood> mynameisdebian: As al2o3-cr points out, same with %D
<havenwood> &>> require 'date'; Date.strptime('1/1/69', '%D')
<rubydoc> # => #<Date: 1969-01-01 ((2440223j,0s,0n),+0s,2299161j)> (https://carc.in/#/r/80yn)
<havenwood> &>> require 'date'; Date.strptime('1/1/68', '%D')
<rubydoc> # => #<Date: 2068-01-01 ((2476382j,0s,0n),+0s,2299161j)> (https://carc.in/#/r/80yo)
* mynameisdebian scratches his head
<havenwood> mynameisdebian: A year apart, or just over a century apart. POSIX.
<havenwood> Convenient for the time, but they assumed we'd do better by now and didn't build looking at it being the same code forever.
<havenwood> mynameisdebian: This isn't Ruby-specific behavior, but if you want to use strptime you have to deal with it.
<havenwood> mynameisdebian: You might consider something other than strptime. If you want to go with it, check up on its unique behavior.
<mynameisdebian> havenwood, I'm a bit lost on what is happening in those examples
<havenwood> mynameisdebian: The year of 68 is presumed to be 2068 but the year of 69 is presumed to be 1969.
<havenwood> Very forward looking for the time
brool has joined #ruby
<mynameisdebian> havenwood, ok I get it
<mynameisdebian> thank you
<havenwood> mynameisdebian: np
akemhp has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
drincruz has quit [Ping timeout: 240 seconds]