havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: 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!
<phaul> havenwood: seems that Integer itself includes comparable so doing Comparable implementation with use if comparing [-1,0,1] against 0 doesn't work, unless Integer implements pritive <, > etc.
<phaul> shame I thought it was a nifty way of implementing it
davidw has quit [Ping timeout: 265 seconds]
thenori has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
<phaul> &>> Integer.ancestors.include? Comparable # is what I missed ^
<rubydoc> # => true (https://carc.in/#/r/8ic8)
royal_screwup21 has quit [Remote host closed the connection]
_phaul has joined #ruby
mossplix has joined #ruby
<_phaul> I'm having connection issues. what was my last message that appeared on the channel?
phaul has quit [Ping timeout: 265 seconds]
<_phaul> nvm. ignore me. time to bed. the logger moved on to the next day :)
alex`` has quit [Ping timeout: 268 seconds]
<leftylink> hmm. I don't think I ever found my personal magic number yet, have I
alexherbo2 has quit [Ping timeout: 268 seconds]
<leftylink> haven't made my computer work hard enough yet apparently. will start it off searching for my number, will report back when it's found something
<havenwood> leftylink: what's that number about?
alfiemax has joined #ruby
stryek has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
DaRock has joined #ruby
davidw has joined #ruby
<leftylink> the random seed that generates my username... though I think my username is so long that this will take so long to find. maybe I'll just settle for "lefty" or "ray" instead
<leftylink> but "ray" seems a little easy so....
mossplix has quit [Ping timeout: 265 seconds]
<leftylink> to make it not completely absurd I'm going to have to limit it to lowercase letters so I'm not trying to hit 128**9, just 26**9
<leftylink> oh good, it only took 6 minutes to find lefty
gdonald has quit [Remote host closed the connection]
<leftylink> &>> r = Random.new(8753452); 5.times.map { r.rand(97..122).chr }.join
<rubydoc> # => "lefty" (https://carc.in/#/r/8ic9)
<leftylink> it will only take 456976x as long to find leftylink
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> &>> srand 7650910; [*?a..?z].sample(5)
<rubydoc> # => ["l", "e", "f", "t", "y"] (https://carc.in/#/r/8ica)
gdonald has joined #ruby
<leftylink> too bad I can't use sample for leftylink
<leftylink> just one letter off
<leftylink> from being able to use sample
<leftylink> stupid alliteration. if only I hadn't insisted on it
<leftylink> okay so it's 1904 days to find leftylink
<leftylink> probably have to give up.
<leftylink> unless I can harness a few hundred machines nonstop?
<leftylink> and divide up the search space between them
mossplix has joined #ruby
<leftylink> I can make it a lot easier by only using the letters that appear in my username anyway, but then it would be too obvious that that's what I'm doing
royal_screwup21 has joined #ruby
cliluw has quit [Ping timeout: 268 seconds]
<leftylink> yeah found an answer withiin a few seconds for that one
mossplix has quit [Ping timeout: 268 seconds]
<leftylink> &>> [101, 102, 105, 107, 108, 108, 110, 116, 121].shuffle(random: Random.new(132850)).map(&:chr).join
<rubydoc> # => "leftylink" (https://carc.in/#/r/8icc)
<leftylink> but I guess I'll take that over a problem that will take years to finish
<leftylink> shrug
lucasb has quit [Quit: Connection closed for inactivity]
cliluw has joined #ruby
<leftylink> suggestions for other numbers I can associate with myself welcome. maybe I can rand from e..y, ho wmany letters is that... that takes off 4 letters from the front and 1 from the end, so now it's only 21**9
spacesuitdiver has joined #ruby
<leftylink> then it'd only take 46 days to find my magic number
mossplix has joined #ruby
cd has quit [Quit: cd]
houhoulis has quit [Ping timeout: 265 seconds]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
mossplix has quit [Ping timeout: 265 seconds]
thenori has quit [Remote host closed the connection]
VlanX has quit [Ping timeout: 265 seconds]
<leftylink> yeah dunno, every other way I can think of to make the problem easier seems too contrived, I think it is just my punishment for having a long username
royal_screwup21 has quit [Remote host closed the connection]
mossplix has joined #ruby
skryking_ has joined #ruby
skryking has quit [Ping timeout: 265 seconds]
nowhere_man has quit [Ping timeout: 272 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
<al2o3-cr> i want some of what you've been smoking :P
mossplix has quit [Ping timeout: 268 seconds]
wallace_mu has joined #ruby
tryhard21 has joined #ruby
tryhard211 has quit [Ping timeout: 268 seconds]
mossplix has joined #ruby
<baweaver> al2o3-cr / leftylink: havenwood may have done this to FizzBuzz
zlogan has quit [Ping timeout: 265 seconds]
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
mossplix has quit [Ping timeout: 265 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
<havenwood> yeah... I paid a bit more for that compute unit running for months than I meant to...
<havenwood> baweaver: But at what cost?
orbyt_ has joined #ruby
akem has quit [Ping timeout: 240 seconds]
davidw has quit [Ping timeout: 268 seconds]
renatoalencar has joined #ruby
<renatoalencar> hi
<havenwood> hi
<havenwood> renatoalencar: welcome!
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
mossplix has joined #ruby
ctOS has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
mossplix has quit [Remote host closed the connection]
madper has joined #ruby
sarink has quit [Ping timeout: 268 seconds]
cliluw has quit [Ping timeout: 265 seconds]
duderonomy has joined #ruby
renatoalencar has quit [Ping timeout: 272 seconds]
sergioro has joined #ruby
gix- has quit [Ping timeout: 260 seconds]
johnny56 has joined #ruby
johnny56_ has quit [Ping timeout: 240 seconds]
sarink has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink has quit [Ping timeout: 260 seconds]
ttoocs has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
SeepingN has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
bsdbandit-01 has joined #ruby
madper is now known as imadper
imadper has quit [Changing host]
imadper has joined #ruby
imadper has quit [Remote host closed the connection]
snuz has quit [Read error: Connection reset by peer]
imadper has joined #ruby
lycid has joined #ruby
alfiemax has joined #ruby
lycid has quit [Quit: leaving]
lycid has joined #ruby
ooheitooh has quit [Ping timeout: 240 seconds]
lycid has quit [Quit: leaving]
sarink has joined #ruby
DaRock has quit [Ping timeout: 268 seconds]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink has quit [Ping timeout: 268 seconds]
robscomputer has joined #ruby
gnufr33d0m has quit [Quit: gnufr33d0m]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
ur5us has quit [Ping timeout: 265 seconds]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
ooheitooh has joined #ruby
NODE has quit [Quit: Benett]
houhoulis has joined #ruby
Benett has quit [Quit:  ]
gnufr33d0m has joined #ruby
Benett has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NODE has joined #ruby
Benett has quit [Ping timeout: 265 seconds]
NODE has quit [Ping timeout: 246 seconds]
Benett has joined #ruby
ctOS has quit [Quit: Connection closed for inactivity]
mr_rich101 has quit [Quit: ZNC - http://znc.in]
mr_rich101 has joined #ruby
Benett has quit [Remote host closed the connection]
Benett has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
NODE has joined #ruby
Black has joined #ruby
ooheitooh has quit [Quit: The Lounge - https://thelounge.chat]
Arahael has quit [Ping timeout: 252 seconds]
Benett has quit [Ping timeout: 265 seconds]
Black is now known as Benett
NODE has quit [Ping timeout: 246 seconds]
chalkmonster has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
Benett has quit [Quit:  ]
gnufr33d0m has quit [Quit: gnufr33d0m]
Benett has joined #ruby
ooheitooh has joined #ruby
Arahael has joined #ruby
NODE has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
edwardly has quit [Ping timeout: 268 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
cliluw has joined #ruby
ewanchic has quit [Ping timeout: 268 seconds]
ewanchic has joined #ruby
ewanchic has left #ruby [#ruby]
akemhp has joined #ruby
zapata has quit [Quit: WeeChat 2.7]
chalkmonster has quit [Quit: WeeChat 2.7]
fig-le-deunch has quit [Quit: Konversation terminated!]
dStromboli has joined #ruby
houhoulis has quit [Remote host closed the connection]
zapata has joined #ruby
dStromboli has quit [Ping timeout: 265 seconds]
dStromboli has joined #ruby
cthu| has quit [Ping timeout: 265 seconds]
mossplix has joined #ruby
_whitelogger has joined #ruby
Azure has quit [Ping timeout: 265 seconds]
Exuma has joined #ruby
mossplix has quit [Remote host closed the connection]
Azure has joined #ruby
mossplix has joined #ruby
alfiemax has quit [Remote host closed the connection]
sarink has joined #ruby
pandakekok9 has joined #ruby
alfiemax has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
meinside has joined #ruby
zlogan has joined #ruby
ldepandis has joined #ruby
ldepandis has quit [Client Quit]
sarink has quit [Remote host closed the connection]
mossplix has quit [Remote host closed the connection]
ldepandis has joined #ruby
teardown has quit [Ping timeout: 268 seconds]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
alfiemax has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink has quit [Ping timeout: 268 seconds]
Business1 has joined #ruby
Sauvin has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
shalok has quit [Ping timeout: 265 seconds]
fercell has joined #ruby
shalok has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.7]
x0n has joined #ruby
<Business1> hey guys, can y'all please give a programming sources for ruby except emacs
al2o3-cr has joined #ruby
sarink has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
sarink has quit [Remote host closed the connection]
bvdw has joined #ruby
sarink has joined #ruby
sauvin_ has joined #ruby
DaRock has joined #ruby
sarink has quit [Ping timeout: 268 seconds]
glytchbinary has joined #ruby
dStromboli has quit [Ping timeout: 265 seconds]
dStrombo1 has joined #ruby
ldepandis has joined #ruby
dionysus69 has joined #ruby
sdu has joined #ruby
cliluw has quit [Ping timeout: 268 seconds]
Business1 has quit [Quit: Leaving]
_phaul has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
pandakekok9 has quit [Ping timeout: 240 seconds]
pandakekok9 has joined #ruby
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
schne1der has joined #ruby
sarink has quit [Ping timeout: 240 seconds]
sauvin_ is now known as Sauvin
fphilipe_ has joined #ruby
rubydoc has quit [Remote host closed the connection]
fphilipe has quit [Ping timeout: 265 seconds]
mossplix has joined #ruby
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Ping timeout: 265 seconds]
gigetoo has quit [Ping timeout: 268 seconds]
gigetoo has joined #ruby
mossplix has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 246 seconds]
Bounga has joined #ruby
madhatter has quit [Remote host closed the connection]
gigetoo has joined #ruby
rubydoc has joined #ruby
glytchbinary has quit [Quit: glytchbinary]
mikecmpbll has joined #ruby
teardown has joined #ruby
_phaul has joined #ruby
madhatter has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
lxsameer has joined #ruby
ur5us has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
conta has joined #ruby
<leftylink> I don't thin this question is answerable because we don't know what load is. but may I mention that Array#push and Array#delete both mutate their receiver?
<leftylink> maybe that will lead to some fruitful discoveries
<leftylink> wishing luck
Jonopoly has joined #ruby
greengriminal has joined #ruby
mossplix has joined #ruby
Hien has joined #ruby
chalkmonster has joined #ruby
markopasha has joined #ruby
phaul_ has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
mossplix has quit [Remote host closed the connection]
conta has quit [Quit: conta]
cisco has joined #ruby
cisco is now known as Guest43700
plutes has quit [Remote host closed the connection]
plutes has joined #ruby
<IGnorAND> How do you do RUN bundle install --jobs 20 --retry 5 --with development test with 2.7? is it "bundle config set without 'production'"?
mossplix has joined #ruby
Guest43700 has quit [Ping timeout: 268 seconds]
cisco has joined #ruby
m_antis has joined #ruby
m_antis is now known as m_antis[away]
alexherbo2 has joined #ruby
Fernando-Basso has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
alex`` has joined #ruby
<im0nde> Hi, I'm trying to login to xing with mechanize. This is my script so far https://gist.github.com/binaryplease/462804eeef4c0aa36a55376a5efde346 But I'm always landing again on the loin page
<im0nde> *login
<im0nde> what am I doing wrong here?
<im0nde> I'm trying to recreate what I do in the browser to login: Enter pass and user in the correct fields, then click the login button
m_antis[away] has quit [Quit: m_antis[away]]
royal_screwup21 has joined #ruby
william1 has joined #ruby
ratah has joined #ruby
pandakekok9 has quit [Ping timeout: 240 seconds]
Helenah has quit [Read error: Connection reset by peer]
pandakekok9 has joined #ruby
Helenah has joined #ruby
<al2o3-cr> im0nde: change line 17 to: mechanize.submit(form, login_button)
<al2o3-cr> yeah, i think that should do it.
<im0nde> al2o3-cr: I changed it to page = mechanize.submit(form, login_button)
chalkmonster has quit [Quit: WeeChat 2.7]
<im0nde> but when doing "puts page.title" e.g. after that, I still get "login to xing"
<al2o3-cr> no, just mechanize.submit(form, login_button)
<im0nde> ok, trying agin
<im0nde> al2o3-cr: how can I verify I'm logged in?
chalkmonster has joined #ruby
<al2o3-cr> check the contents of the page i suppose.
<im0nde> but why don't i need the ' page = ' then?
<al2o3-cr> im0nde: then page won't be a Mechanize::Page object
<im0nde> So just do another get after the submit ?
<al2o3-cr> look at the page after the submit, does it change?
<im0nde> I got it! I added a puts mechanize.get('https://www.xing.com/profile/<USERNAME>/cv').title
<im0nde> That shows my name
<im0nde> I'm logged it seems, thanks!
<al2o3-cr> seems so ;)
<al2o3-cr> yw
Inoperable has joined #ruby
Inoperable has quit [Client Quit]
alex`` has quit [*.net *.split]
Helenah has quit [*.net *.split]
ratah has quit [*.net *.split]
alfiemax has quit [*.net *.split]
madhatter has quit [*.net *.split]
teardown has quit [*.net *.split]
x0n has quit [*.net *.split]
dionysus69 has quit [*.net *.split]
dStrombo1 has quit [*.net *.split]
schne1der has quit [*.net *.split]
Azure has quit [*.net *.split]
NODE has quit [*.net *.split]
Arahael has quit [*.net *.split]
ooheitooh has quit [*.net *.split]
Benett has quit [*.net *.split]
rubydoc has quit [*.net *.split]
shah^ has quit [*.net *.split]
dan64 has quit [*.net *.split]
cvz has quit [*.net *.split]
hays has quit [*.net *.split]
matti has quit [*.net *.split]
FastJack has quit [*.net *.split]
darris has quit [*.net *.split]
jerme_ has quit [*.net *.split]
ctp has quit [*.net *.split]
Yxhuvud has quit [*.net *.split]
Mrgoose845701915 has quit [*.net *.split]
reaVer has quit [*.net *.split]
envex has quit [*.net *.split]
DTZUZU has quit [*.net *.split]
klaas has quit [*.net *.split]
JayDoubleu has quit [*.net *.split]
kapil_ has quit [*.net *.split]
meinside has quit [*.net *.split]
LtHummus has quit [*.net *.split]
salvor has quit [*.net *.split]
SoF has quit [*.net *.split]
bluetown has quit [*.net *.split]
Flonk has quit [*.net *.split]
_vircung_ has quit [*.net *.split]
mcspud has quit [*.net *.split]
uplime has quit [*.net *.split]
`Alison has quit [*.net *.split]
freshmaker666 has quit [*.net *.split]
kloeri has quit [*.net *.split]
vrih_ has quit [*.net *.split]
evdubs has quit [*.net *.split]
timmow_ has quit [*.net *.split]
ReinH has quit [*.net *.split]
wbnns has quit [*.net *.split]
pabs has quit [*.net *.split]
towo_ has quit [*.net *.split]
CustosLimen has quit [*.net *.split]
fowlduck has quit [*.net *.split]
entel has quit [*.net *.split]
Mutsuhito has quit [*.net *.split]
danguita has quit [*.net *.split]
gorsuch has quit [*.net *.split]
evert_ has quit [*.net *.split]
kp666[m] has quit [*.net *.split]
mnemon has quit [*.net *.split]
jhass has quit [*.net *.split]
Rush has quit [*.net *.split]
aloy has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
RushPL has quit [*.net *.split]
lucas_ has quit [*.net *.split]
rapha has quit [*.net *.split]
laudecay has quit [*.net *.split]
mjacob_ has quit [*.net *.split]
csaunders_ has quit [*.net *.split]
havenwood has quit [*.net *.split]
phaul_ has quit [*.net *.split]
Kuukunen- has quit [*.net *.split]
spectra has quit [*.net *.split]
Hien has quit [*.net *.split]
braincrash has quit [*.net *.split]
zlogan has quit [*.net *.split]
turbo_choo has quit [*.net *.split]
d0liver has quit [*.net *.split]
grvgr has quit [*.net *.split]
oncall-pokemon has quit [*.net *.split]
maxmanders has quit [*.net *.split]
Argorok has quit [*.net *.split]
Sina has quit [*.net *.split]
nofxx has quit [*.net *.split]
mistym has quit [*.net *.split]
TheBrayn has quit [*.net *.split]
liKe2k1- has quit [*.net *.split]
thebananaking has quit [*.net *.split]
RiPuk_ has quit [*.net *.split]
mozzarella has quit [*.net *.split]
PikaChokeMe has quit [*.net *.split]
Raboo has quit [*.net *.split]
infinity2022 has quit [*.net *.split]
kermit has quit [*.net *.split]
Iambchop has quit [*.net *.split]
jnix has quit [*.net *.split]
jtperreault has quit [*.net *.split]
tweaks has quit [*.net *.split]
strmpnk has quit [*.net *.split]
kaleido has quit [*.net *.split]
c0san0stra has quit [*.net *.split]
ruby[bot] has quit [*.net *.split]
zipkid has quit [*.net *.split]
claw has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
Fusl has quit [*.net *.split]
spk has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
woodruffw has quit [*.net *.split]
jhill has quit [*.net *.split]
lol768_ has quit [*.net *.split]
n1v has quit [*.net *.split]
asio has quit [*.net *.split]
segy has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
d10n-work has quit [*.net *.split]
Net has quit [*.net *.split]
hsiktas has quit [*.net *.split]
tag has quit [*.net *.split]
twodayslate has quit [*.net *.split]
chromis has quit [*.net *.split]
gajus has quit [*.net *.split]
integral has quit [*.net *.split]
Pillus has quit [*.net *.split]
al2o3-cr has quit [*.net *.split]
alex` has joined #ruby
alex` is now known as Guest34893
Guest34893 is now known as alex``
shalok has quit [Ping timeout: 268 seconds]
shah^ has joined #ruby
turt2live has quit [*.net *.split]
shah^ has quit [Excess Flood]
mikecmpbll has quit [Ping timeout: 268 seconds]
evdubs has joined #ruby
meinside has joined #ruby
rapha has joined #ruby
timmow_ has joined #ruby
ReinH has joined #ruby
towo_ has joined #ruby
wbnns has joined #ruby
pabs has joined #ruby
danguita has joined #ruby
fowlduck has joined #ruby
CustosLimen has joined #ruby
entel has joined #ruby
gorsuch has joined #ruby
Mutsuhito has joined #ruby
kp666[m] has joined #ruby
evert_ has joined #ruby
mnemon has joined #ruby
laudecay has joined #ruby
RushPL has joined #ruby
jhass has joined #ruby
aloy has joined #ruby
Rush has joined #ruby
JoL1hAHN has joined #ruby
csaunders_ has joined #ruby
mjacob_ has joined #ruby
lucas_ has joined #ruby
havenwood has joined #ruby
spectra has joined #ruby
Kuukunen- has joined #ruby
shah^ has joined #ruby
Fernando-Basso has quit [*.net *.split]
chalkmonster has quit [*.net *.split]
cisco has quit [*.net *.split]
r3m has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
dinfuehr_ has quit [*.net *.split]
mkroman has quit [*.net *.split]
BTRE has quit [*.net *.split]
teclator has quit [*.net *.split]
zululee_ has quit [*.net *.split]
funnel has quit [*.net *.split]
hramrach has quit [*.net *.split]
lightstalker has quit [*.net *.split]
SCHAPiE has quit [*.net *.split]
Seich has quit [*.net *.split]
helpa has quit [*.net *.split]
ablackack has quit [*.net *.split]
ozzloy has quit [*.net *.split]
Milos has quit [*.net *.split]
dalpo has quit [*.net *.split]
JasonO- has quit [*.net *.split]
mkaito- has quit [*.net *.split]
Spitfire has quit [*.net *.split]
Scient has quit [*.net *.split]
miah has quit [*.net *.split]
jtdowney has quit [*.net *.split]
nchambers has quit [*.net *.split]
jidar has quit [*.net *.split]
arthurnn has quit [*.net *.split]
KramerC has quit [*.net *.split]
ta has quit [*.net *.split]
pavelz has quit [*.net *.split]
Nowaker has quit [*.net *.split]
lypsis has quit [*.net *.split]
ammar has quit [*.net *.split]
rheddry has quit [*.net *.split]
shortdudey123 has quit [*.net *.split]
trif has quit [*.net *.split]
bga57 has quit [*.net *.split]
iamayam has quit [*.net *.split]
xpitr has quit [*.net *.split]
kenichi has quit [*.net *.split]
Jello_Raptor has quit [*.net *.split]
sapphyrus_ has quit [*.net *.split]
tw1sted has quit [*.net *.split]
Junaos has quit [*.net *.split]
CustosLimen has quit [Max SendQ exceeded]
al2o3-cr has joined #ruby
robscomputer has quit [Ping timeout: 270 seconds]
pavelz_ has joined #ruby
Spitfire_ has joined #ruby
trif_ has joined #ruby
Seich_ has joined #ruby
nowaker_ has joined #ruby
Jello_Raptor_ has joined #ruby
cisco_ has joined #ruby
shortdudey123_ has joined #ruby
alex`` has quit [Client Quit]
helpa has joined #ruby
teardown has joined #ruby
NODE has joined #ruby
Junaos has joined #ruby
ratah has joined #ruby
madhatter has joined #ruby
rubydoc has joined #ruby
schne1der has joined #ruby
Helenah has joined #ruby
dionysus69 has joined #ruby
Arahael has joined #ruby
alfiemax has joined #ruby
Azure has joined #ruby
dStrombo1 has joined #ruby
ooheitooh has joined #ruby
x0n has joined #ruby
FastJack has joined #ruby
cvz has joined #ruby
hays has joined #ruby
dan64 has joined #ruby
jerme_ has joined #ruby
Yxhuvud has joined #ruby
darris has joined #ruby
DTZUZU has joined #ruby
reaVer has joined #ruby
Mrgoose845701915 has joined #ruby
klaas has joined #ruby
ctp has joined #ruby
envex has joined #ruby
Benett has joined #ruby
LtHummus has joined #ruby
Spitfire_ has joined #ruby
Spitfire_ has quit [Changing host]
helpa has joined #ruby
funnel_ has joined #ruby
hramrach has joined #ruby
helpa has quit [Changing host]
Seich_ is now known as Seich
arthurnn has joined #ruby
ta has joined #ruby
KramerC has joined #ruby
chalkmonster has joined #ruby
salvor has joined #ruby
freshmaker666 has joined #ruby
Flonk has joined #ruby
bluetown has joined #ruby
SoF has joined #ruby
_vircung_ has joined #ruby
mcspud has joined #ruby
uplime has joined #ruby
vrih_ has joined #ruby
kloeri has joined #ruby
`Alison has joined #ruby
dinfuehr has joined #ruby
zlogan has joined #ruby
Hien has joined #ruby
maxmanders has joined #ruby
braincrash has joined #ruby
Sina has joined #ruby
phaul_ has joined #ruby
woodruffw has joined #ruby
segy has joined #ruby
lol768_ has joined #ruby
chromis has joined #ruby
spk has joined #ruby
PaulePanter has joined #ruby
turbo_choo has joined #ruby
PikaChokeMe has joined #ruby
nofxx has joined #ruby
mozzarella has joined #ruby
RiPuk_ has joined #ruby
Raboo has joined #ruby
thebananaking has joined #ruby
infinity2022 has joined #ruby
Iambchop has joined #ruby
jnix has joined #ruby
jtperreault has joined #ruby
tweaks has joined #ruby
kaleido has joined #ruby
c0san0stra has joined #ruby
strmpnk has joined #ruby
zipkid has joined #ruby
claw has joined #ruby
liKe2k1- has joined #ruby
jhill has joined #ruby
Argorok has joined #ruby
mistym has joined #ruby
asio has joined #ruby
n1v has joined #ruby
dostoyevsky has joined #ruby
oncall-pokemon has joined #ruby
Fusl has joined #ruby
ruby[bot] has joined #ruby
grvgr has joined #ruby
d0liver has joined #ruby
TheBrayn has joined #ruby
kermit has joined #ruby
Net has joined #ruby
tag has joined #ruby
twodayslate has joined #ruby
Mon_Ouie has joined #ruby
gajus has joined #ruby
integral has joined #ruby
funnel_ is now known as funnel
kenichi has joined #ruby
matti has joined #ruby
r3m has joined #ruby
matti has quit [Changing host]
matti has joined #ruby
levifig has joined #ruby
KramerC has quit [Changing host]
KramerC has joined #ruby
teclator has joined #ruby
tw1sted has joined #ruby
Arahael has quit [Max SendQ exceeded]
NODE has quit [Excess Flood]
iamayam has joined #ruby
Jello_Raptor_ is now known as Jello_Raptor
alex`` has joined #ruby
r3m is now known as Guest69116
dostoyevsky has quit [Max SendQ exceeded]
jhill has quit [Max SendQ exceeded]
shortdudey123_ is now known as shortdudey123
hramrach has quit [Changing host]
hramrach has joined #ruby
dostoyevsky has joined #ruby
dostoyevsky has quit [Changing host]
dostoyevsky has joined #ruby
BTRE has joined #ruby
Emmanuel_Chanel has joined #ruby
nchambers has joined #ruby
ablackack has joined #ruby
graphicsv has quit [Ping timeout: 245 seconds]
itok has quit [Ping timeout: 245 seconds]
Fenhl has quit [Ping timeout: 245 seconds]
KnownSyntax has quit [Ping timeout: 246 seconds]
mkaito_ has joined #ruby
Arahael has joined #ruby
entel has quit [Ping timeout: 248 seconds]
rann has quit [Ping timeout: 260 seconds]
BuildTheRobots has quit [Ping timeout: 268 seconds]
CustosLimen has joined #ruby
jetpack_joe has quit [Ping timeout: 245 seconds]
Mutsuhito has quit [Ping timeout: 248 seconds]
Pillus has joined #ruby
gsingh93 has quit [Ping timeout: 268 seconds]
matthewd has quit [Ping timeout: 268 seconds]
CustosLimen has quit [Changing host]
CustosLimen has joined #ruby
CustosLimen has joined #ruby
bga57 has joined #ruby
NODE has joined #ruby
nuck has quit [Ping timeout: 245 seconds]
xpitr has joined #ruby
sapphyrus has joined #ruby
meinside has quit [Ping timeout: 248 seconds]
fowlduck has quit [Ping timeout: 248 seconds]
ratah has quit [Ping timeout: 257 seconds]
ctp has quit [Ping timeout: 257 seconds]
Liothen has quit [Ping timeout: 246 seconds]
jtdowney has joined #ruby
lightstalker has joined #ruby
maxmanders has quit [Ping timeout: 244 seconds]
oncall-pokemon has quit [Ping timeout: 244 seconds]
Sina has quit [Ping timeout: 244 seconds]
Argorok has quit [Ping timeout: 244 seconds]
jnix has quit [Ping timeout: 244 seconds]
shalok has joined #ruby
meinside has joined #ruby
lypsis has joined #ruby
mkroman has joined #ruby
SCHAPiE has joined #ruby
solars has quit [Ping timeout: 260 seconds]
jhill has joined #ruby
jetpack_joe has joined #ruby
Milos has joined #ruby
matthewd has joined #ruby
ctp has joined #ruby
Scient has joined #ruby
nuck has joined #ruby
twodayslate has quit [Ping timeout: 272 seconds]
dalpo has joined #ruby
miah has joined #ruby
jidar has joined #ruby
gsingh93 has joined #ruby
NODE has quit [Excess Flood]
Liothen has joined #ruby
solars has joined #ruby
ratah has joined #ruby
entel has joined #ruby
mikecmpbll has joined #ruby
Fenhl has joined #ruby
twodayslate has joined #ruby
JayDoubleu has joined #ruby
NODE has joined #ruby
JasonO has joined #ruby
tag has quit [Ping timeout: 272 seconds]
Mutsuhito has joined #ruby
d10n-work has joined #ruby
jnix has joined #ruby
hsiktas has joined #ruby
tag has joined #ruby
oncall-pokemon has joined #ruby
BuildTheRobots has joined #ruby
ammar has joined #ruby
fowlduck has joined #ruby
itok has joined #ruby
rann has joined #ruby
Sina has joined #ruby
Argorok has joined #ruby
maxmanders has joined #ruby
ozzloy has joined #ruby
KnownSyntax has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
graphicsv has joined #ruby
kapil_ has joined #ruby
vondruch_ has joined #ruby
xco has joined #ruby
vondruch has quit [Ping timeout: 265 seconds]
vondruch_ is now known as vondruch
sergioro has quit [Quit: leaving]
greengriminal has joined #ruby
xpitr has quit [Changing host]
xpitr has joined #ruby
alex`` has quit [Quit: WeeChat 2.7]
alex` has joined #ruby
alex` is now known as Guest25912
Guest25912 is now known as alex``
mossplix has quit [Remote host closed the connection]
NODE has quit [Quit: changing servers]
pandakekok9 has quit [Quit: bye]
NODE has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
imadper has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.7]
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
royal_screwup21 has joined #ruby
sarink has joined #ruby
troulouliou_dev has joined #ruby
surendra has joined #ruby
sarink has quit [Ping timeout: 240 seconds]
troulouliou_dev has quit [Ping timeout: 265 seconds]
royal_screwup21 has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
mossplix has joined #ruby
royal_screwup21 has joined #ruby
mossplix_ has joined #ruby
mossplix has quit [Ping timeout: 240 seconds]
royal_screwup21 has quit [Remote host closed the connection]
lucasb has joined #ruby
conta1 has joined #ruby
Fridtjof has quit [Quit: ZNC - http://znc.in]
Fridtjof has joined #ruby
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Client Quit]
surendra has quit [Remote host closed the connection]
cisco_ is now known as cisco
rkoller has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
Bounga has quit [Read error: Connection reset by peer]
Bounga has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
william1 has quit [Quit: WeeChat 2.6]
alfiemax has joined #ruby
Guest69116 has quit [Quit: WeeChat 2.8-dev]
r3m has joined #ruby
royal_screwup21 has joined #ruby
alfiemax has quit [Remote host closed the connection]
royal_screwup21 has quit [Remote host closed the connection]
hutch has joined #ruby
jmcgnh has quit [Ping timeout: 260 seconds]
jmcgnh_ has joined #ruby
jmcgnh_ is now known as jmcgnh
mc-guest-46 has joined #ruby
<dreamreal> baweaver: hi. I'm reading the illustrated guide to ruby - may I pm you?
FastJack has quit [Ping timeout: 265 seconds]
conta1 has quit [Quit: conta1]
hutch has quit [Ping timeout: 272 seconds]
fphilipe has joined #ruby
turbo_choo has quit [Read error: Connection reset by peer]
turbo_choo has joined #ruby
fphilipe_ has quit [Ping timeout: 260 seconds]
fluxAeon has joined #ruby
jnix has quit []
twobitsprite has joined #ruby
Brite79 has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FastJack has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
n45199 has joined #ruby
Brite79 has quit [Ping timeout: 268 seconds]
troulouliou_dev has joined #ruby
n45199 has quit [Remote host closed the connection]
<twobitsprite> are there any good libraries to help with writing a parser in ruby?
greengriminal has quit [Read error: Connection reset by peer]
Brite79 has joined #ruby
<twobitsprite> any I find on google seem to be dead probjects
<phaul_> I used parslet before
greengriminal has joined #ruby
<Brite79> ruby_code
<phaul_> whittle is another one
Brite79 has quit [Remote host closed the connection]
<twobitsprite> hmm... both seem to be unmaintained, but I guess I can look in to them anyway. thanks
Brite79 has joined #ruby
Brite79 has quit [Remote host closed the connection]
jmcgnh has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
<lucasb> see also "Treetop"
<havenwood> twobitsprite: https://github.com/floraison/raabro
spacesuitdiver has joined #ruby
drincruz has joined #ruby
fphilipe_ has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
fphilipe_ has quit [Ping timeout: 246 seconds]
fphilipe_ has joined #ruby
GodFather has quit [Ping timeout: 265 seconds]
phaul_ has quit [Ping timeout: 272 seconds]
conta has joined #ruby
DaRock has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
phaul_ has joined #ruby
sarink has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
sdu has quit [Remote host closed the connection]
greengriminal has joined #ruby
ttoocs has quit [Ping timeout: 268 seconds]
conta has quit [Quit: conta]
Bounga has quit [Ping timeout: 272 seconds]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
wallace_mu has quit [Ping timeout: 268 seconds]
bradland has joined #ruby
SeepingN has joined #ruby
mikecmpbll has joined #ruby
davidw has joined #ruby
duderonomy has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
mc-guest-46 has quit [Ping timeout: 265 seconds]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
alfiemax has quit [Remote host closed the connection]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
wallace_mu has joined #ruby
greengriminal has quit [Quit: Leaving]
sarink has quit [Ping timeout: 265 seconds]
sarink has joined #ruby
fercell has quit [Quit: WeeChat 2.7]
cthu| has joined #ruby
phaul_ has quit [Ping timeout: 265 seconds]
matti has quit []
matti has joined #ruby
greypack has quit [Ping timeout: 268 seconds]
Jonopoly has quit [Quit: WeeChat 2.5]
conta has joined #ruby
greypack has joined #ruby
phaul_ has joined #ruby
conta has quit [Quit: conta]
troulouliou_dev has joined #ruby
phaul_ has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
fluxAeon has quit [Ping timeout: 248 seconds]
dmitrycy has joined #ruby
<dmitrycy> ls
<adam12> . .. hello-world
<havenwood> ls -A
<havenwood> do you always type `ls` after a `cd`, even if you just did a `mkdir`?
<havenwood> Prove it's empty!!!
<dmitrycy> yep, it's a reflex
* havenwood nods
<dmitrycy> trying to get a handle on irssi...it's been a while
<adam12> dmitrycy: fwiw, i find weechat a bit more intuitive.
lxsameer has quit [Ping timeout: 268 seconds]
phaul_ has joined #ruby
gix has joined #ruby
wildtrees has joined #ruby
<dmitrycy> i know, but i feel like playing around with something terminal-based
<adam12> dmitrycy: Weechat is terminal based :) But it has web frontends too.
<adam12> dmitrycy: It's almost 1-for-1 irssi but actually has good help messages and configuring it is easier, imho. Anyways...
<dmitrycy> ahhh, i saw it's web frontend, that's why i thought it's web-centric
cisco has quit [Ping timeout: 268 seconds]
Bounga has joined #ruby
Bounga has quit [Ping timeout: 246 seconds]
dmitrycy has quit [Quit: Lost terminal]
fluxAeon has joined #ruby
plutes has quit [Ping timeout: 260 seconds]
sarink has quit [Remote host closed the connection]
alfiemax has joined #ruby
sarink has joined #ruby
davispuh has joined #ruby
yokel has quit [Ping timeout: 268 seconds]
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 265 seconds]
phaul_ has quit [Ping timeout: 268 seconds]
Exuma has joined #ruby
yokel has joined #ruby
troulouliou_dev has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
phaul_ has joined #ruby
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Ping timeout: 240 seconds]
phaul_ has quit [Ping timeout: 265 seconds]
Exuma has quit [Read error: Connection timed out]
chamunks has quit [Ping timeout: 250 seconds]
chamunks has joined #ruby
howdoi has joined #ruby
cliluw has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
Exuma has joined #ruby
lxsameer has joined #ruby
ruskie has quit [Ping timeout: 250 seconds]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
timmow has joined #ruby
turbo_choo has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
evdubs has quit [*.net *.split]
timmow_ has quit [*.net *.split]
ReinH has quit [*.net *.split]
wbnns has quit [*.net *.split]
pabs has quit [*.net *.split]
towo_ has quit [*.net *.split]
danguita has quit [*.net *.split]
gorsuch has quit [*.net *.split]
evert_ has quit [*.net *.split]
kp666[m] has quit [*.net *.split]
mnemon has quit [*.net *.split]
jhass has quit [*.net *.split]
RushPL has quit [*.net *.split]
Rush has quit [*.net *.split]
aloy has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
rapha has quit [*.net *.split]
laudecay has quit [*.net *.split]
mjacob_ has quit [*.net *.split]
havenwood has quit [*.net *.split]
csaunders_ has quit [*.net *.split]
lucas_ has quit [*.net *.split]
Kuukunen- has quit [*.net *.split]
spectra has quit [*.net *.split]
chunkypuffs has quit [Quit: ZNC 1.7.1 - https://znc.in]
wbnns has joined #ruby
ReinH has joined #ruby
dostoyevsky has joined #ruby
rapha has joined #ruby
evdubs has joined #ruby
kp666[m] has joined #ruby
danguita has joined #ruby
jhass has joined #ruby
RushPL has joined #ruby
JoL1hAHN has joined #ruby
aloy has joined #ruby
mjacob_ has joined #ruby
pabs has joined #ruby
Rush has joined #ruby
evert_ has joined #ruby
gorsuch has joined #ruby
towo_ has joined #ruby
mnemon has joined #ruby
havenwood has joined #ruby
laudecay has joined #ruby
csaunders_ has joined #ruby
lucas_ has joined #ruby
Kuukunen- has joined #ruby
spectra has joined #ruby
dostoyevsky has joined #ruby
lightstalker has quit [Ping timeout: 268 seconds]
pizzaiolo has quit [Ping timeout: 268 seconds]
baweaver has quit [Ping timeout: 268 seconds]
spacesuitdiver has quit [Ping timeout: 268 seconds]
baweaver has joined #ruby
lightstalker has joined #ruby
baweaver is now known as Guest47155
spacesuitdiver has joined #ruby
pizzaiolo has joined #ruby
alfiemax has quit [Remote host closed the connection]
sarink has quit [Remote host closed the connection]
VlanX has joined #ruby
drincruz has quit [Read error: No route to host]
drincruz has joined #ruby
ruskie has joined #ruby
<dreamreal> havenwood: hi, I'm reading the illustrated guide to ruby now
<havenwood> dreamreal: that's baweaver's book :)
<dreamreal> well dang it it lists you too!
<havenwood> dreamreal: oh, wow! I feel honored. :)
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
<havenwood> dreamreal: baweaver is usually here, but looks like he hasn't reconnected yet after everyone dropped ealier today.
sarink has joined #ruby
<dreamreal> *nod* Well, I'm an editor IRL (among many, many, many other hats I wear) and I had a few questions/comments as I went through
<havenwood> dreamreal: ah, nice!
<havenwood> dreamreal: i'm sure baweaver would love to hear those. i'm curious too! :)
<dreamreal> but if you're not a primary author, eh, what do YOU matter, I need to talk to important people </sneer>
* havenwood sulks
<dreamreal> haha
turbo_choo has joined #ruby
<dreamreal> ah, how far along is this? How often does it update?
<dreamreal> looks like it starts to get... scant... around exceptions
<dreamreal> starts devolving into TOCs and that's about it
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
Guest47155 is now known as baweaver
baweaver has quit [Changing host]
baweaver has joined #ruby
<baweaver> dreamreal: ohai
<baweaver> Consider that version defunct
<baweaver> and there is a good reason for that, mind.
<baweaver> Mostly in working with a publisher to get a full version of it out
<baweaver> Speaking of which, I should really get back to writing more on that
<baweaver> Also havenwood was at one point a potential co-author :P
<dreamreal> oh nice. Which publisher, if I may ask? If not, tell me to shaddap :)
<baweaver> DM
<baweaver> Mostly because not sure how publicly I can mention it yet :)
hiroaki has joined #ruby
cliluw has quit [Ping timeout: 272 seconds]
johnny56 has quit [Remote host closed the connection]
johnny56 has joined #ruby
hiroaki has quit [Ping timeout: 248 seconds]
drincruz_ has joined #ruby
rippa has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
hiroaki has joined #ruby
cd has joined #ruby
cd has quit [Client Quit]
bsdbandit-01 has joined #ruby
<Net> is there a better way to write array.map { |elem| [elem[:foo], elem.except(:foo) ] }.to_h ?
<Net> specifically the [elem[:foo], elem.except(:foo)] part
ur5us has joined #ruby
ldepandis has quit [Read error: Connection reset by peer]
hiroaki has quit [Ping timeout: 252 seconds]
NODE has quit []
Benett has quit [Remote host closed the connection]
heth has quit [Ping timeout: 265 seconds]
heth has joined #ruby
cd has joined #ruby
<havenwood> Net: Just for thought:
<havenwood> &>> [{:a=>1, :b=>2, :c=>3, :foo=>42}].to_h { |foo:, **kwargs| [foo, kwargs] }
<rubydoc> # => {42=>{:a=>1, :b=>2, :c=>3}} stderr: -e:4: warning: Using the last argument as keyword parameters is... check link for more (https://carc.in/#/r/8igs)
<havenwood> Net: Or how about #partition with a #transform_values instead? Hem.
<Net> I didn't know to_h took a block
<havenwood> Net: It does in 2.6+.
<Net> nice
<havenwood> &26>> [{:a=>1, :b=>2, :c=>3, :foo=>42}].to_h { |foo:, **kwargs| [foo, kwargs] }
<rubydoc> # => {42=>{:a=>1, :b=>2, :c=>3}} (https://carc.in/#/r/8igt)
<Net> lovely. if only we were on 2.6
<havenwood> Then there's be pattern matching as an option too. ;)
<havenwood> there'd*
<Net> any idea what the performance characteristics of ** is over my original implementation?
sergioro has joined #ruby
sarink has quit [Remote host closed the connection]
<Net> I vaguely recall techniques like that not performing very well in ruby
<Net> actually that doesn't work for me—the keys are strings :/
<Net> elem[foo]
<Net> elem['foo']
jenrzzz has joined #ruby
Guest48 has joined #ruby
rem_ has joined #ruby
Guest48 is now known as smurfke
smurfke has quit [Client Quit]
cnsvc_ has joined #ruby
cnsvc_ has quit [Client Quit]
cnsvc has joined #ruby
code_zombie has joined #ruby
cliluw has joined #ruby
im0nde_ has joined #ruby
im0nde has quit [Ping timeout: 240 seconds]
fphilipe has joined #ruby
<lmat> adam12: Post install message from ruby-sass: "Ruby Sass has reached end-of-life and should no longer be used." bahaha!
<adam12> lmat: facepalm.gif
<adam12> lmat: I don't have that issue since I use Tailwind. It's the bestest.
fphilipe_ has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
<havenwood> Net: map { |h| h.partition { |k, _| k == 'foo' } }.to_h.transform_keys(&:last)
<lmat> adam12: Ahh, nice!
<havenwood> oops, need another transform_keys(&:last), haha
<havenwood> &>> [{'a'=>1, 'b'=>2, 'c'=>3, 'foo'=>42}].map { |h| h.partition { |k, _| k == 'foo' } }.to_h.transform_keys { |(k, _), _| k }
<rubydoc> # => {"foo"=>[["a", 1], ["b", 2], ["c", 3]]} (https://carc.in/#/r/8igu)
<havenwood> Net: ^
impermanence has joined #ruby
<havenwood> &25>> [{'a'=>1, 'b'=>2, 'c'=>3, 'foo'=>42}].map { |h| h.partition { |k, _| k == 'foo' } }.to_h.transform_keys { |(k, _), _| k }
<rubydoc> # => {"foo"=>[["a", 1], ["b", 2], ["c", 3]]} (https://carc.in/#/r/8igv)
s2013 has joined #ruby
sarink has joined #ruby
<havenwood> ah, yeah, the hash value too >.>
<havenwood> &>> [{'a'=>1, 'b'=>2, 'c'=>3, 'foo'=>42}].map { |h| h.partition { |k, _| k == 'foo' } }.to_h.transform_keys { |(k, _), _| k }.transform_values(&:to_h)
<rubydoc> # => {"foo"=>{"a"=>1, "b"=>2, "c"=>3}} (https://carc.in/#/r/8igw)
<havenwood> There.
<havenwood> Meh.
<Net> havenwood: it's beautiful
Benett has joined #ruby
<leftylink> I think the one with `except` was more easily understandable, but since I don't have `except` I'd have to refine it onto my hashes or something, dunno
<havenwood> &>> [{'a'=>1, 'b'=>2, 'c'=>3, 'foo'=>42}].map { |h| key, value = h.partition { |k, _| k == 'foo' }; [key.first.first, value.to_h] }.to_h
<rubydoc> # => {"foo"=>{"a"=>1, "b"=>2, "c"=>3}} (https://carc.in/#/r/8igx)
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<havenwood> leftylink: I like options in newer Rubies best. :)
<leftylink> but come to think of it, I find myself often wanting a shortcut of group_by { ... }.transform_values(&:first) a lot
<havenwood> &>> [{'a'=>1, 'b'=>2, 'c'=>3, 'foo'=>42}].map { |h| key, value = h.partition { |k, _| k == 'foo' }; [key.first.last, value.to_h] }.to_h
<rubydoc> # => {42=>{"a"=>1, "b"=>2, "c"=>3}} (https://carc.in/#/r/8igy)
<havenwood> I mean ^
oncall-pokemon has quit [Quit: Connection closed for inactivity]
NODE has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
<Net> quite honestly, I find ruby to be frustratingly lacking in this area
<Net> lacking and inconsistent
<havenwood> Net: Seems pretty elegant in the latest stable Ruby.
<Net> your solution for this specific case is
<havenwood> Net: What language does it better than Ruby 2.7?
<Net> haven't played with 2.7 though so I can't comment
<Net> Elixir is really nice in this regard
<havenwood> I like Elixir. Ruby 2.7 has some great improvements. For example, see: https://gist.github.com/havenwood/a0cdf6640f54f15db57dbba0b09c4735
<havenwood> Net: Look at the difference from 1.9, 2.0, 2.2, 2.4 and finally a super elegant 2.7.
<leftylink> computer locked w/o my consent
sarink has quit [Remote host closed the connection]
<havenwood> Net: The movement toward elegance is guided by real world use and need. It's working well.
<havenwood> Net: I need to fill in the rest of the Elixir stdlib in Ruby, heh: https://github.com/havenwood/elixir.rb
<Net> Map.new(list, &Map.pop(&1, :foo))
<havenwood> I did the fun parts.
sarink has joined #ruby
<Net> things just fit together in elixir
<Net> well, at least enum and map functions do
<Net> I don't think it's a perfect language
<havenwood> Net: I'd compare latest Elixir to latest Ruby. Both have evolved a lot lately.
<havenwood> Net: I should redo these, for example, now that we have Enumerator.produce: https://github.com/havenwood/elixir.rb/blob/master/lib/elixir/stream.rb
<havenwood> I like Elixir's unfold.
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Net> Yes, Stream is nice
<Net> I do enjoy writing enumerators in Ruby though
<Net> one place where I like not passing state
<havenwood> &>> Enumerator.produce([0, 1]) { |(a, b)| [b, a + b] }.lazy.map(&:first).first(10)
<rubydoc> # => [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] (https://carc.in/#/r/8ih0)
<havenwood> lazyibonacci
<Net> lazynocci
* leftylink checks
sarink has quit [Remote host closed the connection]
<leftylink> hmm, guess you can't flatten an Enumerator::Lazy, too bad
<leftylink> oh well, flat_map(&:itself) I guess...
NODE has quit [Quit: changing servers]
rem_ has quit [Ping timeout: 240 seconds]
NODE has joined #ruby
sarink has joined #ruby
<havenwood> leftylink: But then you'd need to each_slice(2) and map(&:first), since you really want every other.
<havenwood> leftylink: lazy.flat_map(&:itself).each_slice(2).map(&:first)
<havenwood> shorter to: lazy.map(&:first)
mossplix_ has quit [Remote host closed the connection]
<havenwood> leftylink: oh, you probably just mean generally :)
<havenwood> Enumerator.produce with a tuple and lazy.map(&:first) is Stream/unfold.
<leftylink> oh
<leftylink> well if I didn't mean generally and meant for fibonacci, there's a way we can get around it
<leftylink> &>> Enumerator.produce([0, 1]) { |(a, b)| [a + b, a + b + b] }.lazy.flat_map(&:itself).first(10)
<rubydoc> # => [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] (https://carc.in/#/r/8ih8)
<leftylink> shrug
<leftylink> might as well, right?
sarink_ has joined #ruby
<havenwood> leftylink: ooooohh
<havenwood> leftylink: nice!
<leftylink> I LEARNED THIS TRICK FROM... hmm. I've forgotten where I learned it
Rudd0 has quit [Ping timeout: 268 seconds]
<leftylink> kinda wish I could say "hey I'm smart enough to think of it myself" but nooooooooo
sarink has quit [Ping timeout: 260 seconds]
sarink has joined #ruby
<havenwood> &>> Enumerator.produce([0, 1]) { |a, b| a += b; [a, a + b] }.lazy.flat_map(&:itself).first(10)
<rubydoc> # => [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] (https://carc.in/#/r/8iha)
<havenwood> Or more confusingly:
<havenwood> &>> Enumerator.produce([0, 1]) { |a, b| [a += b, a + b] }.lazy.flat_map(&:itself).first(10)
<rubydoc> # => [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] (https://carc.in/#/r/8ihb)
<havenwood> Or just weird:
<havenwood> &>> Enumerator.produce([0, 1]) { |a, b| [a += b, a += b] }.lazy.flat_map(&:itself).first(10)
<rubydoc> # => [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] (https://carc.in/#/r/8ihc)
sarink_ has quit [*.net *.split]
sarink_ has joined #ruby
sarink_ has quit [Ping timeout: 260 seconds]
<havenwood> &>> Enumerator.produce([0, 1]) { [_1 + _2, _1 + _2 + _2] }.lazy.flat_map(&:itself).first(10)
<rubydoc> # => [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] (https://carc.in/#/r/8ihd)
drincruz_ has quit [Ping timeout: 252 seconds]
impermanence has quit [Ping timeout: 265 seconds]
<havenwood> &>> Enumerator.produce([0, 1]) { [_1 + _2, _1 + _2 + _2] }.lazy.first(5).flatten
<rubydoc> # => [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] (https://carc.in/#/r/8ihe)
Helenah has quit [Read error: Connection reset by peer]
Helenah has joined #ruby
jenrzzz has joined #ruby
Rudd0 has joined #ruby
mossplix has joined #ruby
bsdbandit-01 has quit [Ping timeout: 252 seconds]
cd has quit [Quit: cd]
tdy has quit [Quit: WeeChat 1.9.1]
bsdbandit-01 has joined #ruby
spacesuitdiver has quit [Ping timeout: 240 seconds]
wallace_mu has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
turbo_choo has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
tdy has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
fig-le-deunch has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
greengriminal has joined #ruby
jenrzzz has joined #ruby
sarink has quit [Remote host closed the connection]
cnsvc has quit [Quit: WeeChat 2.7]
gix- has joined #ruby
gix has quit [Disconnected by services]
sarink has joined #ruby
twobitsprite has quit [Ping timeout: 272 seconds]
sarink has quit [Ping timeout: 272 seconds]
smurfke has joined #ruby
smurfke has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 265 seconds]
cliluw has quit [Ping timeout: 268 seconds]
zlogan has quit [Quit: Leaving]
cliluw has joined #ruby