havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
alnewkirk has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cam27 has left #ruby [#ruby]
alnewkirk has quit [Ping timeout: 268 seconds]
alnewkirk has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
cschneid_ has joined #ruby
workmad3 has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Ping timeout: 240 seconds]
eb0t has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 248 seconds]
def_jam has joined #ruby
Hexafox[I] has joined #ruby
alnewkirk has joined #ruby
eb0t has joined #ruby
eblip has quit [Ping timeout: 240 seconds]
def_jam has quit [Read error: Connection reset by peer]
eb0t has quit [Read error: Connection reset by peer]
lucz has joined #ruby
<lucz> hey folks, how does one install ruby development tools on a mac?
eb0t has joined #ruby
alnewkirk has quit [Ping timeout: 260 seconds]
def_jam has joined #ruby
<Nilium> Which dev tools?
<Nilium> Whoa, whitespace
cdg has joined #ruby
alveric3 has joined #ruby
<lucz> Nilium: I'm trying to install a few things but occasionally get this message: "You have to install development tools first."
alnewkirk has joined #ruby
<Nilium> You might need to install Xcode and the command-line tools.
<lucz> Nilium: those are installed
<lucz> Nilium: and updated
<Nilium> And if you run clang, it doesn't ask you to accept a license?
<lucz> Nilium: I can double check they're correct though, is there a command I can run to do that?
<lucz> Nilium: lemme see
<Nilium> And what're you trying to install?
alveric2 has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 248 seconds]
<lucz> Nilium: clang output: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
<Nilium> What version of OS X are you on?
<lucz> 10.13.1 (17B48)
<lucz> high sierra
<Nilium> How did you install xcode?
<lucz> errr
<lucz> That was a while ago, but likely via the app store
<Nilium> How recently have you updated it?
<lucz> I updated it yesterday via the app store
<lucz> oh hang on
<lucz> I may need to run it
<RickHull> what's in Library/blabblah/usr/bin
<lucz> aha
ResidentBiscuit has joined #ruby
<lucz> blahblah?
<RickHull> path/to/usr/bin
<RickHull> /Library/Developer/CommandLineTools/usr/bin
<lucz> ah I see
<RickHull> is clang saying it can't find xcrun in there, or that the xcrun in there is "wrong" ?
<RickHull> or did you figure out your issue?
<Nilium> I'm guessing it needed to do the usual update-components thing
<lucz> hm, that path doesn't exist
alnewkirk has quit [Ping timeout: 248 seconds]
<RickHull> two ways to approach it: 1. top down -- what's up with the app store updates or whatever?
<lucz> Yeah I updated the components, still getting the clang error output, I haven't tried running the gem install again though
<RickHull> 2. bottom up -- look at the error message and figure out what's wrong
<lucz> hang on lemme paste you the error output
<RickHull> i'm not an osx person, just giving you some general pointers :)
<RickHull> but I'll take a look
<Nilium> Also, what's returned when you run `which clang`? Should be /usr/bin/clang.
<lucz> RickHull: thank you :)
<lucz> Nilium: yeah it's the right path when I run which clang
<Nilium> Also try running `xcode-select --install` and see if reinstalling commandline tools works.
<RickHull> are you still missing xcrun ?
<RickHull> I'd go top down and try to make sure all the normal osx dev tools are happy
<RickHull> if you're still getting errors about missing tools, then try to figure out why your tools are missing ;)
alnewkirk has joined #ruby
<Nilium> That's actually harder than it sounds
<RickHull> i was going to suggest the Feynman Problem Solving Method next
<Nilium> Usually just easier to force reinstallation of things.
<RickHull> step 1. write the problem down step 2. think really hard step 3. solve it
<lucz> Okay, it's downloading/installing command line tools. There doesn't seem to be a CommandLineTools directory under /Library/Developer
<lucz> lol RickHull
<Nilium> I like to subsitute #2 with "ask the fairies in the back yard"
<RickHull> sometimes step 3 is formulated as: write down the solution
<RickHull> if you're still not getting the CommandLineTools where expected, then you can search for: why is $X looking for my stuff there? or why isn't $Y putting my stuff there?
<RickHull> but probably the top down / install / update approach will work
<Nilium> In unrelated news, I've been trying to collect more programming / systems books and it turns out they're all really expensive because they're used as textbooks.
<RickHull> i'd think you can get them used cheaply, particularly prior versions
<Nilium> I might have to mug students for their books next.
<Nilium> Latest book was $160 -- found it used for $33, though there aren't a lot of copies of it.
mson has quit [Quit: Connection closed for inactivity]
<lucz> yayy
<Nilium> Guessing it's working now?
<lucz> This --> xcode-select --install fixed it
<lucz> Thank youuu!
<Nilium> Coolbeans.
<lucz> :)
cdg has joined #ruby
alnewkirk has quit [Ping timeout: 268 seconds]
ap4y has quit [Quit: WeeChat 1.9.1]
sneep_ is now known as sneep
ap4y has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
lucz has quit [Remote host closed the connection]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
eblip has joined #ruby
eb0t_ has joined #ruby
alnewkirk has joined #ruby
GodFather has quit [Ping timeout: 258 seconds]
eb0t has quit [Ping timeout: 248 seconds]
def_jam has quit [Ping timeout: 268 seconds]
lucz has joined #ruby
lxsameer has quit [Quit: WeeChat 1.9.1]
PaulCape_ has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 260 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
shortdudey123 has quit [Ping timeout: 240 seconds]
lucz has quit [Remote host closed the connection]
shortdudey123 has joined #ruby
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
hinbody has quit [Read error: Connection reset by peer]
hinbody has joined #ruby
PaulCapestany has joined #ruby
lucz has joined #ruby
ResidentBiscuit has quit []
jottr has joined #ruby
alfiemax has joined #ruby
sioux has joined #ruby
<sioux> i i'm using Debian 9, Apache, MySQL(Mariadb) server, Redmine 3.4.3., ruby 2.3.3p22. When i try install a new pluging, download the plugin redmine_checklists, into /opt/redmine/plugins/, and try " bundle exec rake redmine:plugins:migrate RAILS_ENV=production" show this error: https://pastebin.com/vQz234Ya
<ruby[bot]> sioux: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/3e7fb264f5ada14ab84880292b6500ce
<ruby[bot]> sioux: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
jottr has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
JsilverT has joined #ruby
lucz has quit [Remote host closed the connection]
danman has joined #ruby
danman has quit [Client Quit]
alnewkirk has quit [Ping timeout: 260 seconds]
benjen has joined #ruby
lucz has joined #ruby
d^sh has quit [Ping timeout: 258 seconds]
d^sh has joined #ruby
jdawgaz has joined #ruby
alnewkirk has joined #ruby
cdg has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
cdg has quit [Ping timeout: 260 seconds]
arescorpio has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alnewkirk has quit [Ping timeout: 248 seconds]
Technodrome has joined #ruby
eightlimbed has joined #ruby
alnewkirk has joined #ruby
lele has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
alnewkirk has quit [Ping timeout: 260 seconds]
alnewkirk has joined #ruby
lele has joined #ruby
eb0t has joined #ruby
def_jam has joined #ruby
eb0t_ has quit [Ping timeout: 240 seconds]
eblip has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
DTZUZU has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
lele has quit [Ping timeout: 258 seconds]
alnewkirk has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
lele has joined #ruby
alfiemax has quit [Remote host closed the connection]
alnewkirk has quit [Ping timeout: 248 seconds]
<Iambchop> sioux: "gems/activerecord-5.1.2" but redmine 3.4 should be rails 4.2: http://www.redmine.org/projects/redmine/wiki/redmineinstall
<Iambchop> sioux: (alias_method_chain was deprecated then removed in rails 5.x)
gizmore has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eightlimbed has quit [Ping timeout: 248 seconds]
<Iambchop> sioux: bundle exec rake redmine:plugins:migrate RAILS_ENV=production http://www.redmine.org/projects/redmine/wiki/Plugins
alnewkirk has joined #ruby
<sioux> Iambchop: my rails is (Rails 5.1.2)
cschneid_ has joined #ruby
<sioux> so i need install rails 4.2?
gizmore|2 has quit [Ping timeout: 240 seconds]
pb122-two has joined #ruby
<Iambchop> sioux: I would think the redmine Gemfile would specify rails 4.2
<sioux> Iambchop: i will try install rails 4.2
<sioux> brb
ramfjord has quit [Ping timeout: 248 seconds]
<Iambchop> sioux: are you running bundle exec from the redmine directory root?
d^sh has quit [Ping timeout: 260 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
John___ has quit [Read error: Connection reset by peer]
d^sh has joined #ruby
<sioux> Iambchop: yeap
alnewkirk has quit [Ping timeout: 240 seconds]
lucz has quit [Remote host closed the connection]
<sioux> Iambchop: i'm installing rails 4.2
lucz has joined #ruby
<sioux> Iambchop: i needed uninstall ruby and rails togheter ?
alnewkirk has joined #ruby
<Iambchop> from that link 3.4 is compatible with ruby ruby 1.9.3, 2.0.0, 2.1, 2.2, 2.3, 2.4 so your ruby should be ok
<Iambchop> then the bundle install should get the right version of rails
cschneid_ has quit [Remote host closed the connection]
bruce_lee has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
uZiel has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
enterprisey has joined #ruby
oetjenj has joined #ruby
rhyselsmore has joined #ruby
darkmorph has joined #ruby
cschneid_ has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
alnewkirk has quit [Ping timeout: 268 seconds]
cschneid_ has quit [Ping timeout: 258 seconds]
alnewkirk has joined #ruby
milardovich has quit [Remote host closed the connection]
jottr has joined #ruby
RickHull has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 248 seconds]
hanmac has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
eightlimbed has joined #ruby
pb122-two has quit [Quit: Leaving]
FahmeF has quit [Ping timeout: 240 seconds]
Puffball has quit [Remote host closed the connection]
<sioux> Iambchop: if i run ruby -v, show ruby 4.2, but when i run bundle install, make show this list: https://gist.github.com/anonymous/527154f6da91bf6efeb4b0399fbbd1c8 and in this list show ruby 5.1.
FahmeF has joined #ruby
<sioux> *rails
<sioux> sorry
alnewkirk has quit [Ping timeout: 248 seconds]
jrafanie has joined #ruby
eightlimbed has quit [Read error: Connection reset by peer]
alnewkirk has joined #ruby
mikecmpbll has joined #ruby
cdg has joined #ruby
mikecmpbll has quit [Client Quit]
alnewkirk has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
lucz has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
lucz has joined #ruby
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
troys_ is now known as troys
lucz has quit [Remote host closed the connection]
alnewkirk has joined #ruby
lucz has joined #ruby
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
growp has joined #ruby
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
<growp> How many feet are in a gallon?
PaulCapestany has quit [Read error: Connection reset by peer]
imode has quit [Ping timeout: 240 seconds]
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucz has quit [Remote host closed the connection]
Technodrome has joined #ruby
lucz has joined #ruby
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
PaulCapestany has joined #ruby
nikhgupta has quit [Quit: WeeChat 1.9.1]
workmad3 has joined #ruby
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
guacamole has joined #ruby
lucz has quit [Remote host closed the connection]
<llua> 1.5
workmad3 has quit [Ping timeout: 248 seconds]
weaksauce has joined #ruby
gix has quit [Ping timeout: 240 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
growp has quit [Quit: Mutter: www.mutterirc.com]
gix has joined #ruby
alnewkirk has quit [Ping timeout: 260 seconds]
al2o3-cr has joined #ruby
bruce_lee has quit [Remote host closed the connection]
dionysus69 has joined #ruby
alnewkirk has joined #ruby
ramfjord has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SteenJobs has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
Technodrome has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
ogres has joined #ruby
iamarun has joined #ruby
mson has joined #ruby
jrabe has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alnewkirk has quit [Ping timeout: 268 seconds]
Technodrome has joined #ruby
pb122 has quit [Ping timeout: 240 seconds]
sylario has quit [Quit: Connection closed for inactivity]
SteenJobs has quit [Quit: peaceee]
alnewkirk has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
darkmorph has quit [Ping timeout: 258 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
oleo has quit [Quit: Leaving]
alnewkirk has joined #ruby
jackjackdripper has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
def_jam is now known as eblip
alnewkirk has joined #ruby
cschneid_ has joined #ruby
lucz has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cschneid_ has quit [Ping timeout: 258 seconds]
lucz has quit [Ping timeout: 240 seconds]
k3rn31 has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
alnewkirk has quit [Ping timeout: 260 seconds]
vondruch has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
enterprisey has quit [Ping timeout: 248 seconds]
alnewkirk has quit [Ping timeout: 260 seconds]
nofxx has quit [Remote host closed the connection]
aupadhye has joined #ruby
alnewkirk has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
mattp__ has joined #ruby
chaos95_ has joined #ruby
mattp_ has quit [Ping timeout: 260 seconds]
canton7 has quit [Ping timeout: 248 seconds]
tcopeland has quit [Read error: Connection reset by peer]
David_H_Smith has joined #ruby
aspiers has quit [Ping timeout: 248 seconds]
atmosx has quit [Ping timeout: 248 seconds]
chaos95 has quit [Ping timeout: 248 seconds]
Gadgetoid has quit [Ping timeout: 248 seconds]
erlend has quit [Ping timeout: 248 seconds]
tcopeland has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
alfiemax has quit [Remote host closed the connection]
Gadgetoid has joined #ruby
gix has quit [Ping timeout: 240 seconds]
bokayio has quit [Ping timeout: 240 seconds]
canton7 has joined #ruby
bokayio has joined #ruby
gix has joined #ruby
alfiemax has joined #ruby
erlend has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
aupadhye has quit [Remote host closed the connection]
mjolnird has joined #ruby
alnewkirk has joined #ruby
troys is now known as troys_
ur5us has joined #ruby
ap4y has quit [Quit: WeeChat 1.9.1]
atmosx has joined #ruby
dopie has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
kculpis has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
Gadgetoid has quit [*.net *.split]
JsilverT has quit [*.net *.split]
nowhereman has quit [*.net *.split]
coderphive has quit [*.net *.split]
Guest76467 has quit [*.net *.split]
Guest57943 has quit [*.net *.split]
iNs has quit [*.net *.split]
David_H_Smith has quit [*.net *.split]
clamstar has quit [*.net *.split]
cosimo_ has quit [*.net *.split]
Guest31297 has quit [*.net *.split]
mahlon_ has quit [*.net *.split]
nicesignal has quit [*.net *.split]
vee__ has quit [*.net *.split]
Sembei has quit [*.net *.split]
kies has quit [*.net *.split]
__main__ has quit [*.net *.split]
hfp_work has quit [*.net *.split]
TheRealMattM has quit [*.net *.split]
heinrich5991 has quit [*.net *.split]
cgfbee has quit [*.net *.split]
biox_ has quit [*.net *.split]
axsuul has quit [*.net *.split]
leonthemisfit has quit [*.net *.split]
kenichi has quit [*.net *.split]
irick has quit [*.net *.split]
Fridtjof has quit [*.net *.split]
waveprop has quit [*.net *.split]
epochwolf has quit [*.net *.split]
nickjj has quit [*.net *.split]
cajone has quit [*.net *.split]
miah has quit [*.net *.split]
iszak has quit [*.net *.split]
mistym has quit [*.net *.split]
flori has quit [*.net *.split]
noodle has quit [*.net *.split]
jnollette has quit [*.net *.split]
hays has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
bhaak has quit [*.net *.split]
dminuoso has quit [*.net *.split]
olblak has quit [*.net *.split]
shaman42 has quit [*.net *.split]
Archrover has quit [*.net *.split]
zenspider has quit [*.net *.split]
ged has quit [*.net *.split]
solos has quit [*.net *.split]
fuzzyhorns has quit [*.net *.split]
Gadgetoid has joined #ruby
solos has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
clamstar has joined #ruby
bokayio has quit [Ping timeout: 240 seconds]
shortdudey123 has quit [Ping timeout: 240 seconds]
A124 has quit [Ping timeout: 260 seconds]
noodle has joined #ruby
ahrs has quit [Ping timeout: 240 seconds]
funnel has quit [Ping timeout: 260 seconds]
InternetFriend has joined #ruby
bokayio has joined #ruby
<InternetFriend> hola
<InternetFriend> my ring
A124 has joined #ruby
shortdudey123 has joined #ruby
<InternetFriend> my ring
funnel has joined #ruby
alnewkirk has joined #ruby
InternetFriend has quit [Client Quit]
ahrs has joined #ruby
vee__ has joined #ruby
aspiers has joined #ruby
biberu has joined #ruby
ur5us has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
rrichardsr3 has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 255 seconds]
alnewkirk has quit [Ping timeout: 252 seconds]
ta__ has joined #ruby
ta has quit [Read error: Connection reset by peer]
ta__ has quit [Remote host closed the connection]
ta has joined #ruby
alnewkirk has joined #ruby
reber has joined #ruby
ta has quit [Ping timeout: 240 seconds]
alnewkirk has quit [Ping timeout: 240 seconds]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lele has quit [Ping timeout: 260 seconds]
lele has joined #ruby
exchgr has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
alex`` has joined #ruby
troys_ is now known as troys
David_H_Smith has joined #ruby
JsilverT has joined #ruby
nowhereman has joined #ruby
hfp_work has joined #ruby
TheRealMattM has joined #ruby
coderphive has joined #ruby
flori has joined #ruby
cajone has joined #ruby
cosimo_ has joined #ruby
Guest31297 has joined #ruby
Guest57943 has joined #ruby
mistym has joined #ruby
heinrich5991 has joined #ruby
irick has joined #ruby
mahlon_ has joined #ruby
Fridtjof has joined #ruby
leonthemisfit has joined #ruby
waveprop has joined #ruby
epochwolf has joined #ruby
fuzzyhorns has joined #ruby
iszak has joined #ruby
jnollette has joined #ruby
Guest76467 has joined #ruby
miah has joined #ruby
iNs has joined #ruby
kenichi has joined #ruby
nicesignal has joined #ruby
hays has joined #ruby
Sembei has joined #ruby
cgfbee has joined #ruby
biox_ has joined #ruby
__main__ has joined #ruby
nickjj has joined #ruby
axsuul has joined #ruby
kies has joined #ruby
Kilo`byte has joined #ruby
zenspider has joined #ruby
shaman42 has joined #ruby
bhaak has joined #ruby
olblak has joined #ruby
dminuoso has joined #ruby
Archrover has joined #ruby
ged has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
Archrover has quit [Max SendQ exceeded]
axsuul has quit [Max SendQ exceeded]
__main__ has quit [Max SendQ exceeded]
iNs has quit [Max SendQ exceeded]
heinrich5991 has quit [Max SendQ exceeded]
cgfbee has quit [Max SendQ exceeded]
Sembei has quit [Max SendQ exceeded]
Archrover has joined #ruby
TheRealMattM has quit [Read error: Connection reset by peer]
iNs has joined #ruby
TheRealMattM has joined #ruby
axsuul has joined #ruby
nicesignal has quit [Remote host closed the connection]
ogres has quit [Quit: Connection closed for inactivity]
nicesignal has joined #ruby
HTTP_____GK1wmSU has joined #ruby
Sembei has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
exchgr has joined #ruby
rrichard_ has joined #ruby
HTTP_____GK1wmSU has left #ruby [#ruby]
turt2live has quit [*.net *.split]
majoh_ has quit [*.net *.split]
minimalism has quit [*.net *.split]
rrichardsr3 has quit [Ping timeout: 241 seconds]
majoh_ has joined #ruby
minimalism has joined #ruby
heinrich5991 has joined #ruby
cgfbee has joined #ruby
__main__ has joined #ruby
lasenna[m] has quit [Ping timeout: 240 seconds]
gokul_mr[m] has quit [Ping timeout: 246 seconds]
zalipuha[m] has quit [Ping timeout: 246 seconds]
jonjits[m] has quit [Ping timeout: 246 seconds]
Giphy[m] has quit [Ping timeout: 246 seconds]
aagdbl[m] has quit [Ping timeout: 240 seconds]
dtcristo has quit [Ping timeout: 240 seconds]
KevinMGranger has quit [Ping timeout: 240 seconds]
Hanma[m] has quit [Ping timeout: 240 seconds]
bokayio has quit [Ping timeout: 240 seconds]
M107262[m] has quit [Ping timeout: 246 seconds]
itmerc[m] has quit [Ping timeout: 255 seconds]
haylon has quit [Ping timeout: 255 seconds]
Orbixx[m] has quit [Ping timeout: 255 seconds]
Tagami[m] has quit [Ping timeout: 255 seconds]
watzon has quit [Ping timeout: 240 seconds]
astronavt[m] has quit [Ping timeout: 240 seconds]
yana[m] has quit [Ping timeout: 246 seconds]
aviraldg has quit [Ping timeout: 252 seconds]
velu_aon[m] has quit [Ping timeout: 276 seconds]
dman[m] has quit [Ping timeout: 240 seconds]
torarne has quit [Ping timeout: 264 seconds]
kua[m] has quit [Ping timeout: 255 seconds]
Matt[m]2 has quit [Ping timeout: 255 seconds]
oetjenj has joined #ruby
snickers has joined #ruby
bokayio has joined #ruby
oetjenj has quit [Client Quit]
quobo has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
oetjenj has joined #ruby
troys has quit [Quit: Bye]
mtkd has joined #ruby
r3QuiEm_cL has joined #ruby
jottr has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ana_ has joined #ruby
conta has joined #ruby
lucz has joined #ruby
ramfjord has joined #ruby
lucz has quit [Ping timeout: 252 seconds]
ldepandis has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
ldepandis has quit [Read error: Connection reset by peer]
dopie has joined #ruby
r3QuiEm_cL has joined #ruby
DTZUZU has quit [Ping timeout: 240 seconds]
r3QuiEm_cL has quit [Client Quit]
r3QuiEm_cL has joined #ruby
alfiemax has quit [Remote host closed the connection]
dopie has quit [Ping timeout: 264 seconds]
rrichard_ has quit [Quit: He who dares .... wins.]
claudiuinberlin has joined #ruby
feal has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
iamarun has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
aupadhye has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
ta has joined #ruby
aupadhye has quit [Client Quit]
mark_66 has joined #ruby
aufi has joined #ruby
vondruch has joined #ruby
workmad3 has joined #ruby
mikecmpbll has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
milardovich has joined #ruby
MyMind has joined #ruby
Sembei has quit [Ping timeout: 240 seconds]
tomphp has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
milardovich has quit [Ping timeout: 268 seconds]
charliesome has joined #ruby
InfinityFye has joined #ruby
Fraeon has joined #ruby
Fraeon has quit [Client Quit]
mikecmpbll has quit [Quit: inabit. zz.]
charliesome has quit [Client Quit]
snickers has quit [Ping timeout: 246 seconds]
Fraeon has joined #ruby
Bish has quit [Remote host closed the connection]
alfiemax has joined #ruby
Fraeon has quit [Client Quit]
ramfjord has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
Fraeon has joined #ruby
Xiti has quit [Quit: Xiti]
jottr has joined #ruby
<dminuoso> Van Laarhoven Lenses, Ruby-style.
dinfuehr has joined #ruby
<dminuoso> That auto-currying method style is really useful.
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has quit []
ramfjord has quit [Ping timeout: 268 seconds]
iMadper has quit [Remote host closed the connection]
jidar has quit [Read error: Connection reset by peer]
jidar has joined #ruby
Lyfe_ has joined #ruby
mikecmpbll has joined #ruby
Lyfe has quit [Read error: Connection reset by peer]
Papierkorb has quit [Quit: Schnitzel]
mim1k has joined #ruby
feal has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
rabajaj has joined #ruby
jottr has quit [Quit: WeeChat 1.9.1]
Burgestrand has joined #ruby
andikr has joined #ruby
apeiros has joined #ruby
Tagami[m] has joined #ruby
Pierreb|home has quit [Ping timeout: 248 seconds]
<dminuoso> Im not entirely sure yet why they dont compose, must be some subtle bug. :(
<mikecmpbll> o/. mornin
cdg has joined #ruby
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 252 seconds]
<dminuoso> Fixed. :)
Freshnuts has quit [Quit: Leaving]
r3QuiEm_cL has joined #ruby
enterprisey has quit [Ping timeout: 248 seconds]
hs366 has joined #ruby
Tagami[m] has quit [Remote host closed the connection]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
kapil___ has joined #ruby
rippa has joined #ruby
shortdudey123 has quit [Ping timeout: 260 seconds]
<dminuoso> Next up I should write some traversal optics, this is truly fun.
rahul_bajaj has joined #ruby
def_jam has joined #ruby
rabajaj has quit [Ping timeout: 268 seconds]
eblip has quit [Ping timeout: 240 seconds]
shortdudey123 has joined #ruby
eb0t_ has joined #ruby
eb0t has quit [Ping timeout: 260 seconds]
Tagami[m] has joined #ruby
minimalism has quit [Quit: minimalism]
Burgestrand has quit [Quit: Closing time!]
enterprisey has joined #ruby
Burgestrand has joined #ruby
iamarun has joined #ruby
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucz has joined #ruby
Serpent7776 has joined #ruby
lucz has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
Beams has joined #ruby
rabajaj has joined #ruby
rahul_bajaj has quit [Ping timeout: 268 seconds]
jsrn_ is now known as jsrn
r3QuiEm_cL has joined #ruby
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
aviraldg has joined #ruby
Hanma[m] has joined #ruby
lasenna[m] has joined #ruby
M107262[m] has joined #ruby
jonjits[m] has joined #ruby
yana[m] has joined #ruby
dtcristo has joined #ruby
watzon has joined #ruby
torarne has joined #ruby
astronavt[m] has joined #ruby
zalipuha[m] has joined #ruby
itmerc[m] has joined #ruby
Orbixx[m] has joined #ruby
haylon has joined #ruby
turt2live has joined #ruby
KevinMGranger has joined #ruby
Giphy[m] has joined #ruby
dman[m] has joined #ruby
velu_aon[m] has joined #ruby
Matt[m]2 has joined #ruby
aagdbl[m] has joined #ruby
kua[m] has joined #ruby
gokul_mr[m] has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
workmad3 has joined #ruby
Devalo has joined #ruby
snickers has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
ferr has joined #ruby
jaruga has joined #ruby
<JsilverT> i install ruby, rails with rbenv
<JsilverT> every used rails, i must sourc ~/.zshrc, if not rails dont show. How to fix?
ur5us has joined #ruby
<sneep> Are you using zsh?
alnewkirk has joined #ruby
adlerdias has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
<JsilverT> yes, i use zsh
JsilverT has quit [Quit: WeeChat 2.0-dev]
konsolebox has quit [Ping timeout: 240 seconds]
ludova has joined #ruby
ludova_ has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
ldnunes has joined #ruby
kristofferR has joined #ruby
ludova_ has joined #ruby
ana_ has quit [Remote host closed the connection]
ludova has quit [Ping timeout: 260 seconds]
ludova_ has quit [Ping timeout: 248 seconds]
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has left #ruby [#ruby]
alex`` has quit [Quit: WeeChat 1.9.1]
anisha has quit [Ping timeout: 268 seconds]
HTTP_____GK1wmSU has joined #ruby
alex`` has joined #ruby
anisha has joined #ruby
HTTP_____GK1wmSU has left #ruby [#ruby]
iamarun has quit [Ping timeout: 248 seconds]
ta has quit [Quit: Leaving...]
mim1k_ is now known as mim1k
ta has joined #ruby
ana_ has joined #ruby
claudiuinberlin has joined #ruby
ramfjord has joined #ruby
tvw has joined #ruby
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
HTTP_____GK1wmSU has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
tvw has quit [Remote host closed the connection]
tvl has joined #ruby
tvl is now known as tobiasvl
HTTP_____GK1wmSU has left #ruby [#ruby]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
anisha has joined #ruby
r3QuiEm_cL has joined #ruby
drcode has joined #ruby
garyserj has quit []
tobiasvl has quit [Quit: leaving]
tcopeland has quit [Quit: tcopeland]
tlaxkit has joined #ruby
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
aupadhye has joined #ruby
HTTP_____GK1wmSU has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
Psybur has joined #ruby
HTTP_____GK1wmSU has left #ruby [#ruby]
mostlybadfly has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
lucz has joined #ruby
lucz has quit [Ping timeout: 240 seconds]
aupadhye has quit [Ping timeout: 258 seconds]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
tvw has joined #ruby
milardovich has joined #ruby
ta has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Robert_ has joined #ruby
<Robert_> Hi
<Robert_> i wish to learn ruby and rails
Robert_ is now known as Guest44850
<Guest44850> i have just a few knowledges on html/css and shell scripting
<Guest44850> what do you advice me ?
blackbaba has joined #ruby
aupadhye has joined #ruby
Guest44850 has left #ruby [#ruby]
Psybur has quit [Ping timeout: 240 seconds]
blackbaba has quit [Client Quit]
blackbaba has joined #ruby
blackbaba has quit [Quit: Going offline, see ya! (www.adiirc.com)]
marr has joined #ruby
milardov_ has joined #ruby
creat has quit [Ping timeout: 246 seconds]
milardovich has quit [Ping timeout: 248 seconds]
hahuang65 has quit [Ping timeout: 248 seconds]
<noizex> hmm.. what's the most "Rubish" way to make sure that the object passed to some generic method is the right one?
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
<noizex> (note, not rubbish though)
<noizex> is checking for respond_to? on every corner make sense?
creat has joined #ruby
tcopeland has joined #ruby
ta has joined #ruby
<mikecmpbll> why are you trying to check?
hahuang65 has joined #ruby
r3QuiEm_cL has joined #ruby
<mikecmpbll> it's not typical to check an object's capabilities if that method only handles one set of capabilities, if the object doesn't meet the expectations of the method you'll get an exception.
darkmorph has joined #ruby
mensvaga has quit [Remote host closed the connection]
mson has joined #ruby
dkam__ has joined #ruby
faces has joined #ruby
uZiel has quit [Ping timeout: 268 seconds]
<matthewd> +1 the most rubyish way to do that is not to do that
dkam_ has quit [Ping timeout: 268 seconds]
<Iambchop> sioux: looks like you're in "/opt/redmine/plugins" but should be in "/opt/redmine" e.g. https://www.redmineup.com/pages/plugins/agile/installation
aupadhye has quit [Ping timeout: 248 seconds]
blackbaba has joined #ruby
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sylario has joined #ruby
nofxx has joined #ruby
shinnya has joined #ruby
synthroid has joined #ruby
GodFather has joined #ruby
jphase has joined #ruby
<noizex> ok
<noizex> so we just push that weight on the caller
<noizex> sounds fine to me, as it becomes madness if you start checking for these things
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
<dminuoso> noizex: For what its worth, there's a library called `rdl` that gives you type inference based static typing.
ramfjord has joined #ruby
<noizex> hehe didn't know about it, thanks
cschneid_ has joined #ruby
<noizex> won't be using it but interesting to see this in Ruby
<dminuoso> (Well its mixed dynamic and static even)
<dminuoso> Yeah.
<dminuoso> I had that exact same thought. ;-)
<noizex> to be honest I liked Ruby 12 years ago for small apps, now I ended up working for 500k line of code project
<noizex> and I'm just terrified
<noizex> I can't reason about this code at all it would seem
eb0t has joined #ruby
eblip has joined #ruby
def_jam has quit [Ping timeout: 248 seconds]
eb0t_ has quit [Ping timeout: 260 seconds]
<dminuoso> noizex: I've had a major ruby break that lasted for maybe 9 months, in which I started to learn JS with Flow and Haskell. It was very difficult to return to this dynamic and duck-typed environment. :(
alex`` has quit [Quit: WeeChat 1.9.1]
ramfjord has quit [Ping timeout: 240 seconds]
<matthewd> dminuoso: We've noticed :trollface:
<noizex> hehe
<dminuoso> matthewd: What can I say. Have you seen my take on van Laarhoven lenses earlier? :P
<dminuoso> I even changed all camelCase to snake_case because you made fun of me the last time.
milardovich has joined #ruby
<matthewd> hahaha
<matthewd> \o/ success
cabotto has joined #ruby
alfiemax has quit [Remote host closed the connection]
milardov_ has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
<matthewd> dminuoso: class Module; def spicy_method(name, &body); define_method(name) {|*args| body.curry[*args] }; end; end
<dminuoso> Mmmm, oh yeah. That one was too obvious. :P
<dminuoso> I love the name.
<matthewd> class Module; def spicy_method(name, &body); body = body.curry; define_method(name) {|*args| body[*args] }; end; end
<matthewd> Save an allocation ¯\_(ツ)_/¯
alfiemax has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
tsglove has joined #ruby
alfiemax has joined #ruby
blackbaba has quit [Quit: Mutter: www.mutterirc.com]
zipkid has quit [Ping timeout: 255 seconds]
colstrom has quit [Ping timeout: 255 seconds]
vayan has quit [Ping timeout: 255 seconds]
craysiii has quit [Ping timeout: 255 seconds]
doublyx has quit [Ping timeout: 255 seconds]
jxf has quit [Read error: Connection reset by peer]
stephenh has quit [Read error: Connection reset by peer]
pfg has quit [Read error: Connection reset by peer]
avdi has quit [Read error: Connection reset by peer]
jphase has quit [Remote host closed the connection]
AndyWojo has quit [Read error: Connection reset by peer]
t-richards has quit [Read error: Connection reset by peer]
KnownSyntax has quit [Write error: Connection reset by peer]
Meow-J has quit [Read error: Connection reset by peer]
nadir has quit [Ping timeout: 255 seconds]
doublyx has joined #ruby
colstrom has joined #ruby
vayan has joined #ruby
pfg has joined #ruby
avdi has joined #ruby
stephenh has joined #ruby
t-richards has joined #ruby
AndyWojo has joined #ruby
craysiii has joined #ruby
jxf has joined #ruby
KnownSyntax has joined #ruby
Meow-J has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
axsuul has quit [Ping timeout: 240 seconds]
friday has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
friday has joined #ruby
<dminuoso> matthewd: That just introduces the interesting problem of turning that proc into a lambda.
dopie has joined #ruby
<dminuoso> I remember seeing some weird not ideal hacks on SO about this topic.
<dminuoso> Oh wait! I know how to fiddle. Surely being a lambda is just a matter of flipping a bit.
cabotto has quit [Remote host closed the connection]
dkam__ has quit [Quit: Be back later ...]
selim has quit [Ping timeout: 264 seconds]
DTZUZU has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
selim has joined #ruby
dkam__ has joined #ruby
ramfjord has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
dkam__ has quit [Ping timeout: 260 seconds]
nyuszika7h_ is now known as nyuszika7h
ramfjord has quit [Ping timeout: 250 seconds]
dopie has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
mensvaga has joined #ruby
alfiemax has joined #ruby
jphase has quit [Ping timeout: 260 seconds]
cabotto has joined #ruby
milardov_ has joined #ruby
lucz has joined #ruby
InfinityFye has quit [Ping timeout: 268 seconds]
tomphp has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
ramfjord has joined #ruby
lucz has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
alex`` has joined #ruby
milardov_ has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
conta has quit [Remote host closed the connection]
jphase has joined #ruby
cdg has joined #ruby
conta has joined #ruby
jottr has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
bmurt has joined #ruby
sucks has joined #ruby
Devalo has quit [Ping timeout: 268 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apparition has joined #ruby
alan_w has joined #ruby
sucks has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
Psybur has joined #ruby
Devalo has joined #ruby
marr has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
cabotto has quit []
DLSteve_ has joined #ruby
milardov_ has joined #ruby
snickers has quit [Ping timeout: 248 seconds]
oleo has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 250 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
jackjackdripper has joined #ruby
aufi has quit [Quit: Leaving]
lamduh has joined #ruby
lamdah has joined #ruby
ramfjord has joined #ruby
shinnya has quit [Ping timeout: 268 seconds]
netherwolfe has joined #ruby
TinkerTyper has quit [Ping timeout: 240 seconds]
lamduh has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
InfinityFye has joined #ruby
PaulCape_ has joined #ruby
safetypin has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
synthroid has quit [Remote host closed the connection]
lucz has joined #ruby
lucz has quit [Ping timeout: 260 seconds]
John___ has joined #ruby
jrafanie has joined #ruby
jackjackdripper has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
Rapture has joined #ruby
jackjackdripper has joined #ruby
Silox| has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
milardovich has joined #ruby
wogi has quit [Ping timeout: 264 seconds]
milardov_ has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
zipkid has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
nadir has joined #ruby
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wogi has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
eclm has joined #ruby
brw has quit [Ping timeout: 248 seconds]
alan_w has quit [Ping timeout: 240 seconds]
brw has joined #ruby
Diogo has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
bmurt has joined #ruby
brw has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
brw_ has joined #ruby
tomphp has quit [Client Quit]
troys has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
InfinityFye has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
lucz has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
jrafanie has joined #ruby
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
bdonnahue1 has joined #ruby
bdonnahue has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
brw_ has quit [Ping timeout: 240 seconds]
lucz has quit [Ping timeout: 248 seconds]
anisha has quit [Quit: This computer has gone to sleep]
bdonnahue1 has quit [Read error: Connection reset by peer]
bdonnahue has joined #ruby
ramfjord has joined #ruby
lacour has joined #ruby
lamdah has quit [Quit: Leaving]
milardov_ has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
apparition has quit [Quit: Bye]
milardovich has quit [Ping timeout: 250 seconds]
synthroid has joined #ruby
aufi has joined #ruby
chouhoulis has joined #ruby
jrafanie_ has joined #ruby
ana_ has quit [Ping timeout: 240 seconds]
brw has joined #ruby
jrafanie has quit [Ping timeout: 250 seconds]
brw_ has joined #ruby
synthroid has quit [Ping timeout: 264 seconds]
synthroid has joined #ruby
rabajaj has quit [Quit: Leaving]
bdonnahue has quit [Read error: Connection reset by peer]
bdonnahue has joined #ruby
brw has quit [Ping timeout: 264 seconds]
darkmorph has quit [Ping timeout: 252 seconds]
ferr has quit [Ping timeout: 268 seconds]
alfiemax has quit [Remote host closed the connection]
brw_ has quit [Read error: Connection reset by peer]
brw has joined #ruby
uZiel has joined #ruby
rfoust has joined #ruby
Papierkorb has joined #ruby
conta has quit [Quit: conta]
conta has joined #ruby
lucz has joined #ruby
Burgestrand has quit [Quit: Closing time!]
lucz has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
dionysus69 has joined #ruby
conta has quit [Ping timeout: 240 seconds]
Sammichmaker has joined #ruby
Sammichmaker has quit [Changing host]
Sammichmaker has joined #ruby
lucz has joined #ruby
andikr has quit [Remote host closed the connection]
troys is now known as troys_
alfiemax has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
micalexander_ has joined #ruby
uZiel has quit [Ping timeout: 240 seconds]
micalexander__ has joined #ruby
jackjackdripper has joined #ruby
lucz has quit [Ping timeout: 240 seconds]
alfiemax has quit [Read error: Connection reset by peer]
thinkpad has quit [Ping timeout: 258 seconds]
alfiemax has joined #ruby
uZiel has joined #ruby
lucz has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
sioux has quit [Quit: Page closed]
cagomez has joined #ruby
milardovich has joined #ruby
kculpis has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
milardov_ has quit [Ping timeout: 268 seconds]
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
lucz has quit [Remote host closed the connection]
lucz has joined #ruby
lucz has quit [Remote host closed the connection]
konsolebox has joined #ruby
marr has joined #ruby
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has quit [Read error: Connection reset by peer]
cdg has joined #ruby
HTTP_____GK1wmSU has joined #ruby
gheegh has joined #ruby
HTTP_____GK1wmSU has quit [Read error: Connection reset by peer]
alfiemax_ has joined #ruby
cdg has quit [Remote host closed the connection]
cdg_ has joined #ruby
HTTP_____GK1wmSU has joined #ruby
milardovich has quit []
jottr_ has joined #ruby
HTTP_____GK1wmSU has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
HTTP_____GK1wmSU has joined #ruby
jottr__ has joined #ruby
jottr has quit [Read error: Connection reset by peer]
HTTP_____GK1wmSU has quit [Read error: Connection reset by peer]
TinkerTyper has joined #ruby
cdg has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
marxarelli has joined #ruby
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg_ has quit [Ping timeout: 240 seconds]
HTTP_____GK1wmSU has joined #ruby
Xiti has joined #ruby
HTTP_____GK1wmSU has quit [Read error: Connection reset by peer]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
zanoni has joined #ruby
c0ncealed has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Serpent7776 has quit [Quit: Leaving]
c0ncealed has joined #ruby
karapetyan has joined #ruby
chmurifree has quit [Ping timeout: 240 seconds]
troys_ is now known as troys
karapetyan has quit [Ping timeout: 264 seconds]
guardian has joined #ruby
conta1 has joined #ruby
<guardian> hello, I'm looking for an elegant/idiomatic of converting an array of strings and hashes into another array, where flat strings are grouped. Since I'm not sure how to express it I created a paste: https://paste.debian.net/994433/
kies has quit [Ping timeout: 248 seconds]
chmurifree has joined #ruby
John___ has quit [Read error: Connection reset by peer]
chouhoul_ has quit [Remote host closed the connection]
aufi has quit [Quit: Leaving]
Silox| has quit [Quit: Connection closed for inactivity]
mark_66 has quit [Remote host closed the connection]
Beams has quit [Quit: .]
hahuang65 has quit [Read error: Connection reset by peer]
mim1k has quit [Ping timeout: 268 seconds]
<dminuoso> Oh oh!
orbyt_ has joined #ruby
<dminuoso> This is the moment to bring in a rarely known ruby secret, guardian!
<dminuoso> let me introduce...
<dminuoso> *drums*
<dminuoso> This is hilariously good!
<Papierkorb> just why man
<dminuoso> Papierkorb: This is the perfect time to use it?!
milardov_ has joined #ruby
* dminuoso has always wanted to use it
darkmorph has joined #ruby
micalexander__ has quit []
<Papierkorb> Except there's Enumerable#chunk (cc guardian)
micalexander_ has quit []
micalexander_ has joined #ruby
<dminuoso> Buut.. flip flop!
<dminuoso> Look! This is me not doing the functional thing.
<dminuoso> I thought you'd be proud :(
<dminuoso> But fair enough, Enumerable#chunk is the cooler way.
mikecmpbll has quit [Ping timeout: 264 seconds]
milardovich has quit [Ping timeout: 250 seconds]
<guardian> let me have look
whippythellama has joined #ruby
impermanence has joined #ruby
jenrzzz has joined #ruby
milardov_ has quit []
impermanence has quit [Remote host closed the connection]
chouhoulis has joined #ruby
jaruga has quit [Quit: jaruga]
wald0 has joined #ruby
tvw has quit [Remote host closed the connection]
RickHull has joined #ruby
<dminuoso> Papierkorb: You will now be mentioned in this public gist: https://gist.github.com/dminuoso/a4d1f3f86fcada1ffdde9fed81fa7e12
rhyselsmore has joined #ruby
<baweaver> dminuoso: chunk_while is better
mson has joined #ruby
<dminuoso> baweaver: but flip flop :(
<dminuoso> baweaver: also look! you're my friend!
* dminuoso has a friend
<baweaver> If I look back far enough I'd replied to one of avdi's tweets showing you could use flip-flops to tokenize HTML :D
<RickHull> dminuoso: can I get an honorable mention? ability: :holds_breath
Quentinius has joined #ruby
<dminuoso> RickHull: Oh. Why are you still typing?
<dminuoso> Shouldn't you be dead? :(
claudiuinberlin has joined #ruby
<RickHull> i passed out and the limbic system took over :)
hays has quit [Quit: No Ping reply in 180 seconds.]
micalexander__ has joined #ruby
<dminuoso> You need to meditate more often so that you can die when others require it of you.
malice` has joined #ruby
<RickHull> we have all died a thousand deaths
<RickHull> or something
<malice`> Hi! Noob question here - in Ruby, everything's an object, and every function is a method, right?
<malice`> On what object is puts called?
<malice`> Or is it a static method of some object?
<Papierkorb> `Kernel`
<elomatreb> It's turtles all the way down
ramfjord has joined #ruby
<dminuoso> malice`: On the main object
hays has joined #ruby
hays has quit [Changing host]
hays has joined #ruby
<dminuoso> malice`: which itself (through ancestory) passes it on to the module Kernel
Quentinius has quit [Client Quit]
<RickHull> Kernel is the default receiver, I believe
chouhoul_ has joined #ruby
<dminuoso> RickHull: Nope.
<elomatreb> Methods without an explicit receiver are called on self, which usually involves the Kernel module somewhere
<Papierkorb> dminuoso: Nope, `#puts` in a method is called on implicit-self
<dminuoso> RickHull: If that was the case, you would have to invoke it as Kernel.puts.
<malice`> dminuoso: Can I somehow check this in Ruby? Like class_of(:puts)
<elomatreb> method(:puts)
<RickHull> malice`: I like to call $stdout.puts and $stderr.puts
<dminuoso> asm>> puts "foo"
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/894076
<dminuoso> Papierkorb: ^-
<dminuoso> Papierkorb: as you can see `self` is the receiver
<dminuoso> which outside method scope defaults to the main object
<Papierkorb> dminuoso: Of course, if you call it on the toplevel
<malice`> Thanks!
<malice`> That's useful
<dminuoso> malice`: Also note, there's tiny bits and pieces that are not objects
<dminuoso> Blocks and variables for examples
<elomatreb> Even more useful when working with library code is that you can call .source_location on the result of that method(:something)
<dminuoso> Though the former can trivially be turned into an object
<dminuoso> (The fact that blocks are not an object is actually just an optimization for Proc)
mjolnird has quit [Quit: Leaving]
<dminuoso> 18:54 Papierkorb | dminuoso: Nope, `#puts` in a method is called on implicit-self
<dminuoso> I just understood what you meant by that
<dminuoso> My head was completely twisted.
<dminuoso> baweaver: what useful optics would you like to see in ruby lenses?
<dminuoso> First I mean
<dminuoso> traversals? query adapters?
chouhoulis has quit [Ping timeout: 260 seconds]
<dminuoso> *query? adapters?
mjolnird has joined #ruby
mjolnird has quit [Max SendQ exceeded]
<dminuoso> Folds?
mikecmpbll has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
hays has quit [Quit: No Ping reply in 180 seconds.]
bmurt has quit [Ping timeout: 240 seconds]
<guardian> I came up with .chunk { |e| e.is_a?(String) }.to_a.map { |e| e[0] ? { :nil => e[1] } : e[1] }.flatten
<guardian> what do you think?
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr__ has quit [Ping timeout: 240 seconds]
hays has joined #ruby
hays has quit [Changing host]
hays has joined #ruby
kishmesh has joined #ruby
<dminuoso> guardian: I'd say there's no chance you even tried this.
<dminuoso> You'll see why if you try to.
ramfjord has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
<kishmesh> hi there. i'm looking for something like an "OrderedSetQueue", a FIFO Queue, that is threadsafe and does not accept duplicates. I couldn't find anything like this in standard Ruby libary nor on the net. So I'd have to self implement or what can you suggest?
<guardian> dminuoso: it works
jackjackdripper has quit [Ping timeout: 248 seconds]
kies has joined #ruby
<dminuoso> kishmesh: concurrent-ruby is kind of the de-facto library for multithreading containers, it brings a threadsafe Array that can be trivially used.
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
orbyt_ has quit [Ping timeout: 260 seconds]
hays has quit [Quit: No Ping reply in 180 seconds.]
hays has joined #ruby
<kishmesh> dminuoso: yes thank you. Though an array is not really a set, is it? Do you mean I should check if element is in array before adding it?
bmurt has quit [Max SendQ exceeded]
<dminuoso> kishmesh: Yeah. It's probably not ideal, but it will work at least.
bmurt has joined #ruby
<cagomez> why are is my @res variable not being memoized? https://hastebin.com/zehusejuhi.rb
<RickHull> kishmesh: see Queue in the stdlib
<RickHull> oh, dupes, hm
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
minimalism has joined #ruby
<RickHull> if you are going to walk the structure to look for dupes, Queue would be a good place to start
<RickHull> there is also Set, which is implemented with the key portion of the Hash structure to enforce uniqueness
<RickHull> but not sure about the threadsafety there
<kishmesh> RickHull: as I understand you can not see if element is contained by standard ruby queue.
michael1 has joined #ruby
<kishmesh> RickHull: standard set is not threadsafe
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> if there was a threadsafe Hash, you could take the Set approach there
micalexander__ has left #ruby [#ruby]
dviola has joined #ruby
<RickHull> i think you could patch Queue to allow walking it
<baweaver> dminuoso: what was that link? I'd tabbed it on the home computer before I left for work
eckhardt has joined #ruby
banisterfiend has joined #ruby
<baweaver> and banisterfiend is here
<baweaver> now we can start the party
<dminuoso> This is how you write methods by the way.
<baweaver> dminuoso: shoot him a link too
<dminuoso> Autocurrying first-class methods.
karapetyan has joined #ruby
<cagomez> if I create different procs a,b,c calling the same method foo, and foo memoizes @bar... will a,b,c each have a unique method foo, and thus a need to memoize @bar for every unique method foo?
<RickHull> cagomez: show an example with actual behavior vs expected behavior
malice` has quit [Ping timeout: 268 seconds]
<RickHull> i saw that
SeepingN has joined #ruby
<RickHull> it took forever to load and just has method definitions. no behavior
<RickHull> unless you just updated it :)
enterprisey has joined #ruby
<dminuoso> cagomez: Also your testcase is not self contained. The db_calls method is not defined.
jackjackdripper1 has quit [Ping timeout: 240 seconds]
<cagomez> so I'm wondering if do_stuff maps over items, and each item should call a Proc which calls _bar, if @res will be computed for each item
<dminuoso> And Im unsure why you have also shown foo and do_stuff. Are they related?
<dminuoso> Is this supposed to be part in module (included into a class) or a class itself?
<dminuoso> Please make a working testcase.
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
jrafanie has joined #ruby
crova has joined #ruby
<dminuoso> Also *cry* that you cant do (++ '!!!') :(
hinbody has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
<crova> Greetings everyone. Does anyone know a gem/app that can validate emails through a csv file?
kishmesh has left #ruby ["WeeChat 1.6"]
hinbody has joined #ruby
hackeron_ has quit [Read error: Connection reset by peer]
workmad3 has quit [Read error: Connection reset by peer]
RickHull has quit [Ping timeout: 260 seconds]
<dminuoso> "validate emails through a csv file" ?
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
<dminuoso> How would that work?
workmad3 has joined #ruby
conta2 has joined #ruby
hackeron has joined #ruby
<SeepingN> likely would not
conta1 has quit [Ping timeout: 250 seconds]
mjolnird has joined #ruby
<crova> I got csv files that have multiple data (name, email and other info). Before accepting the whole data from a single row I want to validate the email
mjolnird has quit [Max SendQ exceeded]
<crova> if it is a possible one (johndoe@gmal.com does not pass, johndoe@gmail.com passes)
bmurt has joined #ruby
<dminuoso> crova: do a DNS lookup and check for MX record presence?
<dminuoso> Im not an expert whether thats enough though.
ramfjord has joined #ruby
<baweaver> make sure to cache if you do
<crova> dminuoso, this would be the best of the options to be honest
<apeiros> MX, A, AAAA
<crova> I would settle for a valid format though
<apeiros> that only tells you whether the domain exists and might accept emails
ur5us has quit [Ping timeout: 240 seconds]
<baweaver> ooo, we're doing IPv6?
Diogo has quit [Quit: Connection closed for inactivity]
RickHull has joined #ruby
conta2 has quit [Ping timeout: 240 seconds]
<RickHull> test
jenrzzz has quit [Ping timeout: 260 seconds]
* dminuoso was told that https://gist.github.com/dminuoso/079267f4fcecb0568cd938d6c13733e7 was an RFC conform email validity regex.
<RickHull> test 2
<crova> baweaver, I only have the md5 :/
<RickHull> test 2
<RickHull> test
<crova> checking it dminuoso, thanks
hackeron has quit [Read error: Connection reset by peer]
* dminuoso hides
workmad3 has quit [Read error: Connection reset by peer]
hackeron has joined #ruby
<RickHull> crova: my comment was somewhat in jest and I meant to follow it up more helpfully. but freenode disconnected me, and is still pretty messed up for me right now
Lyfe_ is now known as Lyfe
<crova> RickHull, I only saw "tests" from you
<RickHull> ok, good :) sorry for that too
RickHull has quit [Client Quit]
cdg has quit [Remote host closed the connection]
milardovich has joined #ruby
RickHull has joined #ruby
workmad3 has joined #ruby
orbyt_ has joined #ruby
weaksauce has joined #ruby
rfoust has quit [Quit: Textual IRC Client: www.textualapp.com]
__main__ has quit [Remote host closed the connection]
_main_ has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
orbyt_ has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
_main_ is now known as __main__
<RickHull> banisterfiend: what are you working on / towards these days?
<dminuoso> baweaver: So. Which functionality would you like to see next?
orbyt_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
<baweaver> Admittedly you're at the practical edge of my FP knowledge, so not sure
ledestin has joined #ruby
<RickHull> what is a lens? is that an FP term?
nicesignal has quit [Ping timeout: 260 seconds]
<dminuoso> RickHull: It's a setter + getter that somehow focuses on some property/properties in some meaningful way.
blackmesa has joined #ruby
nicesignal has joined #ruby
chouhoulis has joined #ruby
troys has quit [Max SendQ exceeded]
Guest73_ has joined #ruby
<dminuoso> Wrapped in a function, so you can chain them together with just plain function composition
blackmesa1 has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
<dminuoso> If you ignore how they are implemented and just look at the bottom how they are used, they are quite simple in their basic form.
chouhoulis has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
hays has quit [Quit: No Ping reply in 180 seconds.]
dviola has quit [Quit: WeeChat 1.9.1]
hays has joined #ruby
<RickHull> FP is tough for me in ruby -- that old steve yegge post about the kingdom of nouns
<RickHull> objects are all about nouns, functions about verbs
<RickHull> i think ruby has done a lot to bridge the gap in a way that java may not
<RickHull> but then, is ruby's object basis all that useful in FP?
dviola has joined #ruby
<baweaver> Java has lambdas now among other things
<baweaver> So that argument isn't _as_ valid as it used to be
* baweaver still greatly dislikes Java
<Ober> you ever get hired for this dislike?
<RickHull> a greenfield java project with no dependencies may be able to approximate some FP elegance
<RickHull> but legacy dooms that effort, I suspect
adlerdias has quit [Quit: adlerdias]
<RickHull> a greenfield java project with no dependencies may be able to approximate some FP elegance
<RickHull> but legacy dooms that effort, I suspect
<darix> well the latest JVM hype seems to be kotlin
quobo has quit [Quit: Connection closed for inactivity]
<RickHull> and clojure even
<RickHull> and clojure even
<darix> or scala
tlaxkit has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has quit [Ping timeout: 240 seconds]
quobo has joined #ruby
ephemera_ has quit [Quit: No Ping reply in 180 seconds.]
Devalo has joined #ruby
lacour has quit [Read error: Connection reset by peer]
ephemera_ has joined #ruby
alfiemax has joined #ruby
<guardian> dminuoso: why did you say it can't possibly work? I'm curious
_main_ has joined #ruby
<dminuoso> guardian: Because :nil and nil are not the same thing? *shrugs*
_main_ has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 240 seconds]
_main_ has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
_main_ has quit [Read error: Connection reset by peer]
__main__ has quit [Ping timeout: 248 seconds]
hays has quit [Quit: No Ping reply in 180 seconds.]
jenrzzz has quit [Ping timeout: 268 seconds]
__main__ has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
hays has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
<baweaver> Ober: ?
milardov_ has joined #ruby
<baweaver> I get hired for Ruby and Javascript.
Xiti has quit [Quit: Xiti]
cdg has joined #ruby
banisterfiend has joined #ruby
alfiemax has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
<baweaver> I dislike Java so I don't pursue Java jobs. Simple as that.
planigan has quit [Remote host closed the connection]
hays has quit [Client Quit]
lucz has joined #ruby
planigan has joined #ruby
hays has joined #ruby
milardov_ has quit [Remote host closed the connection]
<guardian> dminuoso: I see
netherwolfe has quit [Quit: Leaving]
<guardian> dminuoso: thanks for your hawk eye :)
hays has quit [Quit: No Ping reply in 180 seconds.]
hays has joined #ruby
hays has joined #ruby
ramfjord has joined #ruby
_main_ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
__main__ has quit [Ping timeout: 268 seconds]
_main_ is now known as __main__
<chrisarcand> :Hashrockets
<chrisarcand> ...wrong window ;)
dionysus69 has joined #ruby
<dminuoso> RickHull: Clojure is quite nasty.
<RickHull> yeah, I haven't used it in anger yet. but I hear debugging is frustrating
rfoust has joined #ruby
<dminuoso> Yes.
<dminuoso> Stack traces separate people with implicit knowledge where the code was sabotaged, and clueless people.
<RickHull> I like Lisp, but I think I like types better
<dminuoso> If someone looks at one and finds the cause, you know he was the culprit.
<dminuoso> RickHull: Just look at SML then.
<dminuoso> It's functionall equivalent, but it gives you a full HM type system
<RickHull> I did about a decade ago, before I could appreciate it
<dminuoso> Or just straight up Haskell? ;p
<RickHull> that's probably ahead of SML in my queue
<RickHull> but not for any justifiable reasons besides maybe mindshare
dhollin3 has joined #ruby
<RickHull> I was around for the early days of http://www.impredicative.com/ur/ but again, zero appreciation :)
milardovich has joined #ruby
cr3 has joined #ruby
Guest73_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ney has joined #ruby
<cr3> when I "bundle exec rake test", for example, does it look for a Gemfile(.lock) in all the parent directories? bundle exec --help seems to have just one option, --keep-file-descriptors, so is there a way to see what it's actually doing?
<dminuoso> cr3: This should be easy to test.
alfiemax has quit [Remote host closed the connection]
<dminuoso> cr3: Also I could not reproduce your issue.
<dminuoso> So I suggest you: create a fresh directory, clone the repo (do not copy, I dont trust your old repo), checkout the revision, bundle install, and run the testsuite
<dminuoso> If you then still have the issue, then we can talk. :p
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has joined #ruby
milardovich has quit [Remote host closed the connection]
<cr3> dminuoso: I can't reproduce with pristine upstream so I'm still trying to troubleshoot my setup. if the only solution to troubleshooting this problem is delete everything and try again, that's a bit sad :(
<dminuoso> cr3: diff pristine upstream against your directory.
<cr3> dminuoso: it's something to do with the environment, like maybe the directory where it's running for example, hence my question about bundler maybe recursing up parent directories. is there no way to get any visibility into what bundler does?
<dminuoso> Bundler does magic™
Ney has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> cr3: that answer is almost certainly documented or easily testable
^mtkd has quit [Ping timeout: 264 seconds]
<cr3> RickHull: I tried bundler exec --help but maybe the source is the documentation :(
<RickHull> at the risk of being uncharitable, I think the "l" is misplaced in "bundler"
dionysus69 has quit [Ping timeout: 246 seconds]
<RickHull> it solves/solved some important problems, particularly for rails projects
<RickHull> but I don't think it should be as ubiquitous as it is now
jrafanie has joined #ruby
mtkd has joined #ruby
<cr3> I tried removing the Gemfile in ../../.. but now bundle exec rake test says the file is "not found", so bundle was recursing to the top-most directory with a Gemfile rather than first directory with a Gemfile, like ../Gemfile. interesting and confusing at the same time :)
<miah> iirc, bundler only searches the local directory for a Gemfile.lock.
<miah> right, the project-root
<cr3> miah: my cwd doesn't have a Gemfile.lock but I had a ../Gemfile.lock and ../../../Gemfile.lock. after deleting the latter one, that's when I now get "not found". I'm getting somewhere, just a bit more digging :)
<miah> weird
<miah> good luck =)
<cr3> miah: I'll share my findings as soon as I find something, this spelunking is intriguing :)
<RickHull> it took 2 minutes to confirm `bundle exec` will look to the parent dir for a Gemfile
<RickHull> relative to CWD
<miah> ya
<miah> if you're execing in a sub-directory of a project root that makes sense
<miah> if your project is missing a Gemfile or a gemspec i can imagine bundler would be like 'whats my job here?'
marxarelli is now known as marxarelli|afk
Xiti has joined #ruby
<miah> thanks for the gist
cdg has quit [Ping timeout: 248 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
michael1 has quit [Ping timeout: 264 seconds]
zacts has joined #ruby
mkroman has joined #ruby
jonjits[m] has quit [Ping timeout: 240 seconds]
klaas has quit [Ping timeout: 240 seconds]
gokul_mr[m] has quit [Ping timeout: 240 seconds]
watzon has quit [Ping timeout: 240 seconds]
Hanma[m] has quit [Ping timeout: 240 seconds]
aviraldg has quit [Ping timeout: 240 seconds]
snapcase has quit [Ping timeout: 240 seconds]
Bilge has quit [Ping timeout: 240 seconds]
def_jam has joined #ruby
eb0t_ has joined #ruby
klaas has joined #ruby
cdg_ has joined #ruby
Bilge has joined #ruby
ur5us has joined #ruby
eblip has quit [Ping timeout: 268 seconds]
eb0t has quit [Ping timeout: 268 seconds]
uZiel has quit [Read error: Connection reset by peer]
vee__ has quit [Ping timeout: 252 seconds]
cagomez has quit [Remote host closed the connection]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
jrafanie has quit [Ping timeout: 250 seconds]
Matt[m]2 has quit [Ping timeout: 250 seconds]
lasenna[m] has quit [Ping timeout: 255 seconds]
Giphy[m] has quit [Ping timeout: 255 seconds]
kua[m] has quit [Ping timeout: 252 seconds]
yana[m] has quit [Ping timeout: 252 seconds]
itmerc[m] has quit [Ping timeout: 255 seconds]
aagdbl[m] has quit [Ping timeout: 248 seconds]
torarne has quit [Ping timeout: 248 seconds]
Tagami[m] has quit [Ping timeout: 248 seconds]
Orbixx[m] has quit [Ping timeout: 248 seconds]
haylon has quit [Ping timeout: 276 seconds]
KevinMGranger has quit [Ping timeout: 276 seconds]
M107262[m] has quit [Ping timeout: 276 seconds]
turt2live has quit [Ping timeout: 264 seconds]
dman[m] has quit [Ping timeout: 246 seconds]
velu_aon[m] has quit [Ping timeout: 240 seconds]
dtcristo has quit [Ping timeout: 240 seconds]
zalipuha[m] has quit [Ping timeout: 255 seconds]
astronavt[m] has quit [Ping timeout: 264 seconds]
John___ has joined #ruby
snapcase has joined #ruby
jenrzzz has joined #ruby
bokayio has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
bokayio has joined #ruby
ldnunes has quit [Quit: Leaving]
alfiemax has joined #ruby
crova has quit [Quit: Leaving]
marxarelli|afk is now known as marxarelli
conta1 has joined #ruby
michael1 has joined #ruby
lacour has joined #ruby
vee__ has joined #ruby
conta1 has quit [Ping timeout: 264 seconds]
safetypin has quit [Quit: Textual IRC Client: www.textualapp.com]
<cr3> Let's say I'm in the directory /app/tmp/rails-4-2-stable-mri-2.4.1/activejob, typing bundle env returns "No such file or directory @ rb_sysopen - /app/Gemfile", so how does bundle decide to look for the Gemfile all the way in /app? I tried running the command with strace -e trace=open but I can't figure this out :(
cagomez has joined #ruby
lucz has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 268 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<RickHull> i think it just recurses upwards until /
<RickHull> maybe it quits before / :)
orbyt_ has joined #ruby
<cr3> RickHull: I do have /app/tmp/rails-4-2-stable-mri-2.4.1/Gemfile though
Technodrome has joined #ruby
<cr3> RickHull: also, I find it weird that it recurses until one-directory-before-root :/
<RickHull> that seems pretty weird then. see if you can replicate it as in my gist
<RickHull> like with a toy example
<RickHull> cr3: one plausible explanation is that / should not contain files, let alone user files
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<RickHull> i'm just swinging wildly though :)
<RickHull> also, do you have any symlinks pointing to /app ?
<cr3> what if "/app" is a special name... trying to rename that
Dimik has joined #ruby
cagomez has quit [Ping timeout: 252 seconds]
<cr3> RickHull: good idea, no symlinks though
John___ has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
<RickHull> bundler should not have any special case for a dir name that it doesn't own
milardovich has joined #ruby
<RickHull> aside from maybe / :)
weaksauce has quit [Read error: Connection reset by peer]
<RickHull> also, have you tried #bundler ? if not, and you do, let them know you also asked here
<cr3> RickHull: ln -s /app /foo; cd /foo/tmp/rails.../activejob; bundle env; same thing, so I'll ask in #bundler. thanks for the tip
<RickHull> also -- I can execute `bundle env` without any Gemfiles in parent dirs
<RickHull> e.g. my homedir
nofxx has quit [Quit: Leaving]
<RickHull> It omits the ## Gemfile portions
Ney has joined #ruby
<RickHull> it may take a while to get a response in some of the smaller channels, just FYI
<cr3> RickHull: grep -r /app/Gemfile /usr/local returned: /usr/local/bundle/bin/bundle: File.expand_path("../../../../../app/Gemfile", __FILE__)
<cr3> what the heck is the Gemfile doing hard-coded in a bin!
<RickHull> that is almost certainly related
<cr3> I've seen this before in python venvs so maybe /usr/local/bundle is a kind of venv, now I'm getting somewhere :/
<RickHull> definitely a question for #bundler, you won't get a charitable answer from me
milardovich has quit [Remote host closed the connection]
<RickHull> not to preempt anyone else here who can explain. don't all speak up at once :)
milardovich has joined #ruby
weaksauce has joined #ruby
DWSR has joined #ruby
cagomez has joined #ruby
nofxx has joined #ruby
cdg has joined #ruby
uZiel has quit [Ping timeout: 240 seconds]
<DWSR> Hey all, I'm trying to rewrite the Dockerfile of my company's app to slim down the images from 1.75GB (>.<). I'm doing OK so far, but am running into an issue with trying to get json-1.8.3 into the image without install make, etc. Anyone have suggestions on an approach here? I'm basing off of the ruby Alpine image.
<dminuoso> DWSR: What issue is that?
<dminuoso> DWSR: And why dont you want to build json in the docker container?
karapetyan has quit [Remote host closed the connection]
<DWSR> dminuoso: The issue is "Why the hell do I want build tools in my images?"
<nofxx> DWSR, can help with the keywords to goog: 'precompiled linux gem' , or install and them remove devtools
cdg_ has quit [Ping timeout: 240 seconds]
<nofxx> then*
<dminuoso> DWSR: Because Ruby uses native extensions?
karapetyan has joined #ruby
cagomez has quit [Ping timeout: 246 seconds]
alex`` has quit [Ping timeout: 250 seconds]
cdg has quit [Ping timeout: 268 seconds]
<dminuoso> I mean Im just trying to understand your reasoning.
dinfuehr has quit [Ping timeout: 255 seconds]
micalexander_ has quit []
micalexander_ has joined #ruby
<RickHull> i think the basic idea is that the build can happen "offline" and that you don't build on the production target platform
<DWSR> dminuoso: I'm not arguing against native extensions. I'm just kind of confused as to the fact that I'm building it from source as opposed to getting something like a Python wheel.
dinfuehr has joined #ruby
micalexander_ has quit [Client Quit]
troulouliou_div2 has joined #ruby
micalexander has joined #ruby
<dminuoso> DWSR: Ruby comes with a different json version out of the box (2.1.0 I believe)
<dminuoso> DWSR: So if you have something that specifically needs 1.8.3 for some reason, well then it has to be compiled.
<DWSR> nofxx: So if I do `bundle install devtools` then install from the Gemfile then `bundle remove devtools`, this should work?
<dminuoso> DWSR: You will still have those layers.
<dminuoso> Or I guess if you do this in a single step, it could
<DWSR> A single RUN, right?
<dminuoso> Yeah
<DWSR> Hrm.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nofxx> DWSR, no, by 'devtools' I mean your OS package with gcc & friends
<dminuoso> alpine-sdk would be a kind of equivalent
<nofxx> package group*
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
fmcgeough has joined #ruby
<DWSR> yeesh. 333MiB in packages. Luckily this should be slimmer though
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DWSR> We'll see. Looks like compilation is going through.
<DWSR> Hope I don't get burned by the differences in libc, but who knows?
tomphp has joined #ruby
chouhoulis has joined #ruby
impermanence has joined #ruby
s3nd1v0g1us has joined #ruby
nofxx has quit [Remote host closed the connection]
orbyt_ has joined #ruby
<RickHull> what's the big picture for deploying ruby artifacts? can "binaries" possibly be shipped or is always inherently source code, particularly in the case of extensions which are built at install time?
<RickHull> does mruby offer a different model?
nofxx has joined #ruby
eckhardt has joined #ruby
Devalo has joined #ruby
<RickHull> BTW, by "binaries" I don't mean shipping the ruby interpreter + source code :)
<RickHull> I would expect you ship the platform guts onto something like Alpine, then you ship your application artifact. like the java model or whatever
wald0 has quit [Quit: Lost terminal]
<RickHull> building on the production runtime platform is icky
ap4y has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
blackmesa1 has quit [Ping timeout: 246 seconds]
weaksauce has quit [Read error: Connection reset by peer]
jrafanie has joined #ruby
yabbes has joined #ruby
darix has quit [Quit: brb]
jmusits has joined #ruby
cagomez has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
michael1 has quit [Ping timeout: 240 seconds]
troulouliou_div2 has quit [Read error: Connection reset by peer]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 268 seconds]
jmusits has quit [Quit: leaving]
arquebus has joined #ruby
DWSR has quit [Ping timeout: 260 seconds]
kozrar has joined #ruby
michael1 has joined #ruby
kozrar has quit [Remote host closed the connection]
kozrar has joined #ruby
michael1 has quit [Ping timeout: 250 seconds]
thuryn has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
_whitelogger has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
synthroid has quit []
eb0t has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eblip has joined #ruby
eb0t_ has quit [Ping timeout: 240 seconds]
Tagami[m] has joined #ruby
reber has quit [Quit: Leaving]
def_jam has quit [Ping timeout: 268 seconds]
alan_w has joined #ruby
<thuryn> ugh. okay i'm a long-term perl scripter, but still a novice with Ruby, and i need to do a DNS lookup
<thuryn> and I can't quite figure it out
eclm has quit [Ping timeout: 264 seconds]
<thuryn> i need to look up the SOA record for the zone that an address falls within. most of the time, you can just look up the SOA for the address itself, and you'll get the SOA record for the "deepest" reverse zone that it belongs to
alnewkirk has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
<thuryn> i don't see how i can confirm the name of the zone that it fell into.
<RickHull> this is over my head as far as DNS goes. what methods are you looking at?
kozrar has quit [Quit: Leaving]
kozrar has joined #ruby
GodFather has quit [Read error: No route to host]
<RickHull> can you write a quick example script with this lib, that shows basically what you want to do, against say a google IP address or something?
GodFather has joined #ruby
<RickHull> something trivial that works as expected
orbyt_ has joined #ruby
<dminuoso> RickHull: I lied.
<dminuoso> RickHull: An unordered set is of course a proper Functor.
<dminuoso> I might have been slightly drunk that evening.
<RickHull> samesies
<RickHull> i got a little lost in functors vs endofunctors vs monads
<dminuoso> Just remember as far as programmers are concerned, endofunctors are functors.
<RickHull> ah, ok
<RickHull> my FP abilities (and abilities in general) wither quickly when not in use
<RickHull> I'm sort of trying to reboot that :)
<RickHull> as far as that goes, I have lots of tiny independent modules here: https://github.com/rickhull/compsci I'd be interested in a concrete example of translating to a more FP style
<dminuoso> Well, basically ignoring more exotic cases, any type of container that you can map over (and get the same type back, yes Im looking at you Range) is a functor.
<RickHull> lambdas etc
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
yabbes has quit [Quit: lu]
<dminuoso> RickHull: Great stuff. You could turn Node into an (identity) functor, and those trees in proper functors. Quite trivially.
<dminuoso> Just implement #map for each one of them. :)
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
darix has joined #ruby
<RickHull> see also the refactor branch; i'm starting to get annoyed with inheritance handcuffs for various node semantics
<RickHull> the names module is really simple, but it feels a little hacky
chouhoulis has quit [Remote host closed the connection]
cdg has joined #ruby
<dminuoso> RickHull: [*'A'..'Z'] is probably better written as ('A'..'Z').to_a
<RickHull> ok, yeah. i stole that from some stackoverflow code golf
<dminuoso> Heh
<RickHull> i imagined it wouldn't create as many objects
<dminuoso> It's not a big deal. It just looks a bit cleaner thats all.
brent__ has joined #ruby
<baweaver> It's slower as well iirc
<RickHull> i'll take clarity of expression over trivial performance
<RickHull> see Names::Greek -- that's where it gets a little hairy
<dminuoso> RickHull: You gain both in fact.
<baweaver> >> require 'benchmark';n=10_000;print "splat: #{Benchmark.measure{n.times{[*'A'..'Z']}}.real} - to_a: #{Benchmark.measure{n.times{('A'..'Z').to_a}}.real}"
<dminuoso> ;-)
<ruby[bot]> baweaver: # => splat: 0.08737298846244812 - to_a: 0.07744374871253967nil (https://eval.in/894159)
biberu has quit []
<baweaver> >> require 'benchmark';n=1_000_000;print "splat: #{Benchmark.measure{n.times{[*'A'..'Z']}}.real} - to_a: #{Benchmark.measure{n.times{('A'..'Z').to_a}}.real}"
<ruby[bot]> baweaver: # => (https://eval.in/894161)
<baweaver> fine fine
<baweaver> >> require 'benchmark';n=100_000;print "splat: #{Benchmark.measure{n.times{[*'A'..'Z']}}.real} - to_a: #{Benchmark.measure{n.times{('A'..'Z').to_a}}.real}"
<ruby[bot]> baweaver: # => splat: 0.8721756562590599 - to_a: 0.8727261573076248nil (https://eval.in/894162)
goyox86 has joined #ruby
<dminuoso> That's surprising
<baweaver> ok, so maybe little to no measurable difference
<dminuoso> asm>> [*'A'..'Z']
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/894164
<dminuoso> asm>> ('A'..'Z').to_a
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/894165
<dminuoso> Wow.
<dminuoso> baweaver: That is optimized away at compile time.
<dminuoso> That explains why.
<baweaver> Looks like it
<RickHull> are real and wall times meaningful there?
<baweaver> that said, it's way different for array concats
<dminuoso> baweaver: And since we just do this once, the splat will be faster since no method lookup has to be done (which would be uncached for the first)
<baweaver> << is faster than push is faster than concat is faster than splat
<dminuoso> So this proves, [*a..b] is the way to go.
<RickHull> noo, the darkside is winning
<baweaver> I think + was vaguely around concat's time
<baweaver> though this assumes single value addition
<dminuoso> baweaver: I wish we had ++.
<dminuoso> Buuut.. I guess I should accept that Ruby is not Haskell.
<baweaver> which means that concat and + get an extra array init
* dminuoso goes back writing lenses
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
arquebus has quit [Quit: konversation disconnects]
milardovich has joined #ruby
vee__ has quit [Ping timeout: 252 seconds]
<baweaver> dminuoso: you could always join me and teach the masses programming with adorable coding Lemurs
Psybur has quit [Ping timeout: 250 seconds]
goyox86 has quit [Quit: goyox86]
goyox86 has joined #ruby
<thuryn> RickHull, the problem is, i've never used it before, so i don't have anything that works yet. :P
mim1k has joined #ruby
<thuryn> all i have to compare to is the output from the command-line utility 'dig'
<RickHull> thuryn: start with something trivial before getting to the hard stuff
<RickHull> e.g. use the Resolv lib to get an ip address for 'google.com'
<thuryn> oh i know how to do THAT
<RickHull> ok, so let's see a working example for something close to your problem
<RickHull> but without getting into the deep zone stuff or whatever
<thuryn> the problem is, with a normal DNS lookup, you know the thing you're looking up
<thuryn> like "google.com"
<RickHull> yeah, i'm unsure about SOA records
<RickHull> and anything getting into recursive/authoritative/zone stuff is not intuitive to me
<RickHull> aside from the very basics
<thuryn> in this case, i'm looking up, say, 36.9.217.172.in-addr.arpa, but i'm going to get back 9.217.172.in-addr.arpa (missing the "36" in this case)
milardovich has quit []
vee__ has joined #ruby
<thuryn> it's like this: imagine you did a lookup for the IP address of "www.google.com" but when the answer came back, it says "google.com is 8.8.8.8"
<thuryn> (note that the "www" is missing in the answer)
<RickHull> with you so far
<thuryn> so the "google.com" is the "name" part of the record you get in return
goyox86 has quit [Remote host closed the connection]
<thuryn> i need to see where that is in a Resolv::DNS::Resource object
goyox86 has joined #ruby
Technodrome has joined #ruby
<thuryn> because the answer is highly likely to not exactly match the question
mim1k has quit [Ping timeout: 248 seconds]
<thuryn> (when you query for SOAs, you basically get the "closest match")
<RickHull> ok, makes more sense now
<RickHull> I see the resource represents the query
<RickHull> does it also represent the response?
tcopeland has quit [Quit: tcopeland]
<RickHull> apologize if i'm misusing DNS-specific terms. I mean in the general sense, where your query would be 36.9 and the response would be 9.217
<thuryn> well, i see it has attributes for the TTL (inherited) as well as MNAME and so on, all parts of the "right hand side" of the SOA record. so it has details from the response.
<RickHull> ok
<thuryn> i just don't see where it has the name of the record itself. it seems to be assumed that the name of the record is still the thing you asked for. or i'm not looking in the right place. :/
<RickHull> I believe this ruby lib is going to be a thin wrapper around the standard C resolv lib
<RickHull> one thing that can help for this is using pry as a REPL (irb is the default REPL)
goyox86 has quit [Remote host closed the connection]
<RickHull> familiar with REPLs?
<thuryn> with Perl, I could use "Data::Dumper" to have it spew out all of the different characteristics of an object like this.
<RickHull> yes, pry will give you something similar but interactive
goyox86 has joined #ruby
<thuryn> no, i'm afraid not. at least, not by that name. i've used irb before.
<RickHull> though you don't need pry for Dumper functionality
<thuryn> (it has been a while.)
<RickHull> Read Eval Print Loop -- the interactive version of the interpreter
<RickHull> anyway, pry is like irb on steroids with introspection and live debugging
<thuryn> ah, okay. a "shell" for the interpreter. (using the term loosely)
<RickHull> `ruby` wants a source file. `irb` waits for expressions and shows their evaluation result
enterprisey has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> i can't think what the most faithful version of a ruby dumper is. maybe 'pp' or 'awesome_print'
<RickHull> 'pp' is in stdlib (pretty print)
PaulCape_ has quit [Read error: Connection reset by peer]
aeaeaeae1 has joined #ruby
<thuryn> i'm going to try 'pp' and see if i don't learn something,
<RickHull> >> require 'pp'; pp String.class
<ruby[bot]> RickHull: # => Class ...check link for more (https://eval.in/894168)
PaulCapestany has joined #ruby
<RickHull> eh, hmm
<RickHull> i would try `gem install pry`
<RickHull> and then inside pry: require 'resolv' # and go from there
<RickHull> once you have an object that represents the response (SOA::Resource or w/e)
vee__ has quit [Ping timeout: 260 seconds]
<RickHull> you can: cd response_obj
<RickHull> and it's like change-dir into the object. and you can poke around
<RickHull> list its methods and attributes
<thuryn> that's.... pretty cool
<thuryn> pry installing now
<RickHull> do a 5 min tutorial on pry, it will pay off
<apeiros> ls obj
<RickHull> ^
<apeiros> lists its contents
<apeiros> $ obj.some_method
<thuryn> that's FAR too intuitive
<apeiros> shows the source code. those 2 are the most common used commands by me in pry
<thuryn> you're going to have to obfuscate it a bit
<RickHull> there's still plenty of line noise to play with ;)
<thuryn> going to ruin my reputation as a miracle worker
<apeiros> eh
<apeiros> doubt that
<baweaver> I'd look into Conrad Irwin's talk on Pry
enterprisey has quit [Remote host closed the connection]
* thuryn looks at apeiros suspiciously.
<thuryn> that can be read two ways....
<apeiros> thuryn: why are you suspicious?
<apeiros> maybe that's intentional
<thuryn> ;)
<raynold> Ahh it's a wonderful day
<thuryn> okay i see
<thuryn> the built-in resolver doesn't work the same way as some others do. if there isn't an SOA record EXACTLY like what I asked for, it doesn't do "best match." it just returns zilch.
DTZUZU has quit [Ping timeout: 240 seconds]
<thuryn> so i'll have to pop off the last element and try again until i get an answer (or I run into 'in-addr.arpa')
Psybur has joined #ruby
troys has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<thuryn> okay stupid ruby question. this is one of the attributes of the object that is returned: @expire=604800
<thuryn> how do i reference that so that i get "604800"?
vee__ has joined #ruby
<thuryn> i tried soa_record.expire but that just gave me "undefined method"
<thuryn> oh! it's a list!
<thuryn> soa_record[0].expire <- ta da!
Tagami[m] has quit [Read error: Connection reset by peer]
goyox86 has quit [Remote host closed the connection]
jdawgaz has joined #ruby
<apeiros> thuryn: note, @expire is an instance variable. you always need a method to access instance variables from outside.
blackmesa1 has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> (though, often named the same as the @ivar)
<thuryn> is it misleading that soa_record[0].expire worked in pry?
cschneid_ has quit [Remote host closed the connection]
<thuryn> (meaning that i was able to assign the returned value to another variable)
<apeiros> no? I was explaining this detail to help you understand how it works
bdonnahue has left #ruby ["Leaving"]
ramfjord has quit [Quit: leaving]
<thuryn> yes, i think i get that. if there isn't a method to expose that attribute, then it's an internal value that i "can't have"
ramfjord has joined #ruby
<apeiros> well, there's always ways
jphase has quit [Remote host closed the connection]
<thuryn> right, but i mean
thinkpad has joined #ruby
<thuryn> there are buttons we shouldn't press ;)
<apeiros> :)
<apeiros> right
<apeiros> the button not to press is instance_variable_get(:@ivar) btw. ;-)
<apeiros> or instance_eval
<thuryn> according to RubyDoc, for example, the right way to get at the mname attribute is with foo[0].mname.to_s
<thuryn> since the "mname" method returns a Resolv::DNS::Name object, and THAT wants to have to_s called against it to return just the value.
<al2o3-cr> thuryn: private methods become public methods within repl
<apeiros> o0
<apeiros> no? they don't?
<thuryn> i'm running late to the Next Thing. i'll get a chance to try this out for realz later this week.
<thuryn> thanks for the help. i think i'm well on my way now.
<apeiros> have fun
jenrzzz has quit [Ping timeout: 240 seconds]
<RickHull> thuryn: briefly, if you see an ivar like @expire, probably there is a good way to access it. if not, the bad way :)
<baweaver> with send, every method is public :D
<thuryn> :+1:
<baweaver> If you ever want to know if something is the bad way, just tag apeiros and see how many wtfs you get
<apeiros> lol
<apeiros> great, I'm a wtfmeter
<baweaver> Me, I'm the opposite
Devalo has joined #ruby
<baweaver> show me something esoteric and fun and I'll applaud
<apeiros> he's the wtfmaximizer
<baweaver> I'm a bad influence :D
shinnya has joined #ruby
jottr__ has joined #ruby
mkroman has quit [Ping timeout: 240 seconds]
<baweaver> I've taken up the mantle of Ox0dea and shevy
Tagami[m] has joined #ruby
<Papierkorb> I'm conflicted if that's good or bad
k3rn31 has quit [Ping timeout: 260 seconds]
<baweaver> that's what makes it so awesome
<baweaver> Also seeing about taking up _why's mantle as well :)
jenrzzz has joined #ruby
<baweaver> We need more cartoon tutorials, and I'm of a mind to make them
<RickHull> whitequark was always a great source of ruby quirks
Devalo has quit [Ping timeout: 264 seconds]
<baweaver> Except I teach with Lemurs because Lemurs are awesome - https://twitter.com/keystonelemur/status/927417389230178304
<baweaver> Also, for some completely unrelated reason you can normally find me around Lemur exhibits at the Oakland Zoo on weekends with a sketchpad
Psybur has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> Coming up close on 7k words for the initial draft of "An Illustrated Guide to Ruby"
<baweaver> Need to refine the ToC a bit and get at least three solid chapters out before it comes up live on Github
alan_w has quit [Ping timeout: 250 seconds]
jdawgaz has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
apeiros_ has joined #ruby
apeiros_ is now known as apeiros
sucks has joined #ruby
<RickHull> baweaver: awesome. 7k words in 3 chapters?
<baweaver> Across more than a few
<baweaver> I basically started filling out sections as it occurred to me
jenrzzz has quit [Ping timeout: 264 seconds]
cr3 has quit [Quit: leaving]
<baweaver> Need to refine in at least 3 and get that out first
<RickHull> that's as good a way as any, I figure. strike while the iron's hot
<baweaver> Reviewers welcome :)
<baweaver> Naturally credit extended in the mentions. May well end up doing a LYAH type deal where I have it online for free and publish a paper version
__main__ has quit [Read error: Connection reset by peer]
aeaeaeae1 has quit [Ping timeout: 240 seconds]
_main_ has joined #ruby
impermanence has quit [Ping timeout: 240 seconds]
troys is now known as troys_
<RickHull> the old pickaxe model worked pretty well I think
<RickHull> the first version was free
<RickHull> or write a 5 chapter core, published for free
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_main_ is now known as __main__
<RickHull> (and updated for free)
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<RickHull> published == online there
naprimer2 has joined #ruby
orbyt_ has joined #ruby
naprimer has quit [Ping timeout: 240 seconds]
troys_ is now known as troys
Tagami[m] has quit [Remote host closed the connection]
Xiti has quit [Read error: Connection reset by peer]
tcopeland has joined #ruby
sucks has quit [Remote host closed the connection]
jphase has joined #ruby
<zenspider> UGH bundler ... just fucking kill me already
<zenspider> RickHull: the free pickaxe edition was actually pretty problematic
cdg has quit [Remote host closed the connection]
<RickHull> yeah, it was old and primitive and had some bad ideas in it IIRC
<RickHull> but it really inspired me, turned on the lightbulb
cdg has joined #ruby
<RickHull> and I was glad it was free
<zenspider> aaaand it was free... which fucked up sales a measurable amount
jphase has quit [Ping timeout: 268 seconds]
<zenspider> it caused problems between DT and addison
<RickHull> I can imagine
bmurt has joined #ruby
<RickHull> i think the freemium model is more accepted these days
<zenspider> all subsequent editions weren't free as a result... but the free one stuck around and (almost) nobody updated
<RickHull> though publishers are dinosaurs
jphase has joined #ruby
<RickHull> using updates as paid DLC definitely has that downside
<RickHull> but I think you could provide the equivalent of security updates twice a year
Tagami[m] has joined #ruby
<RickHull> for free or w/e
<RickHull> probably core/periphery is a better cleavage
<RickHull> cleft?
^mtkd has quit [Ping timeout: 250 seconds]
swills has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> I expect pragmatic press and oreilly have their models fairly well figured out by now. not sure if freemium fits in there
<RickHull> for an author, I think there is something to be said for having an open portfolio to build a following
jphase has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Quit: inabit.]
mtkd has joined #ruby
<RickHull> i guess blog posts does that. avdi chime in whenever :)
mikecmpbll has joined #ruby